/* =============================================================
   GRISCH 6 v3 — style.css
   Editorial, light-first. Colours only as tokens (no hex below
   the token blocks). Two easings: --ease-spring, --ease-out.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f1f0ed;          /* packshot ground */
  --surface-2: #e6e4df;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.22);
  --text: #111111;
  --text-muted: #555555;
  --text-dim: #6a6a6a;
  --accent: #1d232b;           /* the one action colour: ink pill buttons */
  --on-accent: #ffffff;
  --on-media: #ffffff;         /* text over photos */
  --media-scrim: rgba(8, 10, 16, 0.38);
  --scrim: rgba(17, 17, 17, 0.4);
  --shadow: rgba(17, 17, 17, 0.14);
  --danger: #b3261e;
  /* placeholder scenes (stand in for real photos) */
  --scene-1: #1c2140;
  --scene-2: #6b3a5a;
  --scene-3: #d9825b;
  --worn-1: #2a2622;
  --worn-2: #5a4a3c;
  --ph-ink: rgba(17, 17, 17, 0.5);
  --ph-ink-on-dark: rgba(255, 255, 255, 0.78);
  color-scheme: light;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
  --gutter: 16px;
  --radius: 4px;
  --sbw: 0px;
}
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --surface: #1a1a19;
  --surface-2: #252523;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f2f1ee;
  --text-muted: #b0aea8;
  --text-dim: #93918b;
  --accent: #f2f1ee;
  --on-accent: #111111;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow: rgba(0, 0, 0, 0.5);
  --danger: #ff8a80;
  --ph-ink: rgba(255, 255, 255, 0.55);
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --header-h: 72px; --gutter: 32px; } }


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
body.is-locked { overflow: hidden; padding-right: var(--sbw); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 500;
  padding: 12px 16px; background: var(--accent); color: var(--on-accent);
  transform: translateY(-200%); transition: transform 0.4s var(--ease-out);
}
.skip-link:focus { transform: none; }

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---------- Icons, controls, buttons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 28px; height: 28px; stroke-width: 1.3; }
.icon-fill { fill: currentColor; }

.ctrl {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  transition: opacity 0.25s var(--ease-out), transform 0.18s var(--ease-out);
}
.ctrl:hover { opacity: 0.6; }
.ctrl:active { transform: scale(0.92); }
.ctrl--text { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; }

.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s, transform 0.18s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { opacity: 0.88; }
.btn--outline { border: 1px solid var(--line-strong); }
.btn--outline:hover { border-color: var(--text); }
.btn--on-media { background: var(--accent); color: var(--on-accent); }
:root[data-theme="dark"] .btn--on-media { background: var(--on-media); color: var(--worn-1); }
.btn--light { background: var(--on-media); color: var(--worn-1); }
.btn--light:hover { opacity: 0.88; }
.btn--block { width: 100%; }


/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--text);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s;
}
/* Transparent over the hero photo */
.header.is-over-hero { background: transparent; color: var(--on-media); border-color: transparent; }
body.is-locked .header { right: var(--sbw); }

.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
}

.emblem { display: grid; place-items: center; width: 44px; height: 44px; transition: transform 0.6s var(--ease-spring); }
.emblem:hover { transform: rotate(-12deg); }
.emblem svg { width: 40px; height: 40px; }
.emblem__ring { fill: none; stroke: currentColor; stroke-width: 1.4; }
.emblem__text { fill: currentColor; font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; }

.header__actions { display: flex; justify-content: flex-end; align-items: center; }
.cart-btn__count {
  position: absolute;
  top: 6px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.header.is-over-hero .cart-btn__count { background: var(--on-media); color: var(--worn-1); }
.cart-btn__count.is-empty { display: none; }
.cart-btn__count.is-bump { animation: bump 0.6s var(--ease-spring); }

/* Mobile menu */
.nav {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: var(--header-h) var(--gutter) 48px;
  background: var(--bg);
  color: var(--text);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease-out); }
.nav__link {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.2;
  text-transform: uppercase;
  transform: translateY(16px);
  transition: transform 0.6s var(--ease-spring), opacity 0.3s;
}
.nav.is-open .nav__link { transform: none; }
.nav__link:hover { opacity: 0.6; }
.menu-btn span { position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-spring), top 0.3s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.header.menu-open { color: var(--text); }

