/* ==========================================================================
   flexx — pages: side landings, shop, product, lookbook, drops, about,
   bag/checkout, account, help, 404
   ========================================================================== */

/* ================================================================ SIDE LANDING (CORE / CULT) */
.lh { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; background: var(--bg); color: var(--fg); }
.lh__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 88px 88px; -webkit-mask-image: radial-gradient(120% 90% at 60% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(120% 90% at 60% 30%, #000 30%, transparent 80%); }
.lh__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lh__p { position: absolute; width: 18vw; animation: bob 7s ease-in-out infinite alternate; }
.lh--core .lh__p { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .16)); }
.lh--cult .lh__p { filter: drop-shadow(0 0 50px rgba(176, 16, 28, .35)) drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
@keyframes bob { from { translate: 0 -8px; } to { translate: 0 10px; } }
.lh__p--2 { animation-delay: -2s; } .lh__p--3 { animation-delay: -4s; } .lh__p--4 { animation-delay: -1s; } .lh__p--5 { animation-delay: -3s; }
/* CORE flat-lay */
.lh--core .lh__p--1 { width: min(30vw, 480px); right: 3vw; top: 11vh; rotate: 4deg; }
.lh--core .lh__p--2 { width: min(19vw, 300px); left: 43vw; top: 7vh; rotate: 9deg; }
.lh--core .lh__p--3 { width: min(13vw, 200px); left: 30vw; top: 31vh; rotate: -12deg; z-index: 4; }
.lh--core .lh__p--4 { width: min(20vw, 310px); left: 3vw; top: 13vh; rotate: -7deg; }
.lh--core .lh__p--5 { width: min(11vw, 170px); right: 33vw; top: 46vh; rotate: 16deg; }
/* CULT altar */
.lh--cult .lh__p--1 { width: min(30vw, 480px); right: 4vw; top: 12vh; rotate: -3deg; }
.lh--cult .lh__p--2 { width: min(16vw, 250px); left: 47vw; top: 9vh; rotate: -7deg; }
.lh--cult .lh__p--3 { width: min(12vw, 190px); left: 36vw; top: 38vh; rotate: 10deg; z-index: 4; }
.lh--cult .lh__p--4 { width: min(15vw, 230px); left: 29vw; top: 11vh; rotate: 6deg; opacity: .88; }
.lh--cult .lh__p--5 { width: min(11vw, 170px); right: 31vw; top: 50vh; rotate: -14deg; }
.lh__sigil { position: absolute; right: -12vw; top: 46%; width: 72vw; max-width: 1100px; translate: 0 -50%; opacity: .07; animation: spin 120s linear infinite; pointer-events: none; }
.lh__glow { position: absolute; right: 8vw; top: 38%; width: 60vw; height: 60vw; translate: 0 -50%; background: radial-gradient(closest-side, rgba(176, 16, 28, .42), rgba(176, 16, 28, .08) 60%, transparent); pointer-events: none; animation: glow 6s ease-in-out infinite alternate; }
.lh__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.lh__inner { position: relative; z-index: 3; width: 100%; padding-top: calc(var(--bar-h) + var(--header-h) + 20px); padding-bottom: clamp(26px, 4vh, 48px); }
.lh__kicker { margin-bottom: 8px; }
.lh__title { font-size: clamp(120px, 26vw, 470px); line-height: .78; margin-left: -.03em; white-space: nowrap; }
.lh--core .lh__title .char { font-variation-settings: 'wdth' 82; }
.lh--cult .lh__title { font-size: clamp(150px, min(31vw, (100svh - var(--bar-h) - var(--header-h) - 234px - var(--chrome-h)) * 1.25), 540px); line-height: .76; text-shadow: 0 0 60px rgba(176, 16, 28, .35); }
.lh__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; margin-top: 22px; }
.lh__foot .lede { max-width: 44ch; }
.lh__ring { right: 7vw; top: 55vh; width: 132px; height: 132px; z-index: 2; } /* above the products, under the title and buttons */
/* intro */
.lh .lh__title .char { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 70ms + .1s); }
.lh .lh__title { overflow: hidden; padding-bottom: .04em; }
.lh.is-in .lh__title .char { transform: none; }
.lh .lh__p { opacity: 0; scale: .9; transition: opacity 1s var(--ease-out), scale 1.4s var(--ease-out); }
.lh.is-in .lh__p { opacity: 1; scale: 1; }
.lh.is-in .lh__p--2 { transition-delay: .1s; } .lh.is-in .lh__p--3 { transition-delay: .2s; } .lh.is-in .lh__p--4 { transition-delay: .3s; } .lh.is-in .lh__p--5 { transition-delay: .4s; }
.lh .lh__foot, .lh .lh__kicker, .lh .chrome, .lh .lh__ring { opacity: 0; translate: 0 20px; transition: opacity 1s var(--ease-out) .6s, translate 1.2s var(--ease-out) .6s; }
.lh.is-in .lh__foot, .lh.is-in .lh__kicker, .lh.is-in .chrome, .lh.is-in .lh__ring { opacity: 1; translate: 0 0; }
@media (max-width: 760px) {
  .lh { min-height: 92svh; }
  .lh--core .lh__p--1, .lh--cult .lh__p--1 { width: 56vw; top: 14vh; right: -4vw; }
  .lh--core .lh__p--2, .lh--cult .lh__p--2 { width: 34vw; left: 4vw; top: 16vh; }
  .lh--core .lh__p--3, .lh--cult .lh__p--3 { width: 26vw; left: 32vw; top: 38vh; }
  .lh__p--4, .lh__p--5 { display: none; }
  .lh__ring { display: none; }
}

