/* =========================================================================
   Little Bansi — Premium Landing Pages (Boys & Girls)
   Single shared stylesheet. Cloudflare-Pages friendly (no build step).
   ========================================================================= */

:root {
  /* Brand */
  --ivory: #F8F5EF;
  --ivory-2: #F2EDE2;
  --ink: #1A1A1A;
  --ink-soft: #5A5550;
  --ink-muted: #8A8278;
  --line: #E5DFD3;
  --line-strong: #C9C0AE;
  --gold: #B8935A;
  --gold-deep: #8E6E3F;
  --gold-soft: #E8D9BC;
  --success: #2D5F3F;
  --sale: #A24135;

  /* Per-page accent (overridden on .theme-girls) */
  --accent: #A04432;       /* boys: rust */
  --accent-soft: #ECD7CE;
  --accent-deep: #6F2C20;

  /* Type */
  --serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 120px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 480ms;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 2px;
  --radius-lg: 12px;
}

.theme-girls {
  --accent: #B45E70;
  --accent-soft: #F3DCE2;
  --accent-deep: #7E3A48;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

button {
  font: inherit; color: inherit; background: none; border: 0;
  cursor: pointer; padding: 0;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

.muted { color: var(--ink-soft); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
.announce strong { color: var(--gold-soft); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 245, 239, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.logo span { color: var(--accent); }

.main-nav {
  display: flex; gap: 28px;
  justify-self: center;
}
.main-nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  position: relative;
  padding: 24px 0;
}
.main-nav a.is-active { color: var(--ink); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 18px;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transform-origin: center; transition: transform var(--t-base) var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex; gap: 18px; align-items: center; justify-self: end;
  color: var(--ink-soft);
}
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: background-color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--ivory-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.5; }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600;
  width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-wrap { position: relative; }

/* Mobile hamburger */
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: clamp(560px, 78vh, 820px);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: relative; overflow: hidden;
  background: var(--ivory-2);
}
.hero-media .hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: heroFloat 18s var(--ease) forwards;
}
@keyframes heroFloat {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
.hero-media .hero-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero-copy {
  padding: clamp(40px, 6vw, 96px) clamp(32px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 24px;
  background: var(--ivory);
}
.hero-copy .eyebrow { margin-bottom: 4px; }
.hero-copy h1 .accent { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 460px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  border-radius: var(--radius);
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
  position: relative;
}
.btn-primary {
  background: var(--ink); color: var(--ivory);
}
.btn-primary:hover {
  background: var(--accent-deep);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn .arrow {
  width: 14px; transition: transform var(--t-base) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta {
  display: flex; gap: 28px; margin-top: 20px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-muted);
}
.hero-meta span { position: relative; }
.hero-meta span + span::before {
  content: '·'; position: absolute; left: -16px; color: var(--accent);
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { min-height: 70vh; }
  .hero-copy { padding: 48px 24px 64px; }
}

/* =========================================================================
   TAB / TOGGLE NAVIGATION — the centerpiece
   ========================================================================= */
.collection-tabs {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-base) var(--ease);
}
.collection-tabs.is-pinned { box-shadow: 0 8px 24px -16px rgba(26,26,26,0.18); }

.tablist {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--gutter);
}
.tablist::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 22px 18px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-base) var(--ease);
}
.tab .tab-count {
  font-size: 10px;
  margin-left: 6px;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color var(--t-base) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"] .tab-count { color: var(--accent); }

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(0);
  transition: transform var(--t-slow) var(--ease-spring),
              width var(--t-slow) var(--ease-spring);
  width: 0; left: 0;
  pointer-events: none;
}