@media (min-width: 900px) {
  .nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
    padding: 0;
    background: none;
    color: inherit;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1;
    transform: none;
    opacity: 0.75;
    transition: opacity 0.25s;
  }
  .nav__link:hover, .nav__link.is-current { opacity: 1; }
  .menu-btn { display: none; }
}
/* Emblem always at the exact centre, whatever the side columns hold */
.header__inner { position: relative; }
.emblem { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.header__actions { grid-column: 3; }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--on-media);
  text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--scene-1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--media-scrim); }
/* Placeholder "dusk" scene, slowly breathing: stands in for the hero photo */
.hero__scene {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(60% 50% at 70% 78%, var(--scene-3), transparent 70%),
    radial-gradient(70% 60% at 25% 60%, var(--scene-2), transparent 70%),
    linear-gradient(180deg, var(--scene-1) 0%, var(--scene-2) 70%, var(--scene-3) 100%);
  animation: sceneDrift 18s ease-in-out infinite alternate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__ph-label { position: absolute; left: var(--gutter); bottom: 20px; z-index: 1; opacity: 0.7; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--header-h) var(--gutter) 48px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 148px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: rise 1.2s var(--ease-out) 0.15s forwards;
}
.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1.2s var(--ease-out) 0.35s forwards;
}
.hero__chevron {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 12px 0 4px;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.6s forwards, nudge 2.4s var(--ease-out) 1.8s infinite;
}
.hero .btn { opacity: 0; animation: rise 1s var(--ease-out) 0.75s forwards; }


/* ---------- Shop: product pairs ---------- */
.pair {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair--flip .tile--worn { order: -1; }
}

.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
@media (min-width: 900px) {
  .tile { aspect-ratio: auto; height: max(560px, calc(100svh - var(--header-h))); }
}

.tile__label {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.tile--worn .tile__label { color: var(--on-media); }

.tile__open { position: absolute; inset: 0; z-index: 2; width: 100%; }
.tile__open:focus-visible { outline-offset: -6px; }

/* Packshot slider */
.slides { position: absolute; inset: 0; display: flex; transition: transform 0.7s var(--ease-out); }
.slide { position: relative; flex: 0 0 100%; height: 100%; display: grid; place-items: center; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder packshot: a garment-shaped block on the neutral ground */
.packshot {
  width: 54%;
  aspect-ratio: 4 / 5;
  max-height: 72%;
  border-radius: 10% 10% 6% 6% / 8% 8% 5% 5%;
  background: var(--swatch);
  box-shadow: 0 40px 50px -30px var(--shadow);
  transition: transform 1s var(--ease-out);
}
.tile:hover .packshot { transform: scale(1.025); }
.slide__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: var(--ph-ink);
}

.tile__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 6px 18px -8px var(--shadow);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-spring);
}
.tile__nav--prev { left: 16px; transform: translateX(-8px); }
.tile__nav--next { right: 16px; transform: translateX(8px); }
.tile:hover .tile__nav, .tile:focus-within .tile__nav { opacity: 1; transform: none; }
.tile__nav:active { transform: scale(0.92); }
@media (hover: none) { .tile__nav { opacity: 1; transform: none; } }

.dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.3s, transform 0.4s var(--ease-spring); }
.dots span.is-on { background: var(--text); transform: scale(1.25); }

.tile__choose {
  position: absolute;
  right: 24px;
  bottom: 16px;
  z-index: 3;
  min-height: 44px;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-spring), background-color 0.3s;
}
.tile:hover .tile__choose, .tile:focus-within .tile__choose { opacity: 1; transform: none; }
@media (hover: none) { .tile__choose { opacity: 1; transform: none; } }

/* Placeholder "worn" photo */
.tile--worn { background: var(--worn-1); }
.worn {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 55% at 50% 42%, var(--swatch), transparent 72%),
    linear-gradient(160deg, var(--worn-2), var(--worn-1) 70%);
  transition: transform 1.2s var(--ease-out);
}
.tile--worn:hover .worn, .tile--worn:hover .worn__img { transform: scale(1.03); }
.worn__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.worn__caption { position: absolute; left: 24px; bottom: 24px; color: var(--ph-ink-on-dark); }


/* ---------- Trust ---------- */
.trust {
  display: grid;
  gap: 48px;
  padding: 96px var(--gutter);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); padding-block: 120px; } }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 360px; margin-inline: auto; }
.trust__title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.trust__text { color: var(--text-muted); }


