/* Supacaz shop. Tokens from the Supacaz Brand Book (tokens.json). */
:root {
  --bg: #ffffff;
  --tile: #f3f4ee;
  --line: #e3e6de;
  --ink: #1a4332;
  --muted: #5a6e61;
  --on-ink: #ffffff;
  --accent: #f7a07c;
  --sage: #e3e4cd;
  --charcoal: #262626;
  --danger: #b4381a;
  --shadow-grip: 0px 10px 10px rgba(26, 67, 50, 0.16);

  --font-sans: Helvetica, Arial, sans-serif;   /* system font: Helvetica on Apple, Arial on Windows */
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 20px; --space-5: 36px; --space-6: 44px;
  --radius-none: 0px;
  color-scheme: light;
}
/* Always light: the brand book calls the shop a white page. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/23px var(--font-sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.caps { font: 400 11px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font: 400 40px/44px var(--font-sans); letter-spacing: -.03em; }
h2 { margin: 0; font: 400 24px/29px var(--font-sans); letter-spacing: -.01em; }
.small { font: 400 13px/20px var(--font-sans); }
.muted { color: var(--muted); }
.danger { color: var(--danger); }
@media (max-width: 640px) { h1 { font-size: 32px; line-height: 36px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: var(--radius-none); background: var(--ink); color: var(--on-ink); cursor: pointer;
  font: 400 11px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.btn.outline { background: none; color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 16px; background: none; color: var(--ink); border-color: var(--line); }
.btn.sm:hover { border-color: var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, .link:focus-visible, .step button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, .pay-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.ann { padding: 8px 16px; text-align: center; background: var(--tile); }
.ann span { border-bottom: 1px solid var(--ink); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 22px var(--space-4); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav.r { justify-content: flex-end; }
.nav a, .nav button { color: var(--ink); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.nav a:hover, .nav button:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo { display: block; height: 22px; width: auto; min-width: 96px; }
@media (max-width: 640px) {
  .logo { height: 18px; }
  .nav .wide { display: none; }
}

/* Page */
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--space-4); }
section + section { border-top: 1px solid var(--line); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); padding: 24px 0 var(--space-6); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--space-3); } }
.card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* Each grip floats gently, sits on a soft glow in its own color, and tilts up on hover. */
.art { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; aspect-ratio: 4 / 5;
  background: var(--tile); padding: 6% 14%; overflow: hidden; }
.art .halo { position: absolute; inset: 8% 4% 4%; background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: .24; transform: scale(.85); transition: opacity .5s ease, transform .6s ease; pointer-events: none; }
.art img { position: relative; max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(var(--shadow-grip));
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.8s);
  transition: rotate .5s cubic-bezier(.2, .7, .2, 1), scale .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .art .halo { opacity: .45; transform: scale(1.05); }