/* Tab panels */
.panels {
  position: relative;
  min-height: 600px;
}
.panel {
  display: none;
  padding: 56px 0 80px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.panel-header {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 36px; gap: 24px;
}
.panel-header h2 { max-width: 600px; }
.panel-header .panel-sub { font-size: 14px; color: var(--ink-soft); max-width: 380px; }
.panel-header .panel-cta {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink); border-bottom: 1px solid var(--ink-muted);
  padding-bottom: 4px;
}
.panel-header .panel-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 12px;
  text-align: left;
}
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ivory-2);
  border-radius: var(--radius);
}
.product-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 700ms var(--ease), opacity var(--t-base) var(--ease);
}
.product-img.alt { opacity: 0; transform: scale(1.04); }
.product-card:hover .product-img.primary { opacity: 0; }
.product-card:hover .product-img.alt { opacity: 1; transform: scale(1); }
.product-card:hover .product-img { transform: scale(1.03); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.product-badge.sale { background: var(--sale); color: #fff; }
.product-badge.new { background: var(--ink); color: var(--ivory); }

.quick-add {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 12px 14px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  box-shadow: 0 8px 24px -16px rgba(26,26,26,0.32);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }

.product-info {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 2px;
}
.product-fabric {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
}
.product-name {
  font-family: var(--serif); font-size: 19px; line-height: 1.2;
  color: var(--ink);
}
.product-price {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.product-price .was { text-decoration: line-through; color: var(--ink-muted); }
.product-price .now { color: var(--ink); font-weight: 500; }
.product-price .save { color: var(--accent); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatch {
  width: 14px; height: 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
}

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    grid-template-columns: unset;
    padding-bottom: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .product-card { scroll-snap-align: start; }
}

.panel-footer {
  display: flex; justify-content: center; margin-top: 48px;
}

/* =========================================================================
   Occasion grid (visual portals)
   ========================================================================= */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.section-header .lead { max-width: 560px; }
.section-header .lead p { color: var(--ink-soft); margin: 12px 0 0; font-size: 16px; }

.occasion-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 16px;
}
.occasion-tile {
  position: relative; overflow: hidden;
  background: var(--ivory-2);
  border-radius: var(--radius);
  cursor: pointer;
  isolation: isolate;
}
.occasion-tile .occasion-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 800ms var(--ease);
}
.occasion-tile:hover .occasion-img { transform: scale(1.06); }
.occasion-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.65), rgba(26,26,26,0.0) 60%);
  z-index: 1;
}
.occasion-label {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.occasion-label .eyebrow { color: var(--gold-soft); }
.occasion-label h3 { color: #fff; font-style: italic; }
.occasion-cta {
  position: absolute; right: 24px; bottom: 24px; z-index: 2;
  color: #fff; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform var(--t-base) var(--ease);
}
.occasion-tile:hover .occasion-cta { transform: translateX(6px); }

.occasion-tile.span-tall { grid-row: span 2; }
.occasion-tile.span-wide { grid-column: span 2; }

@media (max-width: 880px) {
  .occasion-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 240px);
  }
  .occasion-tile.span-tall { grid-row: auto; }
  .occasion-tile.span-wide { grid-column: span 2; }
}

/* =========================================================================
   Shop by Age — 3 cards
   ========================================================================= */
