
/* =========================================================
   TWO LITTLE MONKEYS — HOME V5
   IMPORTANT: all sections are forced to true viewport width.
   ========================================================= */

/* Home-specific aliases onto the sitewide canonical tokens (site-experience.css
   :root, --tlm-*) rather than a second hardcoded palette — this file already
   used almost the exact tropical-cacao values the sitewide tokens were
   amended to (constitution 1.1.0), so aliasing keeps one real source of
   truth instead of two palettes that happen to agree today. */
:root {
  --tlm5-navy: var(--tlm-navy);
  --tlm5-navy-deep: var(--tlm-navy-dark);
  --tlm5-cream: var(--tlm-cream);
  --tlm5-paper: var(--tlm-paper);
  --tlm5-gold: var(--tlm-gold);
  --tlm5-gold-soft: var(--tlm-gold-soft);
  --tlm5-leaf: var(--tlm-green);
  --tlm5-cacao: var(--tlm-cacao);
  --tlm5-ink: #103440;
  --tlm5-muted: #66767d;
  --tlm5-white: #ffffff;
  --tlm5-line: rgba(6, 50, 71, .15);
  --tlm5-shadow: 0 32px 90px rgba(2, 31, 44, .18);
  --tlm5-shadow-soft: 0 16px 48px rgba(2, 31, 44, .12);
  --tlm5-radius: 32px;
  --tlm5-container: min(1280px, calc(100% - 2 * var(--tlm-section-px)));
  --tlm5-serif: var(--tlm-font-display);
  --tlm5-sans: var(--tlm-font-body);
  --tlm5-ease: cubic-bezier(.22, 1, .36, 1);
}

/*
 * This is the essential correction.
 * The old version used 100% of the narrow theme container.
 * This version breaks every section out to 100vw.
 */
/* Each homepage chapter is now its own registered pattern (patterns/
   home-v5-*.php) referenced as a separate top-level block via wp:pattern,
   so WordPress's default is-layout-constrained block-gap (24px, from
   global styles) lands as a real margin between every section — a stray
   cream/white seam between full-bleed sections that were designed to
   run flush into one another. Zeroed here rather than in global styles,
   since it's specific to this section-per-block homepage structure. */
.tlm-home-v5 {
  margin-block: 0 !important;
}

body .entry-content > .tlm-home-v5.alignfull,
body main .tlm-home-v5.alignfull,
body .site-main .tlm-home-v5.alignfull {
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: -50vw !important;
  margin-left: -50vw !important;
}

/* Blocksy's own content wrapper (.ct-container-full, a level above
   .entry-content) carries a default 60px bottom padding sitewide — the
   actual, measured source of the white gap between the final CTA and the
   footer (verified live: main/.site-main/.entry-content all already
   measured 0 here, so the gap had to be one level up). */
body:has(.tlm-home-v5) main.site-main > .ct-container-full {
  padding-bottom: 0 !important;
}

/* Remove the extra white space created by common theme page containers —
   top AND bottom, so the final CTA section flows straight into the footer
   instead of leaving Blocksy's default content bottom-spacing as a gap. */
body:has(.tlm-home-v5) main#main,
body:has(.tlm-home-v5) .site-main,
body:has(.tlm-home-v5) .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body:has(.tlm-home-v5) .entry-content {
  max-width: none !important;
}

body:has(.tlm-home-v5) .hero-section,
body:has(.tlm-home-v5) .page-title,
body:has(.tlm-home-v5) .entry-header {
  display: none !important;
}

.tlm-home-v5,
.tlm-home-v5 *,
.tlm-home-v5 *::before,
.tlm-home-v5 *::after {
  box-sizing: border-box;
}

.tlm-home-v5 {
  overflow: clip;
  color: var(--tlm5-ink);
  font-family: var(--tlm5-sans);
}

.tlm-home-v5 :where(h1, h2, h3, p, figure, ul, ol) {
  margin-top: 0;
}

.tlm-home-v5 :where(h1, h2, h3) {
  text-wrap: balance;
}

.tlm-home-v5 :where(p, li) {
  line-height: 1.72;
}

