/* ============ Mushrooms field guide ============ */

.guide {
  position: relative;
  z-index: 1; /* slides over the pinned hero's bloom */
  background: var(--paper);
  padding-block: var(--section) calc(var(--section) * 0.7);
}
.dive + .guide { padding-top: calc(var(--section) * 0.6); }
.guide__pin {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.guide__intro {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.guide__hint {
  display: none;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.guide__hint-arrow { display: inline-block; animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.guide__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.guide__viewport::-webkit-scrollbar { display: none; }
.guide__track {
  display: flex;
  gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  width: max-content;
  padding-inline: var(--gutter);
}

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(290px, 78vw, 400px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  isolation: isolate;
}
.plate__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--house-2);
}
/* The zoom uses `scale`, leaving `transform` to the scroll drift (a
   transition on the drift itself would trail behind the scroll). */
.plate__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  scale: 1.04;
  transition: scale 1.2s var(--ease-out);
}
.plate:hover .plate__photo img { scale: 1.1; }
/* Specialty: three photos side by side, each named. */
.plate__photo--trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--cream);
}
.plate__photo--trio figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--house-2);
}
.plate__photo--trio figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 0.25rem 0.55rem;
  background: linear-gradient(180deg, transparent, rgba(22, 20, 14, 0.72));
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
}

.plate__body {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}
.plate__no {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-text);
}
.plate__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--forest-ink);
}
.plate__latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 0.4rem;
}
.plate__body > p:not([class]) { color: var(--muted); font-size: 0.98rem; }
.plate__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.plate__meta > div { padding-top: 0.75rem; }
.plate__meta dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.plate__meta dd { font-size: 0.9rem; color: var(--ink); }
.plate .text-link { margin-top: 0.75rem; justify-self: start; }

.plate__sketch {
  position: absolute;
  right: -1.25rem; bottom: -1.5rem;
  width: 9rem; height: 9rem;
  color: var(--gold);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
/* Sourcing tag, pinned to the top-left of a product photo. */
.tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.tag svg { width: 1rem; height: 1rem; flex: none; color: var(--forest); }

/* Desktop with JS: pinned, horizontally scrubbed field guide */
@media (min-width: 900px) {
  .js .guide { padding-block: 0; }
  /* Everything here sizes off the viewport height too, so the pinned frame
     fits on a laptop screen without clipping the intro or the plates. */
  .js .guide__pin {
    grid-template-columns: minmax(320px, 32vw) minmax(0, 1fr);
    align-items: center;
    gap: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: clamp(4.5rem, 11vh, 6rem) clamp(1.5rem, 4vh, 3rem);
    overflow: hidden;
  }
  .js .guide__intro {
    width: auto;
    margin: 0;
    padding-inline: var(--gutter) 3rem;
    position: relative;
    z-index: 2;
    align-self: stretch;
    background: var(--paper);
  }
  .js .guide__intro .section-title { font-size: min(clamp(2.6rem, 1.4rem + 2.4vw, 4.4rem), 8vh); }
  .js .guide__intro .lead { font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem); }
  .js .plate__photo { aspect-ratio: auto; height: clamp(130px, 27vh, 280px); }
  .js .plate__body { gap: 0.5rem; padding: clamp(1rem, 2.6vh, 1.5rem) 1.5rem; }
  .js .plate__name { font-size: clamp(1.9rem, 1.3rem + 1vw, 2.6rem); }
  /* Plates slide under the intro column and fade out against its edge. */
  .js .guide__intro::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 4rem;
    background: linear-gradient(90deg, var(--paper), rgba(250, 247, 240, 0));
    pointer-events: none;
  }
  .js .guide__hint { display: block; }
  .js .guide__viewport { overflow: visible; min-width: 0; }
  .js .guide__track { padding-inline: 3rem var(--gutter); will-change: transform; } /* first plate clears the fade */
  /* Each photo drifts on its own layer, so the drift never repaints a plate. */
  .js .plate__photo img { will-change: transform; }
  .js .plate { width: clamp(320px, 27vw, 420px); }
}

/* ============ Produce bento ============ */

