/* ========================================================
   BIVONA SEDICI — Design tokens & global styles
   ======================================================== */

:root {
  /* palette — paper */
  --paper: #f2ede3;
  --paper-2: #ebe4d6;
  --ink: #161310;
  --ink-2: #2a2520;
  --muted: #7a6f61;
  --line: rgba(22, 19, 16, 0.14);
  --sea: #1b3a53;
  --sunset: #d44a2c;
  --bg: var(--paper);
  --fg: var(--ink);

  /* type */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-impact: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", -apple-system, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* metrics */
  --pad-x: clamp(20px, 5vw, 100px);
  --rail: 100%;
}

/* dark / notte mode */
body[data-palette="notte"] {
  --paper: #0e0c0a;
  --paper-2: #15120f;
  --ink: #efe7d7;
  --ink-2: #d9cfb9;
  --muted: #8a7f6f;
  --line: rgba(239, 231, 215, 0.16);
  --sea: #6cb0d8;
  --sunset: #e7613f;
}

body[data-palette="sole"] {
  --paper: #f7e6cb;
  --paper-2: #f0d6a8;
  --ink: #1d1109;
  --ink-2: #3a2412;
  --muted: #7a5638;
  --line: rgba(29, 17, 9, 0.18);
  --sea: #143a52;
  --sunset: #c4391f;
}

/* ============ reset / base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 280ms ease, color 280ms ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* lang switch */
[data-it], [data-en] { display: none; }
body[data-lang="it"] [data-it] { display: revert; }
body[data-lang="en"] [data-en] { display: revert; }
body[data-lang="it"] [data-it].inline,
body[data-lang="en"] [data-en].inline { display: inline; }
body[data-lang="it"] [data-it].block,
body[data-lang="en"] [data-en].block { display: block; }