.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.age-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ivory-2);
  overflow: hidden;
  border-radius: var(--radius);
}
.age-card .age-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 800ms var(--ease);
}
.age-card:hover .age-img { transform: scale(1.05); }
.age-card .age-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
}
.age-content {
  position: absolute; inset: auto 24px 24px;
  color: #fff;
  display: flex; align-items: end; justify-content: space-between;
}
.age-content .age-num {
  font-family: var(--serif); font-size: 56px; line-height: 1; font-style: italic;
}
.age-content .age-meta {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: right;
}
@media (max-width: 880px) { .age-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Color stories strip
   ========================================================================= */
.colorstrip-wrap { position: relative; }
.colorstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 22vw, 300px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0;
  scrollbar-width: none;
}
.colorstrip::-webkit-scrollbar { display: none; }
.color-card {
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.color-card .swatch-bg { position: absolute; inset: 0; }
.color-card .color-meta {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: end;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.color-card .color-meta h4 {
  font-family: var(--serif); font-size: 22px; font-style: italic; margin: 0;
}
.color-card .color-meta span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.color-card.dark .color-meta { color: #fff; }
.color-card.light .color-meta { color: var(--ink); text-shadow: none; }

/* =========================================================================
   Craft / story block
   ========================================================================= */
.craft {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.craft-text { max-width: 480px; }
.craft-text .eyebrow { margin-bottom: 16px; }
.craft-text h2 { margin-bottom: 24px; }
.craft-text p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; margin: 0 0 16px; }
.craft-text .signature {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--accent); margin-top: 24px;
}
.craft-media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--ivory-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.craft-media .craft-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.craft-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.craft-stat .num {
  font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent);
  font-style: italic;
}
.craft-stat .label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 8px;
}
@media (max-width: 880px) {
  .craft { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================================
   Press strip
   ========================================================================= */
.press {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.press-quote {
  flex: 1; min-width: 220px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}
.press-quote .src {
  display: block;
  font-family: var(--sans); font-style: normal;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 12px;
}

/* =========================================================================
   Newsletter CTA
   ========================================================================= */
.newsletter {
  background: var(--accent-soft);
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 24px;
}
.newsletter h2 { font-style: italic; max-width: 720px; margin: 0 auto 16px; }
.newsletter p { color: var(--accent-deep); max-width: 500px; margin: 0 auto 32px; }
.newsletter form {
  display: flex; gap: 8px;
  max-width: 460px; margin: 0 auto;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 18px 20px;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-base) var(--ease);
}
.newsletter input[type="email"]:focus { border-color: var(--accent-deep); }
.newsletter button {
  padding: 18px 28px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color var(--t-base) var(--ease);
}
.newsletter button:hover { background: var(--accent-deep); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(248, 245, 239, 0.72);
  padding: 80px var(--gutter) 40px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto 56px;
}
.footer-brand .logo { color: var(--ivory); }
.footer-brand p { color: rgba(248,245,239,0.5); margin: 16px 0 24px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ivory);
  margin-bottom: 16px; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(248,245,239,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(248,245,239,0.5);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   Utility / mobile menu drawer
   ========================================================================= */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--ivory);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
  padding: 88px 32px 32px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--serif); font-size: 28px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-drawer .close-drawer {
  position: absolute; top: 24px; right: 24px;
}

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   OPTION 2 — Two-layer discovery navigation
   ========================================================================= */
.discovery-nav {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-base) var(--ease);
}
.discovery-nav.is-pinned { box-shadow: 0 12px 32px -20px rgba(26,26,26,0.22); }

/* Primary row — Shop by X */
.primary-row {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--gutter);
}
.primary-row::-webkit-scrollbar { display: none; }
.primary-tab {
  flex: 0 0 auto;
  padding: 24px 18px 22px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-base) var(--ease);
}
.primary-tab:hover { color: var(--ink); }
.primary-tab[aria-selected="true"] { color: var(--accent); }
.primary-indicator {
  position: absolute; bottom: 0;
  height: 2px;
  background: var(--accent);
  width: 0; left: 0;
  transform: translateX(0);
  transition: transform var(--t-slow) var(--ease-spring),
              width var(--t-slow) var(--ease-spring);
  pointer-events: none;
}

/* Secondary row — chips */
.secondary-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 14px var(--gutter) 16px;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  min-height: 56px;
}
.secondary-row::-webkit-scrollbar { display: none; }
.secondary-chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.secondary-chip:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-soft);
}
.secondary-chip[aria-selected="true"] {
  color: var(--ivory);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.secondary-chip .chip-count {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  transition: color var(--t-base) var(--ease);
}
.secondary-chip[aria-selected="true"] .chip-count { color: rgba(248,245,239,.7); }
.secondary-chip .chip-swatch {
  width: 12px; height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* Discovery products area */
.discovery-products {
  padding: 56px 0 80px;
  position: relative;
}
.discovery-products .panel-header { margin-bottom: 36px; }

/* Stagger reveal for product cards */
.product-grid.is-staggering .product-card {
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 600ms var(--ease) forwards;
}
.product-grid.is-staggering .product-card:nth-child(1) { animation-delay: 0ms; }
.product-grid.is-staggering .product-card:nth-child(2) { animation-delay: 40ms; }
.product-grid.is-staggering .product-card:nth-child(3) { animation-delay: 80ms; }
.product-grid.is-staggering .product-card:nth-child(4) { animation-delay: 120ms; }
.product-grid.is-staggering .product-card:nth-child(5) { animation-delay: 160ms; }
.product-grid.is-staggering .product-card:nth-child(6) { animation-delay: 200ms; }
.product-grid.is-staggering .product-card:nth-child(7) { animation-delay: 240ms; }
.product-grid.is-staggering .product-card:nth-child(8) { animation-delay: 280ms; }
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.product-grid.is-fading {
  opacity: 0.3;
  transition: opacity var(--t-base) var(--ease);
}

/* "Empty / loading" placeholder card */
.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
}

/* Refined Option 1 polish — softer card lift on hover */
.product-card { transition: transform var(--t-base) var(--ease); }
.product-card:hover { transform: translateY(-3px); }

/* =========================================================================
   V1 SHARPENING — modernist boutique
   (applies when NOT in editorial mode; tightens hero, cleans card type)
   ========================================================================= */
body:not(.editorial) .hero {
  min-height: clamp(440px, 62vh, 660px);
}
body:not(.editorial) .hero-copy {
  padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 80px);
  gap: 18px;
}
body:not(.editorial) .hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
body:not(.editorial) .hero-copy h1 .accent {
  font-style: normal;
  color: var(--ink);
}
body:not(.editorial) .hero-sub {
  font-size: 15px;
  max-width: 420px;
}
body:not(.editorial) .hero-meta { font-size: 11px; margin-top: 16px; }

