:root {
  --bg: #f4f1ea;
  --ink: #101010;
  --muted: #6f6b62;
  --line: #d9d3c4;
  --accent: #c0392b;
  --card: #ffffff;
  --cwe-z-bg: 0;
  --cwe-z-content: 10;
  --cwe-z-fx: 20;
  --cwe-z-transition: 100;
}
* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }

/* ── ticker ─────────────────────────────── */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--ink); color: var(--bg);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; overflow: hidden; white-space: nowrap; height: 30px;
  display: flex; align-items: center;
}
.ticker__track { display: inline-flex; gap: 0; animation: tick 30s linear infinite; }
.ticker__track span { padding-right: 3em; }
.ticker__track span em { color: #e8785f; font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ── nav ────────────────────────────────── */
nav {
  position: fixed; top: 30px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(16px, 3vw, 48px);
  background: linear-gradient(var(--bg) 65%, transparent);
}
nav .brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-transform: lowercase; }
nav .brand .tagline { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: none; font-weight: 400; }
nav .links { display: flex; gap: 22px; align-items: center; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
nav .links a, nav .links button { border-bottom: 1px solid transparent; padding-bottom: 2px; }
nav .links a:hover, nav .links button:hover { border-color: var(--ink); }
#cart-count { color: var(--accent); }

/* ── hero ───────────────────────────────── */
.hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 5vh; position: relative; padding-top: 130px; }
.hero .badge-row { display: flex; align-items: center; gap: 18px; margin-bottom: 3vh; }
.hero .grade-badge { width: 74px; height: 74px; flex: none; }
.hero h1 {
  font-size: clamp(52px, 11vw, 168px); font-weight: 700; letter-spacing: -.045em;
  line-height: .92; text-transform: lowercase;
}
.hero .sub { display: flex; gap: 4vw; align-items: baseline; margin-top: 3vh; flex-wrap: wrap; }
.hero .sub p { max-width: 46ch; color: var(--muted); font-size: clamp(15px, 1.3vw, 19px); }
.hero .sub .tagtag { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; border: 1px solid var(--ink); padding: 8px 14px; border-radius: 999px; text-transform: lowercase; }
.hero .sub .tagtag em { color: var(--accent); font-style: normal; }

/* hero cow-print band — flowmap-trail 'warp' mounts fullscreen inside this host */
.cow-band { position: relative; height: clamp(120px, 18vh, 240px); margin: 5vh 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; }
.cow-band #cow-fx { position: absolute; inset: 0; }
.cow-band .cow-band-label {
  position: absolute; left: clamp(16px, 3vw, 48px); bottom: 14px; z-index: 5;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; background: var(--bg); padding: 5px 10px; border: 1px solid var(--ink);
}

/* ── section heads ─────────────────────── */
section.block { padding: 9vh 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 5vh; flex-wrap: wrap; gap: 8px; }
.block-head h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; text-transform: lowercase; }
.block-head .count { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }

/* ── grid ───────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; }
.card .ph { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s ease; }
.card .ph .img-detail { position: absolute; inset: 0; opacity: 0; }
.card .ph:hover .img-detail { opacity: 1; }
.card .tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 4px 8px; }
.card .tag.premade { background: var(--accent); }
.card .label { border: 1px solid var(--line); border-top: 0; background: var(--card); padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.card .label .num { grid-column: 1 / -1; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.card .label .name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; font-style: italic; }
.card .label .price { font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.card .label .copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 6px; min-height: 2.6em; }
.card .label .add {
  grid-column: 1 / -1; margin-top: 12px; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 10px 0; text-align: center; transition: background .15s, color .15s;
}
.card .label .add:hover { background: var(--ink); color: var(--bg); }

/* ── manifesto / voice block ────────────── */
.manifesto p { max-width: 30ch; font-size: clamp(24px, 4vw, 52px); font-weight: 500; letter-spacing: -.03em; line-height: 1.14; font-style: italic; }
.manifesto p em { font-style: normal; color: var(--accent); }
.manifesto .fine { max-width: 54ch; margin-top: 4vh; color: var(--muted); font-size: 15px; }

