/* ============================================================
   Page-specific styles
   ============================================================ */

/* ============================================================
   HERO — Variant A: warm cream "card on color" with type stack
   ============================================================ */
.hero {
  position: relative;
  padding: 3rem 0 5rem;
}
.hero-band {
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  color: var(--ink);
  position: relative;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: .85;
}
.hero-eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: currentColor;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-deep);
  display: inline-block;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 38ch;
  opacity: .9;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: .5rem;
}
.hero-band .btn-primary { background: var(--ink); color: var(--bg); }
.hero-band .btn-primary:hover { background: var(--accent-deep); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: .5rem;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: .8;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  box-shadow: var(--shadow);
}
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-figure-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-figure-tag .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.65 0.18 25);
  position: relative;
}
.hero-figure-tag .pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid oklch(0.65 0.18 25);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  margin: 0 0 5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-deep) 40%, var(--bg));
  overflow: hidden;
  padding: 1.5rem 0;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-item .star {
  width: 16px; height: 16px;
  color: var(--accent);
}
.marquee-item .price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  font-style: normal;
  color: var(--ink-soft);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.section-products { padding: 4rem var(--gutter); }

/* ============================================================
   INGREDIENTS / SOURCING
   ============================================================ */
.sourcing {
  padding: 5rem 0;
  background: var(--bg-deep);
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sourcing-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}
.sourcing-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: .5rem 0 0;
}
.sourcing-head h2 em { font-style: normal; color: var(--accent-deep); font-weight: 500; }
.sourcing-head p { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); margin: 0; max-width: 46ch; }

.sourcing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ing-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .35s, border-color .35s;
}
.ing-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.ing-card .ing-img {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
}
.ing-card .ing-img .ph { border-radius: 10px; height: 100%; }
.ing-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.ing-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: -4px 0 0;
}
.ing-card p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.ing-origin {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: auto;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 5rem var(--gutter); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.faq-side {
  position: sticky;
  top: 100px;
}
.faq-side .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.faq-side h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: .5rem 0 1.25rem;
}
.faq-side h2 em { font-style: normal; color: var(--accent-deep); font-weight: 500; }
.faq-side p { color: var(--ink-soft); line-height: 1.8; max-width: 36ch; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item .toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background-color .25s, color .25s, transform .25s, border-color .25s;
}
.faq-item .toggle svg { width: 12px; height: 12px; transition: transform .25s; }
.faq-item[open] .toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-item[open] .toggle svg { transform: rotate(45deg); }
.faq-body {
  padding: 0 0 1.75rem;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 56ch;
  font-size: 15px;
}

/* ============================================================
   ABOUT page
   ============================================================ */
.about-hero {
  padding: 4rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: end;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 1rem 0 0;
}
.about-hero h1 em { font-style: normal; color: var(--accent-deep); font-weight: 500; }
.about-hero .lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 44ch;
}
.about-hero .lede strong { color: var(--ink); font-weight: 500; }

.about-feature-img {
  height: 60vh;
  min-height: 420px;
  border-radius: var(--radius-lg);
  margin: 4rem 0 5rem;
  overflow: hidden;
  position: relative;
}
.about-feature-img .ph { border-radius: var(--radius-lg); height: 100%; }
.about-feature-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.about-caption {
  position: absolute;
  left: 24px; bottom: 24px;
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  padding: 4rem var(--gutter);
  align-items: start;
}
.about-story-grid .stick { position: sticky; top: 100px; }
.about-story-grid h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: .5rem 0 0;
}
.about-story-grid h2 em { font-style: normal; color: var(--accent-deep); font-weight: 500; }
.about-story-grid .body p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.about-story-grid .body p:first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  float: left;
  line-height: .85;
  margin: 6px 12px 0 0;
  color: var(--accent-deep);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}
.pillar {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: .5rem 0;
}
.pillar p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin: 0; }

.about-team-section { padding: 4rem var(--gutter) 5rem; }

.team-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 1rem;
}
.team-mosaic .tile {
  border-radius: var(--radius);
  overflow: hidden;
}
.team-mosaic .tile .ph { border-radius: var(--radius); height: 100%; width: 100%; }

.team-mosaic .t1 { grid-column: span 4; grid-row: span 4; }
.team-mosaic .t2 { grid-column: span 4; grid-row: span 3; }
.team-mosaic .t3 { grid-column: span 4; grid-row: span 4; }
.team-mosaic .t4 { grid-column: span 4; grid-row: span 3; }
.team-mosaic .t5 { grid-column: span 4; grid-row: span 4; }
.team-mosaic .t6 { grid-column: span 4; grid-row: span 3; }

