/* ============================================================
   Omaskas Marketing Site — full styles
   Reads tokens from ./colors_and_type.css
   Mobile-first, with breakpoints at 768 (tablet) and 1024 (desktop).
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
body {
  background: var(--om-white);
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  color: var(--om-black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* Full-bleed strips (.collection-bar, .breaker-black) use 100vw, which
     includes the vertical scrollbar gutter and otherwise overflows the body
     by that gutter width. Clip the horizontal axis to suppress that. */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  /* Header is full-bleed, but its contents track the 1400/20px content rail */
  padding: 10px max(20px, calc((100% - 1360px) / 2));
  min-height: 60px;
  background: var(--om-nav-bg);
  backdrop-filter: var(--om-blur-nav);
  -webkit-backdrop-filter: var(--om-blur-nav);
}
.nav-side { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; min-width: 80px; }
.nav-side--right { justify-content: flex-end; }

.brand-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  pointer-events: auto;
}
.brand-img { height: 38px; width: auto; display: block; }

/* hamburger — each line is a div whose visible stroke is its TOP BORDER.
   border-top is the most aggressively pixel-snapped primitive in CSS, so
   all three lines render at the same device-pixel weight on any DPR. */
/* hamburger — SVG with crispEdges, integer-y rects */
.icon-menu {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 4px;
  color: var(--om-black);
  transition: opacity var(--om-d-fast);
}
.icon-menu svg { display: block; }
.icon-menu:hover { opacity: 0.5; }

/* search — circle ring + 45° tail */
.icon-search {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  color: var(--om-black);
  transition: opacity var(--om-d-fast);
}
.icon-search svg { display: block; }
.icon-search:hover { opacity: 0.5; }

/* account / bag — matched 18×18 1px-stroke */
.icon-svg {
  width: 18px; height: 18px;
  cursor: pointer;
  transition: opacity var(--om-d-fast);
  fill: none;
  stroke: var(--om-black);
  stroke-width: 1;
}
.icon-svg:hover { opacity: 0.5; }

/* ---------- SIDE MENU ---------- */
.dropdown-nav { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.dropdown-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--om-d-base);
  pointer-events: none;
}
.dropdown-panel {
  position: absolute; top: 0; left: 0;
  width: 280px; height: 100%;
  background: rgba(255, 255, 255, 1);
  transform: translateX(-100%);
  transition: transform var(--om-d-slow) var(--om-ease-out);
  padding: 80px 32px 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--om-hairline-soft);
}
.dropdown-nav.open { pointer-events: all; }
.dropdown-nav.open .dropdown-overlay { background: var(--om-overlay-dark); pointer-events: all; }
.dropdown-nav.open .dropdown-panel { transform: translateX(0); }

.menu-close {
  position: absolute; top: 22px; left: 24px;
  cursor: pointer;
  font-size: 20px; line-height: 1;
  font-weight: var(--om-w-thin);
  color: var(--om-black);
  transition: opacity var(--om-d-fast);
  font-family: var(--om-sans);
}
.menu-close:hover { opacity: 0.5; }

.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--om-hairline);
  cursor: pointer;
  font-family: var(--om-sans);
  font-size: 11px;
  letter-spacing: var(--om-track-wider);
  text-transform: uppercase;
  color: var(--om-black);
  transition: opacity var(--om-d-fast);
  user-select: none;
}
.menu-item:hover { opacity: 0.5; }
.menu-item .chevron { font-size: 10px; transition: transform 0.25s; }
.menu-item.active .chevron { transform: rotate(90deg); }

.submenu { overflow: hidden; max-height: 0; transition: max-height var(--om-d-base) ease; }
.submenu.open { max-height: 240px; }
.submenu a {
  display: block;
  cursor: pointer;
  padding: 11px 0 11px 16px;
  font-family: var(--om-sans);
  font-size: 10px;
  letter-spacing: var(--om-track-wide);
  text-transform: uppercase;
  color: var(--om-mid);
  transition: color var(--om-d-fast);
}
.submenu a:hover { color: var(--om-black); }

/* ---------- SEARCH BAR ---------- */
.search-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 190;
  background: var(--om-white);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--om-d-base) ease, padding var(--om-d-base) ease;
}
.search-bar.open { max-height: 70px; padding: 14px 0; border-bottom: 1px solid var(--om-rule); }
.search-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.search-bar input {
  width: 100%;
  border: 0; outline: 0;
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--om-black);
  background: transparent;
}
.search-bar input::placeholder {
  color: var(--om-mid);
  letter-spacing: var(--om-track-wide);
  text-transform: uppercase;
  font-size: 10px;
}