/* ---------- Materials band ---------- */
.band {
  position: relative;
  min-height: 80svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--on-media);
  text-align: center;
}
.band__media {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 6px, var(--media-scrim) 6px 7px),
    linear-gradient(135deg, var(--worn-2), var(--worn-1));
}
.band__media .ph-label { position: absolute; left: var(--gutter); bottom: 20px; opacity: 0.7; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.band__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 48px var(--gutter); }
.band__title { max-width: 16ch; font-family: var(--font-display); font-size: clamp(40px, 6vw, 84px); line-height: 1; }


/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; padding: 120px var(--gutter); }
.faq__title { margin-bottom: 40px; font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; text-align: center; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.45s var(--ease-spring);
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__item p { max-width: 62ch; padding-bottom: 24px; color: var(--text-muted); animation: rise 0.5s var(--ease-out); }
.faq__item a { text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Footer ---------- */
.footer { padding: 72px var(--gutter) 32px; border-top: 1px solid var(--line); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__brand { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.footer__link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.footer__social { display: flex; gap: 4px; }
.footer__copy { margin-top: 24px; color: var(--text-dim); font-size: 13px; }


/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; transition: visibility 0s linear 0.6s; }
.modal.is-open { visibility: visible; transition-delay: 0s; }
.modal__backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.45s var(--ease-out); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 4; border-radius: 50%; background: var(--bg); }
.modal__media { position: relative; height: min(100vw, 48svh); overflow: hidden; background: var(--surface); }
.modal__body { display: flex; flex-direction: column; gap: 20px; padding: 28px var(--gutter) 32px; }
.modal__title { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; }
.modal__price { font-size: 15px; letter-spacing: 0.04em; }
.modal__desc { color: var(--text-muted); }
.field__label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.field__hint { color: var(--text-muted); }
.field__hint.is-error { color: var(--danger); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sizes--single { grid-template-columns: 1fr; }
.sizes.is-shake { animation: shake 0.45s var(--ease-out); }
.size { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.18s var(--ease-out); }
.size:hover { border-color: var(--text); }
.size:active { transform: scale(0.96); }
.size[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.modal__buy { display: flex; gap: 10px; }
.modal__add { flex: 1; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.qty__btn { width: 44px; height: 100%; font-size: 18px; }
.qty__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty__value { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.qty--sm { height: 44px; }
@media (max-width: 899px) {
  .field--buy { position: sticky; bottom: 0; z-index: 2; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); background: var(--bg); border-top: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .modal { align-items: center; padding: 32px; }
  .modal__dialog {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: min(1100px, 100%);
    height: min(700px, calc(100vh - 64px));
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
  }
  .modal.is-open .modal__dialog { opacity: 1; transform: none; }
  .modal__media { height: 100%; }
  .modal__body { overflow-y: auto; justify-content: center; padding: 56px 48px; }
}


/* ---------- Cart ---------- */
.cart { position: fixed; inset: 0; z-index: 300; visibility: hidden; transition: visibility 0s linear 0.6s; }
.cart.is-open { visibility: visible; transition-delay: 0s; }
.cart__backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.45s var(--ease-out); }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
}
.cart.is-open .cart__panel { transform: none; }
.cart__header { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
.cart__title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.cart__shipping { padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 14px; }
.cart__shipping strong { color: var(--text); }
.progress { height: 2px; margin-top: 10px; background: var(--surface-2); }
.progress__bar { width: 0; height: 100%; background: var(--text); transition: width 0.7s var(--ease-out); }
.cart__body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 0 24px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: opacity 0.3s, transform 0.35s var(--ease-out); }
.cart-item.is-new { animation: itemIn 0.6s var(--ease-out) both; }
.cart-item.is-removing { opacity: 0; transform: translateX(24px); }
.cart-item__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--surface); }
.cart-item__media .packshot { width: 58%; box-shadow: none; }
.cart-item__name { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.cart-item__meta { margin: 4px 0 10px; color: var(--text-muted); font-size: 14px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item__remove { min-height: 44px; color: var(--text-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cart__empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.cart__empty-title { font-family: var(--font-display); font-size: 30px; }
.cart__footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart__row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.cart__note { margin: 6px 0 16px; color: var(--text-dim); font-size: 13px; }
.cart__panel.is-empty .cart__items, .cart__panel.is-empty .cart__shipping, .cart__panel.is-empty .cart__footer { display: none; }
.cart__panel.is-empty .cart__empty { display: flex; }


/* ---------- Toasts ---------- */
.toast-region { position: fixed; left: 50%; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 14px; box-shadow: 0 20px 40px -14px var(--shadow); pointer-events: auto; animation: toastIn 0.55s var(--ease-spring) both; }
.toast.is-leaving { animation: toastOut 0.3s var(--ease-out) forwards; }
.toast__msg { flex: 1; }
.toast__action { min-height: 44px; padding: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }


/* ---------- Checklist fixes (Vercel web interface guidelines) ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
h1, h2, h3, .hero__sub { text-wrap: balance; }
p { text-wrap: pretty; }
.tile__name { font: inherit; letter-spacing: inherit; min-width: 0; overflow-wrap: anywhere; }
.cart__body { overscroll-behavior: contain; }
.header__inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.field--buy { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.hero__chevron { animation-iteration-count: 1, 3; }

.hero__pause {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: 12px;
  z-index: 2;
  color: var(--on-media);
}
.icon--play { display: none; }
.hero.is-paused .icon--play { display: block; }
.hero.is-paused .icon--pause { display: none; }
.hero.is-paused .hero__scene { animation-play-state: paused; }


/* ---------- Real product photos (shot on white) ---------- */
:root { --photo-ground: #ffffff; --ink-on-photo: #111111; }
.slide img, .worn__img, .cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--photo-ground);
}
.tile--pack:has(.slide img), .tile--photo, .cart-item__media:has(img) { background: var(--photo-ground); }
/* TODO: when a real worn photo (dark scene) replaces the back shot, remove tile--photo for that product */
.tile--photo .tile__label { color: var(--ink-on-photo); }
.tile--pack:has(.slide img) .tile__label { color: var(--ink-on-photo); }
.tile--pack:has(.slide img) .dots span { background: rgba(17, 17, 17, 0.2); }
.tile--pack:has(.slide img) .dots span.is-on { background: var(--ink-on-photo); }

/* Product page (modal): gallery, colours, sizes, details */
.modal__media .slides { position: absolute; inset: 0; }
.modal__media .tile__nav { opacity: 1; transform: none; }
.modal__media:has(.slide img) { background: var(--photo-ground); }
.modal__media:has(.slide img) .dots span.is-on { background: var(--ink-on-photo); }
.sizes { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.colors { display: flex; gap: 10px; }
.color {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.25s, transform 0.4s var(--ease-spring);
}
.color:hover { transform: scale(1.06); }
.color[aria-pressed="true"] { outline-color: var(--text); }
/* Colour choice on the shop tile (one product, several colours) */
.tile__colors {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 3;
  display: flex;
}
.color--sm {
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  box-shadow: none;
  outline: none;
}
.color--sm::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.25s, transform 0.4s var(--ease-spring);
}
.color--sm:hover::before { transform: scale(1.12); }
.color--sm[aria-pressed="true"]::before { outline-color: var(--ink-on-photo); }
.color--sm:focus-visible { outline: 2px solid var(--ink-on-photo); outline-offset: -2px; border-radius: 50%; }

.modal__desc { font-size: 16px; line-height: 1.65; }
.modal__details .faq__item summary { min-height: 52px; font-size: 12px; }
.modal__list { display: grid; gap: 6px; padding: 0 0 20px 18px; list-style: disc; color: var(--text-muted); }


/* ---------- Logo (handwritten mark, 671×176, used as a mask) ---------- */
.logo-mark {
  display: block;
  aspect-ratio: 671 / 176;
  background: currentColor;
  -webkit-mask: url("images/logo-white.png") center / contain no-repeat;
  mask: url("images/logo-white.png") center / contain no-repeat;
}
.logo-mark--header { width: 112px; }
.emblem { width: auto; padding-inline: 4px; }
.emblem:hover { transform: none; opacity: 0.7; }
.logo-mark--hero { width: clamp(260px, 52vw, 760px); }
.hero__brand { opacity: 0; animation: rise 1.2s var(--ease-out) 0.05s forwards; }
.hero__brand + .hero__title {
  margin-top: 20px;
  font-size: clamp(36px, 5vw, 72px);
  animation-delay: 0.3s;
}
.hero__brand ~ .hero__sub { font-size: clamp(20px, 2.4vw, 32px); animation-delay: 0.45s; }


/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sceneDrift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-2%, -1%, 0); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes itemIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hero__scene { animation: none !important; }
}