.produce {
  position: relative;
  z-index: 1; /* slides over the mushroom house's bloom */
  background: var(--paper);
  padding-block: var(--section);
}
.house + .produce { padding-top: calc(var(--section) * 0.6); }
.bento {
  display: grid;
  gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--house-2);
  aspect-ratio: 4 / 3;
  color: var(--cream);
  isolation: isolate;
}
.tile > img,
.tile__pair img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.tile:hover > img,
.tile:hover .tile__pair img { transform: scale(1.06); }
.tile__pair { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tile__pair img { position: relative; }
.tile__pair .tile__brand { object-position: 20% center; } /* keep the Capital box logo in frame */
/* On phones the logo would sit behind the caption at 4:3, so go taller. */
@media (max-width: 599px) {
  .tile--basil { aspect-ratio: 4 / 5; }
  .tile--basil .tile__pair { grid-template-columns: 3fr 2fr; }
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(22, 20, 14, 0.82));
  z-index: 0;
}
.tile__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem);
}
.tile__text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.05;
}
.tile__text p {
  max-width: 36ch;
  font-size: 0.95rem;
  color: rgba(244, 239, 227, 0.82);
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(220px, 18vw, 300px);
  }
  .tile { aspect-ratio: auto; }
  .tile--basil { grid-column: span 7; grid-row: span 2; }
  .tile--tomatoes { grid-column: span 5; grid-row: span 2; }
  .tile--herbs,
  .tile--peppers { grid-column: span 6; }
  .tile--micro { grid-column: span 5; grid-row: span 2; }
  .tile--squash { grid-column: span 7; grid-row: span 2; }
  .tile--basil .tile__text h3,
  .tile--tomatoes .tile__text h3 { font-size: var(--step-3); }
}

/* ============ And much more ============ */

.more {
  background: var(--cream);
  padding-block: var(--section);
}
.more__grid {
  display: grid;
  gap: 2.5rem;
}
.more__col h3 {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--forest);
}
.more__col ul { list-style: none; padding: 0; margin: 0; }
.more__col li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--forest-ink);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.more__strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 0.3rem + 0.6vw, 1rem);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.more__strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .more__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .more__strip { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Testimonials ============ */

.voices {
  background: var(--paper);
  padding-block: var(--section);
}
.voices__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
}
.quote {
  position: relative;
  padding-top: 3.5rem;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -1.5rem; left: -0.3rem;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: var(--gold);
}
.quote blockquote p {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest-ink);
  text-wrap: balance;
}
.quote figcaption {
  display: grid;
  gap: 0.15rem;
  margin-top: 1.75rem;
  padding-left: 3.5rem;
  position: relative;
}
.quote figcaption::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75rem;
  width: 2.5rem; height: 1px;
  background: var(--gold-deep);
}
.quote figcaption strong { font-weight: 600; color: var(--forest-ink); }
.quote figcaption span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 900px) {
  .voices__grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .quote:nth-child(2) { margin-top: 8rem; }
}

/* ============ Become a customer ============ */

.contact {
  position: relative;
  background: var(--house);
  color: var(--cream);
  padding-top: var(--section);
  overflow: hidden;
  isolation: isolate;
}
/* Gill texture: a radial fan of fine lines from below the section */
.contact::before {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 260vmax; height: 260vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(201, 177, 120, 0.07) 0deg 0.35deg, transparent 0.35deg 1.4deg);
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 30%, transparent 60%);
  mask-image: radial-gradient(circle, transparent 12%, #000 30%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.contact__inner {
  display: grid;
  gap: 4rem;
}
.contact__pitch { display: grid; gap: 1.5rem; align-content: start; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.75rem; }
.contact__call { color: rgba(244, 239, 227, 0.65); }
.contact__call a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 177, 120, 0.4); }

.steps {
  display: grid;
  gap: 0;
  align-content: start;
  border-top: 1px solid rgba(244, 239, 227, 0.12);
}
.steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(244, 239, 227, 0.12);
}
.steps__no {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--gold);
}
.steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.steps p { color: rgba(244, 239, 227, 0.7); font-size: 0.98rem; }
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1.1fr 1fr; gap: 6rem; }
}

.areas {
  margin-top: var(--section);
  background: var(--gold);
  color: var(--forest-ink);
  padding: 1.6rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2rem;
  text-align: center;
}
.areas__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.areas__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
}
.areas__list li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}
/* Too narrow for one line: the places go in two rows of three, or stack on
   phones, so no dot starts a line. */
@media (max-width: 1279px) {
  .areas { flex-direction: column; }
}
@media (min-width: 720px) and (max-width: 1279px) {
  .areas__list { display: grid; grid-template-columns: repeat(3, auto); gap: 0.3rem 2.25rem; }
}
@media (max-width: 719px) {
  .areas__list { flex-direction: column; align-items: center; }
}
@media (min-width: 1280px) {
  .areas__list li + li::before {
    content: "·";
    margin-inline: 0.75rem;
    color: var(--forest);
  }
}

.visit {
  display: grid;
  gap: 2rem;
  padding-block: var(--section);
}
.visit__card {
  display: grid;
  gap: 1rem;
  align-content: center;
  color: rgba(244, 239, 227, 0.8);
}
.visit__card a { color: var(--cream); text-decoration: none; }
.visit__card a:hover { color: var(--gold); }
.visit__card .text-link { color: var(--gold); justify-self: start; }
.visit__name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  color: var(--cream);
}
.visit__map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 239, 227, 0.12);
}
.visit__map iframe {
  width: 100%; height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.55) sepia(0.25) contrast(0.95);
}
@media (min-width: 900px) {
  .visit { grid-template-columns: 1fr 1.6fr; gap: 4rem; }
  .visit__map, .visit__map iframe { min-height: 420px; }
}