.card:hover .art img { rotate: -5deg; scale: 1.06; }
.art .noimg { color: var(--muted); }
.soldout .art img { filter: grayscale(1); opacity: .35; animation: none; }
.soldout .art .halo { display: none; }
.soldout:hover .art img { rotate: none; scale: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.grid.enter .card { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* The banner never starts invisible: its grips only slide up, so the first frame always shows them. */
@keyframes lift { from { transform: translateY(24px); } to { transform: none; } }
/* Card text: name and price on one line, then line or pack size and any stock note */
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .art + .row { margin-top: 12px; }
.card h3 { margin: 0; min-width: 0; font: 400 17px/22px var(--font-sans); }
.card .price { flex: none; font: 400 16px/22px var(--font-sans); font-variant-numeric: tabular-nums; }
.meta { color: var(--muted); }
.tag { flex: none; color: var(--danger); }
.soldout .tag { color: var(--muted); }
/* "Add to order" sits on the image: hidden until hover on desktop, always shown on touch screens and once added */
.act { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; justify-content: center;
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.act:empty { display: none; }
.act .add { width: 100%; }
.act .step { background: var(--bg); }
.card:hover .act, .card:focus-within .act, .card.in-order .act { opacity: 1; transform: none; }
@media (hover: none) { .act { opacity: 1; transform: none; } }
.step { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--ink); }
.step button { width: 36px; height: 34px; border: 0; background: none; color: var(--ink); font: 400 18px/1 var(--font-sans); cursor: pointer; }
.step button[disabled] { opacity: .35; cursor: not-allowed; }
.step output { min-width: 26px; text-align: center; font: 400 11px/16px var(--font-sans); letter-spacing: .14em; }

/* Home: full-bleed hero. Every colorway in one overlapping, floating row on sage,
   or the owner's own photo when config.heroImage is set. */
.hero { --gh: clamp(300px, calc(100vw / 3.6), 620px);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 56px 0 48px; background: var(--sage); overflow: hidden; }
.hero-grips { display: flex; justify-content: center; align-items: flex-end; width: 100%; height: var(--gh); margin-bottom: 40px; }
.hero-grips img { flex: 0 0 auto; height: 100%; width: auto; margin-inline: calc(var(--gh) * -0.086);
  filter: drop-shadow(0 18px 18px rgba(26, 67, 50, .22));
  rotate: 2.5deg;
  animation: float 6s ease-in-out infinite, lift .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * -0.55s), calc(var(--i) * 60ms); }
.hero-grips img:nth-child(odd) { translate: 0 -5%; rotate: -2.5deg; }
.hero-btn { position: relative; z-index: 2; min-height: 52px; padding: 0 44px; }
.hero.has-photo { min-height: min(82vh, 780px); justify-content: center; background-size: cover; background-position: center; }
.hero.has-photo .hero-grips { display: none; }
@media (max-width: 760px) {
  .hero { --gh: 300px; padding: 36px 0 32px; }
  .hero-grips { margin-bottom: 28px; }
  .hero.has-photo { min-height: 72vh; }
}

/* Home: the two lines */
.lines-home { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding: 28px 0 var(--space-6); }
@media (max-width: 760px) {
  .lines-home { grid-template-columns: 1fr; gap: var(--space-5); }
}
.line-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.line-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fan { position: relative; aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; }
.fan img { position: absolute; left: 50%; bottom: 12%; height: 66%; width: auto; transform-origin: 50% 135%;
  translate: -50% 0; rotate: calc(var(--o) * 8deg); z-index: calc(10 - var(--d));
  filter: drop-shadow(var(--shadow-grip)); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1.1s);
  transition: rotate .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); }
.line-card:hover .fan img { rotate: calc(var(--o) * 10deg); translate: -50% -10px; }
@media (max-width: 760px) {
  .fan { aspect-ratio: 1 / 1; }
  .fan img { height: 62%; bottom: 12%; rotate: calc(var(--o) * 7deg); }
  .line-card:hover .fan img { rotate: calc(var(--o) * 8deg); }
}
.line-info { padding: 18px 0 0; text-align: center; }
.line-info h2 { margin-bottom: 6px; }
.line-info .go { display: inline-block; margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid var(--ink); }
.line-card:hover .go { border-bottom-width: 2px; padding-bottom: 1px; }

/* Home: tacky or dry, as two full-width halves */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.half { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px;
  min-height: 560px; padding: 48px 40px 44px; overflow: hidden; }
.half.kush { background: var(--sage); }
.half.suave { background: var(--tile); }
.half .copy { position: relative; z-index: 1; display: grid; gap: 14px; align-content: end; min-width: 0; }
.half .word { margin: 0; font: 400 clamp(64px, 9vw, 136px)/.9 var(--font-sans); letter-spacing: -.05em; }
.half .copy p { margin: 0; max-width: 30ch; }
.half .facts { display: flex; flex-wrap: wrap; gap: 18px; }
.half .pic { align-self: center; height: 460px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.half .pic img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 14px 14px rgba(26, 67, 50, .18));
  animation: float 6s ease-in-out infinite; }
