/* ==========================================================================
   HOME — clean marketplace layout: promo banner, category grid, product rail
   ========================================================================== */

/* ---- Hero carousel ---- */
.hero-carousel{ position:relative; overflow:hidden; }
.hc-track{ display:flex; transition:transform 600ms var(--ease-soft); }
.hc-slide{ position:relative; min-width:100%; height:540px; display:flex; align-items:center; }
.hc-slide img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hc-slide::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg, rgba(23,23,23,.74) 0%, rgba(23,23,23,.4) 48%, rgba(23,23,23,.08) 100%);
}
.hc-slide-inner{ max-width:1400px; margin:0 auto; padding:0 32px; position:relative; z-index:2; width:100%; }
.hc-slide-copy{ max-width:480px; }
.hc-slide-copy .eyebrow{ color:var(--gold-soft); margin-bottom:18px; display:inline-flex; }
.hc-slide-copy .eyebrow::before{ background:var(--gold-soft); }
.hc-slide-copy h1{ color:var(--white); margin-bottom:22px; text-transform:none; font-size:clamp(1.9rem,4vw,3.2rem); }
.hc-slide-copy .lede{ color:rgba(255,255,255,.84); max-width:440px; margin-bottom:32px; }
.hero-actions{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.hero-actions .stitch-note{ font-family:var(--font-mono); font-size:.76rem; color:rgba(255,255,255,.7); font-weight:600; }

.hc-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.92); border:0;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink);
  box-shadow:var(--shadow-md); transition:background var(--t-fast) var(--ease-soft);
}
.hc-arrow:hover{ background:var(--white); }
.hc-arrow.prev{ left:20px; }
.hc-arrow.next{ right:20px; }
.hc-dots{ position:absolute; bottom:24px; left:50%; transform:translateX(-50%); z-index:3; display:flex; gap:8px; }
.hc-dot{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); border:0; padding:0; cursor:pointer; transition:width var(--t-med) var(--ease), background var(--t-fast) var(--ease-soft); }
.hc-dot.active{ background:var(--white); width:22px; border-radius:4px; }
@media (max-width:900px){
  .hc-slide{ height:460px; }
}
@media (max-width:520px){
  .hc-slide{ height:420px; }
  .hc-slide-copy{ max-width:100%; }
  .hc-arrow{ width:36px; height:36px; }
  .hc-arrow.prev{ left:12px; }
  .hc-arrow.next{ right:12px; }
}

/* ---- Shop by category: clean uniform grid ---- */
.age-section{ padding:88px 0; }
.age-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:44px; gap:24px; flex-wrap:wrap; }
.age-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:900px){ .age-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .age-grid{ grid-template-columns:1fr; } }
.age-card{
  position:relative; display:block; text-decoration:none; color:var(--ink);
  border-radius:var(--radius); overflow:hidden; aspect-ratio:3/4;
  border:1px solid var(--border-soft); box-shadow:var(--shadow-sm);
  transition:box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.age-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.age-card img{ width:100%; height:100%; object-fit:cover; transition:transform 500ms var(--ease-soft); }
.age-card:hover img{ transform:scale(1.05); }
.age-card::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(23,23,23,.75) 0%, rgba(23,23,23,.04) 55%);
}
.age-card .ac-label{ position:absolute; left:16px; bottom:16px; z-index:2; }
.age-card .ac-label .eyebrow.on-dark{ display:inline-flex; margin-bottom:6px; }
.age-card .ac-label h3{ color:var(--white); font-size:1.2rem; text-transform:none; }

/* ---- Featured rail: horizontal scroll-snap ---- */
.rail-section{ padding:0 0 88px; }
.rail-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:36px; gap:24px; flex-wrap:wrap; }
.rail{
  display:flex; gap:20px; overflow-x:auto; padding:4px 32px 20px; scroll-snap-type:x mandatory;
  margin:0 -32px;
  scrollbar-width:thin;
}
.rail::-webkit-scrollbar{ height:6px; }
.rail::-webkit-scrollbar-thumb{ background:var(--border); border-radius:3px; }
.rail .product-card{ min-width:260px; max-width:260px; scroll-snap-align:start; flex:none; }

/* ---- Founder split ---- */
.founder-split{ padding:88px 0; background:var(--cream-deep); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.founder-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; align-items:center; }
@media (max-width:900px){ .founder-grid{ grid-template-columns:1fr; gap:36px; } }
.founder-photo{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); }
.founder-photo img{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.founder-quote{ font-family:var(--font-display); font-weight:600; font-size:clamp(1.3rem,2.4vw,1.9rem); line-height:1.45; margin-bottom:24px; }
.founder-sign{ display:flex; align-items:center; gap:14px; }
.founder-sign img{ width:44px; height:44px; border-radius:50%; object-fit:cover; }
.founder-sign .fs-name{ font-weight:700; font-size:.94rem; }
.founder-sign .fs-role{ font-family:var(--font-mono); font-size:.7rem; color:var(--warm-gray); text-transform:uppercase; letter-spacing:.05em; font-weight:700; }

/* ---- Testimonial strip ---- */
.testimonial-section{ padding:88px 0; }
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width:800px){ .testi-grid{ grid-template-columns:1fr; } }
.testi-card{ padding:26px 24px; background:var(--white); border:1px solid var(--border-soft); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.testi-card p{ font-family:var(--font-body); font-size:1.02rem; line-height:1.6; font-weight:400; margin-bottom:18px; }
.testi-attr{ font-family:var(--font-mono); font-size:.74rem; text-transform:uppercase; letter-spacing:.04em; color:var(--gold); font-weight:700; }

/* ---- Newsletter band (dark, punctuation) ---- */
.newsletter-band{ background:var(--ink); color:var(--white); padding:76px 0; }
.newsletter-band .nb-grid{ display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap; }
.newsletter-band h2{ color:var(--white); max-width:440px; text-transform:none; }
.newsletter-band .lede{ color:rgba(255,255,255,.62); margin-top:14px; max-width:400px; }
.nb-form{ display:flex; gap:0; border-bottom:1.5px solid rgba(255,255,255,.3); min-width:340px; max-width:420px; flex:1; }
.nb-form input{
  flex:1; background:transparent; border:0; color:var(--white); font-family:var(--font-body);
  padding:12px 4px; font-size:1rem;
}
.nb-form input::placeholder{ color:rgba(255,255,255,.4); }
.nb-form button{
  background:none; border:0; color:var(--gold-soft); font-family:var(--font-mono); font-size:.76rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.06em; cursor:pointer; padding:12px 4px;
}
