/* =====================================================================
   THREADS — Activewear & Lifestyle
   The brand's own look: black, electric green #39FF14, the slanted bars of the logo's E,
   and Saira, a sporty italic sans close to the wordmark.
   ===================================================================== */
:root {
  --ground: #0a0a0a;        /* the page */
  --ground-2: #171717;      /* raised: chips, rows, cards of text */
  --paper: #141414;         /* panels: bag, menus, dialogs */
  --paper-2: #1f1f1f;
  --photo: #efeeec;         /* the studio backdrop the products are shot on */
  --ink: #f5f5f3;           /* text */
  --soft: #a0a0a0;          /* secondary text */
  --inverse: #000;
  --on-inverse: #f5f5f3;
  --accent: #39ff14;
  --sale: #ff4d3d;
  --line: #2a2a2a;

  --display: 'Saira', 'Arial Narrow', sans-serif;
  --text: 'Saira', system-ui, sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;   /* the owner's sign-up popup only */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  --step-head: clamp(2.5rem, 1.2rem + 4.6vw, 5.25rem);
  --step-title: clamp(5.5rem, 14vw, 15rem);

  --m: 28px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 640px) { :root { --m: 16px; --head-h: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.45 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.wrap { padding-left: var(--m); padding-right: var(--m); max-width: 1600px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display, .h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.01em; line-height: .9; }
.h2 { font-size: var(--step-head); }
.display { font-size: var(--step-head); }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.footer :focus-visible, .verb-panel :focus-visible, .sc-card :focus-visible, .drawer :focus-visible { outline-color: var(--accent); }

/* ---------- buttons: square, flat, one fill ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 0; font: 700 var(--step-small)/1 var(--text); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; transition: background .2s, color .2s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--accent); color: #000; }
/* hover: a slanted bar, like the logo's, sweeps across the button */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0 -20%; z-index: -1; background: #fff; transform: translateX(-110%) skewX(-22deg); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateX(0) skewX(-22deg); }
.btn-green:hover, .btn-white:hover, .btn-dark:hover { background: var(--accent); color: #000; }
.btn-white::before, .btn-dark::before, .btn-ghost-d::before, .btn-outline::before, .btn-wa::before { background: var(--accent); }
.btn-ghost-d:hover, .btn-outline:hover, .btn-wa:hover { color: #000 !important; border-color: var(--accent) !important; background: transparent !important; }
/* words that slide up out of their own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .04em 0; margin-right: -.1em; }
.w > span { display: inline-block; will-change: transform; }
.btn-green:hover { background: #fff; color: #000; }
.btn-dark { background: #fff; color: #000; }
.btn-dark:hover { background: var(--accent); }
.btn-white, .btn-glass { background: #fff; color: #000; }
.btn-white:hover, .btn-glass:hover { background: var(--accent); }
.btn-outline, .btn-wa { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover, .btn-wa:hover { background: #fff; color: #000; border-color: #fff; }
.btn-ghost-d { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-ghost-d:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--step-small); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.link-u { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- announcement + bar ---------- */
.announce { background: var(--accent); color: #000; font-weight: 600; font-size: var(--step-small); text-align: center; padding: 8px var(--m); }
.announce:empty { display: none; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--head-h); background: rgba(10, 10, 10, .92); backdrop-filter: blur(10px); transition: background .3s; }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 100%; position: relative; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav > a, .nav > .dd > button { font-size: var(--step-body); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: none; border: 0; padding: 4px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.nav > a:hover, .nav > a.on, .nav > .dd:hover > button { text-decoration-color: var(--accent); }
.nav > a.nav-sale { color: var(--sale); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 18px); left: -20px; width: 560px; background: var(--paper); padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); box-shadow: 0 24px 50px rgba(0, 0, 0, .18); } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; display: grid; place-items: center; }
.dd-panel a img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: transform .6s var(--ease), opacity .3s; }
.dd-panel a:hover img.bg { transform: scale(1.05); opacity: .8; }
.dd-panel a img.lg { position: relative; max-width: 60%; max-height: 30%; }
.top-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--ground-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.dark { color: var(--ink); }
.menu-btn { display: none; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #000; font: 600 11px/18px var(--ui); text-align: center; }
.bag-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
/* on the home page the pinned name is the logo: the bar keeps only its actions until the pin releases */
.topbar.minimal { background: transparent; position: absolute; left: 0; right: 0; }
.topbar.minimal .logo, .topbar.minimal .nav { visibility: hidden; }
.topbar.minimal .menu-btn { order: 3; margin: 0 -10px 0 0; }

/* ---------- search ---------- */
.search-ov { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .7); animation: fade .2s; }
.search-box { background: var(--paper); padding: 22px 0 28px; animation: drop .35s var(--ease); }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.search-row { display: flex; gap: 12px; align-items: center; }
.search-row svg[width] { stroke: var(--ink); }
.search-row input { flex: 1; background: transparent; border: 0; color: var(--ink); font: italic 800 condensed var(--step-head)/1 var(--display); text-transform: uppercase; padding: 4px 0; outline: none; min-width: 0; }
.search-row input::placeholder { color: #9a9b9f; }
.search-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 22px; max-height: 60vh; overflow-y: auto; }
.search-res a { display: block; font-size: var(--step-small); }
.search-res a .im { aspect-ratio: 4 / 5; background: var(--photo); margin-bottom: 8px; overflow: hidden; position: relative; }
.search-res a .im img { width: 100%; height: 100%; object-fit: cover; }
.search-res a b { display: block; font-weight: 500; font-size: var(--step-body); }
.search-hint { font-size: var(--step-small); margin-top: 16px; }
.search-hint button { background: var(--ground-2); border: 0; padding: 8px 14px; margin: 6px 6px 0 0; font-size: var(--step-small); }
.search-hint button:hover { background: var(--accent); color: #000; }

/* =====================================================================
   HOME
   ===================================================================== */
.h-sec { font: italic 800 clamp(2.25rem, 1.4rem + 3vw, 4.25rem)/.92 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: -0.01em; }
.h-sec em, .hero h1 em, .banner-copy h2 em { font-style: italic; color: var(--accent); }
.sec-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 var(--m); margin-bottom: 26px; }
.sec-row .link { white-space: nowrap; }
.hero-kicker { font: 600 var(--step-small)/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }

/* ---------- hero: the 3D stand ---------- */
.hero { position: relative; height: calc(100svh - var(--head-h) - var(--announce-h, 36px)); min-height: 600px; overflow: hidden; isolation: isolate; background: #050505; touch-action: pan-y; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 72% 62%, rgba(57, 255, 20, .14), transparent 70%), radial-gradient(40% 40% at 15% 20%, rgba(255, 255, 255, .05), transparent 70%); }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 30%; z-index: -1; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); pointer-events: none; }
.hero-gl { position: absolute; inset: 0; z-index: -1; cursor: grab; }
.hero-gl:active { cursor: grabbing; }
.hero-gl canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.ready .hero-gl canvas { opacity: 1; }
.hero-flat { position: absolute; right: 12%; bottom: 8%; height: 78%; z-index: -1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); transition: opacity .8s; }
.hero.ready .hero-flat { opacity: 0; }
.hero-copy { position: absolute; left: var(--m); top: 50%; transform: translateY(-50%); width: min(620px, 46%); pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
/* a soft shade behind the words so the turning stand never fights the headline */
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -30% -35% -30% -60%; background: radial-gradient(closest-side, rgba(5, 5, 5, .82), rgba(5, 5, 5, .55) 60%, transparent); pointer-events: none; } /* taste-skill-ignore: scrim under text */
.hero h1 { font: italic 900 clamp(3.6rem, 1.4rem + 7.4vw, 9.5rem)/.86 var(--display); font-stretch: 100%; letter-spacing: -0.02em; text-transform: uppercase; margin: 0 0 22px; }
.hero h1 em { display: block; }
.hero-sub { font-size: var(--step-lead); line-height: 1.4; color: #d6d6d6; max-width: 36ch; margin: 0 0 28px; }
.hero .cta-row { gap: 12px; }
.hero-brands { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.hero-brands a { display: block; opacity: .75; transition: opacity .2s; }
.hero-brands a:hover { opacity: 1; }
.hero-brands img { height: 22px; width: auto; }
.hero-stand { position: absolute; right: var(--m); bottom: calc(var(--m) + 4px); display: flex; align-items: end; gap: 28px; }
.stand-cap { display: grid; text-align: right; gap: 2px; }
.stand-brand { font-size: var(--step-small); color: #a3a3a3; text-transform: uppercase; letter-spacing: .14em; }
.stand-name { font: italic 800 clamp(1.4rem, 1rem + 1vw, 2rem)/1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.stand-name:hover { color: var(--accent); }
.stand-price { font-size: var(--step-body); }
.stand-price s { color: #8a8a8a; margin-left: 6px; }
.stand-cap.swap > * { animation: capIn .5s var(--ease) both; }
.stand-cap.swap > :nth-child(2) { animation-delay: .04s; }
.stand-cap.swap > :nth-child(3) { animation-delay: .08s; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } }
.stand-nav { display: flex; align-items: center; gap: 4px; }
.stand-nav .icon-btn { border: 1.5px solid rgba(255, 255, 255, .35); width: 42px; height: 42px; }
.stand-nav .icon-btn:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.stand-count { font-size: var(--step-small); color: #a3a3a3; padding: 0 8px; }
.stand-count b { color: #fff; font-weight: 600; }
.stand-hint { position: absolute; right: 0; bottom: calc(100% + 14px); margin: 0; font-size: var(--step-small); color: #8a8a8a; white-space: nowrap; }
.hero:not(.ready) .stand-hint { display: none; }
/* the caption sits centred under the plinth: the brand, a link to it, the stock, then the controls */
.hero-stand { left: var(--stand-x, 75%); right: auto; translate: -50% 0; width: max-content; bottom: clamp(18px, 3.2vh, 34px); flex-direction: column; align-items: center; gap: 14px; text-align: center; pointer-events: none; }
/* the current brand, huge and outlined, fills the space behind the stage */
.stand-word { position: absolute; z-index: -1; left: var(--stand-x, 72%); top: 47%; translate: -50% -50%; font: italic 900 clamp(7rem, 17vw, 24rem)/.8 var(--display); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .15); pointer-events: none; user-select: none; }
.stand-word.swap { animation: wordSwap 1s var(--ease) both; }
@keyframes wordSwap { from { opacity: 0; transform: translateX(6%) skewX(-6deg); } }
.hero-stand a, .hero-stand button { pointer-events: auto; }
.stand-cap { text-align: center; justify-items: center; gap: 4px; }
.stand-brand { letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.stand-name { font-size: clamp(1.6rem, 1rem + 1.4vw, 2.4rem); }
.stand-price { color: #bdbdbd; }
.stand-nav { gap: 10px; }
.stand-hint { display: none; }   /* the cursor says Drag on desktop; phones swipe */
.hero-gl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(transparent, rgba(5, 5, 5, .85)); pointer-events: none; } /* taste-skill-ignore: scrim under the caption */

/* ---------- the ticker: green band, runs faster while you scroll ---------- */
.ticker { background: var(--accent); color: #000; overflow: hidden; position: relative; z-index: 2; }
.ticker-run { display: flex; width: max-content; animation: run 40s linear infinite; }
.ticker-run > span { display: flex; align-items: center; flex: none; font: italic 800 clamp(1.25rem, 1rem + .9vw, 1.9rem)/1 var(--display); font-stretch: 85%; text-transform: uppercase; padding: 13px 0 11px; white-space: nowrap; }
.ticker-run i { display: inline-block; width: 1.1em; height: .3em; margin: 0 .7em; background: #000; transform: skewX(-24deg); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- women / men ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.duo-tile { position: relative; height: 88svh; min-height: 520px; overflow: hidden; isolation: isolate; }
.duo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.duo-tile::after { content: ""; position: absolute; inset: 50% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.duo-tile:hover img { transform: scale(1.04); }
.duo-label { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.duo-label b { font: italic 900 clamp(3.5rem, 2rem + 5vw, 7.5rem)/.8 var(--display); text-transform: uppercase; letter-spacing: -0.02em; }

/* ---------- rails ---------- */
.rail-sec { padding: 110px 0 40px; position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--m) 10px; scroll-padding: 0 var(--m); }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
.rail-btns { position: absolute; top: 104px; right: calc(var(--m) + 90px); display: flex; gap: 6px; }
.rail-btns .icon-btn { border: 1.5px solid rgba(255, 255, 255, .3); width: 40px; height: 40px; }
.rail-btns .icon-btn:disabled { opacity: .3; }

/* ---------- campaign banner ---------- */
.banner { position: relative; height: 92svh; min-height: 560px; overflow: hidden; isolation: isolate; margin: 90px 0; display: flex; align-items: flex-end; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .1) 60%), linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.banner-copy { padding: 0 var(--m) 7vh; max-width: 780px; }
.banner-copy h2 { font: italic 900 clamp(3rem, 1.4rem + 6vw, 8rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 18px; }
.banner-copy p { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; margin: 0 0 26px; color: #e2e2e2; }

/* ---------- shop by brand ---------- */
.brand-sec { padding: 40px 0 20px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 6px; }
.brand-tile { position: relative; aspect-ratio: 3 / 4.4; overflow: hidden; isolation: isolate; }
.brand-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.25) brightness(.8); }
.brand-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .75)); }
.brand-tile:hover img:first-child { transform: scale(1.05); filter: none; }
.brand-tile-in { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 8px; justify-items: start; }
.brand-tile-logo { height: 34px; width: auto; max-width: 70%; object-fit: contain; object-position: left; }
.brand-tile-tag { font: italic 800 1.5rem/1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.brand-tile-n { font-size: var(--step-small); color: #c8c8c8; }
.brand-tile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); z-index: 1; }
.brand-tile:hover::before { transform: none; }

/* ---------- pick your colour ---------- */
.pick { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin: 110px 0 0; background: var(--ground-2); }
.pick-photo { position: relative; height: min(88svh, 62vw); overflow: hidden; background: var(--panel, var(--photo)); transition: background .6s var(--ease); }
.pick-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.pick-photo img.out { opacity: 0; transform: scale(1.03); }
.pick-info { align-self: center; padding: 48px clamp(24px, 5vw, 80px); }
.pick-info .h-sec { margin-bottom: 14px; }
.live-price { font-size: var(--step-lead); margin: 0 0 22px; }
.live-price s { color: var(--soft); margin-left: 8px; }
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.swatch { width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); position: relative; transition: transform .2s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.swatch[aria-pressed="true"]::after { border-color: var(--accent); }
.swatch:hover { transform: scale(1.08); }
.live-colour { margin: 0 0 20px; color: var(--soft); }
.live-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.live-sizes button { min-width: 56px; height: 48px; border: 1.5px solid #3a3a3a; background: transparent; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.live-sizes button:hover { border-color: #fff; }
.live-sizes button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.live-sizes button[disabled] { opacity: .3; text-decoration: line-through; pointer-events: none; }
.live-note { min-height: 1.4em; font-size: var(--step-small); color: #ff6b5e; margin: 0 0 12px; }

/* ---------- shop by sport ---------- */
.sport-sec { padding: 110px 0 0; }
.sport-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 6px; }
.sport-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.sport-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.sport-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .7)); }
.sport-tile span { margin: 0 0 22px 22px; font: italic 900 clamp(1.8rem, 1.2rem + 1.8vw, 3rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.sport-tile span::after { content: ""; display: block; width: 44px; height: 6px; margin-top: 10px; background: var(--accent); transform: skewX(-24deg); transition: width .4s var(--ease); }
.sport-tile:hover img { transform: scale(1.05); }
.sport-tile:hover span::after { width: 90px; }

/* ---------- cash on delivery, in four steps ---------- */
.how { padding: 40px 0 20px; }
.how-steps { list-style: none; margin: 0; padding: 0 var(--m); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.how-steps li { background: var(--ground-2); padding: 28px 26px 32px; position: relative; overflow: hidden; }
.how-steps b { display: block; font: italic 900 3.5rem/1 var(--display); color: var(--accent); margin-bottom: 18px; }
.how-steps h3 { font: italic 800 1.75rem/1 var(--display); font-stretch: 85%; text-transform: uppercase; margin-bottom: 10px; }
.how-steps p { margin: 0; color: #c4c4c4; }

/* ---------- one line under a section title ---------- */
.sec-sub { margin: 10px 0 0; color: #b5b5b5; font-size: var(--step-body); max-width: 46ch; }
.sec-sub .link { color: #fff; }

/* ---------- shop pages: campaign art behind the title ---------- */
.shop-head.has-art { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(120px, 22vh, 240px); margin-bottom: 18px; }
.shop-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.shop-head.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .85), rgba(10, 10, 10, .2) 70%), linear-gradient(transparent 40%, var(--ground)); }
.shop-logo { height: clamp(36px, 5vw, 60px); width: auto; margin-bottom: 14px; }
.shop-line { margin: 10px 0 0; max-width: 44ch; font-size: var(--step-lead); color: #d4d4d4; }

/* ---------- on the wall: the shop's own photos, dragged sideways ---------- */
.wall-sec { padding: 100px 0 10px; }
.wall { display: flex; gap: 12px; overflow-x: auto; padding: 4px var(--m) 18px; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; }
.wall::-webkit-scrollbar { display: none; }
.wall.dragging { cursor: grabbing; scroll-snap-type: none; }
.wall.dragging .wall-item { pointer-events: none; }
.wall-item { position: relative; flex: 0 0 clamp(220px, 22vw, 320px); aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; background: #1a1a1a; isolation: isolate; transform: skewX(var(--skew, 0deg)); transition: transform .5s var(--ease); }
.wall-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); user-select: none; -webkit-user-drag: none; }
.wall-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); z-index: 0; }
.wall-cap { position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 1; font: italic 800 1.35rem/1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.wall-go { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: var(--step-small); color: var(--accent); font-weight: 600; }
.wall-item:hover img { transform: scale(1.06); }

/* ---------- the store ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: 110px var(--m) 40px; }
.visit-copy p { font-size: var(--step-lead); color: #cfcfcf; max-width: 38ch; margin: 18px 0; line-height: 1.45; }
.visit address { font-style: normal; border-left: 5px solid var(--accent); padding: 4px 0 4px 16px; margin: 0 0 26px; line-height: 1.5; }
.visit-photos { position: relative; height: clamp(380px, 46vw, 620px); }
.visit-photos img { position: absolute; width: 52%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); transition: transform .8s var(--ease); }
.visit-photos img:nth-child(1) { left: 0; top: 8%; transform: rotate(-6deg); }
.visit-photos img:nth-child(2) { left: 26%; top: 0; transform: rotate(2deg); z-index: 2; }
.visit-photos img:nth-child(3) { right: 0; top: 14%; transform: rotate(7deg); }
.visit-photos:hover img:nth-child(1) { transform: rotate(-9deg) translate(-14px, 6px); }
.visit-photos:hover img:nth-child(3) { transform: rotate(10deg) translate(14px, 6px); }

.pick-copy { color: #c4c4c4; max-width: 40ch; margin: 0 0 22px; }
.f-sub { margin: -14px 0 26px; color: #bdbdbd; font-size: var(--step-lead); }

/* ---------- pointer: a ring that follows and says what a click does ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor b { font: 700 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.big { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--accent); border-color: var(--accent); }
.cursor.big b { opacity: 1; }
.cursor.down { transform: scale(.85); }
html.has-cursor .hero-gl, html.has-cursor .wall { cursor: none; }

/* cards lean toward the pointer; a soft light follows it */
.card-media { transform-style: preserve-3d; will-change: transform; }
.card-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover .card-media::after { opacity: 1; }

@media (max-width: 960px) {
  .visit { grid-template-columns: 1fr; padding-top: 80px; }
  .visit-photos { height: 92vw; }
}
@media (max-width: 640px) {
  .wall-item { flex-basis: 68vw; }
  .shop-head.has-art { padding-top: 110px; }
}

/* ---------- FAQ ---------- */
.faq { padding: 100px var(--m) 60px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq-list details { border-bottom: 1px solid #2a2a2a; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: var(--step-lead); font-weight: 500; padding: 20px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; max-width: 60ch; color: #c4c4c4; }

/* the footer E */
.f-e canvas { position: absolute; left: -30%; top: -30%; width: 160% !important; height: 160% !important; opacity: 0; transition: opacity .8s; }
.f-e.ready canvas { opacity: 1; }
.f-e.ready svg { opacity: 0; }

/* =====================================================================
   CRAFT — grain, outlined type and the pieces that make the page feel made
   ===================================================================== */
/* film grain over the whole page, like a printed poster */
.grain { position: fixed; inset: -50%; z-index: 110; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); }

/* section heads sit left with their line; the green is saved for the brand's own moments */
.h-sec { font-weight: 900; }
.banner-kicker { font-size: var(--step-body); color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.pick-count { color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.duo-label { align-items: flex-end; }
.duo-n { font-size: var(--step-body); color: #e2e2e2; padding-bottom: .6em; }

/* ---------- the three bars: what THREADS promises ---------- */
.promises { position: relative; height: 320svh; }
.promises-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.promises-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 50% at 50% 55%, rgba(57, 255, 20, .1), transparent 70%); }
.promises-gl { position: absolute; inset: 0; z-index: -1; }
.promises-gl canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1s; }
.promises.ready .promises-gl canvas { opacity: 1; }
.promises-flat { position: absolute; left: 50%; top: 50%; width: min(42vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); transition: opacity .8s; }
.promises-flat svg { width: 100%; height: 100%; fill: #e9e9e6; }
.promises-flat .mid { fill: var(--accent); }
.promises.ready .promises-flat { opacity: 0; }
.promises-kick { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; font: italic 900 clamp(6rem, 24vw, 26rem)/.8 var(--display); letter-spacing: -0.03em; z-index: -2; white-space: nowrap; }
.promises-list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.promises-list li { position: absolute; width: min(340px, 34vw); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.promises-list li.on, .promises-list li.past { opacity: 1; transform: none; }
.promises-list li { left: 6vw; width: min(440px, 40vw); }
.promises-list li:nth-child(1) { top: 16%; }
.promises-list li:nth-child(2) { top: 42%; }
.promises-list li:nth-child(3) { top: 68%; }
.promises-list li.past { opacity: .35; }
.promises-list b { display: block; font: italic 900 clamp(2rem, 1.2rem + 2.6vw, 3.6rem)/.92 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.promises-list li:nth-child(2) b { color: var(--accent); }
.promises-list span { color: #c9c9c9; font-size: var(--step-lead); line-height: 1.4; }

/* ---------- categories as an index of big type ---------- */
.cat-sec { padding: 110px 0 30px; }
.cat-index { list-style: none; margin: 0; padding: 0 var(--m); counter-reset: c; }
.cat-index a { display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 20px; padding: 18px 0 14px; border-top: 1px solid #262626; position: relative; transition: color .3s, padding .4s var(--ease); }
.cat-index li:last-child a { border-bottom: 1px solid #262626; }
.cat-i { color: #6d6d6d; font-size: var(--step-body); }
.cat-name { font: italic 900 clamp(3rem, 1.5rem + 6vw, 8.5rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -0.02em; }
.cat-n { font-size: var(--step-lead); color: #8d8d8d; }
.cat-thumb { display: none; }
.cat-index a:hover { color: var(--accent); padding-left: 24px; }
.cat-float { position: fixed; left: 0; top: 0; z-index: 30; width: 280px; aspect-ratio: 4 / 5; margin: -175px 0 0 30px; pointer-events: none; opacity: 0; scale: .85; rotate: -4deg; transition: opacity .3s, scale .5s var(--ease), rotate .5s var(--ease); overflow: hidden; }
.cat-float.on { opacity: 1; scale: 1; rotate: 3deg; }
.cat-float img { width: 100%; height: 100%; object-fit: cover; }

/* brand tiles step down like a staircase */
.brand-grid { align-items: start; padding-bottom: 80px; }
.brand-tile:nth-child(even) { margin-top: 80px; }

/* the wall: a running word behind the photos */
.wall-sec { position: relative; overflow: hidden; isolation: isolate; }
.wall-back { position: absolute; left: 0; top: 46%; z-index: -1; white-space: nowrap; font: italic 900 clamp(7rem, 18vw, 18rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.02em; animation: run 60s linear infinite; }
.wall { position: relative; }

/* steps: big outlined numerals */
.how-steps b { font-size: clamp(5rem, 9vw, 9rem); color: transparent; -webkit-text-stroke: 2px var(--accent); line-height: .8; margin-bottom: 14px; }

/* banners alternate sides */
.banner-r { justify-content: flex-end; }
.banner-r .banner-copy { text-align: right; }
.banner-r .banner-copy p { margin-left: auto; }
.banner-r .cta-row { justify-content: flex-end; }
.banner-r::after { background: linear-gradient(270deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .1) 60%), linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }

/* menus */
.dd-panel.dd-list { width: 300px; grid-template-columns: 1fr; gap: 0; padding: 8px; background: #141414; }
.dd-list a { aspect-ratio: auto !important; display: flex !important; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: transparent !important; }
.dd-list a:hover { background: #1f1f1f !important; color: var(--accent); }
.dd-list b { font: italic 800 1.25rem/1 var(--display); text-transform: uppercase; }
.dd-list small { color: #8d8d8d; }
.mmenu-cats { display: grid; gap: 4px; margin-top: 20px; }
.mmenu-cats a { font: italic 800 1.4rem/1.2 var(--display); text-transform: uppercase; color: #cfcfcf; }

/* ---------- footer ---------- */
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.f-col { display: grid; gap: 10px; align-content: start; }
.f-col h3 { font: 700 var(--step-small)/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.f-col a, .f-col span a { color: #d6d6d6; width: fit-content; transition: color .2s; }
.f-col span { display: grid; gap: 10px; }
.f-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.f-col address { font-style: normal; color: #bdbdbd; line-height: 1.5; }
.f-promise { list-style: none; margin: 0; padding: 22px var(--m); display: flex; flex-wrap: wrap; gap: 14px 40px; border-top: 1px solid #222; border-bottom: 1px solid #222; font-weight: 600; }
.f-promise i { display: inline-block; width: 18px; height: 6px; background: var(--accent); transform: skewX(-24deg); margin-right: 10px; vertical-align: middle; }
.f-legal { padding-top: 18px; }
.f-credit a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .f-cols { grid-template-columns: 1fr 1fr; }
  .promises-list li { width: auto; left: var(--m) !important; right: var(--m) !important; text-align: center !important; }
  /* phones: one promise at a time, always in the lower half, under the small E */
  .promises-list li:nth-child(n) { top: 57%; bottom: auto; }
  .promises-list b { font-size: clamp(2.2rem, 10vw, 3.2rem); margin-bottom: 12px; }
  .promises-list span { display: block; max-width: 30ch; margin: 0 auto; }
  .promises-kick { top: 32%; }
  .promises-stage::before { background: radial-gradient(70% 45% at 50% 40%, rgba(57, 255, 20, .14), transparent 70%); }
  .promises-list li:not(.on) { opacity: 0 !important; }
  .brand-tile:nth-child(even) { margin-top: 40px; }
}
@media (max-width: 640px) {
  .cat-index a { grid-template-columns: 1fr auto 64px; gap: 12px; align-items: center; }
  .cat-i { display: none; }
  .cat-name { font-size: 2.6rem; }
  .cat-thumb { display: block; width: 64px; aspect-ratio: 4 / 5; object-fit: cover; }
  .cat-float { display: none; }
  .f-cols { gap: 28px 20px; }
  .how-steps b { font-size: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .promises { height: auto; }
  .promises-stage { position: relative; height: auto; padding: 100px var(--m); display: block; }
  .promises-gl, .promises-kick { display: none; }
  .promises-list { position: static; display: grid; gap: 30px; }
  .promises-list li { position: static; width: auto; opacity: 1; transform: none; }
}

/* =====================================================================
   INTRO — the three bars lock into the E, then the curtain lifts
   ===================================================================== */
.intro { display: none; }
html.th-intro { overflow: hidden; }
html.th-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; animation: curtain .8s cubic-bezier(.7, 0, .2, 1) 4.2s forwards; }  /* lifts by itself if the script never arrives */
html.th-intro .intro.done { animation: curtain .8s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes curtain { to { transform: translateY(-100%); } }
.intro-word { display: flex; align-items: flex-end; font: italic 900 clamp(4rem, 15vw, 14rem)/.8 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.iw { display: block; overflow: hidden; padding: .05em .06em 0; }
.iw > span { display: block; animation: lift .9s var(--ease) both; }
.iw:last-child > span { animation-delay: .08s; }
@keyframes lift { from { transform: translateY(105%); } }
.intro-e, .wipe-e { position: relative; display: inline-block; width: .78em; height: .7em; margin: 0 .03em .02em .06em; perspective: 600px; }
.intro-e .b, .wipe-e .b { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.intro-e .b2, .wipe-e .b2 { fill: var(--accent); }
.intro-e .b1 { animation: bar1 1s cubic-bezier(.2, .9, .2, 1) .15s both; }
.intro-e .b2 { animation: bar2 1s cubic-bezier(.2, .9, .2, 1) .3s both, glow .6s ease-out 1.15s both; }
.intro-e .b3 { animation: bar3 1s cubic-bezier(.2, .9, .2, 1) .45s both; }
@keyframes bar1 { from { transform: translate3d(140%, -90%, -300px) rotateY(70deg); opacity: 0; } }
@keyframes bar2 { from { transform: translate3d(-160%, 0, -300px) rotateX(80deg); opacity: 0; } }
@keyframes bar3 { from { transform: translate3d(120%, 110%, -300px) rotateY(-70deg); opacity: 0; } }
@keyframes glow { from { fill: #fff; } }
.wipe { position: fixed; inset: 0; z-index: 95; background: #000; color: #fff; display: grid; place-items: center; transform: scaleY(0); }
.wipe-e { font-size: 72px; }

@media (max-width: 960px) {
  .hero-copy { width: auto; right: var(--m); top: 9%; transform: none; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 6rem); }
  .hero-sub { font-size: var(--step-body); max-width: 32ch; }
  .hero-brands { display: none; }
  .hero-flat { right: 50%; transform: translateX(50%); height: 46%; bottom: 14%; }
  .hero-stand { left: var(--m); right: var(--m); translate: none; width: auto; gap: 8px; bottom: 14px; }
  .stand-word { left: 50%; top: 66%; font-size: 30vw; -webkit-text-stroke-width: 1px; }
  .stand-brand { display: none; }
  .stand-name { font-size: 1.5rem; }
  .stand-nav .icon-btn { width: 36px; height: 36px; }
  .brand-grid, .sport-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .pick { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { min-height: 640px; --announce-h: 54px; }   /* the green bar wraps to two lines on phones */
  .hero-copy { top: 6%; }
  .hero h1 { margin-bottom: 14px; }
  .hero-sub { margin-bottom: 18px; }
  .hero .btn { min-height: 44px; padding: 0 16px; }
  .duo { grid-template-columns: 1fr; }
  .duo-tile { height: 70svh; min-height: 440px; }
  .rail { grid-auto-columns: 72%; gap: 10px; }
  .rail-btns { display: none; }
  .rail-sec, .sport-sec { padding-top: 80px; }
  .banner { height: 78svh; margin: 60px 0; }
  .banner::after { background: linear-gradient(transparent 30%, rgba(0, 0, 0, .8)); }
  /* phones: every banner reads from the left, nothing runs into the edge */
  .banner-r { justify-content: flex-start; }
  .banner-r .banner-copy { text-align: left; }
  .banner-r .banner-copy p { margin-left: 0; }
  .banner-r .cta-row { justify-content: flex-start; }
  .brand-tile-tag { font-size: 1.15rem; }
  .brand-tile-in { left: 14px; right: 14px; bottom: 14px; }
  .brand-tile-logo { height: 24px; }
  .sport-tile span { margin: 0 0 14px 14px; }
  .how-steps { grid-template-columns: 1fr; }
}

/* =====================================================================
   SHOP + CARDS
   ===================================================================== */
.shop-head { padding: 72px var(--m) 28px; }
.shop-head .display { font-size: clamp(4rem, 2rem + 8vw, 10rem); }
.shop-head .count { margin: 12px 0 26px; color: var(--soft); }
.shop-head .wrap { padding: 0; max-width: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--ground-2); padding: 10px 18px; font-size: var(--step-body); transition: background .15s; }
.chip:hover { background: #262626; }
.chip.on { background: var(--accent); color: #000; }
.chip-sep { width: 14px; flex: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 0; position: sticky; top: var(--head-h); z-index: 20; background: var(--ground); margin-bottom: 18px; }
.select { appearance: none; background: var(--ground-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; border: 0; border-radius: 0; padding: 0 40px 0 16px; height: 44px; font-size: var(--step-body); }
.toolbar .spacer { flex: 1; }
.toggle-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ground-2); padding: 0 16px; height: 44px; cursor: pointer; user-select: none; }
.toggle-chip input { accent-color: var(--accent); margin: 0; }
.toggle-chip:has(input:checked) { background: var(--accent); color: #000; }
.cols { display: inline-flex; background: var(--ground-2); }
.cols button { border: 0; background: none; height: 44px; padding: 0 12px; display: flex; gap: 2px; align-items: center; }
.cols button i { width: 4px; height: 14px; background: currentColor; }
.cols button.on { background: #fff; color: #000; }
.empty { text-align: center; padding: 100px 20px; }
.empty h3 { font: italic 800 condensed var(--step-head)/.9 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.empty .btn { margin-top: 18px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 12px; }
.shop-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.card { display: block; position: relative; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.card-media img.pi { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .45s; }
.card-media img.alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media img.pi { transform: scale(1.035); }
  .card:hover .card-media img.alt { opacity: 1; }
}
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.tag { font: 700 11px/1 var(--text); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; background: #000; color: #fff; }
.tag.red { background: var(--sale); color: #fff; }
.tag.dark { background: #fff; color: #000; }
.tag.green { background: var(--accent); color: #000; }
.quick { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(10, 10, 10, .94); padding: 10px; transform: translateY(101%); transition: transform .35s var(--ease); }
.card:hover .quick, .card:focus-within .quick { transform: none; }
.quick small { display: block; font-size: var(--step-small); margin-bottom: 8px; }
.quick-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-sizes button { min-width: 44px; height: 40px; padding: 0 8px; border: 1px solid #3a3a3a; background: transparent; font-size: var(--step-small); transition: background .15s, color .15s; }
.quick-sizes button:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.quick-sizes button[disabled] { opacity: .4; text-decoration: line-through; pointer-events: none; }
.card-body { padding-top: 12px; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-brand { font-size: var(--step-small); color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.card-name { font-size: var(--step-body); font-weight: 600; line-height: 1.2; margin: 2px 0 2px; }
.card-meta { font-size: var(--step-small); color: var(--soft); }
.price { display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s { color: var(--soft); font-size: .9em; }
.price .now-sale { color: var(--accent); }
.swatches { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--c, #999); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); position: relative; transition: transform .15s; } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.sw::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid transparent; }
.sw.on::after { border-color: var(--ink); }
.sw:hover { transform: scale(1.12); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--photo); }
.ph img { width: 36%; filter: invert(1); opacity: .3; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.crumbs { font-size: var(--step-small); padding: 18px 0; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 56px; padding-bottom: 40px; align-items: start; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gal figure { margin: 0; aspect-ratio: 4 / 5; background: var(--photo); overflow: hidden; position: relative; cursor: zoom-in; }
.gal figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gal figure:first-child:nth-last-child(odd) img { max-height: 90svh; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gal figure.zoom img { transform: scale(1.9); }
/* the 3D tile */
.gal .g3d { grid-column: 1 / -1; aspect-ratio: 16 / 11; background: #050505; cursor: default; isolation: isolate; }
.g3d::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 50% 70%, rgba(57, 255, 20, .16), transparent 70%); }
.g3d-gl { position: absolute; inset: 0; }
.g3d-gl canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.g3d.ready .g3d-gl canvas { opacity: 1; }
.gal .g3d-flat { position: absolute; left: 50%; top: 8%; height: 84%; width: auto; transform: translateX(-50%); object-fit: contain; transition: opacity .8s; }
.g3d.ready .g3d-flat { opacity: 0; }
.g3d-tag { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.g3d-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(57, 255, 20, .25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); } }
.fly { position: fixed; z-index: 120; pointer-events: none; object-fit: cover; background: var(--photo); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.gal-dots { display: none; }
.pdp-info { position: sticky; top: calc(var(--head-h) + 20px); }
.pdp-info .card-brand { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-small); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pdp-info .card-brand img { height: 18px; width: auto; }
.pdp-info h1 { font: italic 800 condensed var(--step-head)/.88 var(--display); text-transform: uppercase; margin: 14px 0 16px; }
.pdp-info .price { font-size: var(--step-lead); }
.save-pill { background: var(--accent); color: #000; font: 700 11px/1 var(--text); letter-spacing: .08em; padding: 6px 8px; }
.pdp-block { margin-top: 28px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: var(--step-body); }
.label-row > span:last-child { color: var(--soft); }
.label-row button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: var(--step-body); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt { width: 66px; aspect-ratio: 4 / 5; background: var(--photo); border: 2px solid transparent; padding: 0; overflow: hidden; transition: border-color .15s; }
.color-opt img { width: 100%; height: 100%; object-fit: cover; }
.color-opt.on { border-color: var(--accent); }
.color-opt:hover { border-color: var(--soft); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.size { height: 52px; border: 1.5px solid #3a3a3a; background: transparent; font-weight: 600; font-size: var(--step-body); transition: background .12s, color .12s; position: relative; }
.size:hover { border-color: #fff; }
.size.on { background: #fff; color: #000; border-color: #fff; }
.size.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.size.out { opacity: .4; text-decoration: line-through; pointer-events: none; }
.size-note { font-size: var(--step-small); color: var(--sale); margin-top: 10px; min-height: 1.4em; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #3a3a3a; flex: none; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 20px; }
.qty button:hover { background: #262626; }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 8px; margin-top: 18px; }
.buy-row .btn { flex: 1; }
.wa-row { margin-top: 8px; }
.pdp-perks { margin-top: 26px; display: grid; gap: 10px; }
.pdp-perks div { display: flex; gap: 12px; align-items: center; font-size: var(--step-body); }
.pdp-perks svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; flex: none; }
details.acc { margin-top: 10px; background: var(--ground-2); }
details.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: var(--step-body); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .25s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc > div { padding: 0 16px 18px; white-space: pre-line; }
.lightbox { position: fixed; inset: 0; z-index: 85; background: var(--photo); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox .icon-btn { position: absolute; color: #000; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section { padding-top: 120px; }

/* =====================================================================
   BAG, CHECKOUT, DONE
   ===================================================================== */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 60; animation: fade .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); z-index: 61; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 70px rgba(0, 0, 0, .2); } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.drawer-head h3 { font: italic 800 condensed clamp(2rem, 1.6rem + 1vw, 2.5rem)/1 var(--display); text-transform: uppercase; }
.drawer-head h3 small { font: 400 var(--step-body) var(--text); text-transform: none; color: var(--soft); margin-left: 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 22px; }
.drawer-foot { padding: 18px 22px 22px; background: var(--paper-2); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; }
.line + .line { margin-top: 4px; }
.line-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); display: block; }
.line-img img.pi { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-size: var(--step-lead); line-height: 1.15; }
.line-meta { font-size: var(--step-small); color: var(--soft); }
.line .qty { margin-top: 10px; }
.line .qty button { width: 36px; height: 36px; font-size: 16px; }
.line-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-variant-numeric: tabular-nums; }
.remove { border: 0; background: none; font-size: var(--step-small); text-decoration: underline; padding: 0; }
.sum-row { display: flex; justify-content: space-between; margin: 4px 0; font-variant-numeric: tabular-nums; }
.sum-row.total { font: italic 800 condensed clamp(1.75rem, 1.4rem + .9vw, 2.25rem)/1 var(--display); text-transform: uppercase; margin: 14px 0 16px; }
.free-bar { font-size: var(--step-small); margin-bottom: 14px; }
.free-bar .track { height: 6px; background: #2a2a2a; overflow: hidden; margin-top: 8px; }
.free-bar .fill { height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.drawer-empty { text-align: center; padding: 60px 10px; }
.drawer-empty h3 { font: italic 800 condensed var(--step-head)/.9 var(--display); text-transform: uppercase; }

.co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 48px; padding: 48px 0 100px; align-items: start; }
.co h1 { font: italic 800 condensed var(--step-head)/.88 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.panel { background: var(--paper); padding: 28px; }
.panel + .panel { margin-top: 10px; }
.panel h3 { font: italic 800 condensed clamp(1.6rem, 1.3rem + .8vw, 2rem)/1 var(--display); text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.panel h3 .n { width: 30px; height: 30px; background: var(--accent); color: #000; display: grid; place-items: center; font: 500 15px var(--text); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: var(--step-small); margin-bottom: 6px; }
.input { width: 100%; border: 0; border-bottom: 2px solid #3a3a3a; background: var(--ground-2); border-radius: 0; padding: 13px 14px; outline: none; font-size: 17px; transition: border-color .15s, background .15s; }
.input:focus { border-bottom-color: var(--accent); background: #1d1d1d; }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: none; background: var(--ground-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 38px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-opt { display: flex; gap: 14px; align-items: center; padding: 18px; background: #000; color: #fff; border: 1.5px solid var(--accent); }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 6px solid var(--accent); flex: none; }
.pay-opt b { display: block; font-weight: 500; }
.pay-opt small { opacity: .8; }
.pay-opt svg { width: 30px; height: 30px; margin-left: auto; stroke: var(--accent); fill: none; stroke-width: 1.6; flex: none; }
.co-summary { position: sticky; top: calc(var(--head-h) + 20px); }
.co-summary .line { grid-template-columns: 64px 1fr auto; }
.form-err { background: var(--sale); color: #fff; padding: 12px 14px; margin-bottom: 14px; }
.trust { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: var(--step-small); flex-wrap: wrap; }
.trust span { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.done { max-width: 720px; margin: 0 auto; padding: 90px 0 110px; }
.done-badge { width: 84px; height: 84px; background: var(--accent); display: grid; place-items: center; margin-bottom: 28px; }
.done-badge svg { width: 40px; stroke: #000; stroke-width: 3; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font: italic 800 condensed var(--step-head)/.88 var(--display); text-transform: uppercase; }
.done .num { display: inline-block; background: #fff; color: #000; padding: 8px 14px; margin: 20px 0; font-variant-numeric: tabular-nums; }
.steps-done { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps-done li { background: var(--paper); padding: 18px; }
.steps-done b { display: block; font: italic 800 condensed 2rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.legal { max-width: 760px; padding: 60px 0 40px; }
.legal h1 { font: italic 800 condensed var(--step-head)/.88 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.legal h3 { font: 500 var(--step-lead) var(--text); margin: 28px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal a { text-decoration: underline; }

/* =====================================================================
   FOOTER — invitation over a cropped name
   ===================================================================== */
.footer { border-top: 6px solid var(--accent); background: var(--inverse); color: var(--on-inverse); min-height: 100svh; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.f-top { display: grid; grid-template-columns: 1fr; padding: 96px var(--m) 56px; gap: 64px; }
.f-invite h2 { font: italic 800 condensed clamp(3rem, 1.4rem + 5vw, 6.5rem)/.88 var(--display); text-transform: uppercase; margin-bottom: 28px; max-width: 12ch; }
.f-legal span { max-width: 75ch; }
.f-legal { margin-top: auto; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 0 var(--m) 14px; font-size: var(--step-small); opacity: .8; }
.f-legal a { text-decoration: underline; }
.f-word { font: italic 800 condensed clamp(9rem, 29vw, 34rem)/.78 var(--display); text-transform: uppercase; letter-spacing: -0.04em; white-space: nowrap; transform: translateY(18%); margin: 0 0 0 calc(var(--m) - .04em); display: flex; align-items: flex-end; user-select: none; }
.f-e { position: relative; display: inline-block; width: .78em; height: .7em; margin: 0 .03em .02em .05em; }
.f-e svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s; }
.f-e svg .mid { fill: var(--accent); }

/* ---------- mobile menu ---------- */
.mmenu { position: fixed; top: 0; left: 0; bottom: 0; width: min(400px, 90%); background: var(--paper); z-index: 61; transform: translateX(-100%); transition: transform .45s var(--ease); padding: 16px 22px; display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; }
.mmenu.open { transform: none; visibility: visible; }
.mmenu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.mmenu-head img { height: 22px; width: auto; }
.mmenu-head .icon-btn { color: var(--ink); }
.mmenu > a { font: italic 800 condensed 3.25rem/1.05 var(--display); text-transform: uppercase; }
.mmenu-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 28px; }
.mmenu-brands a { position: relative; aspect-ratio: 1.3; overflow: hidden; display: grid; place-items: center; background: #000; }
.mmenu-brands a img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.mmenu-brands a img.lg { position: relative; max-height: 30%; max-width: 60%; }
.mmenu-foot { margin-top: auto; padding-top: 24px; font-size: var(--step-small); }
.mmenu-foot a { text-decoration: underline; }

/* ---------- size guide ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sg-card { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--paper); padding: 24px; animation: rise .4s var(--ease); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.sg-card .mt { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sg-card h2 { font: italic 800 condensed 2.5rem/1 var(--display); text-transform: uppercase; }
.sg-card table { width: 100%; border-collapse: collapse; margin: 14px 0; font-variant-numeric: tabular-nums; }
.sg-card th, .sg-card td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.sg-card th { font-weight: 500; }
.sg-card td:first-child, .sg-card th:first-child { text-align: left; }
.sg-card p { font-size: var(--step-small); }
.seg { display: inline-flex; background: var(--ground); }
.seg button { border: 0; background: none; padding: 0 16px; height: 40px; }
.seg button.on { background: #fff; color: #000; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); background: #fff; color: #000; padding: 12px 16px; z-index: 90; transition: transform .45s var(--ease); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.toast.show { transform: translate(-50%, 0); }
.toast img { width: 40px; height: 50px; object-fit: cover; background: var(--photo); flex: none; }
.toast a { color: #000; font-weight: 700; text-decoration: underline; }

/* =====================================================================
   SIGN-UP POPUP — the owner's own design (dark card, green buttons); kept as he drew it
   ===================================================================== */
.modal-card.wcard { width: min(720px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: #070707; color: #fff; border: 1px solid #1c1c1e; border-radius: 16px; padding: 18px 22px 14px; text-align: center; font-family: var(--ui); animation: rise .4s var(--ease); } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.wcard .modal-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--accent); margin-bottom: 30px; }
.wlogo { height: 30px; width: auto; }
.wcard .pill { background: #0f2a12; color: #39d12a; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.wcard h2 { font: 700 clamp(21px, 3.4vw, 24px) var(--ui); }
.wcard .green-t { color: #39d12a; font-weight: 700; margin: 12px 0 10px; font-size: 14.5px; }
.wcard .modal-sub { font-size: 13.5px; color: #e4e4e6; margin: 0 0 18px; }
.wbtn { display: block; width: 100%; border-radius: 999px; padding: 13px 18px; font: 700 13px var(--ui); margin-bottom: 10px; transition: background .15s, border-color .15s; }
.wbtn-green { background: #078a37; color: #fff; border: 0; }
.wbtn-green:hover { background: #09a141; }
.wbtn-green[disabled] { opacity: .6; pointer-events: none; }
.wbtn-ghost { background: transparent; color: #d4d4d6; border: 1px solid #333336; } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.wbtn-ghost:hover { border-color: #6a6a6e; color: #fff; }
.wcard form { text-align: left; }
.wcard form h4 { font: 700 15.5px var(--ui); margin: 4px 0 0; }
.wcard .modal-hint { font-size: 13px; color: #c6c6c8; margin: 4px 0 12px; }
.wcard input:not([type=checkbox]), .wcard select { width: 100%; background: #0b0b0c; border: 1px solid #343437; border-radius: 999px; padding: 12px 16px; color: #fff; outline: none; margin-bottom: 10px; font: 16px var(--ui); } /* taste-skill-ignore: overlay, colour chip or the owner's own popup design */
.wcard input:focus, .wcard select:focus { border-color: var(--accent); }
.wcard select { appearance: none; font-weight: 600; font-size: 14px; background: #0b0b0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 16px center no-repeat; }
.wcard input.bad { border-color: #e2554a !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-row { display: flex; gap: 8px; }
.phone-row span { flex: none; background: #232325; border-radius: 10px; height: 46px; min-width: 54px; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.w-err { color: #ff8a80; font-size: 13px; margin: -2px 0 6px; }
.w-err:empty { display: none; }
.w-privacy { font-size: 11.5px; color: #bdbdbf; margin: 2px 0 12px; }
.w-privacy a { text-decoration: underline; }
.wcheck { display: flex; gap: 12px; align-items: center; font-size: 14px; margin: 0 0 14px; cursor: pointer; color: #f0f0f2; }
.wcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wcheck i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #8a8a8e; flex: none; display: grid; place-items: center; }
.wcheck input:checked + i { background: #078a37; border-color: #078a37; }
.wcheck input:checked + i::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.wcheck input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.wcard .modal-foot { color: #8a8a8e; font-size: 11px; margin: 4px 0 0; }

/* =====================================================================
   MOTION — entrances for the parts of every section (JS adds .js to <html>)
   ===================================================================== */
.js .rise > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rise.in > * { opacity: 1; transform: none; }
.js .rise.in > :nth-child(2) { transition-delay: .07s; }
.js .rise.in > :nth-child(3) { transition-delay: .14s; }
.js .rise.in > :nth-child(4) { transition-delay: .21s; }
.js .rise.in > :nth-child(5) { transition-delay: .28s; }
.js .rise.in > :nth-child(6) { transition-delay: .35s; }
.pf-photo img.on { animation: drift 14s ease-in-out infinite alternate; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr)); }
  .pdp { gap: 32px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; margin-left: -10px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo img { height: 22px; }
  .pdp, .co { grid-template-columns: 1fr; }
  .pdp-info, .co-summary { position: static; }
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; margin: 0 calc(var(--m) * -1); }
  .gal::-webkit-scrollbar { display: none; }
  .gal figure { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5 !important; cursor: default; }
  .gal figure.zoom img { transform: none; }
  .gal figure img { max-height: none !important; }
  .gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .gal-dots i { width: 6px; height: 6px; background: var(--soft); opacity: .4; transition: .25s; }
  .gal-dots i.on { width: 22px; opacity: 1; background: var(--accent); }
}
@media (max-width: 640px) {
  .grid, .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 8px; }
  .cols { display: none; }
  .quick { display: none; }
  .card-name { font-size: 1.1rem; }
  .card-top { flex-direction: column; gap: 0; }
  .shop-head { padding-top: 48px; }
  .toolbar .spacer { display: none; }
  .f2, .row2 { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 20px; }
  .buy-row { position: sticky; bottom: 0; background: var(--ground); padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom)); margin: 18px calc(var(--m) * -1) 0; z-index: 15; }
  .steps-done { grid-template-columns: 1fr; }
  .f-top { padding-top: 64px; }
  .f-invite h2 { font-size: 11vw; }
  .f-invite .btn { width: 100%; }
  .f-word { font-size: 34vw; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .line { grid-template-columns: 72px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise > * { opacity: 1; transform: none; }
}

/* ---------- WhatsApp, always in the corner ---------- */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 0; height: 58px; min-width: 58px; padding: 0 17px; border-radius: 29px; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: gap .35s var(--ease), transform .25s var(--ease), bottom .3s var(--ease), opacity .3s; }
.wa-float svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 15px; transition: max-width .4s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { gap: 10px; transform: translateY(-2px); }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 140px; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: waPulse 2.6s ease-out 3s 3; pointer-events: none; }
@keyframes waPulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
html.th-intro .wa-float { opacity: 0; }
/* out of the way of the sticky "Add to bag" bar on phones, and of open panels */
body:has(.buy-row) .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 641px) { body:has(.buy-row) .wa-float { bottom: calc(18px + env(safe-area-inset-bottom)); } }
html:has(.drawer.open) .wa-float, html:has(.mmenu.open) .wa-float, html:has(.modal:not([hidden])) .wa-float { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }
@media (max-width: 640px) { .wa-float { height: 54px; min-width: 54px; padding: 0 15px; } }

/* ---------- Instagram + WhatsApp icons ---------- */
.f-social { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.f-social a { display: inline-flex; align-items: center; gap: 10px; color: #d6d6d6; font-weight: 600; transition: color .2s; }
.f-social a:hover { color: var(--accent); }
.f-social svg, .mmenu-ig svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mmenu-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
/* phones: the logo sits in the middle, so Instagram lives in the menu and the footer */
@media (max-width: 640px) { .ig-btn { display: none; } }
.mmenu-foot .mmenu-ig { display: flex; width: fit-content; text-decoration: none; }
.done-wa-hint { margin: 22px auto 0; font-weight: 600; }
