/* =========================================================================
   Jay Jay Mills — Babywear page
   =========================================================================
   The Babywear page reuses the shared system wherever it can (.product-world,
   .standards, .quality, .partnership, .contact) so it stays in lockstep with
   the rest of the site. Only the hero is unique to this page, and it follows
   the same construction as the Home and Capabilities heroes: full-viewport
   media, parallax layer, wash, grid overlay, scan line, vertical rail and
   corner code block.
   ====================================================================== */

.babywear-page .desktop-nav a.active::after { right: 0; background: #c8ff38; }

.baby-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #06162f;
}

.baby-hero-media,
.baby-hero-wash,
.baby-hero-grid { position: absolute; inset: 0; }

.baby-hero-media { transform: scale(1.04); }
.baby-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.baby-hero-wash {
  background:
    linear-gradient(90deg, rgba(6,22,47,.93) 0%, rgba(6,22,47,.7) 40%, rgba(6,22,47,.06) 76%),
    linear-gradient(0deg, rgba(6,22,47,.8), transparent 50%);
}
.baby-hero-grid {
  background-image: linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000 0%, #000 52%, transparent 84%);
}

.baby-hero-content {
  position: relative;
  z-index: 3;
  width: min(880px, 66vw);
  padding: 148px 0 88px var(--pad);
}
.baby-hero .eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 48px; font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.baby-hero .eyebrow span { width: 28px; height: 2px; background: #c8ff38; }
.baby-hero h1 { margin: 0; font: 400 clamp(80px, 9.1vw, 150px)/.78 Manrope, sans-serif; letter-spacing: -.085em; }
.baby-hero h1 em { color: transparent; font-family: Georgia, serif; font-weight: 400; -webkit-text-stroke: 1px #c8ff38; }
.baby-hero-bottom { display: grid; grid-template-columns: 1fr auto; gap: 55px; max-width: 720px; margin-top: 68px; align-items: end; }
.baby-hero-bottom p { max-width: 480px; margin: 0; color: rgba(255,255,255,.63); font-size: 14px; line-height: 1.7; }
.baby-hero-bottom a { padding-bottom: 8px; border-bottom: 1px solid #c8ff38; font-size: 9px; letter-spacing: .18em; white-space: nowrap; }
.baby-hero-bottom a span { margin-left: 18px; }
.baby-hero-vertical { position: absolute; z-index: 3; right: 18px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); color: rgba(255,255,255,.52); font-size: 8px; letter-spacing: .24em; }
.baby-hero-code { position: absolute; z-index: 3; right: var(--pad); bottom: 58px; color: rgba(255,255,255,.42); font: 8px/1.8 monospace; letter-spacing: .12em; text-align: right; }
.baby-scan { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg,transparent,#c8ff38,transparent); opacity: .45; animation: babyscan 6s linear infinite; }
@keyframes babyscan { from { transform: translateY(0); } to { transform: translateY(100vh); } }

/* -------------------------------------------------------------------------
   Category rail — the one structural element unique to this page.
   The numbering is real here: it maps to the four babywear categories in the
   order a buyer's range is normally built.
   ---------------------------------------------------------------------- */
.baby-rail { max-width: var(--max); margin: auto; }
.baby-rail-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.baby-rail-head .display { margin-top: 40px; }
.baby-rail-head > p { color: #667276; line-height: 1.75; }
.baby-rail-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 85px; border-top: 1px solid var(--line); }
.baby-rail-grid article { min-height: 290px; padding: 38px 32px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.baby-rail-grid article:first-child { border-left: 1px solid var(--line); }
.baby-rail-grid article:hover { background: var(--ivory); }
.baby-rail-grid span { display: block; color: var(--coral); font: 600 10px/1 Manrope, sans-serif; letter-spacing: .2em; }
.baby-rail-grid h3 { margin: 58px 0 14px; font: 400 24px/1.15 Manrope, sans-serif; letter-spacing: -.04em; }
.baby-rail-grid p { margin: 0; color: #667276; font-size: 14px; line-height: 1.7; }

@media (max-width: 1100px) {
  .baby-rail-head { grid-template-columns: 1fr; gap: 40px; }
  .baby-rail-grid { grid-template-columns: repeat(2, 1fr); margin-top: 65px; }
  .baby-rail-grid article:nth-child(odd) { border-left: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .baby-hero { min-height: 880px; align-items: end; }
  .baby-hero-media img { object-position: 66% center; }
  .baby-hero-wash { background: linear-gradient(0deg, rgba(6,22,47,.98) 0%, rgba(6,22,47,.78) 57%, rgba(6,22,47,.12) 100%); }
  .baby-hero-grid { mask-image: linear-gradient(0deg,#000,transparent 82%); }
  .baby-hero-content { width: 100%; padding: 150px var(--pad) 100px; }
  .baby-hero .eyebrow { margin-bottom: 36px; }
  .baby-hero h1 { font-size: clamp(66px, 20vw, 92px); }
  .baby-hero-bottom { grid-template-columns: 1fr; gap: 30px; margin-top: 48px; }
  .baby-hero-bottom a { width: max-content; }
  .baby-hero-code { display: none; }
  .baby-hero-vertical { right: 8px; }
  .baby-rail-grid { grid-template-columns: 1fr; }
  .baby-rail-grid article,
  .baby-rail-grid article:first-child { border-left: 0; border-right: 0; }
  .baby-rail-grid h3 { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .baby-scan { display: none; }
}