/* ---------- PAGES ---------- */
.page {
  display: flex; flex-direction: column;
  min-height: 100vh;
  /* Capped content container: 1400 max, 20px gutters → 1360 content max */
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 18px;
  box-sizing: border-box;
}

/* ---------- HOME ---------- */
/* The .page container forces min-height:100vh so short content pages
   don't leave the fixed footer overlapping content. On the homepage the
   hero + black collection bar finish before the viewport fills, so that
   guarantee shows up as empty space below the bar — drop it here. */
body.home .page { min-height: 0; padding-bottom: 0; }

.hero { padding-top: 60px; padding-bottom: 70px; display: flex; flex-direction: column; }
.hero-image-wrap {
  margin: 16px 0 0;
  overflow: hidden;
  display: block;
  opacity: 0;
  animation: omFadeUp var(--om-d-fade) var(--om-ease-out) 0.2s forwards;
}
.hero-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
/* Optional hero video (takes precedence over the still photo, per viewport).
   Hidden until pieces.js confirms a source exists for the current breakpoint;
   when active, it replaces the photo. */
.hero-video {
  display: none;
  width: 100%;
  height: auto;
}
.hero-image-wrap.hero-video-active .hero-video { display: block; }
.hero-image-wrap.hero-video-active .hero-photo { display: none; }
.hero-caption {
  padding: 18px 0 0;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 16px;
  opacity: 0;
  animation: omFadeUp var(--om-d-fade) var(--om-ease-out) 0.8s forwards;
}
.hero-caption-left {
  font-family: var(--om-serif);
  font-style: italic;
  font-weight: var(--om-w-light);
  font-size: 13px;
  color: var(--om-mid);
  letter-spacing: var(--om-track-normal);
}
.hero-caption-right {
  font-family: var(--om-sans);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--om-mid);
  cursor: pointer;
  border-bottom: 1px solid var(--om-gold);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: opacity var(--om-d-fast);
}
.hero-caption-right:hover { opacity: 0.6; }

/* Home hero — full-screen, edge-to-edge campaign image (all viewports).
   The photograph bleeds out of the .page 20px gutters and fills the
   viewport, sliding up behind a now-transparent header (white wordmark +
   icons) with the caption overlaid along its bottom edge. */
body.home .nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* logo PNGs are black-on-transparent — invert to white over the photo */
body.home .nav .brand-img { filter: brightness(0) invert(1); }
body.home .nav .icon-menu,
body.home .nav .icon-search { color: var(--om-white); }
body.home .nav .icon-svg { stroke: var(--om-white); }

body.home .hero { position: relative; padding-top: 0; padding-bottom: 0; }
body.home .hero-image-wrap {
  margin: 0;
  /* full-bleed: break out of the 1400/20px content rail */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100svh;
}
/* <picture> is inline by default, so it collapses to the image's intrinsic
   size and never establishes the full-bleed containing block. Force it to
   fill the wrapper so the img's object-fit:cover covers the whole viewport
   (edge-to-edge) instead of only fitting by height. */
body.home .hero-image-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
body.home .hero-image-wrap img {
  width: 100%;
  height: 100%;
  /* override desktop's max-height/width/auto rules so the img fills the
     full-bleed wrapper instead of letterboxing inside it */
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
}
/* The video fills the full-bleed wrapper exactly like the campaign photo. */
body.home .hero-image-wrap .hero-video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
}

body.home .hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  /* clear the fixed ~38px site-footer + the fixed ~40px collection-bar
     overlay at the viewport bottom */
  padding: 0 0 92px;
  align-items: flex-end;
}
body.home .hero-caption-left,
body.home .hero-caption-right { color: var(--om-white); }

/* Home: collection-bar floats over the hero image instead of sitting
   below it. Pinned just above the white site-footer at the viewport
   bottom, with a translucent black wash so the photo reads through. */
body.home .collection-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 38px;
  /* fixed to the viewport, so drop the base rule's full-bleed 100vw (which
     includes the scrollbar gutter and would overhang the right edge under
     the scrollbar). left/right:0 already span the visible viewport. */
  width: auto;
  margin-left: 0;
  margin-right: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 40;
}

