/* ============================================================
   MERIDIAN — Premium streetwear homepage
   Editorial / Swiss-grid / warm-light aesthetic
   ============================================================ */

:root {
  --white:      #ffffff;
  --paper:      #faf9f7;
  --cream:      #f5f2ed;
  --bone:       #ede9e2;
  --ink:        #111110;
  --mid:        #6b6860;
  --ghost:      rgba(17,17,16,0.08);
  --ghost-mid:  rgba(17,17,16,0.14);
  --rust:       #c8440e;
  --rust-hover: #a8360a;
  --black:      #0f0f0e;
  --overlay:    rgba(0,0,0,0.38);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  overflow-x: clip;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

/* image-placeholder helper: warm gradient + label + grain */
.ph {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(17,17,16,0.28);
  font-weight: 400;
  text-align: center;
  padding: 0 12px;
  pointer-events: none;
}
.ph--dark::after { color: rgba(255,255,255,0.4); }
.ph--nolabel::after { content: none; }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.045; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ TYPE UTILITIES ============ */
.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--mid); font-weight: 400;
}
.section-heading {
  font-size: 18px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   PREMIUM BUTTON SYSTEM
   ============================================================ */

/* 1. HERO PILL CTA */
.btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  padding: 14px 32px;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}
.btn-hero:hover { background: var(--ink); color: var(--white); transform: scale(1.02); }

/* 2. DARK-SECTION PILL CTA */
.btn-dark-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  padding: 12px 28px;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease);
}
.btn-dark-pill:hover { background: rgba(255,255,255,0.85); transform: scale(1.02); }

/* 3. SHARP PRIMARY */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  border-radius: 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 28px;
  overflow: hidden;
  transition: background 0.28s var(--ease), letter-spacing 0.28s var(--ease);
}
.btn-primary .arrow {
  display: inline-block; width: 0; opacity: 0; margin-left: 0;
  transform: translateX(-6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), width 0.28s var(--ease), margin 0.28s var(--ease);
}
.btn-primary:hover { background: #2a2a28; letter-spacing: 0.22em; }
.btn-primary:hover .arrow { opacity: 1; transform: translateX(0); width: 12px; margin-left: 8px; }

/* 4. GHOST SHARP */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  border-radius: 0;
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 11px 24px;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost--light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* 5. TEXT LINK BUTTON */
.btn-text {
  position: relative; display: inline-block;
  font-size: 12px; font-weight: 400; color: var(--ink);
  padding-bottom: 2px;
}
.btn-text::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.btn-text:hover::after { transform: scaleX(1); }

/* 6. SIZE PILL */
.size {
  min-width: 36px; height: 28px; padding: 0 10px;
  border: 1px solid var(--ghost); border-radius: 0;
  background: var(--white); color: var(--mid);
  font-size: 11px; font-weight: 400; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.size:hover { border-color: var(--ghost-mid); color: var(--ink); }
.size.sel { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.size.sold { text-decoration: line-through; opacity: 0.35; cursor: not-allowed; }

/* 7. ICON BUTTON */
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); opacity: 0.65; border-radius: 50%;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), transform 0.1s var(--ease);
  position: relative;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { opacity: 1; background: rgba(0,0,0,0.04); }
.icon-btn:active { transform: scale(0.92); }

/* 8. CAROUSEL ARROW */
.carousel-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--ghost);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.carousel-arrow svg { width: 14px; height: 14px; }
.carousel-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: scale(1.06); }
.carousel-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* 9. SCROLL TO TOP */
.to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--ghost); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--white); }
