/* Entry structure: reveal the shopping routes and trust details after the
   farm-story copy has finished, then keep the closing block aligned. */
.intro-quick-links {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .52s .9s cubic-bezier(.16, 1, .3, 1), transform .52s .9s cubic-bezier(.16, 1, .3, 1);
}

.intro-page.is-copy-done .intro-quick-links,
.intro-page.is-copy-done .intro-business-line {
  opacity: 1;
  transform: translateY(0);
}

/* Every closing element gets its own turn instead of appearing as one block. */
.intro-steps { transition-delay: 2.55s; transition-duration: .55s; }
.intro-page.is-copy-done .intro-step { animation-duration: .5s; }
.intro-page.is-copy-done .intro-step:nth-child(1) { animation-delay: 2.75s; }
.intro-page.is-copy-done .intro-step:nth-child(2) { animation-delay: 2.95s; }
.intro-page.is-copy-done .intro-step:nth-child(3) { animation-delay: 3.15s; }

/* The photo follows the completed copy, then the closing details continue. */
.intro-visual {
  opacity: 0;
  animation-duration: .86s;
  animation-play-state: paused;
}

.intro-page.is-visual-ready .intro-visual {
  opacity: 1;
  animation-play-state: running;
}

.intro-quick-link {
  min-width: 0;
  opacity: 0;
  transform: translateY(10px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 61px;
  padding: 8px 11px 8px 8px;
  border: 1px solid rgba(47, 109, 75, .16);
  border-radius: 15px;
  color: #1d542f;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 9px 18px rgba(38, 89, 49, .07), inset 0 1px 0 rgba(255, 255, 255, .92);
  text-align: left;
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.intro-page.is-copy-done .intro-quick-link { opacity: 1; transform: translateY(0); }
.intro-page.is-copy-done .intro-quick-link:nth-child(1) { transition-delay: .98s; }
.intro-page.is-copy-done .intro-quick-link:nth-child(2) { transition-delay: 1.5s; }

.intro-quick-link:hover {
  border-color: rgba(47, 109, 75, .34);
  background: #fff;
  box-shadow: 0 13px 24px rgba(38, 89, 49, .12);
  transform: translateY(-2px);
}

.intro-quick-link-store { border-color: rgba(164, 132, 74, .22); color: #6b542b; }
.intro-quick-link-store:hover { border-color: rgba(164, 132, 74, .42); }

.intro-quick-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 109, 75, .12);
  border-radius: 11px 11px 11px 5px;
  background: #edf8e8;
  font-size: 18px;
  line-height: 1;
}

.intro-quick-link-store .intro-quick-icon { border-color: rgba(164, 132, 74, .16); background: #fff7e5; }
.intro-quick-copy { min-width: 0; display: grid; gap: 2px; }
.intro-quick-copy small { min-width: 0; color: #5a8665; font-size: 9px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.intro-quick-link-store .intro-quick-copy small { color: #927849; }
.intro-quick-copy strong { min-width: 0; color: inherit; font-size: 12px; font-weight: 850; letter-spacing: -.035em; line-height: 1.25; overflow-wrap: anywhere; }
.intro-quick-arrow { flex: 0 0 auto; font-size: 16px; transition: transform .2s ease; }
.intro-quick-link:hover .intro-quick-arrow { transform: translateX(3px); }

.intro-business-line {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(47, 109, 75, .11);
  border-radius: 13px;
  color: #4b7455;
  background: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s 2s cubic-bezier(.16, 1, .3, 1), transform .5s 2s cubic-bezier(.16, 1, .3, 1);
}

.intro-business-icon { font-size: 13px; line-height: 1; }
.intro-business-line > span:last-child { min-width: 0; overflow-wrap: anywhere; }

.intro-steps { margin-top: 21px; }

@media (max-width: 900px) {
  .intro-quick-links { margin-top: 14px; }
  .intro-steps { margin-top: 22px; }
}

@media (max-width: 520px) {
  .intro-quick-links { grid-template-columns: 1fr; gap: 7px; }
  .intro-quick-link { grid-template-columns: auto minmax(0, 1fr); gap: 7px; min-height: 57px; padding-right: 8px; }
  .intro-quick-arrow { display: none; }
  .intro-quick-icon { width: 31px; height: 31px; font-size: 16px; }
  .intro-quick-copy small { font-size: 8px; }
  .intro-quick-copy strong { font-size: 10px; }
  .intro-business-line { border-radius: 13px; font-size: 9px; }
}

@media (max-height: 700px) and (orientation: landscape) {
  .intro-quick-links { margin-top: 9px; }
  .intro-quick-link { min-height: 45px; padding-block: 5px; }
  .intro-quick-icon { width: 27px; height: 27px; font-size: 14px; }
  .intro-quick-copy small { font-size: 7px; }
  .intro-quick-copy strong { font-size: 9px; }
  .intro-business-line { margin-top: 6px; padding-block: 3px; font-size: 8px; }
  .intro-steps { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-quick-link,
  .intro-quick-links,
  .intro-business-line { transition: none !important; }
}

/* Mobile: one document scrollbar, photo first, then readable content. */
@media (max-width: 900px) {
  html {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto;
  }

  body.intro-page {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100%;
    max-height: none;
    overflow: clip;
  }

  .intro-inner {
    width: min(calc(100% - 28px), 680px);
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    margin-inline: auto;
    overflow: visible;
  }

  .intro-header { order: 1; width: 100%; }

  .intro-visual {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: clamp(220px, 61vw, 310px);
    margin: 16px 0 0;
    transform: none;
  }

  .intro-main {
    order: 3;
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 26px 0 20px;
    align-items: center;
    text-align: center;
    overflow: visible;
  }

  .intro-kicker,
  .intro-title,
  .intro-copy,
  .intro-enter,
  .intro-quick-links,
  .intro-business-line,
  .intro-steps {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .intro-kicker { justify-content: center; margin-top: 0; }
  .intro-title::after { margin-right: auto; margin-left: auto; }
  .intro-copy { text-align: center; }
  .intro-enter { width: min(100%, 300px); align-self: center; }
  .intro-quick-links { margin-inline: 0; }
  .intro-footer { order: 4; width: 100%; margin-top: 0; }
}

/* v21 mobile correction: one viewport scrollbar, full usable width, compact
   photo-first composition. The photo begins with the first typed title letter
   without creating an inner scrolling column or an excessively tall card. */
@media (max-width: 900px) {
  html {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.intro-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .intro-inner {
    width: min(calc(100% - 28px), 680px);
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  .intro-header,
  .intro-visual,
  .intro-main,
  .intro-footer {
    min-width: 0;
    max-width: 100%;
  }

  .intro-visual {
    width: 100%;
    height: auto;
    max-height: 220px;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
  }

  .intro-main {
    min-height: 0;
    flex: 0 0 auto;
    overflow: visible;
  }
}

@media (max-width: 430px) {
  .intro-visual { max-height: 204px; }
}

/* v21.1: prevent the body itself from becoming a second scroll container.
   Off-canvas decorative rings stay clipped to the viewport instead of
   widening the mobile document. */
@media (max-width: 900px) {
  html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
  }

  body.intro-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: clip !important;
  }

  .intro-inner {
    width: min(calc(100% - 28px), 680px) !important;
    max-width: calc(100% - 28px) !important;
    overflow: visible !important;
  }

  .intro-orbit,
  .intro-leaf,
  .intro-ambient {
    max-width: 100vw;
  }

  .intro-visual {
    animation: none !important;
    transform: none !important;
    transition: opacity .28s ease !important;
  }
}

/* v21.2: the image is already ready when mobile typing begins. Large ambient
   ornaments are removed on phones so they cannot widen the body behind the
   viewport or recreate the narrow, double-scroll layout. */
@media (max-width: 900px) {
  .intro-page.is-visual-ready .intro-visual {
    opacity: 1 !important;
  }

  .intro-orbit,
  .intro-ambient {
    display: none !important;
  }
}

/* v21.3: show the ready mobile photo immediately and keep one compact 16:9
   card size across narrow phones and wider mobile screens. */
@media (max-width: 900px) {
  .intro-visual {
    width: min(100%, 362px) !important;
    max-width: 362px !important;
    max-height: none !important;
    align-self: center !important;
    aspect-ratio: 16 / 9 !important;
  }

  .intro-page.is-visual-ready .intro-visual {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* v22 mobile hero reconstruction: keep the photo first, but split the card into
   clear visual zones so badges, copy, and the title block never overlap. */
@media (max-width: 900px) {
  .intro-visual {
    width: min(100%, 362px) !important;
    max-width: 362px !important;
    aspect-ratio: 16 / 9 !important;
    margin-top: 14px !important;
  }

  .intro-visual-frame {
    border-radius: 24px !important;
  }

  .intro-visual-frame::after {
    content: none !important;
    display: none !important;
  }

  .intro-visual-topline {
    top: 13px !important;
    right: 14px !important;
    left: 14px !important;
    width: fit-content;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(20, 57, 34, .32);
    backdrop-filter: blur(7px);
    font-size: 7.5px !important;
    letter-spacing: .08em;
  }

  .intro-visual-stamp {
    top: 16px !important;
    right: 15px !important;
    gap: 0 !important;
    font-size: 6.5px !important;
    line-height: 1.15 !important;
  }

  .intro-visual-stamp span:last-child {
    font-size: 6px !important;
  }

  /* The same farm name appears directly below the card, so the old floating
     caption is removed on phones instead of competing with the main copy. */
  .intro-visual-caption {
    display: none !important;
  }

  .intro-visual-whisper {
    top: auto !important;
    right: 12px !important;
    bottom: 11px !important;
    left: 12px !important;
    width: auto !important;
    display: grid !important;
    gap: 1px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(14, 24, 16, .28) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
    color: #fffdf0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left;
    text-shadow: 0 2px 9px rgba(0, 0, 0, .20);
  }

  .intro-visual-whisper-leaf {
    display: none !important;
  }

  .intro-visual-sticker {
    top: auto !important;
    bottom: 66px !important;
    min-width: 0 !important;
    max-width: calc(50% - 17px) !important;
    gap: 4px !important;
    padding: 5px 7px 5px 5px !important;
    border-radius: 10px 12px 12px 6px !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
    animation: none !important;
  }

  .intro-visual-sticker::before {
    display: none !important;
  }

  .intro-visual-sticker > span:first-child {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
  }

  .intro-visual-sticker > span:last-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .intro-visual-sticker-one {
    left: 12px !important;
  }

  .intro-visual-sticker-two {
    right: 12px !important;
  }

  /* Rebuild the copy block below the image instead of stretching the kicker
     into a second full-width white bar. */
  .intro-main {
    padding-top: 15px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .intro-kicker {
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 0 12px !important;
    padding: 6px 10px 6px 7px !important;
    border: 1px solid rgba(47, 109, 75, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 6px 14px rgba(38, 89, 49, .06) !important;
    font-size: 10px !important;
    letter-spacing: -.02em !important;
  }

  .intro-kicker span:first-child {
    flex-basis: 22px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 14px !important;
  }

  .intro-title {
    width: 100% !important;
    margin-bottom: 13px !important;
    font-size: clamp(34px, 10.2vw, 43px) !important;
    line-height: 1.06 !important;
    text-align: left !important;
    text-wrap: balance;
  }

  .intro-title::after {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .intro-copy {
    text-align: left !important;
  }
}

@media (max-width: 340px) {
  .intro-visual-sticker {
    bottom: 58px !important;
    font-size: 7px !important;
    padding-right: 5px !important;
  }

  .intro-visual-whisper {
    font-size: 9px !important;
  }

  .intro-title {
    font-size: 33px !important;
  }
}