.collection-bar {
  background: var(--om-black); color: var(--om-white);
  text-align: center;
  /* full-bleed: break out of the 1400/20px container */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 13px 20px;
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 8.5px;
  letter-spacing: var(--om-track-mega);
  text-transform: uppercase;
}

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--om-rule);
  border-bottom: 1px solid var(--om-rule);
  padding: 9px 0;
}
.marquee {
  display: flex; gap: 56px;
  animation: omMarquee 18s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee span {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 8.5px;
  letter-spacing: var(--om-track-widest);
  text-transform: uppercase;
  color: var(--om-mid);
}
.marquee span.dot {
  color: var(--om-gold);
  font-size: 13px;
  line-height: 1;
}

/* ---------- SHOP ---------- */
.shop-page { padding-top: 60px; padding-bottom: 0; padding-left: 0; padding-right: 0; min-height: 100vh; background: var(--om-white); }
.shop-filter-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--om-rule);
}
.shop-eyebrow {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 9px;
  letter-spacing: var(--om-track-eyebrow);
  text-transform: uppercase;
  color: var(--om-mid);
}
.filter-icon { display: inline-flex; flex-direction: column; gap: 3px; }
.filter-icon span { display: block; height: 1px; background: var(--om-black); }
.filter-icon span:nth-child(1) { width: 16px; }
.filter-icon span:nth-child(2) { width: 11px; margin-left: 3px; }
.filter-icon span:nth-child(3) { width: 7px;  margin-left: 6px; }
.filter-label {
  font-family: var(--om-sans);
  font-size: 10px;
  letter-spacing: var(--om-track-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--om-d-fast);
}
.filter-label:hover { opacity: 0.6; }

.campaign-link {
  font-family: var(--om-sans);
  font-size: 10px;
  letter-spacing: var(--om-track-wider);
  text-transform: uppercase;
  color: var(--om-black);
  border-bottom: 1px solid var(--om-gold);
  padding-bottom: 2px;
}

/* PRODUCT GRID — 2-1-2-1-2 mobile rhythm via grid + auto-flow row spans */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  /* Hairlines are drawn per-card via box-shadow (below), not by a grid
     background, so empty cells at the end of partial rows stay white
     instead of showing a gray fill. */
  margin: 1px 0 25px;
}
.product-card {
  background: var(--om-white);
  cursor: pointer;
}
.product-card.full { grid-column: 1 / -1; }
.product-card .media {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--om-bone);
  overflow: hidden;
  position: relative;
}
.product-card.full .media { aspect-ratio: 4/5; }
.product-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}
.product-info { display: block; padding: 12px 14px 14px; }
.product-name {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 11px;
  letter-spacing: var(--om-track-tight);
  color: var(--om-black);
  margin-bottom: 6px;
}
.product-price {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 11px;
  letter-spacing: var(--om-track-tight);
  color: var(--om-black);
  display: flex; align-items: center; gap: 10px;
}
.badge-reserved {
  font-size: 9px;
  letter-spacing: var(--om-track-wider);
  text-transform: uppercase;
  color: var(--om-mid);
  border: 0.5px solid var(--om-stone);
  padding: 2px 7px;
}

/* CAROUSEL */
.carousel { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--om-bone); }
.product-card.full .carousel { aspect-ratio: 4/5; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform var(--om-d-slow) var(--om-ease-out); }
.carousel-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.carousel-dot.active { background: rgba(255,255,255,1); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--om-white);
  background: rgba(0,0,0,0.25);
  border: 0;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--om-d-base), background var(--om-d-fast);
}
.carousel-arrow svg { display: block; }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-arrow:hover { background: rgba(0,0,0,0.45); }
/* Show on hover (desktop only); hidden entirely on mobile. */
.product-card:hover .carousel-arrow { opacity: 1; }
@media (max-width: 767px) {
  .carousel-arrow { display: none; }
}

/* ---------- CONTENT PAGES (About / Mission / Contact / Social) ---------- */
/* Body already provides the 20px horizontal gutter on content pages — don't
   stack the .page 20px on top of it. (.page padding still applies to other
   page types like home/shop where the 40px combined gutter is intended.) */
.content-page { padding-top: 60px; padding-left: 0; padding-right: 0; background: var(--om-white); }
.content-photo { width: 100%; overflow: hidden; max-width: 900px; margin-left: auto; margin-right: auto; }
.content-photo img { width: 100%; display: block; object-fit: cover; max-height: 60vh; }