.half.suave .pic img { animation-delay: -3s; }
.half:hover .pic { transform: rotate(-6deg) translateY(-10px) scale(1.04); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .half { min-height: 0; grid-template-columns: minmax(0, 1fr) 110px; padding: 32px 20px; }
  .half .pic { height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .half .pic { transition: none; }
  .half .pic img { animation: none; }
}

/* Home: section heading used by the color band and the ordering strip */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: var(--space-6) 0 20px; }
.section-head h2 { font-size: 32px; line-height: 36px; letter-spacing: -.02em; }

/* Home: shop by color */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 480px; padding: 28px 28px 0; overflow: hidden;
  background: var(--tint); color: var(--ink); text-decoration: none; }
.col h3 { margin: 0; font: 400 32px/36px var(--font-sans); letter-spacing: -.02em; }
.col p { margin: 6px 0 0; max-width: 28ch; color: var(--muted); }
.col .go { display: inline-block; margin-top: 14px; padding-bottom: 2px; border-bottom: 1px solid var(--ink); }
.col:hover .go { border-bottom-width: 2px; padding-bottom: 1px; }
.col:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.col .stack { position: relative; align-self: end; height: 310px; }
.col .stack img { position: absolute; bottom: 18px; left: calc(6% + var(--x) * 64%); height: 270px; width: auto; max-width: none;
  rotate: calc(var(--o) * 7deg); filter: drop-shadow(0 12px 12px rgba(26, 67, 50, .18));
  transition: rotate .5s cubic-bezier(.2, .7, .2, 1), translate .5s cubic-bezier(.2, .7, .2, 1); }
.col:hover .stack img { rotate: 0deg; translate: 0 -16px; }
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .col { min-height: 380px; padding: 24px 20px 0; }
  .col .stack { height: 220px; }
  .col .stack img { height: 220px; }
}

/* Home: how ordering works */
.how { border-top: 1px solid var(--line); }
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0 0 var(--space-6); list-style: none; }
.steps-row li { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 4px 24px 0; }
.steps-row li:first-child { padding-left: 0; }
.steps-row li + li { border-left: 1px solid var(--line); }
.steps-row .num { font: 400 56px/1 var(--font-sans); letter-spacing: -.05em; color: var(--sage); -webkit-text-stroke: 1px var(--ink); }
.steps-row h3 { margin: 0; font: 400 18px/24px var(--font-sans); }
.steps-row p { margin: 0; color: var(--muted); font: 400 14px/21px var(--font-sans); }
@media (max-width: 860px) {
  .steps-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps-row li { padding: 0 16px; }
  .steps-row li:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.next { margin: 0 0 10px; }

/* One line's page */
.crumbs { padding: 24px 0 0; }
.line-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.line-head h1:focus { outline: none; }
.line-head p { margin: 8px 0 0; max-width: 52ch; }
.line-head > .caps { white-space: nowrap; }
.other { padding: 0 0 var(--space-6); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .art img, .fan img, .hero-grips img, .grid.enter .card { animation: none; }
  .act, .col .stack img { transition: none; }
  .about-art img { animation: none; }
  .art img, .fan img, .art .halo { transition: none; }
}

/* Skeleton while stock loads */
.card.loading .art { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .card.loading .art { animation: none; } }
.status-line { padding: 24px 0; text-align: center; }


/* Order page: how to pay, send proof, and collect */
.order { padding-bottom: var(--space-6); }
.order-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.order-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.order-head h1:focus { outline: none; }
.order-head p { margin: 0; max-width: 60ch; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding-top: 8px; }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; gap: 0; } .o-summary { order: -1; } }