/* ── tracking section ───────────────────── */
.tracking { text-align: center; padding: 14vh 0; }
.tracking p { font-size: clamp(26px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; font-style: italic; }
.tracking .sub { margin-top: 3vh; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ── product overlay ────────────────────── */
.pdp {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: grid; grid-template-columns: 1.05fr 1fr; opacity: 0; pointer-events: none;
  transition: opacity .28s ease; overflow: auto;
}
.pdp.open { opacity: 1; pointer-events: auto; }
.pdp .pdp-imgs { position: sticky; top: 0; height: 100vh; background: var(--card); border-right: 1px solid var(--line); display: grid; grid-template-rows: 1fr 1fr; }
.pdp .pdp-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.pdp .pdp-info { padding: 12vh clamp(24px, 4vw, 72px) 8vh; display: flex; flex-direction: column; gap: 20px; }
.pdp .pdp-close { position: fixed; top: 44px; right: clamp(16px, 3vw, 48px); z-index: 95; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink); background: var(--bg); padding: 10px 18px; border-radius: 999px; }
.pdp .pdp-close:hover { background: var(--ink); color: var(--bg); }
.pdp .num { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.pdp h3 { font-size: clamp(30px, 4vw, 54px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-style: italic; }
.pdp .price { font-family: "IBM Plex Mono", monospace; font-size: 20px; }
.pdp .copy { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; max-width: 48ch; color: var(--muted); }
.pdp .sizes { display: flex; gap: 8px; }
.pdp .sizes button { font-family: "IBM Plex Mono", monospace; font-size: 12px; border: 1px solid var(--ink); width: 44px; height: 40px; transition: background .15s, color .15s; }
.pdp .sizes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pdp .add {
  align-self: flex-start; font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--bg);
  padding: 16px 34px; transition: background .15s;
}
.pdp .add:hover { background: var(--accent); }
.pdp .fineprint { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 14px; }

/* ── cart drawer ────────────────────────── */
.cart-backdrop { position: fixed; inset: 0; z-index: 96; background: rgba(16,16,16,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 97; width: min(440px, 100vw);
  background: var(--bg); border-left: 1px solid var(--ink);
  transform: translateX(101%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.cart.open { transform: none; }
.cart header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart header h4 { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.cart .items { flex: 1; overflow: auto; padding: 10px 22px; }
.cart .item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart .item img { width: 64px; height: 78px; object-fit: cover; border: 1px solid var(--line); }
.cart .item .n { font-weight: 600; font-size: 14px; font-style: italic; }
.cart .item .s { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cart .item .qty { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.cart .item .qty button { border: 1px solid var(--line); width: 22px; height: 22px; line-height: 1; }
.cart .item .p { font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.cart .empty { padding: 40px 0; color: var(--muted); font-size: 14px; text-align: center; }
.cart footer { border-top: 1px solid var(--ink); padding: 18px 22px 22px; }
.cart .note { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.cart .total { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 15px; margin-bottom: 14px; }
.cart .checkout { width: 100%; background: var(--ink); color: var(--bg); padding: 16px 0; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.cart .checkout:hover { background: var(--accent); }

/* ── footer ─────────────────────────────── */
footer.site { border-top: 1px solid var(--ink); margin-top: 4vh; padding: 6vh 0 4vh; }
footer.site .big { font-size: clamp(36px, 8vw, 120px); font-weight: 700; letter-spacing: -.04em; line-height: .95; text-transform: lowercase; font-style: italic; }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 5vh; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
footer.site .cols a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .pdp .pdp-imgs { position: relative; height: 60vh; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  nav .links .hide-m { display: none; }
  nav .brand .tagline { display: none; }
  /* fixed-overlay nav assumes one line; on narrow screens let it flow in the
     document (sticky, solid bg, wraps freely) so it can never overlap content. */
  nav {
    position: sticky; top: 30px; background: var(--bg);
    flex-wrap: wrap; row-gap: 10px; padding: 14px 16px;
  }
  nav .brand { font-size: 16px; white-space: nowrap; }
  nav .links { gap: 14px; font-size: 10.5px; white-space: nowrap; }
  .hero { padding-top: 4vh; }
}