.breaker-black {
  background: var(--om-black);
  /* full-bleed: edge-to-edge regardless of page max-width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 52px 32px 44px;
  text-align: center;
}
.breaker-eyebrow {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 9px;
  letter-spacing: var(--om-track-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.breaker-title {
  font-family: var(--om-serif);
  font-style: italic;
  font-weight: var(--om-w-light);
  font-size: 22px;
  color: var(--om-white);
  line-height: 1.4;
  letter-spacing: var(--om-track-snug);
  text-wrap: pretty;
}

.editorial {
  max-width: 600px;
  margin: 0 auto;
  padding: 52px 8px 60px;
  text-align: center;
}
.editorial.narrow { max-width: 500px; }
.editorial h2 {
  font-family: var(--om-serif);
  font-weight: var(--om-w-regular);
  font-size: 16px;
  color: var(--om-black);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.editorial p {
  font-family: var(--om-serif);
  font-weight: var(--om-w-regular);
  font-size: 15px;
  line-height: 1.5;
  color: var(--om-ink);
  margin-bottom: 14px;
  letter-spacing: var(--om-track-tight);
  text-wrap: pretty;
}
.editorial p.first { color: var(--om-black); }
.editorial p.italic { font-style: italic; margin-top: 0; margin-bottom: 14px; }
.editorial p em { font-style: italic; }
.editorial p.lead { color: var(--om-black); margin-bottom: 14px; }
.editorial p.italic-quote {
  font-style: italic;
  margin-top: 28px;
  margin-bottom: 36px;
  text-align: center;
}
.about-editorial { padding-top: 48px; padding-bottom: 0; }
.contact-editorial { text-align: center; }
.contact-editorial p { margin-bottom: 24px; }

.contact-block { text-align: center; margin-bottom: 36px; }
.contact-label {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--om-stone);
  margin-bottom: 10px;
}
.contact-value {
  font-family: var(--om-serif);
  font-size: 16px;
  color: var(--om-black);
}
.social-list-centered {
  display: flex; flex-direction: column; gap: 24px;
  text-align: center;
}
.social-list-centered a { display: block; text-decoration: none; }
.editorial .gold-rule.short { margin: 0 auto; }

.editorial .gold-rule {
  width: 32px; height: 1px; background: var(--om-gold);
  margin: 40px auto;
  border: 0;
}

.three-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 72px;
  text-align: center;
}
.three-pillars .pillar p {
  font-family: var(--om-serif);
  font-size: 17px;
  color: var(--om-black);
  margin-bottom: 6px;
}
.three-pillars .pillar .small {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 8px;
  letter-spacing: var(--om-track-widest);
  text-transform: uppercase;
  color: var(--om-mid);
  margin: 0;
}

.kv-block { margin-bottom: 36px; }
.kv-block .label {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 9px;
  letter-spacing: var(--om-track-widest);
  text-transform: uppercase;
  color: var(--om-mid);
  margin-bottom: 10px;
}
.kv-block .value {
  font-family: var(--om-serif);
  font-size: 16px;
  color: var(--om-black);
}

.social-list { display: flex; flex-direction: column; gap: 24px; }
.social-list a { display: block; }
.social-list .label {
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--om-mid);
  margin-bottom: 6px;
}
.social-list .handle {
  font-family: var(--om-serif);
  font-size: 17px;
  color: var(--om-black);
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--om-white);
  text-align: center;
  padding: 12px 20px;
  font-family: var(--om-sans);
  font-weight: var(--om-w-light);
  font-size: 9px;
  letter-spacing: var(--om-track-widest);
  text-transform: uppercase;
  color: var(--om-mid);
  z-index: 50;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: var(--om-overlay-deep);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: var(--om-white);
  font-size: 28px;
  font-weight: var(--om-w-thin);
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  font-family: var(--om-sans);
  transition: opacity var(--om-d-fast);
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--om-white);
  font-size: 40px;
  font-weight: var(--om-w-thin);
  cursor: pointer;
  padding: 12px 16px;
  transition: opacity var(--om-d-fast);
  font-family: var(--om-serif);
}
.lightbox-arrow:hover { opacity: 0.7; }
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }

/* ---------- ANIMATIONS ---------- */
@keyframes omFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes omFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes omMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Soft fade-in for content pages (About / Mission / Contact) and product
   listings — replaces the abrupt "just appears" load with a gentle reveal.
   The homepage hero keeps its own omFadeUp animation. */
.content-page .content-photo,
.content-page .editorial,
.product-card {
  opacity: 0;
  animation: omFadeIn var(--om-d-fade) var(--om-ease-out) forwards;
}
.content-page .content-photo { animation-delay: 0.05s; }
.content-page .editorial     { animation-delay: 0.25s; }

/* Stagger product cards so the grid blooms in rather than flashing at once.
   First ~9 cards are individually delayed; the rest share the final delay. */
.product-card               { animation-delay: 0.40s; }
.product-card:nth-child(1)  { animation-delay: 0.05s; }
.product-card:nth-child(2)  { animation-delay: 0.10s; }
.product-card:nth-child(3)  { animation-delay: 0.15s; }
.product-card:nth-child(4)  { animation-delay: 0.20s; }
.product-card:nth-child(5)  { animation-delay: 0.25s; }
.product-card:nth-child(6)  { animation-delay: 0.30s; }
.product-card:nth-child(7)  { animation-delay: 0.35s; }
.product-card:nth-child(8)  { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .content-page .content-photo,
  .content-page .editorial,
  .product-card {
    animation: none;
    opacity: 1;
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tiny phones — shrink the logo to never touch the right-side icons */
@media (max-width: 379px) {
  .brand-img { height: 32px; }
}

@media (min-width: 480px) {
  .brand-img { height: 40px; }
}

@media (min-width: 768px) {
  .nav { min-height: 64px; }
  .brand-img { height: 42px; }
  .nav-side { gap: 22px; min-width: 120px; }
  .dropdown-panel { width: 360px; padding: 100px 48px 48px; }
  .search-bar { top: 64px; }

  .hero { padding-top: 64px; }
  .hero-image-wrap img { max-height: calc(100vh - 240px); object-fit: contain; width: auto; max-width: 100%; margin: 0 auto; }
  .hero-image-wrap { display: flex; justify-content: center; }
  .hero-caption-left { font-size: 14px; }

  /* Content pages (About / Mission / Contact) cap the hero photo at 900px;
     pull the fixed nav's side groups in to align with those edges. */
  body:has(.content-photo) .nav {
    padding-left: max(20px, calc((100% - 900px) / 2));
    padding-right: max(20px, calc((100% - 900px) / 2));
  }
  /* Home: nav side groups and the hero caption row align to a tighter 575px
     rail centered on the full-bleed campaign photo. */
  body.home .nav {
    padding-left: max(20px, calc((100% - 575px) / 2));
    padding-right: max(20px, calc((100% - 575px) / 2));
  }
  body.home .hero-caption {
    max-width: 575px;
    margin-left: auto;
    margin-right: auto;
  }

  .shop-page { padding-top: 64px; }
  .product-grid {
    grid-template-columns: 1fr 1fr 1fr;
    margin: 1px 0 25px;
  }
  /* On tablet+, the "full" mobile-rhythm card becomes a regular tile */
  .product-card.full { grid-column: auto; }
  .product-card.full .media { aspect-ratio: 3/4; }
  .product-card.full .carousel { aspect-ratio: 3/4; }

  .content-page { padding-top: 64px; }
  .editorial { padding: 64px 8px 80px; }
  .breaker-black { padding: 80px 32px 64px; }
  .editorial p { font-size: 16px; }
  .editorial h2 { font-size: 18px; margin-bottom: 44px; }
}

@media (min-width: 1024px) {
  .nav { min-height: 68px; }
  .brand-img { height: 45px; }
  .search-bar { top: 68px; }
  .hero { padding-top: 68px; }
  .hero-image-wrap img { max-height: calc(100vh - 260px); object-fit: contain; width: auto; max-width: 100%; }
  .shop-page { padding-top: 68px; }
  /* Desktop gallery rhythm: alternate rows of 2 and 3 tiles. The grid uses
     6 columns; a repeating 5-card cycle takes the first two cards at 3
     columns each (2-up row), then the next three at 2 columns each (3-up
     row). Overrides the 768+ uniform 3-up rule. */
  .product-grid {
    gap: 1px;
    grid-template-columns: repeat(6, 1fr);
  }
  .product-grid > .product-card { grid-column: span 2; }
  .product-grid > .product-card:nth-child(5n+1),
  .product-grid > .product-card:nth-child(5n+2) { grid-column: span 3; }
  .content-page { padding-top: 68px; }
  .editorial { padding: 80px 8px 96px; }
}