.tlm-home-v5 img {
  display: block;
  max-width: 100%;
}

.tlm-home-v5 a {
  color: inherit;
}

.tlm-home-v5 :where(a, button, summary):focus-visible {
  outline: 3px solid var(--tlm5-gold-soft);
  outline-offset: 4px;
}

.tlm5-shell {
  width: var(--tlm5-container);
  margin-inline: auto;
}

.tlm5-eyebrow {
  margin-bottom: 18px;
  color: var(--tlm5-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.tlm5-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 13px 24px;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 700;
  transition:
    transform .35s var(--tlm5-ease),
    box-shadow .35s var(--tlm5-ease),
    color .35s ease,
    border-color .35s ease,
    background-color .35s ease;
}

.tlm5-button:hover {
  transform: none;
}

.tlm5-button svg,
.tlm5-text-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* .tlm5-button.tlm5-button--*, not .tlm5-button--* alone: needs to reliably
   beat .tlm-home-v5 a { color: inherit } (specificity 0,1,1) rather than
   losing to it. A single class only scores 0,1,0, so on a dark ancestor
   (e.g. the cream .tlm5-visit section around a navy button, or the gold
   button sitting on the paper-background final section) the button was
   silently rendering inherited body-ink text instead of its own intended
   color — in the navy case, near-black ink on navy: functionally
   invisible. Confirmed live via computed styles before this fix. */
.tlm5-button.tlm5-button--gold {
  color: var(--tlm5-navy-deep);
  background: var(--tlm5-gold);
}

.tlm5-button.tlm5-button--gold:hover,
.tlm5-button.tlm5-button--gold:focus-visible {
  background: var(--tlm5-gold-soft);
}

.tlm5-button.tlm5-button--outline {
  color: var(--tlm5-white);
  border-color: rgba(255, 255, 255, .54);
  background: transparent;
}

.tlm5-button.tlm5-button--outline:hover,
.tlm5-button.tlm5-button--outline:focus-visible {
  border-color: var(--tlm5-white);
  background: rgba(255, 255, 255, .16);
}

.tlm5-button.tlm5-button--navy {
  color: var(--tlm5-white);
  background: var(--tlm5-navy);
}

.tlm5-button.tlm5-button--navy:hover,
.tlm5-button.tlm5-button--navy:focus-visible {
  background: var(--tlm5-navy-deep);
  box-shadow: 0 20px 42px rgba(6, 50, 71, .38);
}

.tlm5-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  transition: gap .3s var(--tlm5-ease), color .3s ease;
}

/* Same specificity fix as the buttons above: .tlm-home-v5 .tlm5-text-link
   (0,2,0) reliably beats .tlm-home-v5 a { color: inherit } (0,1,1) — the
   bare .tlm5-text-link rule (0,1,0) was losing and silently rendering
   inherited body-ink text instead of navy. */
.tlm-home-v5 .tlm5-text-link {
  color: var(--tlm5-navy);
}

.tlm-home-v5 .tlm5-text-link--light {
  color: var(--tlm5-cream);
}

.tlm5-text-link:hover {
  gap: 18px;
  color: var(--tlm5-gold);
}

/* ================= HERO ================= */

.tlm5-hero {
  min-height: clamp(520px, 68vh, 640px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--tlm5-white);
  background: var(--tlm5-navy-deep);
}

.tlm5-hero__media,
.tlm5-hero__overlay {
  position: absolute;
  inset: 0;
}

.tlm5-hero__media {
  z-index: -3;
  will-change: transform;
}

.tlm5-hero__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 38%;
  animation: none;
}

.tlm5-hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 22, 30, .92) 0%, rgba(1, 28, 38, .62) 42%, rgba(1, 28, 38, .12) 76%),
    linear-gradient(0deg, rgba(1, 28, 38, .85) 0%, transparent 60%);
}

.tlm5-hero__content {
  width: var(--tlm5-container);
  margin-inline: auto;
  padding: clamp(95px, 12vh, 125px) 0 clamp(50px, 7vh, 75px);
}

.tlm5-hero__seal-wrap {
  margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  align-items: center;
}