body:not(.editorial) .product-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
body:not(.editorial) .product-fabric {
  font-size: 9.5px;
  letter-spacing: 0.22em;
}

body:not(.editorial) .panel-header h2,
body:not(.editorial) .section-header h2 {
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.12;
}

/* =========================================================================
   V2 EDITORIAL MODE — magazine layout
   ========================================================================= */
body.editorial {
  background: #F5EFE0;
}
body.editorial .site-header {
  background: rgba(245, 239, 224, 0.88);
}

/* Masthead — magazine spine line */
.masthead {
  background: #FAF5E8;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 11px clamp(20px, 4vw, 56px);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.masthead .left { text-align: left; font-weight: 600; letter-spacing: 0.18em; }
.masthead .center {
  text-align: center;
  font-style: italic;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-deep);
}
.masthead .right { text-align: right; }
@media (max-width: 720px) {
  .masthead { grid-template-columns: 1fr; padding: 10px 16px; }
  .masthead .left, .masthead .right { display: none; }
}

/* Editorial hero — full-bleed */
.editorial-hero {
  position: relative;
  min-height: clamp(580px, 86vh, 880px);
  overflow: hidden;
  isolation: isolate;
}
.editorial-hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroFloat 20s var(--ease) forwards;
}
.editorial-hero .hero-curtain {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 28%, rgba(0,0,0,0.55) 100%);
}
.editorial-hero .hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  right: clamp(24px, 6vw, 96px);
  bottom: clamp(64px, 11vh, 128px);
  z-index: 2;
  color: #fff;
  max-width: 1100px;
}
.editorial-hero .eyebrow {
  color: rgba(255,255,255,0.78);
  margin-bottom: clamp(20px, 3vh, 36px);
  display: block;
  font-family: var(--sans);
}
.editorial-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 10.5vw, 152px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.32);
}
.editorial-hero .byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 380px;
  margin: 0;
  letter-spacing: 0.01em;
}
.editorial-hero .scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%; z-index: 3;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
}
.editorial-hero .scroll-cue::after {
  content: '';
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
  50%       { opacity: 1;    transform: scaleY(1);   }
}

/* Chapter markers between sections */
.chapter {
  text-align: center;
  padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 32px) clamp(28px, 5vw, 48px);
  position: relative;
}
.chapter .chapter-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.chapter .chapter-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  display: block;
}
.chapter::after {
  content: '';
  display: block;
  width: 56px; height: 1px;
  background: var(--accent);
  margin: 28px auto 0;
}

/* Editorial product grid — 3-col, larger, centered, italic serif names */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 36px);
}
.editorial-grid .product-card { text-align: center; }
.editorial-grid .product-media { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.editorial-grid .product-info { align-items: center; }
.editorial-grid .product-fabric {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.editorial-grid .product-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.editorial-grid .product-price { justify-content: center; margin-top: 6px; }
@media (max-width: 880px) {
  .editorial-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}

/* Pull quote */
.pull-quote-block {
  text-align: center;
  padding: clamp(96px, 14vw, 168px) clamp(24px, 8vw, 120px);
  background: #EFE8D7;
  position: relative;
  overflow: hidden;
}
.pull-quote-block::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: clamp(220px, 26vw, 360px);
  line-height: 0;
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}
.pull-quote-block blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.15;
  max-width: 940px;
  margin: 0 auto;
  color: var(--ink);
  position: relative;
}
.pull-quote-block cite {
  display: block;
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--sans);
  color: var(--ink-soft);
  position: relative;
}