/* chrome logo with a pointer-tracked shine (shine is masked to the letterforms) */
.chrome { position: absolute; left: var(--gutter); top: calc(var(--bar-h) + var(--header-h) + 26px); width: min(24vw, 360px); z-index: 3; }
.chrome img { width: 100%; }
.chrome__shine {
  --sx: 30%;
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent calc(var(--sx) - 16%), rgba(255, 255, 255, .95) var(--sx), transparent calc(var(--sx) + 16%));
  mix-blend-mode: overlay;
  -webkit-mask: url('../img/brand/print-chrome.webp') center / 100% 100% no-repeat;
  mask: url('../img/brand/print-chrome.webp') center / 100% 100% no-repeat;
}
@media (max-width: 760px) { .chrome { width: 46vw; top: calc(var(--bar-h) + var(--header-h) + 60px); } }
/* the chrome logo gets its own band above the kicker; on short screens the Cult title steps down in size
   (never below 150px) so the two never touch */
.lh--cult { --chrome-h: calc(min(24vw, 360px) * .516); }
.lh--cult .lh__inner { padding-top: calc(var(--bar-h) + var(--header-h) + 50px + var(--chrome-h)); }
@media (max-width: 760px) {
  .lh--cult { --chrome-h: calc(46vw * .516); }
  .lh--cult .lh__inner { padding-top: calc(var(--bar-h) + var(--header-h) + 80px + var(--chrome-h)); }
}

/* collections chips */
.lcols { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.lcols sup { margin-left: 2px; opacity: .6; font-size: 9px; }

/* category tiles */
.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ctile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card-core); }
.ctile__media[data-line="cult"] { background: var(--card-cult); }
.ctile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1.1s var(--ease-out), opacity .6s; }
.ctile__alt { opacity: 0; transform: translateY(8%); }
.ctile:hover .ctile__media img:first-child:not(:only-child) { opacity: 0; transform: translateY(-6%); }
.ctile:hover .ctile__alt { opacity: 1; transform: none; }
.ctile:hover .ctile__media img:only-child { transform: scale(1.06); }
.ctile__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; }
.ctile__t { font-size: clamp(24px, 2.2vw, 36px); }

/* manifesto: words light up on scroll */
.manifesto { padding-block: clamp(90px, 12vw, 200px); border-top: 1px solid var(--line); }
.manifesto__text { margin-top: 26px; font-size: clamp(34px, 4.9vw, 82px); --wdth: 70; }
[data-theme="cult"] .manifesto__text { font-size: clamp(40px, 5.6vw, 96px); line-height: .98; }
.manifesto__text .fw { color: var(--line-2); transition: color .6s var(--ease-out); }
.manifesto__text .fw.on { color: var(--fg); }