.tlm5-hero__seal {
  width: clamp(100px, 9vw, 132px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tlm5-hero__seal:hover {
  transform: scale(1.06) rotate(1.5deg);
}

.tlm5-hero__eyebrow {
  color: var(--tlm5-gold-soft);
  margin-bottom: 10px;
}

/* Sequenced entrance (headline -> subhead -> CTAs), same ~0.13s cadence
   already established by .tlm-v3-page-hero's own is-loaded sequence in
   site-experience.css — extended here to the elements the h1's own
   tlm5TitleIn animation doesn't cover. Plain CSS animation (autoplay),
   not a JS-gated transition, matching how the h1 lines already behave:
   no dependency on tlm-home.js having run yet. Reduced-motion fallback
   is the existing blanket rule at the bottom of this file
   (`.tlm-home-v5 * { animation-duration: .01ms !important }`), which
   collapses this to an effectively instant, fully-visible state. */
@media (prefers-reduced-motion: no-preference) {
  .tlm5-hero__seal-wrap,
  .tlm5-hero__eyebrow,
  .tlm5-hero__lede,
  .tlm5-hero__actions {
    opacity: 0;
    transform: translateY(16px);
    animation: tlm5FadeUpIn .62s var(--tlm5-ease) forwards;
  }

  .tlm5-hero__seal-wrap {
    animation-delay: 0s;
  }

  .tlm5-hero__eyebrow {
    animation-delay: .1s;
  }

  .tlm5-hero__lede {
    animation-delay: .28s;
  }

  .tlm5-hero__actions {
    animation-delay: .42s;
  }
}

.tlm5-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  color: var(--tlm5-cream);
  font-family: var(--tlm5-serif);
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.tlm5-hero h1 > span {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.tlm5-hero h1 > span > span {
  display: block;
  transform: translateY(112%);
  animation: tlm5TitleIn .5s var(--tlm5-ease) forwards;
}

.tlm5-hero h1 > span:nth-child(2) > span {
  animation-delay: .15s;
}

.tlm5-hero__lede {
  max-width: 580px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(0.98rem, 1.1vw, 1.15rem);
  line-height: 1.55;
}

.tlm5-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tlm5-hero__facts {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--tlm5-container);
  min-height: 52px;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  border-top: 1px solid rgba(255, 255, 255, .19);
  color: rgba(255, 255, 255, .69);
}

.tlm5-hero__facts span {
  flex: 1;
  position: relative;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tlm5-hero__facts span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--tlm5-gold);
}

.tlm5-hero__scroll {
  position: absolute;
  right: 26px;
  bottom: 60px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .64);
  text-decoration: none;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.tlm5-hero__scroll i {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--tlm5-gold), transparent);
  animation: none;
}

/* ================= INTRO ================= */

.tlm5-intro {
  padding: var(--tlm-section-py) 0;
  background: var(--tlm5-paper);
}

.tlm5-intro__grid {
  width: var(--tlm5-container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(60px, 9vw, 145px);
  align-items: center;
}

.tlm5-intro__copy h2,
.tlm5-section-head h2,
.tlm5-visit__copy h2,
.tlm5-family__copy h2,
.tlm5-final__content h2 {
  color: var(--tlm5-navy);
  font-family: var(--tlm5-serif);
  font-weight: 600;
  line-height: .97;
  letter-spacing: -.045em;
}

.tlm5-intro__copy h2 {
  margin-bottom: 27px;
  font-size: clamp(3.1rem, 5.5vw, 5.9rem);
}

.tlm5-intro__copy > p:not(.tlm5-eyebrow) {
  color: var(--tlm5-muted);
  font-size: 1.12rem;
  line-height: 1.68;
}

.tlm5-intro__lead {
  color: var(--tlm5-navy) !important;
  font-family: var(--tlm5-serif);
  font-size: 1.45rem !important;
  line-height: 1.4;
}

.tlm5-intro__copy .tlm5-text-link {
  margin-top: 20px;
  font-size: 1.08rem;
}

.tlm5-intro__gallery {
  position: relative;
  min-height: 700px;
}

.tlm5-intro__image {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--tlm5-radius);
  box-shadow: var(--tlm5-shadow);
}