.o-steps { list-style: none; margin: 0; padding: 0; }
.o-steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.o-steps > li:last-child { border-bottom: 0; }
.o-num { font: 400 44px/1 var(--font-sans); letter-spacing: -.05em; color: var(--sage); -webkit-text-stroke: 1px var(--ink); }
.o-body { display: grid; gap: 12px; min-width: 0; }
.o-body h2 { font-size: 22px; line-height: 28px; }
.o-body h2 .muted { font-size: 15px; }
.o-body p { margin: 0; max-width: 62ch; }
@media (max-width: 560px) { .o-steps > li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; } .o-num { font-size: 34px; } }

.qr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .qr-pair { grid-template-columns: 1fr; } }
.qr-card { display: grid; gap: 12px; align-content: start; padding: 16px; background: var(--tile); }
.qr-card .qr { width: 100%; max-width: 260px; margin: 0 auto; }
.qr-card .kv { margin: 0; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; align-items: baseline; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv.pickup { padding: 14px 16px; background: var(--tile); }
button.copy { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
button.copy:hover { border-color: var(--ink); }
.row-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.row-links button.copy { margin-left: 0; padding: 6px 12px; }
.tips { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.tips strong { color: var(--ink); font-weight: 700; }

.track-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.track-form input { flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 15px/23px var(--font-sans); }
.track-form input:hover { border-color: var(--muted); }
.track-form .track-msg { flex-basis: 100%; margin: 0; min-height: 20px; color: var(--muted); }
.track-form .track-msg.danger { color: var(--danger); }
.track-form.standalone { display: grid; gap: var(--space-3); max-width: 480px; padding-top: 24px; }
.track-form.standalone .btn { justify-self: start; }

.o-summary { position: sticky; top: 20px; display: grid; gap: 16px; padding: 24px; margin-top: 28px; background: var(--tile); }
.o-summary h2 { margin: 0; }
.o-lines { list-style: none; margin: 0; padding: 0; }
.o-lines li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.o-lines .thumb { width: 40px; aspect-ratio: 4 / 5; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 3px 9px; }
.o-lines .thumb img { max-height: 100%; }
.o-lines .nm { font: 400 14px/18px var(--font-sans); min-width: 0; }
.o-total { display: flex; justify-content: space-between; align-items: baseline; }
.o-total strong { font: 400 28px/32px var(--font-sans); letter-spacing: -.02em; }
.o-notes h3 { margin: 0 0 6px; }
.o-notes ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 960px) { .o-summary { position: static; } }

/* About */
.about-hero { background: var(--sage); overflow: hidden; }
.about-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 520px; padding-block: 48px; }
.about-copy { display: grid; gap: 16px; align-content: center; }
.about-copy h1 { font-size: clamp(44px, 6vw, 80px); line-height: .95; letter-spacing: -.045em; }
.about-copy h1:focus { outline: none; }
.about-copy p { margin: 0; max-width: 52ch; }
.about-copy .lede { font-size: 19px; line-height: 28px; }
.about-art { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 420px; }
.about-art img { height: 100%; width: auto; max-width: none; margin-inline: -34px; filter: drop-shadow(0 16px 16px rgba(26, 67, 50, .2));
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.about-art img:nth-child(odd) { rotate: -4deg; translate: 0 -18px; }
.about-art img:nth-child(even) { rotate: 4deg; }
@media (max-width: 860px) {
  .about-hero-in { grid-template-columns: 1fr; min-height: 0; padding-block: 36px 24px; }
  .about-art { height: 260px; }
  .about-art img { margin-inline: -22px; }
}
.about-sec { padding-block: var(--space-6) 0; display: grid; gap: 16px; }
.about-sec h2 { font-size: 32px; line-height: 36px; letter-spacing: -.02em; }
.about-p { margin: 0; max-width: 62ch; }
.about-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.about-line { display: grid; gap: 8px; align-content: start; padding: 28px; background: var(--tile); color: var(--ink); text-decoration: none; }
.about-line:nth-child(1) { background: var(--sage); }
.about-line h3 { margin: 0; font: 400 28px/32px var(--font-sans); letter-spacing: -.02em; }
.about-line p { margin: 0; max-width: 40ch; }
.about-line .go { justify-self: start; margin-top: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--ink); }
.about-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.about-cols a { display: grid; gap: 6px; padding: 22px; color: var(--ink); text-decoration: none; min-height: 140px; align-content: start; }
.about-cols li:nth-child(1) a { background: #fbe4ee; }
.about-cols li:nth-child(2) a { background: #e2e9f6; }
.about-cols li:nth-child(3) a { background: #fbf0d2; }
.about-cols strong { font: 400 22px/26px var(--font-sans); letter-spacing: -.01em; }
.about-cols span { color: var(--muted); }
#v-about { padding-bottom: var(--space-6); }
@media (max-width: 860px) { .about-two, .about-cols { grid-template-columns: 1fr; } }

/* Privacy notice */
.legal { padding-bottom: var(--space-6); }
.legal-body { max-width: 68ch; padding-top: 12px; }
.legal-body h2 { margin: 32px 0 8px; font-size: 20px; line-height: 26px; }
.legal-body p, .legal-body li { color: var(--ink); }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.legal-body strong { font-weight: 700; }

/* Footer */
.site-foot { background: var(--ink); color: #e7ebd9; padding: 40px 0 28px; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { height: 22px; width: auto; filter: brightness(0) invert(.92); }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; color: #b9c6b4; font: 400 13px/20px var(--font-sans); }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col .caps { color: #b9c6b4; margin-bottom: 2px; }
.foot-col a { color: #e7ebd9; text-decoration: none; font: 400 14px/20px var(--font-sans); justify-self: start; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-pay span { padding: 4px 10px; border: 1px solid #4a6b5b; }
.foot-legal { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid #335c49; color: #b9c6b4; font: 400 12px/18px var(--font-sans); }
.site-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
body.has-bar .site-foot { padding-bottom: 96px; }

/* Sticky order bar */
.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--charcoal); color: #fff; }
.orderbar .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 12px var(--space-4); }
.orderbar .btn { background: #fff; color: #1a4332; border-color: #fff; }

/* Order drawer */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(18, 19, 17, .4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(440px, 100%); background: var(--bg);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--space-4); border-bottom: 1px solid var(--line); }
.drawer .body { flex: 1; overflow-y: auto; padding: 0 var(--space-4); }
.drawer .foot { padding: 16px var(--space-4) 20px; border-top: 1px solid var(--line); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lines .thumb { width: 64px; aspect-ratio: 4 / 5; background: var(--tile); display: flex; align-items: center; justify-content: center; padding: 6px 14px; }
.lines .thumb img { max-height: 100%; object-fit: contain; }
.lines .nm { font: 400 14px/18px var(--font-sans); }
.lines .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lines .step button { width: 30px; height: 28px; font-size: 16px; }

.totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.totals strong { font: 400 18px/24px var(--font-sans); }

/* Forms */
.form { display: grid; gap: var(--space-3); padding: 20px 0; }
.field { display: grid; gap: 6px; }
.field label, .field legend { color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-none);
  background: var(--bg); color: var(--ink); font: 400 15px/23px var(--font-sans); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field textarea { min-height: 72px; resize: vertical; }
.field .hint { color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hp { position: absolute; left: -9999px; }
.err { margin: 0; color: var(--danger); font: 400 13px/20px var(--font-sans); }

/* Done / pay */
.done { padding: 24px 0; text-align: center; }
.done h2 { margin-top: 4px; }
.done .amount { margin: 6px 0 0; font: 400 32px/36px var(--font-sans); letter-spacing: -.02em; }
.qr { width: min(280px, 100%); margin: 20px auto 8px; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); padding: 14px;
  display: flex; align-items: center; justify-content: center; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.qr .missing { color: #5a6e61; text-align: center; padding: 0 12px; }
.steps { text-align: left; margin: 20px 0 0; padding: 0 0 0 20px; color: var(--muted); }
.steps li { margin-bottom: 8px; }
.steps strong { color: var(--ink); font-weight: 700; }
.done .btn + .btn { margin-top: 10px; }

.demo-flag { position: fixed; left: 12px; bottom: 12px; z-index: 25; padding: 4px 8px; background: var(--accent); color: #1a4332; }
body.has-bar .demo-flag { bottom: 76px; }

/* =====================================================================================
   Layout v3: Rocky's-style header (Menu + Search), picture tiles, white product grid,
   grip pages, plain footer. Later rules here override the earlier ones above.
   ===================================================================================== */

/* Links: a line that draws in from the left on hover, instead of appearing at once */
.nav-link { position: relative; display: inline-block; padding: 4px 0; background: none; border: 0; color: var(--ink);
  text-decoration: none; cursor: pointer; }
span.nav-link, a.nav-link:not(.caps) { font: inherit; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-expanded="true"]::after,
a:hover > .nav-link::after, button:hover > .nav-link::after, .tile:hover .nav-line::after { transform: scaleX(1); transform-origin: left center; }
.nav-line { position: relative; display: inline-block; padding-bottom: 3px; }
.nav-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(.25); transform-origin: left center; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }

/* Header */
.top { position: relative; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 20px var(--space-4); background: var(--bg); }
.top-l, .top-r { display: flex; gap: 26px; align-items: center; }
.top-r { justify-content: flex-end; }
.logo-link { display: block; }
@media (max-width: 640px) {
  .top { padding: 16px; gap: 8px; }
  .top-l, .top-r { gap: 14px; }
  .top .logo { height: 14px; min-width: 0; }
  .top-r .wide { display: none; }
}

/* Drop-down panels under the header */
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s; }
.panel.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.panel-in { max-width: 1600px; margin: 0 auto; padding: 28px var(--space-4) 36px; }
.panel-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(18, 19, 17, .18); }

.menu-list, .menu-sub { list-style: none; margin: 0; padding: 0; }
.menu-list { display: grid; gap: 14px; }
.menu-top { display: inline-flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer;
  font: 400 26px/32px var(--font-sans); letter-spacing: -.01em; text-decoration: none; }
.menu-plus { font-size: 20px; color: var(--muted); transition: transform .3s ease; }
.menu-top[aria-expanded="true"] .menu-plus { transform: rotate(45deg); }
.menu-sub { display: grid; gap: 6px; max-height: 0; overflow: hidden; padding-left: 2px; transition: max-height .4s ease, margin .4s ease; }
.menu-sub.open { max-height: 320px; margin: 10px 0 4px; }
.menu-sub a { font: 400 16px/24px var(--font-sans); color: var(--muted); }
.menu-sub a:hover { color: var(--ink); }

.search-row { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid var(--ink); }
.search-row input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--ink); font: 400 24px/32px var(--font-sans); outline: none; }
.search-row input::placeholder { color: #9aa79d; }
.search-row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-row:focus-within { box-shadow: 0 1px 0 var(--ink); }
.search-results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; }
.search-results a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.search-results a:hover .sr-name { text-decoration: underline; text-underline-offset: 4px; }
.search-results .thumb { width: 44px; height: 56px; display: flex; align-items: center; justify-content: center; }
.search-results .thumb img { max-height: 100%; }
.sr-name { display: grid; font: 400 15px/20px var(--font-sans); }
.sr-none { grid-column: 1 / -1; padding: 8px 0; }

/* Rounded Shop all button */
.hero-btn { border-radius: 999px; padding: 0 48px; }

/* Home: three picture tiles with the words laid over them */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px var(--space-4) var(--space-6); }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--ink); text-decoration: none; }
.tile-art { position: absolute; inset: 0; background: var(--tile); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-art::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .14); }   /* keeps white titles readable on light photos */
.tile:hover .tile-art { transform: scale(1.03); }
.tile-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.tile-label h2 { margin: 0; color: #fff; font: 400 clamp(18px, 1.5vw, 24px)/1.2 var(--font-sans); letter-spacing: .01em; text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; padding: 12px 16px var(--space-5); }
  .tile { aspect-ratio: 1 / 1; }
}