.timeline {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 3.5rem;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.tl-item { position: relative; padding-top: 4.5rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: calc(3.5rem - 5px);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.tl-item .tl-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
}
.tl-item h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}
.tl-item p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-hero {
  padding: 3rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
}
.products-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0.5rem 0 0;
}
.products-hero h1 em { font-style: normal; color: var(--accent-deep); font-weight: 500; }
.products-hero .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.products-hero .lede {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 48ch;
}

/* filter tabs */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 2rem;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-radio { position: absolute; opacity: 0; pointer-events: none; }
.filter-tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter-tabs .tab .count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: .6;
}
.filter-tabs .tab:hover { border-color: var(--ink); }

#filter-all:checked    ~ .filter-bar .filter-tabs .tab[for="filter-all"],
#filter-bread:checked  ~ .filter-bar .filter-tabs .tab[for="filter-bread"],
#filter-sweets:checked ~ .filter-bar .filter-tabs .tab[for="filter-sweets"],
#filter-other:checked  ~ .filter-bar .filter-tabs .tab[for="filter-other"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

#filter-bread:checked  ~ .product-grid .product-card:not([data-category="bread"]),
#filter-sweets:checked ~ .product-grid .product-card:not([data-category="sweets"]),
#filter-other:checked  ~ .product-grid .product-card:not([data-category="other"]) {
  display: none;
}

.sort-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}

/* ============================================================
   RWD overrides for page styles
   ============================================================ */
@media (max-width: 980px) {
  .hero-band { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .hero-figure { min-height: 0; }
  .sourcing-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .sourcing-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq-side { position: static; }
  .about-hero { grid-template-columns: 1fr; gap: 1rem; }
  .about-feature-img { height: 50vh; }
  .about-story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-story-grid .stick { position: static; }
  .about-pillars { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .tl-item { padding-top: 0; padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .tl-item::before { left: -6px; top: 4px; }
  .team-mosaic { grid-auto-rows: 70px; }
  .team-mosaic .t1, .team-mosaic .t3, .team-mosaic .t5 { grid-column: span 6; grid-row: span 4; }
  .team-mosaic .t2, .team-mosaic .t4, .team-mosaic .t6 { grid-column: span 6; grid-row: span 3; }
  .products-hero { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 640px) {
  /* Page-level rhythm: more breathing room on phones */
  .about-hero { padding: 2.5rem var(--gutter) 1.5rem; gap: 1.25rem; }
  .about-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.15; }
  .about-hero .lede { font-size: 1rem; line-height: 1.85; }

  .hero-band { padding: 1.5rem; border-radius: var(--radius); }
  .hero-band h1 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.18; }
  .hero-stats { gap: 1.25rem; }

  /* Story body — give the drop-cap and prose more left space */
  .about-story-grid { padding: 2rem var(--gutter) 3rem; gap: 1.5rem; }
  .about-story-grid h2 { font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.18; }
  .about-story-grid .body p { font-size: 1rem; line-height: 1.95; }
  .about-story-grid .body p:first-letter {
    font-size: 2.4rem;
    margin: 4px 14px 0 0;
  }

  /* FAQ — tighter and more comfortable */
  .faq-section { padding: 2.5rem var(--gutter) 3.5rem; }
  .faq-side h2 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.15; }
  .faq-side p { font-size: 0.95rem; }
  .faq-q {
    padding: 1.1rem 3rem 1.1rem 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .faq-a { padding: 0 3rem 1.25rem 0; font-size: 0.92rem; line-height: 1.85; }
  .faq-toggle { right: 0; }

  /* Mosaic — adjust row height so tiles feel more proportional */
  .team-mosaic { grid-auto-rows: 60px; gap: 0.65rem; }

  /* Sourcing grid — single column on tight phones is more legible */
  .sourcing-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Section heads */
  .section-products { padding-top: 3rem; padding-bottom: 3rem; }

  /* Timeline single column */
  .timeline { grid-template-columns: 1fr; }

  /* About pillars: extra mobile padding */
  .about-pillars { margin: 1.5rem 0 3rem; gap: 1.25rem; }

  /* Products page hero text */
  .products-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.15; }
}
