/* Paid storefront: desktop follows the brand mockup; <= 760px is the phone layout */
:root {
  --bg: #000;
  --ink: #0b0b0b;
  --panel: #111;
  --panel-2: #181818;
  --line: rgba(255, 255, 255, .12);
  --text: #f1f0ec;
  --muted: #a3a29d;
  --bone: #dedbd4;
  --card-light: #d6d4cf;
  --max: 1120px;
  --gutter: clamp(16px, 5.6vw, 64px);
  --hdr: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--bone); color: #000; padding: 8px 14px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { margin: 0 0 14px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 26px; border: 1px solid transparent; border-radius: 0; font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn .i { width: 22px; height: 18px; }
.btn-light { background: var(--bone); color: #111; }
.btn-light:hover { background: #fff; }
.btn-dark { background: #262626; color: var(--text); }
.btn-dark:hover { background: #333; }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--text); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .68rem; }
.btn-block { width: 100%; }
.link-under { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid currentColor; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(16px, 2.6vw, 28px); background: rgba(0,0,0,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-logo { justify-self: start; }
.hdr-logo img { height: 40px; width: auto; }
.hdr-nav { display: flex; gap: clamp(18px, 2.6vw, 30px); }
.hdr-nav a { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s; }
.hdr-nav a:hover { border-color: currentColor; }
.hdr-tools { justify-self: end; display: flex; align-items: center; gap: 6px; }
.hdr-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; }
.hdr-menu { display: none; }
.hdr-bag { width: auto; display: flex; gap: 4px; padding: 0 6px; }
.bag-count { font-size: .72rem; min-width: 8px; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100vh - var(--hdr)), 640px); background: #0d0d0d; overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0d0d0d 0%, rgba(13,13,13,.35) 10%, rgba(13,13,13,0) 24%), linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0) 30%); }
.hero-copy { position: relative; z-index: 2; grid-column: 1; align-self: center; padding: 48px 0 48px max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hero-logo { width: min(440px, 40vw); margin: 0 0 20px -6px; opacity: .88; }
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.1rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.hero p { margin: 12px 0 26px; max-width: 22rem; color: #d3d1cb; font-size: clamp(.95rem, 1.2vw, 1.05rem); font-weight: 400; line-height: 1.45; }

/* blocks */
.block { padding-top: 36px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.block-head h2 { font-size: 1.05rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.rail { display: grid; gap: 10px; }
.rail-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* product cards */
.card { display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--panel); border: 1px solid #222; transition: border-color .2s; }
.card:hover { border-color: #444; }
.card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #050505; }
.card.is-light .card-media { background: var(--card-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; }
.card-name { font-size: .78rem; font-weight: 500; line-height: 1.3; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { font-size: .78rem; color: var(--text); }
.dots { display: flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* categories */
.cat { position: relative; display: block; aspect-ratio: 1.43 / 1; overflow: hidden; background: #1a1a1a; }
.cat picture, .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat:hover .cat-img { transform: scale(1.05); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,0) 70%); }
.cat-text { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.cat-text strong { font-size: 1rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.cat-text span { align-self: flex-start; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; }

/* lookbook banner */
.look { display: grid; grid-template-columns: 1fr 1fr; min-height: 150px; border: 1px solid #222; background: linear-gradient(90deg, #0b1220, #0a0d14 60%, #080808); overflow: hidden; }
.look-media { position: relative; }
.look-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 70%, #0b1220); }
.look-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 22px 26px; }
.look-copy strong { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 500; text-transform: uppercase; }
.look-copy > span:not(.btn) { color: #cfcdc6; font-size: .95rem; margin-bottom: 10px; }

/* story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 32px); align-items: center; padding-bottom: 44px; }
.story-media { aspect-ratio: 2.75 / 1; overflow: hidden; border: 1px solid #222; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-size: clamp(1.3rem, 2.1vw, 1.55rem); text-transform: uppercase; font-weight: 500; line-height: 1.2; }
.story p { margin: 12px 0 16px; color: #cbc9c3; font-size: .82rem; max-width: 26rem; }
.story-more p { margin-top: 0; }
.motto { color: var(--text) !important; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem !important; font-weight: 500; }

/* footer */
.foot { border-top: 1px solid var(--line); background: radial-gradient(120% 140% at 70% 0%, #1b1b1b 0%, #0b0b0b 55%, #050505 100%); }
.foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.join h2 { font-size: 1.3rem; font-weight: 500; text-transform: uppercase; }
.join p { margin: 4px 0 12px; font-size: .72rem; color: #c9c7c0; }
.join-form { display: flex; gap: 10px; max-width: 460px; }
.join-form input[type=email] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: var(--bone); color: #111; font-size: .85rem; }
.join-form input::placeholder { color: #555; }
.join-msg { min-height: 1.4em; margin: 8px 0 0 !important; }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-brand img { width: 150px; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; opacity: .9; }
.social a:hover { opacity: 1; }
.social .i { width: 20px; height: 20px; }
.foot-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #cfcdc6; }
.foot-bot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bot a:hover { color: #fff; }

/* overlay layers */
.layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.layer[hidden] { display: none; }
.layer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); animation: fade .2s ease; }
.panel { position: relative; background: var(--panel-2); border: 1px solid var(--line); max-height: 100%; overflow: auto; overscroll-behavior: contain; animation: rise .25s ease; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.panel-head img { height: 34px; width: auto; }
.panel-x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,.5); border-radius: 50%; }
.layer-right { justify-content: flex-end; }
.layer-right .panel { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; border-width: 0 0 0 1px; animation: slide-l .25s ease; }
.layer-left { justify-content: flex-start; }
.layer-left .panel { width: min(360px, 88%); height: 100%; border-width: 0 1px 0 0; animation: slide-r .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes slide-l { from { transform: translateX(100%); } }
@keyframes slide-r { from { transform: translateX(-100%); } }

/* menu */
.menu-links { display: flex; flex-direction: column; padding: 8px 0; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.06); }
.menu-links a.sub { padding: 10px 22px 10px 38px; font-size: .78rem; color: var(--muted); }
.menu-links .i { width: 18px; height: 18px; color: var(--muted); }

/* shop */
.panel-shop { width: min(1180px, calc(100% - 48px)); height: min(88vh, 900px); display: flex; flex-direction: column; }
.shop-head { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.shop-head h2 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 420px; margin-left: auto; height: 40px; padding: 0 12px; border: 1px solid var(--line); }
.search .i { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: .9rem; }
.chips { display: flex; gap: 8px; padding: 14px 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border: 1px solid var(--line); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.chip.is-on { background: var(--bone); color: #111; border-color: var(--bone); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 20px 24px 28px; }
.shop-grid .card[hidden] { display: none; }
.shop-empty { padding: 0 24px 28px; color: var(--muted); }

/* product */
.panel-product { width: min(940px, calc(100% - 48px)); display: grid; grid-template-columns: 1.05fr 1fr; max-height: min(90vh, 760px); }
.pd-media { background: #050505; min-height: 100%; }
.pd-media.is-light { background: var(--card-light); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.pd-body { padding: 30px 28px 26px; overflow: auto; }
.pd-body h3 { font-size: 1.45rem; font-weight: 500; text-transform: uppercase; padding-right: 30px; }
.pd-price { margin: 8px 0 0; font-size: 1.05rem; }
.pd-line { margin: 10px 0 0; color: var(--muted); font-size: .85rem; }
.pd-line:empty { display: none; }
.opt-label { margin: 22px 0 10px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opt-label strong { color: var(--text); font-weight: 500; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 3px var(--panel-2), 0 0 0 4px transparent; }
.swatch.is-on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 3px var(--panel-2), 0 0 0 4px var(--bone); }
.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 24px; }
.size { height: 42px; border: 1px solid var(--line); font-size: .76rem; font-weight: 500; }
.size:hover { border-color: rgba(255,255,255,.4); }
.size.is-on { background: var(--bone); color: #111; border-color: var(--bone); }
.pd-body .btn-block + .btn-block { margin-top: 10px; }
.pd-note { margin: 14px 0 0; color: var(--muted); font-size: .74rem; }

/* bag */
.bag-list { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow: auto; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 72px; height: 72px; object-fit: cover; background: #050505; }
.bag-item.is-light img { background: var(--card-light); }
.bag-item h4 { margin: 0; font-size: .82rem; font-weight: 500; }
.bag-item p { margin: 2px 0 0; font-size: .74rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); }
.qty button { width: 30px; height: 28px; }
.qty span { min-width: 24px; text-align: center; font-size: .78rem; }
.bag-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: .8rem; }
.bag-rm { font-size: .68rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag-empty { padding: 40px 22px; text-align: center; color: var(--muted); }
.bag-empty[hidden] { display: none; }
.bag-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bag-foot .btn-block + .btn-block { margin-top: 10px; }
.bag-total { display: flex; justify-content: space-between; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.bag-foot .pd-note { margin: 6px 0 14px; }

/* lookbook */
.layer-dark { background: rgba(0,0,0,.96); }
.lb { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-fig { margin: 0; max-width: calc(100% - 140px); max-height: calc(100% - 110px); display: flex; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; animation: fade .3s ease; }
.lb-x { position: absolute; top: 12px; right: 12px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.lb-nav:hover { border-color: #fff; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; font-size: .72rem; letter-spacing: .2em; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; padding: 11px 18px; background: var(--bone); color: #111; font-size: .8rem; font-weight: 500; animation: rise .2s ease; }

/* ---------- tablet ---------- */
@media (max-width: 1020px) {
  .hdr-nav { gap: 16px; }
  .hdr-nav a { font-size: .64rem; }
  .rail-5 { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .rail-5::-webkit-scrollbar { display: none; }
  .rail-5 > * { scroll-snap-align: start; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --hdr: 54px; }
  body { font-size: 15px; }
  .hdr { grid-template-columns: 1fr auto 1fr; padding: 0 6px; }
  .hdr-menu { display: grid; justify-self: start; }
  .hdr-logo { justify-self: center; }
  .hdr-logo img { height: 34px; }
  .hdr-nav, .hdr-user { display: none; }
  .hdr-tools { gap: 0; }

  .hero { display: flex; flex-direction: column; min-height: 0; background: #0d0d0d; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 4.3; }
  .hero-media img { object-position: 60% 18%; }
  .hero-media::before { background: linear-gradient(0deg, #0d0d0d 0%, rgba(13,13,13,.6) 22%, rgba(13,13,13,0) 50%); }
  .hero-copy { margin-top: -120px; padding: 0 var(--gutter) 34px; }
  .hero-logo { width: 62%; max-width: 280px; margin: 0 0 12px -4px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { margin: 10px 0 22px; }
  .hero .btn { width: 100%; }

  .block { padding-top: 34px; }
  .block-head { margin-bottom: 14px; }
  .block-head h2 { font-size: .95rem; }
  .rail-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px; }
  #categories .rail-5 { grid-auto-columns: 46%; }
  .card-name { font-size: .82rem; }
  .card-info { padding: 10px 12px 12px; }

  .look { grid-template-columns: 1fr; }
  .look-media { aspect-ratio: 16 / 9; }
  .look-media::after { background: linear-gradient(0deg, #0b1220 0%, rgba(0,0,0,0) 45%); }
  .look-copy { padding: 4px 18px 22px; }
  .look .btn { width: 100%; }

  .story { grid-template-columns: 1fr; gap: 20px; }
  .story-media { aspect-ratio: 16 / 9; }
  .story p { font-size: .9rem; }
  .story .btn { width: 100%; }

  .foot-top { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .foot-brand { order: -1; }
  .foot-brand img { width: 130px; }
  .join { text-align: center; }
  .join p { font-size: .82rem; }
  .join-form { flex-direction: column; max-width: none; }
  .join-form input[type=email] { height: 48px; font-size: 16px; }
  .join-form .btn { min-height: 48px; }
  .foot-bot { flex-direction: column; text-align: center; gap: 12px; }
  .foot-bot nav { justify-content: center; gap: 14px 18px; }

  .layer { align-items: flex-end; }
  .panel-shop { width: 100%; height: 100%; border: 0; }
  .shop-head { padding: 8px 6px 8px 16px; gap: 8px; }
  .shop-head h2 { display: none; }
  .search { max-width: none; margin: 0; height: 42px; }
  .search input { font-size: 16px; }
  .chips { padding: 12px 16px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 30px; }
  .panel-product { width: 100%; max-height: 94vh; grid-template-columns: 1fr; border-width: 1px 0 0; animation: rise-up .28s ease; }
  .pd-media img { aspect-ratio: 1 / 1; max-height: 46vh; }
  .pd-body { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); overflow: visible; }
  .pd-body h3 { font-size: 1.2rem; }
  .sizes { grid-template-columns: repeat(3, 1fr); }
  .layer-right { align-items: stretch; }
  .layer-right .panel { width: 100%; border: 0; }
  .layer-left { align-items: stretch; }
  .lb-fig { max-width: 100%; }
  .lb-nav { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-count { bottom: 28px; }
}
@keyframes rise-up { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html { overflow-x: clip; }