/* Simple page header (grip guide, colors) */
.page-head { display: grid; gap: 8px; padding-block: 36px 28px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.page-head h1:focus { outline: none; }
.page-head p { margin: 0; max-width: 60ch; }
#v-colors { padding-bottom: var(--space-6); }

/* Grip guide: official copy under the split */
.guide-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: var(--space-6); }
.guide-col { display: grid; gap: 12px; align-content: start; }
.guide-col h2 { font-size: 26px; line-height: 32px; }
.guide-col p { margin: 0; max-width: 56ch; }
.guide-col .nav-link { justify-self: start; }
@media (max-width: 760px) { .guide-detail { grid-template-columns: 1fr; gap: 36px; } }
.plus { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plus li::before { content: "+ "; color: var(--muted); }

/* Product grid: white, four across, smaller type */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
a.card { color: var(--ink); text-decoration: none; }
.card .art { background: var(--bg); padding: 8% 24%; }
.card .art .halo { display: none; }
.card h3 { font: 400 14px/19px var(--font-sans); }
.card .price { font: 400 14px/19px var(--font-sans); }
.card .art + .row { margin-top: 10px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card.loading .art { background: var(--tile); }
/* Colorways with campaign photos: the photo fills the box, the second photo fades in on hover */
.card .art.photo { padding: 0; background: var(--tile); }
.card .art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover;
  filter: none; animation: none; rotate: none; scale: none; transition: opacity .45s ease; }
.card .art.photo img.alt { opacity: 0; }
.card:hover .art.photo img.alt, .card:focus-visible .art.photo img.alt { opacity: 1; }
.soldout .art.photo img { filter: grayscale(1); opacity: .5; }
.soldout .art.photo img.alt { opacity: 0; }

/* Grip page: big picture left, details right, colorway boxes under Add to cart */
.crumbs { padding: 20px 0 0; display: flex; gap: 8px; align-items: center; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 20px 0 var(--space-6); }
.pdp-art { position: sticky; top: 20px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--bg); }
.pdp-art img { height: 88%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(var(--shadow-grip)); animation: float 6s ease-in-out infinite; }
.pdp-info { display: grid; gap: 14px; align-content: start; max-width: 520px; padding-top: 12px; }
.pdp-info h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.pdp-info h1:focus { outline: none; }
.pdp-price { margin: 0; font: 400 20px/26px var(--font-sans); }
.pdp-stock { margin: 0; color: var(--muted); }
.pdp-stock.danger { color: var(--danger); }
.pdp-desc { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line); }
.pdp-desc h2 { margin: 0; }
.pdp-desc p { margin: 0; }
.pdp-tagline { font-weight: 700; }
.pdp-story { color: var(--muted); }
.pdp-buy { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pdp-buy .field { gap: 6px; }
.pdp-step { height: 48px; }
.pdp-step button { width: 44px; height: 46px; }
.pdp-step output { min-width: 32px; font: 400 15px/20px var(--font-sans); letter-spacing: 0; }
.pdp-add { flex: 1; min-width: 200px; min-height: 48px; }
.pdp-msg { margin: 0; min-height: 20px; color: var(--muted); }
.pdp-swatches { display: grid; gap: 10px; padding-top: 6px; }
.pdp-swatches p { margin: 0; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.swatch { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; padding: 6px 12px;
  border: 1px solid var(--line); background: var(--bg); transition: border-color .2s ease; }
.swatch img { max-height: 100%; max-width: 100%; object-fit: contain; }
.swatch:hover { border-color: var(--muted); }
.swatch.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch.out img { opacity: .35; filter: grayscale(1); }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Grip page photo gallery: a smaller main photo (swipeable) with clickable previews underneath */
.pdp-art.has-photos { display: block; aspect-ratio: auto; background: none; }
.pdp-gallery { width: min(100%, 520px); margin: 0 auto; }
.gal-track { display: flex; width: 100%; aspect-ratio: 4 / 5; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; background: var(--tile); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pdp-art .gal-track img { flex: 0 0 100%; width: 100%; height: 100%; max-width: none; object-fit: cover; scroll-snap-align: start;
  filter: none; animation: none; }
.gal-thumbs { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.gal-thumbs button { width: 64px; padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.gal-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: none; animation: none; opacity: .7;
  transition: opacity .2s ease; }
.gal-thumbs button:hover img, .gal-thumbs button.on img { opacity: 1; }
.gal-thumbs button.on { border-bottom-color: var(--ink); }
.gal-thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-gallery.single .gal-thumbs { display: none; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 20px; }   /* minmax: the photo strip must not widen the page */
  .pdp-art { position: static; aspect-ratio: 4 / 3; }
  .pdp-art.has-photos { aspect-ratio: auto; }
  .pdp-info { max-width: none; padding-top: 0; }
}

/* Footer: same white as the page, spaced-out links, nothing else */
.site-foot { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); padding: 44px 0 36px; }
.foot-in { display: grid; grid-template-columns: none; justify-items: center; gap: 22px; text-align: center; }
.foot-logo { height: 20px; width: auto; filter: none; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.foot-links a { color: var(--ink); }
.foot-legal { grid-column: auto; margin: 0; padding: 0; border: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .nav-link::after, .nav-line::after, .panel, .menu-sub, .tile-art, .swatch { transition: none; }
  .pdp-art img { animation: none; }
  .gal-track { scroll-behavior: auto; }
}

/* Menu as a sidebar from the left */
.menu-panel { position: fixed; top: 0; bottom: 0; left: 0; right: auto; z-index: 50; width: min(380px, 88vw); overflow-y: auto;
  border: 0; border-right: 1px solid var(--line); opacity: 1; transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .4s; }
.menu-panel.open { transform: none; transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.menu-panel .panel-in { padding: 22px 28px 40px; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* Smaller search text */
.search-row input { font: 400 15px/22px var(--font-sans); padding: 8px 0; }
.search-row input::placeholder { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .menu-panel { transition: none; } }

/* One text size in the menu sidebar and on the About page (15px, the body size).
   Hierarchy comes from capitals, spacing and color instead of size. */
.menu-panel, .menu-panel .caps, .menu-top, .menu-plus, .menu-sub a,
#v-about h1, #v-about h2, #v-about h3, #v-about p, #v-about li, #v-about span, #v-about strong, #v-about a, #v-about .caps, #v-about .lede {
  font-size: 15px; line-height: 23px; font-weight: 400;
}
/* Main items and headings: capitals with a little tracking. Everything else: sentence case. */
.menu-panel .caps, .menu-top,
#v-about h1, #v-about h2, #v-about h3, #v-about strong, #v-about .caps { text-transform: uppercase; letter-spacing: .08em; }
#v-about h1, #v-about h2, #v-about h3, #v-about strong { color: var(--ink); }

/* Menu sidebar spacing at the single size */
.menu-list { gap: 18px; }
.menu-top { gap: 10px; }
.menu-sub { gap: 8px; padding-left: 0; }
.menu-sub.open { margin: 12px 0 2px; }
.menu-sub a { text-transform: uppercase; letter-spacing: .08em; }

/* About page spacing at the single size */
#v-about .about-copy { gap: 12px; }
#v-about .about-sec { gap: 12px; }
#v-about .about-line, #v-about .about-cols a { gap: 6px; }
#v-about .about-line p, #v-about .about-cols span, #v-about .about-copy p:not(.caps) { text-transform: none; letter-spacing: 0; }
/* About hero: keep the text column inside the screen on phones */
.about-hero-in > * { min-width: 0; }
.about-art { overflow: hidden; }