/* Lookbook spreads — alternating image+text */
.lookbook {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 160px);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 8vw, 120px);
  max-width: 1520px;
  margin: 0 auto;
}
.lookbook .spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: center;
}
.lookbook .spread.reverse > :first-child { order: 2; }
.lookbook .spread-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}
.lookbook .spread-text { padding: clamp(16px, 3vw, 32px) 0; }
.lookbook .spread-text .look-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: block;
}
.lookbook .spread-text h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.04;
  margin: 0 0 24px;
  letter-spacing: -0.018em;
}
.lookbook .spread-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 28px;
}
.lookbook .spread-text a.shop-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  color: var(--ink);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.lookbook .spread-text a.shop-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 880px) {
  .lookbook .spread { grid-template-columns: 1fr; gap: 24px; }
  .lookbook .spread.reverse > :first-child { order: 0; }
}

/* Editorial mode adjustments to discovery nav */
body.editorial .discovery-nav {
  background: rgba(245, 239, 224, 0.94);
}
body.editorial .secondary-row {
  background: #F5EFE0;
}
body.editorial .primary-tab {
  font-family: var(--serif);
  text-transform: none;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.01em;
  padding: 24px 16px 22px;
}
body.editorial .primary-tab[aria-selected="true"] { color: var(--accent); }
body.editorial .secondary-chip {
  font-family: var(--sans);
}

body.editorial .panel-header h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px);
}
body.editorial .panel-header .eyebrow {
  font-family: var(--sans);
}

/* =========================================================================
   V2 HERITAGE CRAFT MODE
   Warmer, quieter, more crafted. Used on boys-v2.html + girls-v2.html.
   ========================================================================= */
body.heritage {
  background: var(--ivory);
}
body.heritage .site-header {
  background: rgba(248, 245, 239, 0.85);
}

/* Hero — quieter, no italic accent (already removed in V1 sharpening, but tweak hero-img layer) */
body.heritage .hero {
  border-bottom-color: rgba(184, 147, 90, 0.18);
}

/* Headline tracking — slightly looser, more crafted feel */
body.heritage h1, body.heritage h2, body.heritage h3 {
  letter-spacing: -0.005em;
}
body.heritage .hero-copy h1 {
  letter-spacing: -0.01em;
}

/* Eyebrows — italic serif (vs V1 uppercase sans) for heritage typography */
body.heritage .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 500;
}

/* Hero sub — looser, more storytelling */
body.heritage .hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* Buttons — heritage feel (less black, more inked) */
body.heritage .btn-primary {
  background: #2A1B0E;
}
body.heritage .btn-primary:hover { background: var(--accent-deep); }

/* Discovery nav — quieter heritage style */
body.heritage .discovery-nav {
  background: rgba(248, 245, 239, 0.94);
}
body.heritage .secondary-row {
  background: var(--ivory);
}
body.heritage .primary-tab {
  font-family: var(--serif);
  text-transform: none;
  font-size: 17px;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-style: normal;
}
body.heritage .primary-tab[aria-selected="true"] {
  color: var(--accent);
}
body.heritage .secondary-chip {
  font-family: var(--sans);
  font-weight: 500;
}

/* Panel header — heritage typography */
body.heritage .panel-header h2,
body.heritage .section-header h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.005em;
}

/* Ornament divider — subtle flourish between sections */
.ornament-divider {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 1em;
  font-family: var(--serif);
  line-height: 1;
}
.ornament-divider::before { content: '\2733'; }  /* ✳ */

/* Section variation in heritage: bigger gaps, paper feel */
body.heritage .section {
  padding: clamp(56px, 8vw, 96px) 0;
}
body.heritage .section.alt-bg {
  background: var(--ivory-2);
}

/* Craft block — heritage emphasis */
body.heritage .craft-text .signature {
  font-size: 24px;
  color: var(--accent-deep);
}

/* Newsletter — keep V1 default accent-soft */

/* Sticky tab elevation on scroll */
body.heritage .discovery-nav.is-pinned {
  box-shadow: 0 12px 32px -22px rgba(91,62,32,0.32);
}

/* Color-strip headlines italic for heritage */
body.heritage .color-card h4 {
  font-style: italic;
  font-weight: 500;
}

/* Subtle hairline on product media in heritage */
body.heritage .product-media {
  box-shadow: 0 1px 0 rgba(91, 62, 32, 0.06);
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