/* feature rail */
.feature { padding-block: clamp(70px, 9vw, 140px); border-top: 1px solid var(--line); }
.feature__txt { display: grid; justify-items: start; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.feature__txt .t-l { max-width: 16ch; }

/* crossover banner to the other side */
.crossover { background: var(--bg); color: var(--fg); }
.crossover__btn { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 30px; width: 100%; min-height: 76svh; padding: clamp(30px, 4vw, 64px) var(--gutter); overflow: hidden; text-align: left; }
.crossover__t { position: relative; z-index: 2; font-size: clamp(70px, 13vw, 230px); max-width: 9ch; transition: letter-spacing .8s var(--ease-out); }
.crossover__imgs { position: absolute; right: 3vw; top: 50%; translate: 0 -50%; display: flex; align-items: center; }
.crossover__imgs img { width: clamp(140px, 17vw, 280px); margin-left: -5vw; transition: transform 1s var(--ease-out); }
.crossover[data-theme="cult"] .crossover__imgs img { filter: drop-shadow(0 0 40px rgba(176, 16, 28, .3)); }
.crossover__imgs img:nth-child(1) { rotate: -8deg; } .crossover__imgs img:nth-child(3) { rotate: 8deg; }
.crossover__btn:hover .crossover__imgs img:nth-child(1) { transform: translate(-30px, -14px) rotate(-6deg); }
.crossover__btn:hover .crossover__imgs img:nth-child(3) { transform: translate(30px, 14px) rotate(6deg); }
.crossover__cta { display: inline-flex; gap: 10px; align-items: center; padding: 16px 22px; background: var(--accent); color: var(--accent-fg); }
@media (max-width: 760px) { .crossover__imgs { position: relative; right: auto; top: auto; translate: none; } .crossover__imgs img { width: 34vw; margin-left: -8vw; } }

/* ================================================================ SHOP / PLP */
.plp__head { padding-top: clamp(26px, 3.4vw, 52px); }
.plp__titlebar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 48px; margin-top: 18px; padding-bottom: 24px; }
.plp__title { font-size: clamp(56px, 9.4vw, 160px); }
.plp__meta { display: grid; justify-items: end; gap: 18px; text-align: right; max-width: 440px; }
.plp__meta .lede { font-size: 16px; }
.plp__sides { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 40px; }
.plp__side { display: grid; place-items: center; height: 34px; padding: 0 18px; border-radius: 40px; font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background-color .3s, color .3s; }
.plp__side--core { font: 900 italic 13px/1 var(--f-core); font-variation-settings: 'wdth' 90; letter-spacing: 0; }
.plp__side--cult { font: 400 18px/1 var(--f-cult); letter-spacing: .02em; text-transform: none; }
.plp__side:hover { color: var(--fg); }
.plp__side[aria-current] { background: var(--fg); color: var(--bg); }
.plp__cats { display: flex; gap: 8px; padding-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.plp__cats::-webkit-scrollbar { display: none; }
.plp__cats sup { margin-left: 2px; font: 400 9px/1 var(--f-mono); opacity: .6; }
.plp__bar { position: sticky; top: var(--sticky-top, 0px); z-index: 20; background: var(--bg); border-block: 1px solid var(--line); transition: top .6s var(--ease-out), box-shadow .3s, background-color .6s; }
.plp__bar.is-stuck { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35); }
.plp__bar-in { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.plp__fbtn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border: 1px solid var(--fg); border-radius: 40px; font: 700 11.5px/1 var(--f-body); font-variation-settings: 'wdth' 84; letter-spacing: .09em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.plp__fbtn:hover { background: var(--fg); color: var(--bg); }
.plp__fbtn .ico { width: 18px; height: 18px; }
.plp__active { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.plp__active .chip { height: 30px; font-size: 10.5px; padding: 0 10px 0 12px; }
.plp__tools { display: flex; align-items: center; gap: 14px; }
.plp__sort .select { height: 40px; width: auto; border-radius: 40px; padding-left: 16px; font-size: 13px; }
.plp__view { display: flex; gap: 2px; }
.plp__view button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; opacity: .4; transition: opacity .2s, background-color .2s; }
.plp__view button[aria-pressed="true"] { opacity: 1; background: var(--line); }
.plp__view sub { position: absolute; right: 5px; bottom: 5px; font: 400 8.5px/1 var(--f-mono); }
.plp__grid { padding-top: 28px; }
.plp__more { display: grid; justify-items: center; gap: 14px; padding: 64px var(--gutter) 10px; }
.plp__prog { width: 220px; height: 2px; background: var(--line); }
.plp__prog i { display: block; height: 100%; background: var(--fg); transition: width .8s var(--ease-out); }
.plp__empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 16px; padding: 90px 0 60px; text-align: center; }
.plp + .section, main[data-page="shop"] { padding-bottom: 80px; }
@media (max-width: 900px) {
  .plp__titlebar { grid-template-columns: 1fr; }
  .plp__meta { justify-items: start; text-align: left; }
  .plp__n, .plp__view { display: none; }
  .plp__active { display: none; }
}

/* promo tile in the grid */
.promo-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; aspect-ratio: 4 / 5; padding: 20px; overflow: hidden; background: var(--bg); color: var(--fg); }
.promo-tile[data-theme="core"] { background: var(--acid); color: var(--ink); }
.promo-tile__t { position: relative; z-index: 1; font-size: clamp(26px, 2.4vw, 40px); }
.promo-tile img { position: absolute; right: -16%; bottom: -10%; width: 82%; transition: transform 1.2s var(--ease-out); }
.promo-tile:hover img { transform: scale(1.06) rotate(-5deg); }
.promo-tile .caps { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.promo-tile .caps .ico { width: 16px; height: 16px; }

/* filter drawer */
.fpanel { padding-top: 4px; }
.fgroup { margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); }
.fgroup legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; color: var(--muted); }
.fgroup legend + * { clear: both; }
.fgroup__row { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup__swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fsw { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 13.5px; text-align: left; transition: border-color .2s, background-color .2s; }
.fsw:hover { border-color: var(--fg); }
.fsw.is-on { border-color: var(--fg); background: var(--line); }
.range { position: relative; height: 30px; margin-top: 6px; }
.range__track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line-2); }
.range__track i { position: absolute; top: 0; bottom: 0; background: var(--fg); }
.range input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--fg); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--fg); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }
.range__out { display: flex; justify-content: space-between; margin-top: 10px; }