.tlm5-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlm5-intro__image--main {
  inset: 0 9% 7% 0;
}

.tlm5-intro__image--float {
  right: 0;
  bottom: 0;
  width: min(43%, 305px);
  border: 9px solid var(--tlm5-paper);
  border-radius: 24px;
  background: var(--tlm5-paper);
}

@media (prefers-reduced-motion: no-preference) {
  .tlm5-intro__image--main {
    transition: transform var(--tlm-v3-dur-long) var(--tlm-v3-ease-out),
                opacity var(--tlm-v3-dur-long) var(--tlm-v3-ease-out);
  }

  .tlm5-intro__image--float {
    transform: translateY(18px);
    opacity: 1;
    transition: transform var(--tlm-v3-dur-long) var(--tlm-v3-ease-out),
                opacity var(--tlm-v3-dur-long) var(--tlm-v3-ease-out);
    transition-delay: 0.14s;
  }

  html.tlm-home-v5-js .tlm-home-v5 .tlm5-intro__gallery.is-visible .tlm5-intro__image--float {
    transform: translateY(0);
    opacity: 1;
  }

  @media (hover: hover) and (pointer: fine) {
    .tlm5-intro__image--main img {
      transition: transform var(--tlm-v3-dur-long) var(--tlm-v3-ease-out);
    }
    .tlm5-intro__image--main:hover img {
      transform: scale(1.025);
    }
    .tlm5-intro__image--float:hover {
      transform: translateY(-5px);
      box-shadow: 0 16px 36px rgba(0, 56, 95, 0.18);
    }
  }
}

.tlm5-intro__image--float img {
  aspect-ratio: 4 / 3;
}

.tlm5-intro__image--float figcaption {
  padding: 13px 8px 5px;
  color: var(--tlm5-muted);
  font-size: .74rem;
  line-height: 1.45;
}

.tlm5-intro__brand-mark {
  margin-bottom: 0.85rem;
}