/* ============ type ============ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-impact {
  font-family: var(--f-impact);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0;
}

/* ============ layout helpers ============ */
.container {
  width: 100%;
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.divider { height: 1px; background: var(--line); width: 100%; }
.spacer-l { height: 120px; }
.spacer-m { height: 64px; }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--paper);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, padding 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-right { justify-content: flex-end; }
.nav a { transition: opacity 160ms; }
.nav a:hover { opacity: 0.6; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}
.nav-brand .wordmark {
  font-family: var(--f-impact);
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.nav-brand .wordmark small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.34em;
  margin-top: 3px;
  opacity: 0.7;
  font-family: var(--f-body);
  font-weight: 600;
}
.castle-mark { width: 28px; height: 28px; display: block; }
.castle-mark rect { fill: currentColor; }
.lang-switch {
  display: inline-flex;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.lang-switch button { padding: 4px 6px; opacity: 0.5; }
.lang-switch button.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.bag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bag .count {
  font-family: var(--f-mono);
  font-size: 10px;
  background: #f2b220;
  color: #0e0c0a;
  width: 20px; height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}
.nav.scrolled .bag .count { color: #0e0c0a; background: #f2b220; }
@media (max-width: 760px) {
  .nav-left a:not(.menu-toggle),
  .nav-right .acct { display: none; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  color: var(--paper);
  background: #1a1814;
}
.hero-media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-media .slot {
  position: absolute; inset: -4%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.04) translate(-1%, -0.5%); }
  100% { transform: scale(1.14) translate(1%, 1%); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 110px var(--pad-x) 36px;
}
.hero-title {
  font-size: clamp(72px, 14vw, 220px);
  align-self: end;
  max-width: 1500px;
}
.hero-title .line2 {
  display: block;
  font-family: var(--f-impact);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: -0.05em;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: 28px;
}
.hero-meta .col {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.hero-meta .col .eyebrow { color: rgba(242, 237, 227, 0.7); margin-bottom: 8px; display: block; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 200ms, color 200ms, transform 200ms;
}
.cta:hover { background: currentColor; }
.cta:hover span { color: var(--paper); }
.cta.solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cta.solid:hover { background: var(--sunset); border-color: var(--sunset); }
.cta .arrow { display: inline-block; transition: transform 200ms; }
.cta:hover .arrow { transform: translateX(4px); }

/* hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.8;
  z-index: 3;
}
.scroll-indicator::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  background: currentColor;
  margin: 10px auto 0;
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 22px 0;
  overflow: hidden;
}
.marquee.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--f-impact);
  font-size: clamp(28px, 4.5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot {
  width: 10px; height: 10px; border-radius: 999px; background: var(--sunset);
  display: inline-block;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.sect {
  padding: 96px 0;
  position: relative;
}
.sect-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
}
.sect-head .right { text-align: right; max-width: 460px; justify-self: end; }
.sect-head h2 {
  font-size: clamp(48px, 8vw, 132px);
}
.sect-head .lede {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 740px) {
  .sect-head { grid-template-columns: 1fr; }
  .sect-head .right { text-align: left; justify-self: start; }
}

/* =====================================================
   COLLECTION GRID
   ===================================================== */
.shop-tabs {
  display: flex;
  gap: 28px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.shop-tabs button {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.shop-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 740px)  { .products { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.product {
  position: relative;
  display: block;
}
.product .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
  margin-bottom: 14px;
}
.product .frame .slot {
  position: absolute; inset: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product:hover .frame .slot { transform: scale(1.04); }
.product .tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}
.product .tag.sunset { background: var(--sunset); }
.product .add {
  position: absolute;
  inset: auto 10px 10px auto;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms, transform 240ms, background 200ms, color 200ms;
  z-index: 3;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.product:hover .add { opacity: 1; transform: translateY(0); }
.product .add:hover { background: var(--ink); color: var(--paper); }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.product-meta .name { font-weight: 600; letter-spacing: -0.005em; }
.product-meta .price { font-variant-numeric: tabular-nums; }
.product-meta .desc { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }

/* =====================================================
   LOOKBOOK — editorial collage
   ===================================================== */
.lookbook {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
}
.lookbook .container { position: relative; }
.lookbook .sect-head h2 { color: var(--paper); }
.lookbook .sect-head .lede { color: rgba(242, 237, 227, 0.7); }
.look-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 16px;
}
.look-grid figure { margin: 0; position: relative; overflow: hidden; background: #25201b; }
.look-grid figure .slot { position: absolute; inset: 0; }
.look-grid figcaption {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  z-index: 2;
}
.l-a { grid-column: 1 / 6; grid-row: 1 / 7; }
.l-b { grid-column: 6 / 10; grid-row: 1 / 4; }
.l-c { grid-column: 10 / 13; grid-row: 1 / 5; }
.l-d { grid-column: 6 / 10; grid-row: 4 / 9; }
.l-e { grid-column: 10 / 13; grid-row: 5 / 9; }
.l-f { grid-column: 1 / 6; grid-row: 7 / 11; }
.l-g { grid-column: 6 / 13; grid-row: 9 / 12; }
@media (max-width: 900px) {
  .look-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 60px; }
  .l-a { grid-column: 1 / 7; grid-row: 1 / 5; }
  .l-b { grid-column: 1 / 4; grid-row: 5 / 8; }
  .l-c { grid-column: 4 / 7; grid-row: 5 / 8; }
  .l-d { grid-column: 1 / 7; grid-row: 8 / 12; }
  .l-e { grid-column: 1 / 4; grid-row: 12 / 15; }
  .l-f { grid-column: 4 / 7; grid-row: 12 / 15; }
  .l-g { grid-column: 1 / 7; grid-row: 15 / 18; }
}

/* =====================================================
   MANIFESTO / VIA SEDICI
   ===================================================== */
.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.story-text { padding: 24px 0; }
.story-text h2 { margin-bottom: 28px; }
.story-text .pull {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 32px 0;
  color: var(--ink);
}
.story-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 18px;
}
.story-text .signature {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 36px;
  display: block;
}
.story-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.story-img .slot { position: absolute; inset: 0; }
.story-img .pin {
  position: absolute;
  inset: auto 16px 16px auto;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
.story-img .pin .map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.story-img .pin .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--sunset);
  box-shadow: 0 0 0 4px rgba(212, 74, 44, 0.25);
}
@media (max-width: 880px) {
  .story { grid-template-columns: 1fr; gap: 36px; }
}

/* =====================================================
   FEATURED DROP (big image + side text)
   ===================================================== */
.drop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  min-height: 80vh;
}
.drop-media { position: relative; overflow: hidden; min-height: 540px; background: #2a241e; }
.drop-media .slot { position: absolute; inset: 0; }
.drop-text {
  padding: 64px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.drop-text .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, 0.6);
}
.drop-text h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.drop-text p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
  color: rgba(242, 237, 227, 0.78);
  margin: 0;
}
.drop-text .stats {
  display: flex;
  gap: 36px;
  margin-top: 12px;
  border-top: 1px solid rgba(242,237,227,0.16);
  padding-top: 20px;
}
.drop-text .stat .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(242,237,227,0.5); }
.drop-text .stat .v { font-family: var(--f-display); font-style: italic; font-size: 28px; }
@media (max-width: 880px) {
  .drop { grid-template-columns: 1fr; }
  .drop-text { padding: 48px var(--pad-x); }
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.news {
  padding: 110px var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news h2 { font-size: clamp(40px, 7vw, 96px); margin-bottom: 20px; }
.news p { color: var(--muted); max-width: 48ch; margin: 0 auto 32px; }
.news form {
  display: inline-flex;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  width: min(100%, 520px);
  padding-bottom: 6px;
}
.news input {
  flex: 1;
  background: none;
  border: 0;
  padding: 12px 4px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.news input::placeholder { color: var(--muted); }
.news button[type="submit"] {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news .small {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad-x) 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--rail);
  margin: 0 auto;
}
.foot-brand .castle-mark { width: 44px; height: 44px; margin-bottom: 16px; color: var(--paper); }
.foot-brand .wordmark { font-family: var(--f-impact); font-size: 22px; letter-spacing: 0.04em; line-height: 1; }
.foot-brand .wordmark small { display: block; font-size: 11px; letter-spacing: 0.32em; margin-top: 6px; opacity: 0.7; font-family: var(--f-body); font-weight: 600; }
.foot-brand p {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 36ch;
  color: rgba(242, 237, 227, 0.7);
}
.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: rgba(242,237,227,0.6);
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 13.5px; transition: opacity 160ms; }
.foot-col a:hover { opacity: 0.6; }
.foot-bot {
  max-width: var(--rail);
  margin: 56px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(242,237,227,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.55);
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* =====================================================
   IMAGE SLOT placeholder styling (when empty)
   ===================================================== */
image-slot {
  --slot-bg: var(--paper-2);
  --slot-fg: var(--muted);
}
.lookbook image-slot,
.drop-media image-slot {
  --slot-bg: #25201b;
  --slot-fg: rgba(242,237,227,0.55);
}

/* =====================================================
   RESPONSIVE — mobile / tablet polish
   ===================================================== */

/* hamburger button (hidden on desktop) */
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.menu-btn .bars { display: inline-block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
}
.menu-btn .bars::before { top: -5px; }
.menu-btn .bars::after  { top: 5px; }

/* slide-down mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--paper);
  color: var(--ink);
  z-index: 200;
  transform: translateY(-100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  padding: 18px var(--pad-x);
}
.mobile-sheet.open { transform: translateY(0); }
.mobile-sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.mobile-sheet a, .mobile-sheet button.lnk {
  font-family: var(--f-impact, "Archivo Black", sans-serif);
  font-size: 36px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 10px 0;
  line-height: 1;
  text-align: left;
}
.mobile-sheet .sub {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mobile-close {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  font-size: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* ============ tablet (<= 1080px) ============ */
@media (max-width: 1080px) {
  :root { --pad-x: clamp(18px, 4vw, 40px); }
  .sect { padding: 80px 0; }
  .pillars { padding: 88px 0; }
  .b16 { padding: 96px var(--pad-x); }
  .community { padding: 88px var(--pad-x); }
  .news { padding: 88px var(--pad-x); }
  footer { padding: 64px var(--pad-x) 24px; }
}

/* ============ mobile (<= 760px) ============ */
@media (max-width: 760px) {
  :root { --pad-x: 18px; }

  /* coords strip simplified */
  .coords-strip {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    padding: 10px var(--pad-x);
    justify-content: center;
    gap: 8px;
  }
  .coords-strip > span:nth-child(3),
  .coords-strip > span[data-it],
  .coords-strip > span[data-en] { display: none !important; }

  /* nav restructured */
  .nav {
    padding: 12px var(--pad-x);
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .nav-left a, .nav-right .acct, .nav-right .lang-switch { display: none !important; }
  .nav-left { gap: 8px; }
  .nav-left .menu-btn { display: inline-flex; }
  .nav-brand { justify-self: start; }
  .nav-brand .wm { font-size: 11px; }
  .nav-brand .wm small { font-size: 8px; letter-spacing: 0.26em; }
  .nav-right { gap: 12px; }
  .nav-right .bag span:first-child { display: none; }

  /* hero */
  .hero { min-height: 560px; height: auto; }
  .hero-inner {
    padding: 92px var(--pad-x) 28px;
    min-height: 92vh;
    grid-template-rows: auto 1fr;
    gap: 28px;
  }
  .hero-title { font-size: clamp(54px, 16vw, 96px) !important; line-height: 0.92; }
  .hero-title .ital { display: inline-block; }
  .hero-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 18px;
  }
  .hero-meta .col { max-width: 100%; text-align: left !important; align-items: flex-start !important; }
  .hero-meta .col .cta { align-self: flex-start; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.24em; }
  .scroll-indicator { display: none; }

  /* sect-head columns */
  .sect-head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .sect-head .right { text-align: left; justify-self: start; max-width: none; }
  .sect-head h2 { font-size: clamp(40px, 11vw, 72px); }

  /* shop */
  .shop-tabs { gap: 18px; font-size: 11px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .shop-tabs button { white-space: nowrap; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .product .add { opacity: 1; transform: none; width: 32px; height: 32px; font-size: 16px; }
  .product .tag, .product .badge-y { font-size: 9px; padding: 3px 6px; }
  .product-meta { font-size: 12.5px; }
  .product-meta .desc { font-size: 10.5px; }

  /* marquees smaller */
  .marquee-track, .stripe-track { font-size: clamp(28px, 7vw, 40px); gap: 32px; }
  .marquee-track span, .stripe-track span { gap: 32px; }
  .stripe { padding: 14px 0; }
  .marquee { padding: 18px 0; }

  /* pillars (already responsive — refine) */
  .pillar { padding: 28px 18px; }

  /* b16 capsule */
  .b16-grid { grid-template-columns: 1fr; gap: 36px; }
  .b16-text h2 { font-size: clamp(78px, 28vw, 160px) !important; }
  .b16-text p { font-size: 14.5px; }
  .b16-text .values-row { grid-template-columns: repeat(3, 1fr) !important; gap: 0; }
  .b16-text .values-row .cell { padding: 14px 6px; font-size: 9.5px; text-align: center; border-right: 1px solid rgba(239,233,221,0.18); }
  .b16-text .values-row .cell strong { font-size: 18px; }

  /* lookbook */
  .lookbook { padding: 80px 0; }
  .look-grid figcaption { font-size: 8.5px; padding: 3px 6px; bottom: 8px; left: 8px; }

  /* story */
  .story { gap: 28px; }
  .story-text p { font-size: 14.5px; }
  .story-text .pull { font-size: clamp(24px, 6vw, 32px); margin: 22px 0; }

  /* community */
  .community-inner { gap: 28px; }
  .community h3 { font-size: clamp(36px, 10vw, 64px); }
  .community-art { aspect-ratio: 4 / 5; }

  /* newsletter */
  .news h2 { font-size: clamp(34px, 10vw, 60px); }
  .news form { width: 100%; }
  .news input { font-size: 15px; }
  .news button[type="submit"] { font-size: 11px; }

  /* footer */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bot { font-size: 9.5px; letter-spacing: 0.14em; gap: 8px; }
  .foot-col h4 { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 12px; }
  .foot-col a { font-size: 12.5px; }

  /* hex badge in hero hidden on mobile already */

  /* hit target floor */
  .cta { padding: 13px 18px; font-size: 11px; }
  .nav .lang-switch button,
  .nav .bag,
  .nav-brand,
  .menu-btn { min-height: 40px; }
}

/* very small (<=380px) */
@media (max-width: 380px) {
  .coords-strip { font-size: 8.5px; letter-spacing: 0.08em; }
  .products { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(48px, 17vw, 80px) !important; }
  .nav-brand .wm small { display: none; }
}

/* landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero-title { font-size: clamp(40px, 9vw, 80px) !important; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-media .slot { animation: none; }
  .marquee-track, .stripe-track { animation: none; }
}

/* =====================================================
   TWEAKS panel host adjustments
   ===================================================== */
.tweaks-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.tweaks-fab.visible { display: inline-flex; }
.tweaks-panel {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 280px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  padding: 18px;
  z-index: 95;
  display: none;
  font-size: 13px;
  border-radius: 8px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 14px 0 8px;
  color: var(--muted);
}
.tweaks-panel h5:first-child { margin-top: 0; }
.tw-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-row button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-body);
}
.tw-row button.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tweaks-close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 16px;
  color: var(--muted);
}