.tlm5-intro__brand-img {
  width: clamp(48px, 4vw, 56px);
  height: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.tlm5-intro__stamp {
  position: absolute;
  left: -36px;
  bottom: 12%;
  width: clamp(108px, 9vw, 130px);
  height: clamp(108px, 9vw, 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid rgba(224, 166, 0, .85);
  border-radius: 50%;
  background: var(--tlm5-navy, #07120f);
  padding: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  animation: none;
  z-index: 5;
}

.tlm5-intro__stamp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* ================= GALLERY ================= */

.tlm5-gallery {
  padding: var(--tlm-section-py) 0;
  background: var(--tlm5-cream);
}

.tlm5-gallery__head {
  max-width: var(--tlm5-container);
  width: 90%;
  margin: 0 auto 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}

.tlm5-gallery__head > div {
  max-width: 600px;
}

.tlm5-gallery__brand-badge {
  margin-bottom: 0.85rem;
}

.tlm5-gallery__brand-img {
  width: clamp(130px, 11vw, 160px);
  height: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.tlm5-gallery__head h2 {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--tlm5-navy);
  font-family: var(--tlm5-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tlm5-gallery__head > p {
  max-width: 440px;
  margin-bottom: 6px;
  color: var(--tlm5-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==================================================================
 * Module 2 — Horizontal Farm Moments Carousel
 * Fluid horizontal touch-scroller with smooth drag, dark gradient
 * text overlays, scale-105 zoom, and interactive progress controls.
 * ================================================================== */
.tlm5-gallery__scroller {
  /* Inherits .tlm5-horizontal scroll container properties */
  padding-block: 0.5rem 1.5rem;
}

.tlm5-gallery__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: max(16px, calc((100vw - var(--tlm5-container)) / 2 + 16px));
}

.tlm5-gallery-card {
  flex: 0 0 clamp(280px, 32vw, 420px);
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--tlm5-navy, #063247);
  box-shadow: 0 14px 34px rgba(6, 50, 71, 0.12);
  transition: transform 0.4s var(--tlm5-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 0.4s var(--tlm5-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.tlm5-gallery-card figure {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.tlm5-gallery-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .tlm5-gallery-card:hover figure img,
  .tlm5-gallery-card:focus-within figure img {
    transform: scale(1.08);
  }

  .tlm5-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(6, 50, 71, 0.22);
  }
}

.tlm5-gallery-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(6, 50, 71, 0) 0%, rgba(3, 24, 34, 0.88) 60%, rgba(2, 17, 24, 0.96) 100%);
  color: var(--tlm5-cream, #F7F0E2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
}

.tlm5-gallery-card__tag {
  font-family: var(--tlm5-sans, "Manrope", sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--tlm5-gold, #DCA500);
}

.tlm5-gallery-card__overlay h3 {
  font-family: var(--tlm5-serif, "Fraunces", serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 600;
  color: var(--tlm5-cream, #F7F0E2);
  margin: 0;
  line-height: 1.2;
}

.tlm5-gallery-card__overlay p {
  font-family: var(--tlm5-sans, "Manrope", sans-serif);
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(247, 240, 226, 0.78);
  margin: 0;
}

@media (max-width: 640px) {
  .tlm5-gallery-card {
    flex: 0 0 82vw;
  }
}

/* ================= PRODUCTS ================= */
/* A small catalogue strip, not a row of cards: each product is a white
   packaging tile with its name, price and two plain links beneath. Depth
   comes from the photograph, so there is no card chrome, glow or lift. */
.tlm5-products {
  /* One source for the track padding and the scroll-snap padding, so the
     first card can never be cropped by the snap. */
  --tlm5-carousel-side-space: max(var(--tlm-section-px), calc((100vw - var(--tlm5-container)) / 2));
  padding-block: var(--tlm-section-py);
  color: var(--tlm5-cream);
  background: var(--tlm5-navy);
}

#tlm5-products .tlm5-products__head,
#tlm5-products .tlm5-controls {
  width: auto;
  margin-inline: var(--tlm5-carousel-side-space);
}

.tlm5-products__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

#tlm5-products .tlm5-products__head h2 {
  margin: 0.4rem 0 0;
  color: var(--tlm-cream) !important;
  font-family: var(--tlm5-serif);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

#tlm5-products .tlm5-eyebrow {
  color: var(--tlm-gold-soft) !important;
}

.tlm5-products__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--tlm5-carousel-side-space);
  scrollbar-width: none;
}

.tlm5-products__viewport::-webkit-scrollbar { display: none; }

.tlm5-products__viewport:focus-visible {
  outline: 3px solid var(--tlm-gold);
  outline-offset: -3px;
}

.tlm5-products__inner {
  width: max-content;
  min-width: 100%;
  padding: 0 var(--tlm5-carousel-side-space) 1rem;
}

.tlm5-products__inner .woocommerce { width: max-content; }

.tlm5-products__inner ul.products {
  width: max-content !important;
  display: flex !important;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.tlm5-products__inner ul.products::before,
.tlm5-products__inner ul.products::after { display: none !important; }

.tlm5-products__inner ul.products li.product {
  flex: 0 0 auto;
  width: min(260px, 72vw) !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  scroll-snap-align: start;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--tlm5-cream);
}

.tlm5-products__inner ul.products li.product a { text-decoration: none; }

.tlm5-products__inner ul.products li.product figure { margin: 0 !important; width: 100% !important; }

.tlm5-products__inner ul.products li.product .ct-media-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  border-radius: 2px !important;
  background: var(--tlm-surface) !important;
}

.tlm5-products__inner ul.products li.product .ct-media-container img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Packaging photography only ever shows its first image here. */

.tlm5-products__inner ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.5em;
  margin: 0.9rem 0 0.35rem !important;
  color: var(--tlm-cream) !important;
  font-family: var(--tlm5-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tlm5-products__inner ul.products li.product .price {
  display: block;
  margin: 0 0 0.25rem !important;
  color: var(--tlm-gold-soft) !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.tlm5-products__inner ul.products li.product .entry-meta {
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  list-style: none !important;
}

.tlm5-products__inner ul.products li.product .entry-meta a {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(247, 240, 226, 0.7);
}

.tlm5-products__inner ul.products li.product .ct-woo-card-actions { margin: 0 0 0.5rem !important; }

.tlm5-products__inner ul.products li.product .button,
.tlm5-products__inner ul.products li.product .tlm-catalog-inquiry-link--loop {
  display: inline-block !important;
  align-self: flex-start;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
  min-height: 0 !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--tlm-cream) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color var(--tlm-v3-dur-short) var(--tlm-v3-ease-out);
}

.tlm5-products__inner ul.products li.product .tlm-catalog-inquiry-link--loop {
  color: rgba(247, 240, 226, 0.72) !important;
  font-weight: 600 !important;
}

.tlm5-products__inner ul.products li.product .button:hover,
.tlm5-products__inner ul.products li.product .tlm-catalog-inquiry-link--loop:hover {
  color: var(--tlm-gold-soft) !important;
}

.tlm5-products__inner ul.products li.product a:focus-visible,
.tlm5-products__inner ul.products li.product .button:focus-visible {
  outline: 3px solid var(--tlm-gold);
  outline-offset: 3px;
}

/* Controls: two outline arrows and a hairline progress track. */
.tlm5-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.tlm5-controls button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(247, 240, 226, 0.4) !important;
  border-radius: 50% !important;
  background: none !important;
  color: var(--tlm-cream) !important;
  cursor: pointer;
  transition: color var(--tlm-v3-dur-short) var(--tlm-v3-ease-out), border-color var(--tlm-v3-dur-short) var(--tlm-v3-ease-out);
}

.tlm5-controls button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.tlm5-controls button:hover {
  color: var(--tlm-gold-soft) !important;
  border-color: var(--tlm-gold-soft) !important;
}

.tlm5-controls button:focus-visible {
  outline: 3px solid var(--tlm-gold);
  outline-offset: 3px;
}

.tlm5-controls .tlm5-progress {
  flex: 1;
  height: 2px;
  background: rgba(247, 240, 226, 0.22);
  overflow: hidden;
}

.tlm5-controls .tlm5-progress span {
  display: block;
  height: 100%;
  background: var(--tlm-gold);
  transition: width 0.25s linear;
}

/* ================= FAMILY ================= */

.tlm5-family {
  padding: clamp(100px, 12vw, 185px) 0;
  background: var(--tlm5-paper);
}

.tlm5-family__grid {
  width: var(--tlm5-container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(55px, 9vw, 138px);
  align-items: center;
}

.tlm5-family__image {
  /* height, not min-height — see .tlm5-visit__visual for why min-height
     alone left the img's height:100% resolving to auto and leaving a
     blank gap below a photo shorter than its frame. */
  height: 700px;
  position: relative;
  overflow: hidden;
  border-radius: var(--tlm5-radius);
  box-shadow: var(--tlm5-shadow);
}

.tlm5-family__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlm5-family__copy h2 {
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 5vw, 5.6rem);
}

.tlm5-family__copy > p:not(.tlm5-eyebrow) {
  color: var(--tlm5-muted);
}

.tlm5-family__quote {
  padding-left: 22px;
  border-left: 2px solid var(--tlm5-gold);
  color: var(--tlm5-navy) !important;
  font-family: var(--tlm5-serif);
  font-size: 1.24rem;
  font-style: italic;
}

/* ================= FINAL ================= */

.tlm5-final {
  min-height: clamp(30rem, 68vh, 42rem);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.tlm5-final__media,
.tlm5-final__overlay {
  position: absolute;
  inset: 0;
}

.tlm5-final__media {
  z-index: -3;
  will-change: transform;
}

.tlm5-final__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  /* Portrait-oriented source (hosts photo): bias the cover-crop toward the
     top so faces stay in frame instead of centering on the torso. */
  object-position: center 15%;
}

.tlm5-final__overlay {
  z-index: -2;
  background:
    radial-gradient(circle at center, rgba(2, 31, 44, .22), rgba(2, 31, 44, .87)),
    linear-gradient(0deg, rgba(2, 31, 44, .75), transparent 64%);
}

.tlm5-final__content {
  width: min(980px, calc(100vw - 48px));
}

.tlm5-final__brand-mark {
  margin: 0 auto clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  justify-content: center;
}

.tlm5-final__brand-img {
  width: clamp(130px, 12vw, 175px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.75));
  transition: transform 0.4s ease;
}

.tlm5-final__brand-img:hover {
  transform: scale(1.06);
}

.tlm5-final__content .tlm5-eyebrow {
  color: var(--tlm5-gold-soft);
}

.tlm5-final__content h2 {
  margin-bottom: 35px;
  color: var(--tlm5-cream);
  font-size: clamp(3.9rem, 7.4vw, 8rem);
  line-height: .9;
}

.tlm5-final__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* JavaScript-enhanced reveals.
   Content stays visible when JS is blocked. */
@keyframes tlm5TitleIn {
  to { transform: translateY(0); }
}

@keyframes tlm5FadeUpIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  :root {
    /* vw, not %: this custom property is consumed by elements at varying
       nesting depth (section-level width, but also nested inside the
       product carousel's padding/scroll-padding calc) — % resolves against
       whatever element's containing block happens to consume it, which
       silently produced a different px value for the carousel's inset
       than for the section heading's. vw is always absolute, so every
       consumer agrees. */
    --tlm5-container: min(100vw - 40px, 970px);
  }

  .tlm5-intro__grid,
  .tlm5-visit__grid,
  .tlm5-family__grid {
    gap: 62px;
  }
}

@media (max-width: 820px) {
  :root {
    --tlm5-container: min(100vw - 28px, 760px);
    --tlm5-radius: 24px;
  }

  .tlm5-hero {
    min-height: 790px;
  }

  .tlm5-hero__media img {
    object-position: 58% center;
  }

  .tlm5-hero__overlay {
    background:
      linear-gradient(0deg, rgba(1, 22, 30, .96) 0%, rgba(1, 22, 30, .67) 62%, rgba(1, 22, 30, .28) 100%);
  }

  .tlm5-hero__content {
    padding: 155px 0 120px;
  }

  .tlm5-hero h1 {
    font-size: clamp(3.9rem, 15vw, 6.1rem);
  }

  .tlm5-hero__facts {
    width: 100%;
    overflow-x: auto;
    padding-inline: 16px;
  }

  .tlm5-hero__facts span {
    flex: 0 0 auto;
    min-width: 165px;
  }

  .tlm5-hero__scroll {
    display: none;
  }

  .tlm5-intro__grid,
  .tlm5-visit__grid,
  .tlm5-family__grid {
    grid-template-columns: 1fr;
  }

  .tlm5-intro__gallery {
    min-height: 570px;
  }

  .tlm5-section-head,
  .tlm5-products__head,
  .tlm5-gallery__head {
    grid-template-columns: 1fr;
  }

  .tlm5-products__head .tlm5-text-link {
    justify-self: start;
  }

  .tlm5-journey-card {
    width: min(85vw, 650px);
    grid-template-rows: minmax(400px, 56vh) auto;
  }

  .tlm5-visit__visual,
  .tlm5-family__image {
    height: 630px;
  }

  .tlm5-family__image {
    order: 2;
  }

  .tlm5-family__copy {
    order: 1;
  }

  .tlm5-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 440px 310px 310px;
  }

  .tlm5-gallery__item--large {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .tlm5-gallery__item--wide {
    grid-column: 1 / 3;
  }
}

@media (max-width: 560px) {
  :root {
    --tlm5-container: calc(100vw - 24px);
  }

  .tlm5-hero__content {
    padding-bottom: 112px;
  }

  .tlm5-hero h1 {
    font-size: clamp(3.45rem, 16.5vw, 4.9rem);
  }

  .tlm5-hero__actions {
    display: grid;
  }

  .tlm5-hero__actions .tlm5-button {
    width: 100%;
  }

  .tlm5-intro__gallery {
    min-height: 425px;
  }

  .tlm5-intro__image--main {
    inset: 0 4% 7% 0;
  }

  .tlm5-intro__image--float {
    width: 46%;
    border-width: 6px;
  }

  .tlm5-intro__stamp {
    left: -5px;
    width: 96px;
    height: 96px;
  }

  .tlm5-journey-card {
    width: 87vw;
    grid-template-rows: 400px auto;
  }

  .tlm5-journey-card__copy {
    padding: 29px 24px 35px;
  }

  .tlm5-journey-card__copy > span {
    position: static;
    display: block;
    margin-bottom: 15px;
  }

  .tlm5-visit__visual,
  .tlm5-family__image {
    height: 510px;
  }

  .tlm5-visit__badge {
    width: 130px;
    height: 130px;
  }

  .tlm5-visit__facts {
    grid-template-columns: 1fr;
  }

  .tlm5-visit__facts div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .tlm5-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 350px);
  }

  .tlm5-gallery__item--large,
  .tlm5-gallery__item--wide {
    grid-column: auto;
  }

  .tlm5-final {
    min-height: 690px;
  }

  .tlm5-final__content h2 {
    font-size: clamp(3.5rem, 15vw, 5.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlm-home-v5 *,
  .tlm-home-v5 *::before,
  .tlm-home-v5 *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }


  .tlm5-hero h1 > span > span {
    transform: none;
  }
}

/* ==================================================================
 * Photo essay — four documentary photographs on a 12-column grid.
 * Different proportions and offsets give the page a photographic
 * rhythm instead of a checkerboard; captions sit beside the image,
 * left-aligned, and name only what the photograph shows.
 * ================================================================== */
.tlm-photo-essay {
  width: var(--tlm5-container);
  margin-inline: auto;
}

.tlm-photo-essay__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--tlm-gap-lg);
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.tlm-photo-essay__item { margin: 0; min-width: 0; }

.tlm-photo-essay__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

.tlm-photo-essay__item--toast  { grid-column: 1 / span 7; }
.tlm-photo-essay__item--toast img  { aspect-ratio: 3 / 2; }
.tlm-photo-essay__item--molds  { grid-column: 8 / span 5; align-self: end; }
.tlm-photo-essay__item--molds img  { aspect-ratio: 4 / 3; }
.tlm-photo-essay__item--metate { grid-column: 1 / span 5; }
.tlm-photo-essay__item--metate img { aspect-ratio: 4 / 3; }
.tlm-photo-essay__item--cane   { grid-column: 7 / span 6; margin-top: clamp(0rem, 4vw, 4rem); }
.tlm-photo-essay__item--cane img   { aspect-ratio: 4 / 5; object-position: 50% 30%; }

.tlm-photo-essay__item figcaption {
  display: grid;
  gap: 0.2rem;
  max-width: 44ch;
  margin-top: var(--tlm-space-group);
  text-align: left;
  font-family: var(--tlm-font-body);
  color: var(--tlm5-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tlm-photo-essay__tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tlm-gold-ink);
}

.tlm-photo-essay__item figcaption strong {
  font-family: var(--tlm5-serif);
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tlm5-navy);
}

@media (max-width: 800px) {
  .tlm-photo-essay__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 1rem; row-gap: 2rem; }
  .tlm-photo-essay__item--toast { grid-column: 1 / -1; }
  .tlm-photo-essay__item--molds { grid-column: 1 / span 6; align-self: start; }
  .tlm-photo-essay__item--metate { grid-column: 1 / span 6; }
  .tlm-photo-essay__item--cane { grid-column: 1 / span 6; margin-top: 0; }
  .tlm-photo-essay__item--cane img { aspect-ratio: 4 / 5; }
}

.tlm5-intro__stamp, .tlm5-intro__brand-mark, .tlm5-gallery__brand-badge { display: none; }
.tlm5-intro__image, .tlm5-intro__image--float { box-shadow: none; border-radius: 3px; transform: none; }
.tlm5-intro__image--float { border: 8px solid var(--tlm-cream); }
.tlm5-intro__image--main:hover img, .tlm5-intro__image--float:hover { transform: none; }
