
/* ============================================================
   TERRENE 1.1.2 — REFERENCE-STRUCTURE OVERRIDES
   Original grocery content, contour-paper system, reference-like
   section choreography and isolated product gallery.
   ============================================================ */

:root {
  --ref-paper: #f7f6f2;
  --ref-ink: #171715;
  --ref-muted: #797a76;
  --ref-line: rgba(35, 35, 31, .15);
}

/* Header: compact, floating navigation over the portal and light pages. */
.home .site-header {
  background: linear-gradient(180deg, rgba(245,244,240,.72), rgba(245,244,240,0));
  border-bottom-color: transparent;
  color: var(--ref-ink);
}
.home .site-header.is-scrolled {
  background: rgba(247,246,242,.94);
  border-bottom-color: rgba(30,30,27,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.home .site-header .header-inner {
  max-width: none;
  width: 100%;
  padding: .95rem clamp(1.1rem, 3.2vw, 3.8rem);
  gap: 1.5rem;
}
.home .site-header .site-title,
.home .site-header .main-navigation a,
.home .site-header .header-icon,
.home .site-header .menu-toggle {
  color: #272722;
}
.home .site-header .site-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.015em;
  text-transform: none;
}
.home .site-header .custom-logo { max-height: 35px; }
.home .site-header .main-navigation .menu { gap: clamp(.9rem, 1.8vw, 2rem); }
.home .site-header .main-navigation a {
  color: #35352f;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .11em;
}
.home .site-header .main-navigation a::after {
  background: #37372f;
  bottom: -5px;
}
.home .site-header .header-actions { gap: .9rem; }
.home .site-header .header-icon svg { width: 17px; height: 17px; }
.home .site-header .terrene-cart-count {
  background: #25251f;
  color: #fff;
}

/* Opening portal: oversized left headline, restrained copy and long pin. */
.terrain-entry--grocery { background: #d8d8d6; color: #fff; }
.terrain-entry--grocery .terrain-camera { background: #dededb; }
.terrain-entry--grocery .terrain-cover {
  object-fit: cover;
  object-position: 54% 43%;
  filter: saturate(1.02) contrast(1.02);
}
.terrain-entry--grocery .terrain-camera__shade {
  background: linear-gradient(90deg, rgba(24,24,22,.1), transparent 58%),
              linear-gradient(0deg, rgba(25,25,22,.2), transparent 42%);
}
.terrain-entry--grocery .terrain-invitation {
  left: clamp(1.1rem, 1.2vw, 1.7rem);
  bottom: clamp(2.4rem, 8.2vh, 6rem);
  max-width: min(57vw, 900px);
  text-shadow: 0 2px 15px rgba(0,0,0,.22);
}
.terrain-entry--grocery .terrain-invitation .terrain-eyebrow,
.terrain-entry--grocery .terrain-description { display: none; }
.terrain-entry--grocery .terrain-invitation h1 {
  max-width: 8.8ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 8vw, 9.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .87;
  text-wrap: balance;
}
.terrain-entry--grocery .terrain-enter-link {
  position: absolute;
  right: clamp(-48vw, -38vw, -18rem);
  bottom: .15rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 99px;
  padding: .7rem 1rem;
  color: #fff;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.terrain-entry--grocery .terrain-scroll-label {
  display: block;
  margin-top: 1.2rem;
  color: rgba(255,255,255,.85);
  font-size: .58rem;
  letter-spacing: .2em;
}
.terrain-entry--grocery .terrain-chapter {
  color: #fff;
  font-size: clamp(2.2rem, 4.7vw, 5.6rem);
  letter-spacing: -.035em;
  line-height: .98;
  text-transform: none;
}
.terrain-entry--grocery .terrain-arrival {
  background: var(--ref-paper);
  color: var(--ref-ink);
  padding-inline: clamp(1.2rem, 9vw, 10rem);
}
.terrain-entry--grocery .terrain-arrival .terrain-eyebrow { color: #77776f; }
.terrain-entry--grocery .terrain-arrival h2 {
  max-width: 11ch;
  color: var(--ref-ink);
  font-size: clamp(3.6rem, 7vw, 8rem);
  line-height: .85;
  letter-spacing: -.055em;
}
.terrain-entry--grocery .terrain-arrival p {
  max-width: 36ch;
  color: #55564f;
}

/* Light editorial ethos section: headline left, copy/actions right. */
.brand-story.reference-ethos {
  padding: clamp(7rem, 12vw, 11rem) 0 clamp(2.4rem, 4vw, 3.7rem);
  color: var(--ref-ink);
  background-color: var(--ref-paper);
  background-image: url('../images/topographic-paper.svg');
  background-position: center 37%;
  background-size: cover;
  border: 0;
}
.reference-ethos .brand-story__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  margin: 0;
}
.reference-ethos .brand-story__headline .eyebrow {
  color: #55564f;
  font-size: .62rem;
  letter-spacing: .16em;
}
.reference-ethos .brand-story__headline .section-h2 {
  max-width: 10ch;
  margin: .55rem 0 0;
  color: var(--ref-ink);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 6.3vw, 7.4rem);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.reference-ethos .brand-story__intro {
  max-width: 58ch;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(30,30,27,.22);
}
.reference-ethos .brand-story__body {
  margin: 0 0 1.6rem;
  color: #242420;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.55vw, 1.65rem);
  line-height: 1.42;
}
.reference-ethos .brand-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.reference-ethos .editorial-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 132px;
  padding: .7rem .9rem;
  border: 1px solid transparent;
  border-radius: 0;
  color: #242420;
  background: transparent;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reference-ethos .editorial-link::before,
.reference-ethos .editorial-link::after {
  content: '';
  width: 7px;
  height: 7px;
  border-color: currentColor;
  border-style: solid;
  opacity: .72;
}
.reference-ethos .editorial-link::before { border-width: 1px 0 0 1px; }
.reference-ethos .editorial-link::after { border-width: 0 1px 1px 0; }
.reference-ethos .editorial-link:hover {
  color: #111;
  background: rgba(255,255,255,.48);
  transform: translateY(-2px);
}

/* Four tall benefit tiles, including the expandable first panel. */
.benefits.reference-benefits {
  padding: 0 0 clamp(6rem, 10vw, 9rem);
  color: var(--ref-ink);
  background-color: var(--ref-paper);
  background-image: url('../images/topographic-paper.svg');
  background-position: center 61%;
  background-size: cover;
  border: 0;
}
.benefit-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  align-items: start;
  gap: clamp(.65rem, 1.1vw, 1.1rem);
}
.benefit-panel {
  min-width: 0;
  min-height: 370px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(24,25,22,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.benefit-panel:hover { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(24,25,22,.1); }
.benefit-panel summary {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.15rem 1.1rem;
  cursor: pointer;
  list-style: none;
  text-align: center;
}
.benefit-panel summary::-webkit-details-marker { display: none; }
.benefit-panel__index {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: .55rem;
  letter-spacing: .16em;
  opacity: .65;
}
.benefit-panel__title {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 68px;
  margin-top: .2rem;
  padding: .7rem .6rem;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 7px 20px rgba(0,0,0,.12);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  font-weight: 600;
  line-height: .98;
  text-transform: uppercase;
}
.benefit-panel__art {
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  min-height: 160px;
  place-items: center;
  padding: .5rem 0;
  opacity: .85;
}
.benefit-panel__art svg { display: block; width: min(100%, 190px); height: 205px; }
.benefit-panel__toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 39px;
  padding: .55rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .15em;
}
.benefit-panel__toggle--open { display: none; }
.benefit-panel[open] .benefit-panel__toggle--closed { display: none; }
.benefit-panel[open] .benefit-panel__toggle--open { display: inline-flex; }
.benefit-panel__detail {
  margin: 0 .85rem .85rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  background: rgba(0,0,0,.16);
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.6;
}
.benefit-panel__detail p { margin: 0; }
.benefit-panel--ink { color: #f4f2ec; background: linear-gradient(145deg,#171817,#080908); }
.benefit-panel--blue { color: #142b30; background: #76aeb5; }
.benefit-panel--coral { color: #351b0e; background: #f17643; }
.benefit-panel--cream { color: #262722; background: #f7f6f2; }
.benefit-panel--cream .benefit-panel__title { border-color: rgba(30,30,27,.16); background: rgba(255,255,255,.68); }
.benefit-panel--cream .benefit-panel__detail { background: rgba(255,255,255,.64); border-color: rgba(30,30,27,.12); }

/* The reference's very thin full-width black image strip. */
.marquee.reference-ticker {
  position: relative;
  width: 100%;
  height: clamp(76px, 7vw, 112px);
  padding: .7rem 0;
  overflow: hidden;
  border: 0;
  background: #050505;
  color: #fff;
}
.reference-ticker__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  width: max-content;
  height: 100%;
  padding-inline: 1.5rem;
  will-change: transform;
}
.reference-ticker__item {
  display: flex;
  flex: 0 0 auto;
  width: clamp(76px, 6.2vw, 112px);
  height: 100%;
  align-items: center;
  justify-content: center;
}
.reference-ticker__item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(255,255,255,.08));
  animation: reference-ticker-float 3.8s ease-in-out infinite;
}
.reference-ticker__item:nth-child(3n) img { animation-delay: -1.1s; }
.reference-ticker__item:nth-child(4n) img { animation-delay: -2.2s; }
@keyframes reference-ticker-float {
  0%,100% { transform: translateY(2px) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

/* Numbered, editorial category gallery with isolated product imagery. */
.categories.reference-categories {
  padding: clamp(6.5rem, 11vw, 10.5rem) 0 clamp(7rem, 11vw, 10rem);
  color: var(--ref-ink);
  background-color: var(--ref-paper);
  background-image: url('../images/topographic-paper.svg');
  background-position: center 42%;
  background-size: cover;
}
.reference-categories__header {
  margin: 0 auto clamp(4rem, 7vw, 6.8rem);
  text-align: center;
}
.reference-categories__header .eyebrow {
  color: #7b7b73;
  font-size: .58rem;
  letter-spacing: .17em;
}
.reference-categories__header h2 {
  margin: .35rem 0 .4rem;
  color: #171715;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 8.4rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
}
.reference-categories__header p {
  margin: .9rem 0 0;
  color: #898980;
  font-size: .58rem;
  letter-spacing: .19em;
}
.reference-category-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid rgba(30,30,27,.12);
}
.reference-category {
  min-width: 0;
  border-right: 1px solid rgba(30,30,27,.12);
  border-bottom: 1px solid rgba(30,30,27,.12);
}
.reference-category:nth-child(3n+1) { border-left: 1px solid rgba(30,30,27,.12); }
.reference-category__link {
  display: block;
  min-height: 510px;
  padding: 1.4rem clamp(1rem, 2.1vw, 2rem) 1.2rem;
  color: inherit;
}
.reference-category__top {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  color: #383832;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.reference-category__number { color: #88887f; }
.reference-category__name { font-weight: 600; }
.reference-category__object {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(300px, 30vw, 430px);
  margin: .7rem 0 .5rem;
  place-items: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
}
.reference-category__object:active { cursor: grabbing; }
.reference-category__image {
  display: block;
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translate3d(0,var(--ref-object-y,0),35px) rotateZ(var(--ref-object-rot,-2deg));
  filter: drop-shadow(0 24px 24px rgba(36,36,29,.13));
  animation: reference-category-float 5.8s ease-in-out infinite;
  transition: transform .35s ease, filter .35s ease;
  mix-blend-mode: multiply;
}
.reference-category:nth-child(3n+2) .reference-category__image { animation-delay: -2s; }
.reference-category:nth-child(3n+3) .reference-category__image { animation-delay: -3.6s; }
.reference-category__object:hover .reference-category__image {
  filter: drop-shadow(0 32px 26px rgba(36,36,29,.18));
}
.reference-category__object.is-360-ready .reference-category__image {
  animation: reference-category-float 5.8s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.reference-category__hint {
  position: absolute;
  left: 50%;
  bottom: .2rem;
  transform: translateX(-50%);
  color: #8a8a82;
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .16em;
  white-space: nowrap;
  opacity: .85;
}
@keyframes reference-category-float {
  0%,100% { transform: translate3d(0,8px,30px) rotateZ(-2deg) rotateY(-4deg); }
  50% { transform: translate3d(0,-12px,54px) rotateZ(2deg) rotateY(4deg); }
}

/* Isolated product photos on catalog cards; no hard crop. */
.product-card__media[data-product-tilt] {
  overflow: visible;
  background: transparent;
  perspective: 1100px;
}
.product-card__stage {
  overflow: visible;
  transform-style: preserve-3d;
}
.product-card__stage img {
  object-fit: contain !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 15px rgba(20,20,17,.1));
}
.product-card__media.is-360-ready,
.product-card__stage.is-360-ready { cursor: grab; touch-action: pan-y; }
.product-card__media.is-360-ready:active,
.product-card__stage.is-360-ready:active { cursor: grabbing; }

/* Product gallery frames: unobtrusive drag affordance. */
[data-product-360-frames] { cursor: grab; touch-action: pan-y; }
[data-product-360-frames]:active { cursor: grabbing; }

@media (max-width: 1024px) {
  .benefit-panels { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reference-category__link { min-height: 460px; }
  .reference-category__object { height: clamp(260px, 38vw, 360px); }
}
@media (max-width: 767px) {
  .home .site-header .header-inner { padding: .75rem 1rem; }
  .home .site-header .site-title { font-size: .9rem; }
  .home .site-header .main-navigation { display: none; }
  .terrain-entry--grocery .terrain-invitation {
    left: 1rem;
    bottom: 13vh;
    max-width: calc(100vw - 2rem);
  }
  .terrain-entry--grocery .terrain-invitation h1 {
    max-width: 8.5ch;
    font-size: clamp(3.25rem, 14vw, 5.8rem);
  }
  .terrain-entry--grocery .terrain-enter-link {
    position: static;
    width: fit-content;
    margin-top: 1rem;
  }
  .terrain-entry--grocery .terrain-scroll-label { margin-top: .7rem; }
  .brand-story.reference-ethos { padding: 5rem 0 2.6rem; }
  .reference-ethos .brand-story__top { grid-template-columns: 1fr; gap: 2rem; }
  .reference-ethos .brand-story__headline .section-h2 { font-size: clamp(3.1rem, 13vw, 5.5rem); }
  .reference-ethos .brand-story__intro { padding-top: 1rem; }
  .benefit-panels { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .benefit-panel, .benefit-panel summary { min-height: 300px; }
  .benefit-panel summary { padding: 1rem .75rem .8rem; }
  .benefit-panel__title { min-height: 58px; font-size: .98rem; }
  .benefit-panel__art { min-height: 135px; }
  .benefit-panel__art svg { height: 150px; }
  .benefit-panel__detail { margin: 0 .6rem .6rem; padding: .85rem; font-size: .76rem; }
  .marquee.reference-ticker { height: 70px; }
  .reference-ticker__item { width: 66px; }
  .categories.reference-categories { padding: 5.5rem 0 6rem; }
  .reference-categories__header { margin-bottom: 3rem; }
  .reference-categories__header h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .reference-category-grid { grid-template-columns: 1fr 1fr; }
  .reference-category:nth-child(3n+1) { border-left: 0; }
  .reference-category:nth-child(2n+1) { border-left: 1px solid rgba(30,30,27,.12); }
  .reference-category__link { min-height: 360px; padding: 1rem .7rem; }
  .reference-category__top { flex-wrap: wrap; gap: .4rem; font-size: .59rem; }
  .reference-category__object { height: 260px; }
  .reference-category__hint { font-size: .42rem; }
}
@media (max-width: 420px) {
  .benefit-panels { grid-template-columns: 1fr; }
  .benefit-panel, .benefit-panel summary { min-height: 340px; }
  .benefit-panel__art { min-height: 155px; }
  .reference-category-grid { grid-template-columns: 1fr; }
  .reference-category:nth-child(n) { border-left: 1px solid rgba(30,30,27,.12); }
  .reference-category__link { min-height: 390px; }
  .reference-category__object { height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-ticker__item img,
  .reference-category__image { animation: none !important; }
  .benefit-panel,
  .reference-category__image { transition: none !important; }
}


.reference-category__depth {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transform-style: preserve-3d;
  transform: translate3d(0,calc(var(--scroll-y,0px) + var(--hover-shift,0px)),0) rotateX(var(--tilt-x,0deg)) rotateY(calc(var(--tilt-y,0deg) + var(--scroll-turn,0deg)));
  transition: transform .35s ease;
}
.benefit-panel__detail { animation: reference-benefit-detail .32s ease both; }
@keyframes reference-benefit-detail {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}


.home .site-header .main-navigation li:nth-child(6n+1) a::before,
.home .site-header .main-navigation li:nth-child(6n+2) a::before,
.home .site-header .main-navigation li:nth-child(6n+3) a::before,
.home .site-header .main-navigation li:nth-child(6n+4) a::before,
.home .site-header .main-navigation li:nth-child(6n+5) a::before,
.home .site-header .main-navigation li:nth-child(6n) a::before {
  display: inline-block;
  margin-right: .42rem;
  font-size: .76rem;
  line-height: 1;
  vertical-align: -1px;
}
.home .site-header .main-navigation li:nth-child(6n+1) a::before { content: '✦'; color: #c67fc0; }
.home .site-header .main-navigation li:nth-child(6n+2) a::before { content: '◈'; color: #63aeb7; }
.home .site-header .main-navigation li:nth-child(6n+3) a::before { content: '✧'; color: #89a86b; }
.home .site-header .main-navigation li:nth-child(6n+4) a::before { content: '♡'; color: #db8fa7; }
.home .site-header .main-navigation li:nth-child(6n+5) a::before { content: '✺'; color: #b18ac9; }
.home .site-header .main-navigation li:nth-child(6n) a::before { content: '⌁'; color: #8e9aa9; }


/* ============================================================
   1.1.1 PRECISION OVERRIDES — VECTOR RABBIT-HOLE + ETHOS LANDING
   Original contour artwork and grocery copy; no photograph inside hero hole.
   ============================================================ */

/* Reference-style compact navigation: logo left; icon-led links and utility icons right. */
.home .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  color: #fff;
  transition: background-color .35s ease, color .35s ease, backdrop-filter .35s ease;
}
.home .site-header .header-inner {
  max-width: none;
  width: 100%;
  padding: .9rem clamp(1rem, 2.6vw, 2.8rem);
  gap: 1.5rem;
}
.home .site-header .site-title,
.home .site-header .main-navigation a,
.home .site-header .header-icon,
.home .site-header .menu-toggle { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.22); }
.home .site-header .site-title {
  font-size: clamp(.9rem, 1.15vw, 1.15rem);
  letter-spacing: -.02em;
  font-weight: 600;
  text-transform: none;
}
.home .site-header .custom-logo { max-height: 34px; width: auto; }
.home .site-header .main-navigation { margin-left: auto; }
.home .site-header .main-navigation .menu { gap: clamp(.65rem, 1.35vw, 1.45rem); }
.home .site-header .main-navigation a {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.94);
  font-size: clamp(.53rem, .61vw, .64rem);
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
}
.home .site-header .main-navigation a::after { display: none; }
.home .site-header .main-navigation li:nth-child(6n+1) a::before,
.home .site-header .main-navigation li:nth-child(6n+2) a::before,
.home .site-header .main-navigation li:nth-child(6n+3) a::before,
.home .site-header .main-navigation li:nth-child(6n+4) a::before,
.home .site-header .main-navigation li:nth-child(6n+5) a::before,
.home .site-header .main-navigation li:nth-child(6n) a::before {
  display: inline-block;
  margin-right: .38rem;
  font-size: .78rem;
  line-height: 1;
  vertical-align: -1px;
}
.home .site-header .main-navigation li:nth-child(6n+1) a::before { content: '✦'; color: #c77dc4; }
.home .site-header .main-navigation li:nth-child(6n+2) a::before { content: '◈'; color: #61b5c0; }
.home .site-header .main-navigation li:nth-child(6n+3) a::before { content: '✧'; color: #7ac8bd; }
.home .site-header .main-navigation li:nth-child(6n+4) a::before { content: '♡'; color: #ef8fbb; }
.home .site-header .main-navigation li:nth-child(6n+5) a::before { content: '✺'; color: #b68bd4; }
.home .site-header .main-navigation li:nth-child(6n) a::before { content: '⌁'; color: #a7aabc; }
.home .site-header .header-actions { gap: clamp(.65rem, 1.25vw, 1.2rem); }
.home .site-header .header-icon svg { width: 17px; height: 17px; }
.home .site-header .terrene-cart-count { background: #fff; color: #222; }
.home .site-header .menu-toggle span { background: #fff; }
.home .site-header.is-scrolled {
  background: rgba(247,246,242,.94) !important;
  border-bottom: 1px solid rgba(30,30,27,.11) !important;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.home .site-header.is-scrolled .site-title,
.home .site-header.is-scrolled .main-navigation a,
.home .site-header.is-scrolled .header-icon,
.home .site-header.is-scrolled .menu-toggle { color: #252522; text-shadow: none; }
.home .site-header.is-scrolled .menu-toggle span { background: #252522; }
.home .site-header.is-scrolled .terrene-cart-count { background: #252522; color: #fff; }

/* Opening scene: a vector-only hole; all photographic reveal uploads are removed. */
.terrain-entry--grocery { position: relative; z-index: 1; color: #fff; background: #f7f6f2; isolation: isolate; }
.terrain-entry--grocery .terrain-stage {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  background: #f7f6f2 url('../images/topographic-paper.svg') center/cover no-repeat;
}
.terrain-entry--grocery .terrain-camera {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: #f7f6f2 url('../images/topographic-paper.svg') center/cover no-repeat;
}
.terrain-camera__reveal {
  position: absolute; inset: -2%; z-index: 1; opacity: 0;
  background: radial-gradient(ellipse 44% 49% at 58% 42%, #010102 0%, #030407 34%, #0b0c10 58%, #1a1b20 72%, rgba(18,19,23,0) 100%);
  transform-origin: 58% 42%; will-change: transform, opacity;
}
.terrain-entry--grocery .terrain-cover {
  position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 54% 43%; transform-origin: 58% 42%; will-change: transform, opacity;
  filter: saturate(1.08) contrast(1.03);
}
.terrain-invitation {
  position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 0 0 clamp(4.5rem, 7.6vh, 6.6rem) clamp(1.2rem, 1.25vw, 1.7rem);
  pointer-events: none; text-align: left;
}
.terrain-invitation h1 {
  max-width: 8.7ch; margin: 0; color: #fff;
  font-family: var(--font-display); font-size: clamp(4.7rem, 8.3vw, 10rem);
  font-weight: 500; letter-spacing: -.055em; line-height: .84; text-wrap: balance;
  text-shadow: 0 2px 7px rgba(0,0,0,.25);
}
.terrain-enter-link {
  position: absolute; right: clamp(1.3rem, 2.4vw, 2.7rem); bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .55rem; padding: .65rem .95rem;
  border: 1px solid rgba(255,255,255,.5); border-radius: 6px; color: #fff;
  background: rgba(20,20,20,.12); backdrop-filter: blur(10px);
  font-size: .57rem; font-weight: 700; letter-spacing: .13em; pointer-events: auto;
}
.terrain-enter-arrow { display: inline-block; width: auto; height: auto; border: 0; font-size: .95rem; }
.terrain-chapter {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 1rem; color: #fff; font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 5.9rem); font-weight: 500; line-height: .98;
  letter-spacing: -.03em; text-align: center; text-shadow: 0 2px 22px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.terrain-chapter span { max-width: 12ch; }
.terrain-entry--grocery.is-enhanced .terrain-stage { height: 100svh; overflow: hidden; }
.terrain-entry--grocery.is-enhanced .terrain-camera { position: absolute; inset: 0; }
.terrain-entry--grocery.is-enhanced .terrain-invitation,
.terrain-entry--grocery.is-enhanced .terrain-chapter { position: absolute; inset: 0; display: flex; }

/* The first post-hole viewport is one combined editorial + cards composition. */
.home .brand-story.reference-ethos.benefits.reference-benefits {
  position: relative; padding: clamp(6.5rem, 11vw, 9.3rem) 0 clamp(5rem, 8vw, 7rem);
  color: #171715; background: #f7f6f2 url('../images/topographic-paper.svg') center 40%/cover no-repeat;
  border: 0;
}
.home .reference-ethos .brand-story__top {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  gap: clamp(3rem, 8vw, 8.5rem); align-items: center; margin: 0;
}
.home .reference-ethos .brand-story__headline .eyebrow { color: #55564f; font-size: .62rem; letter-spacing: .16em; }
.home .reference-ethos .brand-story__headline .section-h2 {
  max-width: 10ch; margin: .55rem 0 0; color: #171715; font-family: var(--font-display);
  font-size: clamp(3.8rem, 6.3vw, 7.25rem); font-weight: 600; line-height: .82; letter-spacing: -.055em; text-transform: uppercase;
}
.home .reference-ethos .brand-story__intro { max-width: 58ch; padding-top: 1.15rem; border-top: 1px solid rgba(30,30,27,.22); }
.home .reference-ethos .brand-story__body {
  margin: 0 0 1.55rem; color: #242420; font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.48vw, 1.58rem); line-height: 1.42;
}
.home .reference-ethos .brand-story__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.home .reference-ethos .editorial-link {
  display: inline-flex; align-items: center; gap: .55rem; min-width: 132px; padding: .7rem .9rem;
  border: 1px solid transparent; border-radius: 0; color: #242420; background: transparent;
  font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.home .reference-ethos .editorial-link::before,
.home .reference-ethos .editorial-link::after { content: ''; width: 7px; height: 7px; border-color: currentColor; border-style: solid; opacity: .72; }
.home .reference-ethos .editorial-link::before { border-width: 1px 0 0 1px; }
.home .reference-ethos .editorial-link::after { border-width: 0 1px 1px 0; }
.home .reference-ethos .benefit-panels { margin-top: clamp(2.8rem, 5vw, 4.35rem); }
.home .reference-ethos .benefit-panel { min-height: clamp(440px, 39vw, 565px); border-radius: 18px; }
.home .reference-ethos .benefit-panel summary { min-height: clamp(440px, 39vw, 565px); padding: 1.6rem 1.15rem 1.1rem; }
.home .reference-ethos .benefit-panel__art { min-height: 205px; }
.home .reference-ethos .benefit-panel__art svg { width: min(100%, 205px); height: 230px; }
.home .reference-ethos .benefit-panel__detail { font-size: .82rem; line-height: 1.55; }

/* Ticker remains a narrow black band; the next category stage is a numbered gallery. */
.home .marquee.reference-ticker { height: clamp(76px, 6.2vw, 104px); background: #050505; }
.home .reference-ticker__item { width: clamp(72px, 5.8vw, 104px); }
.home .reference-ticker__item img { max-height: 88%; }
.home .categories.reference-categories { background: #f7f6f2 url('../images/topographic-paper.svg') center 42%/cover no-repeat; }
.home .reference-categories__header h2 { font-size: clamp(3.8rem, 7.2vw, 8.7rem); }

/* Mobile preserves the same order but relaxes the pin for touch usability. */
@media (max-width: 1024px) {
  .home .site-header .main-navigation .menu { gap: .65rem; }
  .home .site-header .main-navigation a { font-size: .52rem; }
  .home .reference-ethos .brand-story__top { gap: 3rem; }
}
@media (max-width: 767px) {
  .home .site-header .header-inner { padding: .75rem 1rem; }
  .home .site-header .main-navigation { display: none; }
  .home .site-header .site-title { font-size: .9rem; }
  .terrain-entry--grocery .terrain-stage { min-height: 100svh; }
  .terrain-invitation { padding: 0 1rem 5.2rem; }
  .terrain-invitation h1 { max-width: 8.5ch; font-size: clamp(3.3rem, 13.5vw, 5.4rem); }
  .terrain-enter-link { right: 1rem; bottom: 1rem; }
  .terrain-chapter { font-size: clamp(2.45rem, 9vw, 4rem); }
  .home .brand-story.reference-ethos.benefits.reference-benefits { padding: 5rem 0 4.5rem; }
  .home .reference-ethos .brand-story__top { grid-template-columns: 1fr; gap: 2rem; }
  .home .reference-ethos .brand-story__headline .section-h2 { font-size: clamp(3.1rem, 13vw, 5.3rem); }
  .home .reference-ethos .brand-story__intro { padding-top: 1rem; }
  .home .reference-ethos .benefit-panels { margin-top: 2.5rem; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .home .reference-ethos .benefit-panel,
  .home .reference-ethos .benefit-panel summary { min-height: 310px; }
  .home .reference-ethos .benefit-panel summary { padding: 1rem .75rem .8rem; }
  .home .reference-ethos .benefit-panel__title { min-height: 58px; font-size: .9rem; }
  .home .reference-ethos .benefit-panel__art { min-height: 140px; }
  .home .reference-ethos .benefit-panel__art svg { height: 150px; }
  .home .marquee.reference-ticker { height: 70px; }
  .home .reference-ticker__item { width: 64px; }
}
@media (max-width: 420px) {
  .home .reference-ethos .benefit-panels { grid-template-columns: 1fr; }
  .home .reference-ethos .benefit-panel,
  .home .reference-ethos .benefit-panel summary { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .terrain-cover, .terrain-camera__reveal, .terrain-chapter { transition: none !important; }
}


/* Mobile menu: full-screen editorial overlay with the same icon-led navigation. */
.home .mobile-menu {
  position: fixed; inset: 0; z-index: 110; display: flex; align-items: center;
  padding: 5rem clamp(1.5rem, 7vw, 4rem); background: rgba(247,246,242,.985);
  color: #171715; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.home .mobile-menu[hidden] { display: none !important; }
.home .mobile-menu-inner { width: min(100%, 780px); margin-inline: auto; }
.home .mobile-menu .menu { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 2rem; list-style: none; margin: 0; padding: 0; }
.home .mobile-menu a {
  display: inline-flex; align-items: center; padding: .55rem 0; color: #171715;
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 4rem); line-height: 1;
  text-transform: none; letter-spacing: -.025em;
}
.home .mobile-menu li:nth-child(6n+1) a::before,
.home .mobile-menu li:nth-child(6n+2) a::before,
.home .mobile-menu li:nth-child(6n+3) a::before,
.home .mobile-menu li:nth-child(6n+4) a::before,
.home .mobile-menu li:nth-child(6n+5) a::before,
.home .mobile-menu li:nth-child(6n) a::before { margin-right: .65rem; font-family: var(--font-body); font-size: .85rem; }
.home .mobile-menu li:nth-child(6n+1) a::before { content: '✦'; color: #c77dc4; }
.home .mobile-menu li:nth-child(6n+2) a::before { content: '◈'; color: #61b5c0; }
.home .mobile-menu li:nth-child(6n+3) a::before { content: '✧'; color: #7ac8bd; }
.home .mobile-menu li:nth-child(6n+4) a::before { content: '♡'; color: #ef8fbb; }
.home .mobile-menu li:nth-child(6n+5) a::before { content: '✺'; color: #b68bd4; }
.home .mobile-menu li:nth-child(6n) a::before { content: '⌁'; color: #a7aabc; }
@media (max-width: 420px) {
  .home .mobile-menu .menu { grid-template-columns: 1fr; gap: .15rem; }
  .home .mobile-menu a { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}


/* ============================================================
   1.1.2 — Opaque portal aperture + reference hero/menu polish.
   The central hole is part of the vector artwork and is filled in
   SVG, so no image, background, or uploaded photo can show through.
   ============================================================ */
.terrain-entry--grocery .terrain-camera {
  background: #f7f6f2 url('../images/topographic-paper.svg') center/cover no-repeat !important;
}
.terrain-entry--grocery .terrain-camera__reveal {
  background: radial-gradient(ellipse 45% 48% at 58% 42%, #000 0%, #020305 46%, #090b0e 70%, rgba(9,11,14,0) 100%) !important;
}
.terrain-entry--grocery .terrain-camera__reveal img,
.terrain-entry--grocery .terrain-camera__reveal picture,
.terrain-entry--grocery .terrain-camera__reveal video { display: none !important; }
.terrain-entry--grocery .terrain-cover {
  background: transparent !important;
  filter: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.home .site-header .main-navigation .menu {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(.7rem, 1.45vw, 1.55rem);
}
.home .site-header .main-navigation li { margin: 0; padding: 0; }
.home .site-header .main-navigation a {
  min-height: 26px; font-size: clamp(.52rem, .59vw, .64rem);
  letter-spacing: .075em; font-weight: 700; text-transform: uppercase;
}
.home .site-header .main-navigation li:nth-child(6n+1) a::before,
.home .site-header .main-navigation li:nth-child(6n+2) a::before,
.home .site-header .main-navigation li:nth-child(6n+3) a::before,
.home .site-header .main-navigation li:nth-child(6n+4) a::before,
.home .site-header .main-navigation li:nth-child(6n+5) a::before,
.home .site-header .main-navigation li:nth-child(6n) a::before {
  width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center;
  margin-right: .34rem; border-radius: 50%; font-size: .74rem;
  text-shadow: none;
}
.home .site-header .main-navigation li:nth-child(6n+1) a::before {
  background: radial-gradient(circle at 35% 35%, #f5b9e5, #a85caf 72%); color: #17121a;
}
.home .site-header .main-navigation li:nth-child(6n+2) a::before {
  background: radial-gradient(circle at 35% 35%, #a8e6e5, #4e9cae 72%); color: #102126;
}
.home .site-header .main-navigation li:nth-child(6n+3) a::before {
  background: radial-gradient(circle at 35% 35%, #b9ead9, #65a99a 72%); color: #14251f;
}
.home .site-header .main-navigation li:nth-child(6n+4) a::before {
  background: radial-gradient(circle at 35% 35%, #ffd2e7, #dd77a5 72%); color: #2b1520;
}
.home .site-header .main-navigation li:nth-child(6n+5) a::before {
  background: radial-gradient(circle at 35% 35%, #e9d5ff, #9e77bd 72%); color: #21182a;
}
.home .site-header .main-navigation li:nth-child(6n) a::before {
  background: radial-gradient(circle at 35% 35%, #d9dded, #85899f 72%); color: #171821;
}
@media (max-width: 767px) {
  .home .site-header .main-navigation { display: none; }
}


/* ============================================================
   TERRENE 1.1.4 — living animated benefit illustrations.
   Original grocery copy/art only; the oval is a pure vector void.
   ============================================================ */
:root {
  --ref-paper: #f7f6f2;
  --ref-ink: #171715;
  --ref-muted: #777872;
  --container: 1440px;
}

/* Keep the compact icon-led header above the pinned hero. */
.home .site-header { z-index: 1200; }
.home .site-header .header-inner { min-height: 54px; }
.home .site-header .site-branding { flex: 0 0 auto; }
.home .site-header .main-navigation { display: block; margin-left: auto; }
.home .site-header .main-navigation .menu { align-items: center; }
.home .site-header .main-navigation a { gap: .34rem; }
.home .site-header .header-actions { flex: 0 0 auto; }
.home .site-header .header-icon { width: 22px; height: 26px; }
.home .site-header .header-icon svg { width: 16px; height: 16px; }
.home .site-header .header-icon.header-cart { position: relative; }
.home .site-header .terrene-cart-count { min-width: 12px; height: 12px; line-height: 12px; font-size: 8px; }

/* Vector-only start: no uploaded product photograph can be shown inside the hole. */
.terrain-entry--grocery,
.terrain-entry--grocery .terrain-stage { background: #f7f6f2; }
.terrain-entry--grocery .terrain-camera {
  background: #f7f6f2 url('../images/topographic-paper.svg') center/cover no-repeat !important;
  isolation: isolate;
}
.terrain-entry--grocery .terrain-cover {
  position: absolute; inset: 0; z-index: 2; display: block;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover !important; object-position: center center !important;
  background: transparent !important; border: 0; box-shadow: none;
  filter: none !important; mix-blend-mode: normal;
  transform-origin: 58.2% 41.7%; will-change: transform, opacity;
}
.terrain-entry--grocery .terrain-camera__reveal { display: none !important; }
.terrain-entry--grocery .terrain-invitation {
  left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 0 0 clamp(4.6rem, 7vh, 6.4rem) clamp(1.15rem, 1.2vw, 1.65rem);
  justify-content: flex-end; align-items: flex-start; pointer-events: none;
}
.terrain-entry--grocery .terrain-invitation h1 {
  display: flex; flex-direction: column; gap: 0;
  max-width: none; margin: 0; color: #fff;
  font-family: var(--font-display); font-size: clamp(4.6rem, 8vw, 9.6rem);
  font-weight: 500; letter-spacing: -.055em; line-height: .81;
  text-shadow: 0 2px 12px rgba(0,0,0,.13);
}
.terrain-entry--grocery .terrain-invitation h1 span { display: block; }
.terrain-entry--grocery .terrain-enter-link {
  right: clamp(1rem, 2.3vw, 2.6rem); bottom: 1.1rem;
  border: 1px solid rgba(255,255,255,.54); border-radius: 6px;
  padding: .65rem .9rem; background: rgba(24,24,24,.14);
  color: #fff; font-size: .57rem; letter-spacing: .1em;
  pointer-events: auto;
}
.terrain-entry--grocery .terrain-chapter {
  z-index: 5; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.28);
  font-family: var(--font-display); font-size: clamp(2.5rem, 4.4vw, 5rem);
  font-weight: 500; line-height: .95; letter-spacing: -.025em;
}
.terrain-entry--grocery .terrain-chapter span { max-width: 11ch; }
.terrain-entry--grocery.is-enhanced .terrain-camera { position: absolute; inset: 0; }
.terrain-entry--grocery.is-enhanced .terrain-cover { transform-origin: 58.2% 41.7%; }

/* First section after descent: match the reference's editorial proportions. */
.home .brand-story.reference-ethos.benefits.reference-benefits {
  padding-top: clamp(7.2rem, 11.7vw, 10.8rem);
  padding-bottom: clamp(5.6rem, 8.6vw, 8.2rem);
  background: #f7f6f2 url('../images/topographic-paper.svg') center 39%/cover no-repeat;
}
.home .reference-ethos .brand-story__top {
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, .96fr);
  align-items: start;
  gap: clamp(3rem, 7.4vw, 8rem);
}
.home .reference-ethos .brand-story__headline .section-h2 {
  max-width: 8.7ch;
  font-size: clamp(3.7rem, 6.15vw, 7.15rem);
  line-height: .81;
  letter-spacing: -.052em;
  font-weight: 600;
}
.home .reference-ethos .brand-story__intro {
  max-width: 57ch; margin-top: .15rem; padding-top: 1.15rem;
}
.home .reference-ethos .brand-story__body {
  max-width: 56ch; margin-bottom: 1.5rem;
  font-size: clamp(1.08rem, 1.35vw, 1.48rem); line-height: 1.43;
}
.home .reference-ethos .brand-story__actions { gap: .55rem; }
.home .reference-ethos .editorial-link { min-width: 130px; padding: .65rem .85rem; }
.home .reference-ethos .benefit-panels {
  margin-top: clamp(2.8rem, 4.8vw, 4.25rem);
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(.7rem, 1.15vw, 1.2rem);
  align-items: start;
}
.home .reference-ethos .benefit-panel,
.home .reference-ethos .benefit-panel summary {
  min-height: clamp(390px, 31vw, 485px);
}
.home .reference-ethos .benefit-panel summary { padding: 1.45rem 1rem 1.05rem; }
.home .reference-ethos .benefit-panel__index { display: none; }
.home .reference-ethos .benefit-panel__title {
  min-height: 62px; max-width: 100%; padding: .65rem .5rem;
  font-size: clamp(.95rem, 1.25vw, 1.28rem); line-height: .98;
  border-radius: 12px;
}
.home .reference-ethos .benefit-panel__art { min-height: 175px; margin-top: .7rem; }
.home .reference-ethos .benefit-panel__art svg { width: min(100%, 195px); height: 205px; }
.home .reference-ethos .benefit-panel__toggle {
  min-height: 36px; padding: .5rem .95rem; font-size: .52rem; letter-spacing: .12em;
}
.home .reference-ethos .benefit-panel__detail { margin: 0 .7rem .7rem; padding: .9rem; font-size: .78rem; }

/* The product strip is a thin black band, not a row of shop cards. */
.home .marquee.reference-ticker {
  height: clamp(68px, 5.7vw, 96px); padding: .55rem 0;
  background: #050505; border: 0;
}
.home .reference-ticker__track { gap: clamp(2.4rem, 4vw, 4rem); padding-inline: 1.7rem; }
.home .reference-ticker__item { width: clamp(58px, 4.3vw, 78px); }
.home .reference-ticker__item img { max-height: 88%; max-width: 100%; }

/* Ref-style category area: white space, oversized title and numbered columns. */
.home .categories.reference-categories {
  padding: clamp(5.5rem, 8vw, 7.7rem) 0 clamp(6rem, 9vw, 8.5rem);
  background: #f7f6f2 url('../images/topographic-paper.svg') center 45%/cover no-repeat;
}
.home .reference-categories__header { margin-bottom: clamp(3.6rem, 6vw, 5.8rem); }
.home .reference-categories__header h2 {
  font-size: clamp(3.7rem, 6.9vw, 8rem); line-height: .92; letter-spacing: -.045em;
}
.home .reference-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.home .reference-category__link { min-height: clamp(430px, 39vw, 560px); }
.home .reference-category__object { height: clamp(290px, 29vw, 415px); }
.home .reference-category__image { max-width: 95%; max-height: 95%; }

@media (max-width: 1024px) {
  .home .site-header .main-navigation { display: none; }
  .home .site-header .header-actions { margin-left: auto; }
  .home .reference-ethos .brand-story__top { grid-template-columns: 1fr 1fr; gap: 2.3rem; }
  .home .reference-ethos .benefit-panel,
  .home .reference-ethos .benefit-panel summary { min-height: 360px; }
}
@media (max-width: 767px) {
  .terrain-entry--grocery .terrain-stage { min-height: 100svh; }
  .terrain-entry--grocery .terrain-invitation { padding: 0 1rem 5rem; }
  .terrain-entry--grocery .terrain-invitation h1 { font-size: clamp(3.2rem, 13vw, 5.2rem); }
  .terrain-entry--grocery .terrain-enter-link { right: 1rem; bottom: 1rem; }
  .home .brand-story.reference-ethos.benefits.reference-benefits { padding: 5.2rem 0 4.6rem; }
  .home .reference-ethos .brand-story__top { grid-template-columns: 1fr; gap: 2rem; }
  .home .reference-ethos .brand-story__headline .section-h2 { max-width: 9ch; font-size: clamp(3.2rem, 13vw, 5.1rem); }
  .home .reference-ethos .benefit-panels { grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 2.4rem; }
  .home .reference-ethos .benefit-panel,
  .home .reference-ethos .benefit-panel summary { min-height: 300px; }
  .home .reference-ethos .benefit-panel summary { padding: .9rem .7rem .8rem; }
  .home .reference-ethos .benefit-panel__title { min-height: 55px; font-size: .88rem; }
  .home .reference-ethos .benefit-panel__art { min-height: 132px; }
  .home .reference-ethos .benefit-panel__art svg { height: 148px; }
  .home .reference-category-grid { grid-template-columns: 1fr 1fr; }
  .home .reference-category__link { min-height: 360px; }
  .home .reference-category__object { height: 260px; }
  .home .marquee.reference-ticker { height: 66px; }
}
@media (max-width: 420px) {
  .home .reference-ethos .benefit-panels { grid-template-columns: 1fr; }
  .home .reference-category-grid { grid-template-columns: 1fr; }
}


/* Living SVG illustration suite: independently animated botanical / wave / orbit / route art. */
.home .benefit-panel { isolation: isolate; transform-style: preserve-3d; }
.home .benefit-panel__art { overflow: visible; perspective: 900px; }
.home .benefit-illustration { overflow: visible; transform-style: preserve-3d; will-change: transform; }
.home .benefit-illustration [data-pop-dot] { transform-box: fill-box; transform-origin: center; will-change: transform, opacity; }
.home .benefit-illustration [data-draw-path],
.home .benefit-illustration [data-flow-path],
.home .benefit-illustration [data-ray-path],
.home .benefit-illustration [data-sun-ring],
.home .benefit-illustration [data-route-path] { vector-effect: non-scaling-stroke; will-change: stroke-dashoffset, opacity; }
.home .benefit-illustration__limb { transform-box: fill-box; transform-origin: center bottom; }
.home .benefit-illustration__branch-dots { transform-box: fill-box; transform-origin: center; }
.home .benefit-illustration__wave-field { transform-box: fill-box; transform-origin: center; }
.home .benefit-illustration__sun-rings,
.home .benefit-illustration__sun-rays { transform-box: fill-box; transform-origin: 50% 100%; }
.home .benefit-illustration__route-particles circle { filter: drop-shadow(0 0 3px currentColor); }
.home .benefit-panel summary:focus-visible .benefit-panel__art { filter: drop-shadow(0 0 10px currentColor); }
@media (prefers-reduced-motion: reduce) {
  .home .benefit-illustration, .home .benefit-illustration * { animation: none !important; transition: none !important; }
}


/* ============================================================
   TERRENE 1.1.5 — DEEPER PORTAL ALIGNMENT + CAMERA PASS
   New original sculpted 3D contour artwork; no reference-site assets.
   ============================================================ */
.terrain-entry--grocery,
.terrain-entry--grocery .terrain-stage {
  background: #d9d9d6 url('../images/topographic-paper.svg') center/cover no-repeat;
}
.terrain-entry--grocery .terrain-stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
}
.terrain-entry--grocery .terrain-camera {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #d9d9d6 url('../images/topographic-paper.svg') center/cover no-repeat;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.terrain-entry--grocery .terrain-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover !important;
  object-position: 57.8% 48.5% !important;
  transform-origin: 57.8% 48.5%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(1) contrast(1.02) saturate(1.04);
  will-change: transform, opacity, filter;
}
.terrain-entry--grocery.is-enhanced .terrain-camera,
.terrain-entry--grocery.is-enhanced .terrain-stage {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}
.terrain-entry--grocery.is-enhanced .terrain-cover {
  transform-origin: 57.8% 48.5%;
}
.terrain-entry--grocery .terrain-invitation {
  z-index: 4;
  pointer-events: none;
}
.terrain-entry--grocery .terrain-invitation h1 {
  color: #fff;
  text-shadow: 0 3px 22px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.3);
}
.terrain-entry--grocery .terrain-enter-link {
  pointer-events: auto;
  border-color: rgba(255,255,255,.62);
  background: rgba(28,28,31,.18);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.terrain-entry--grocery .terrain-chapter {
  z-index: 5;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.56), 0 0 2px rgba(0,0,0,.65);
  pointer-events: none;
  mix-blend-mode: normal;
}
.terrain-entry--grocery .terrain-chapter span {
  max-width: 13ch;
  text-align: center;
}
@media (max-width: 767px) {
  .terrain-entry--grocery .terrain-cover,
  .terrain-entry--grocery.is-enhanced .terrain-cover {
    /* object-position follows the same focal point as transform-origin after portrait cropping */
    object-position: 57.8% 48.5% !important;
    transform-origin: 57.8% 48.5%;
  }
  .terrain-entry--grocery .terrain-invitation h1 {
    font-size: clamp(3.5rem, 13.2vw, 5.8rem);
    line-height: .84;
  }
  .terrain-entry--grocery .terrain-chapter {
    font-size: clamp(2.5rem, 9vw, 4.3rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .terrain-entry--grocery .terrain-cover {
    transform: none !important;
    filter: none !important;
  }
}


/* ============================================================
   TERRENE 1.1.6 — reference-style compact floating navigation
   Screenshot target: tiny illustrated markers + uppercase links
   over the opening contour field; light header after the intro.
   ============================================================ */
.home .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1400;
  background: linear-gradient(180deg, rgba(18, 17, 24, .34), rgba(18, 17, 24, 0));
  border: 0;
  box-shadow: none;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .35s ease, color .35s ease, backdrop-filter .35s ease;
}
.home .site-header .header-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none !important;
  min-height: 76px;
  margin: 0;
  padding: 8px clamp(22px, 2.2vw, 42px);
  gap: clamp(14px, 1.6vw, 28px);
}
.home .site-header .site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 42px;
  margin: 0;
  padding: 0;
}
.home .site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.home .site-header .custom-logo-link img,
.home .site-header img.custom-logo {
  display: block;
  width: auto;
  max-width: 130px;
  max-height: 50px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.32));
}
.home .site-header .site-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.home .site-header .main-navigation {
  display: block;
  flex: 0 1 auto;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
}
.home .site-header .main-navigation .menu,
.home .site-header .main-navigation ul.menu {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(11px, 1.34vw, 23px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home .site-header .main-navigation li {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.home .site-header .main-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 24px;
  padding: 2px 0;
  color: rgba(255,255,255,.96);
  font-family: var(--font-body);
  font-size: clamp(8px, .53vw, 10px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
  transition: color .22s ease, opacity .22s ease, transform .22s ease;
}
.home .site-header .main-navigation a::after {
  display: none !important;
  content: none !important;
}
.home .site-header .main-navigation a::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 13px;
  width: 13px;
  height: 14px;
  margin: 0 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  font-family: "Arial Unicode MS", "Apple Symbols", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 7px currentColor, 0 1px 3px rgba(0,0,0,.4);
  transform-origin: 50% 50%;
  transition: transform .25s ease, filter .25s ease;
}
.home .site-header .main-navigation li:nth-child(6n+1) > a::before { content: "✿"; color: #f1a7e0; }
.home .site-header .main-navigation li:nth-child(6n+2) > a::before { content: "◈"; color: #d8a0ef; }
.home .site-header .main-navigation li:nth-child(6n+3) > a::before { content: "✧"; color: #79dce8; }
.home .site-header .main-navigation li:nth-child(6n+4) > a::before { content: "♡"; color: #ff9ecb; }
.home .site-header .main-navigation li:nth-child(6n+5) > a::before { content: "✺"; color: #c9a3ed; }
.home .site-header .main-navigation li:nth-child(6n) > a::before { content: "⌁"; color: #d6d5e7; }
.home .site-header .main-navigation a:hover,
.home .site-header .main-navigation a:focus-visible {
  color: #fff;
  opacity: 1;
}
.home .site-header .main-navigation a:hover::before,
.home .site-header .main-navigation a:focus-visible::before {
  transform: translateY(-1px) scale(1.22) rotate(-7deg);
  filter: brightness(1.2);
}
.home .site-header .header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(12px, 1.45vw, 22px);
  margin: 0 0 0 clamp(4px, .6vw, 10px);
  padding: 0;
}
.home .site-header .header-icon {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 19px;
  min-width: 19px;
  height: 24px;
  padding: 0;
  color: rgba(255,255,255,.96);
  opacity: .96;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
}
.home .site-header .header-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke: currentColor;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}
.home .site-header .header-icon:hover { color: #fff; transform: translateY(-1px); }
.home .site-header .terrene-cart-count { display: none !important; }
.home .site-header .menu-toggle {
  display: none;
  color: #fff;
}

/* WordPress submenu treatment: compact dark glass dropdown, not a large panel. */
.home .site-header .main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: -12px;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 168px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: rgba(20,20,25,.88);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.home .site-header .main-navigation li:hover > .sub-menu,
.home .site-header .main-navigation li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.home .site-header .main-navigation .sub-menu a {
  display: flex;
  min-height: 29px;
  padding: 7px 9px;
  color: rgba(255,255,255,.92);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: none;
  text-shadow: none;
}
.home .site-header .main-navigation .sub-menu a::before { display: none; }

/* Once the pinned intro has passed, switch to a clean light-paper header. */
.home .site-header.is-scrolled {
  background: rgba(247,246,242,.96);
  border: 0;
  box-shadow: 0 1px 0 rgba(20,20,18,.08);
  color: #171715;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.home .site-header.is-scrolled .site-title,
.home .site-header.is-scrolled .main-navigation a,
.home .site-header.is-scrolled .header-icon,
.home .site-header.is-scrolled .menu-toggle {
  color: #272722;
  text-shadow: none;
}
.home .site-header.is-scrolled .custom-logo-link img,
.home .site-header.is-scrolled img.custom-logo {
  filter: none;
}
.home .site-header.is-scrolled .main-navigation a::before {
  text-shadow: 0 0 4px currentColor;
}
.home .site-header.is-scrolled .header-icon svg { filter: none; }

/* Keep the reference header compact on tablets; mobile uses the existing drawer. */
@media (max-width: 1024px) {
  .home .site-header .header-inner {
    min-height: 68px;
    padding-inline: clamp(16px, 3vw, 28px);
  }
  .home .site-header .main-navigation { display: none; }
  .home .site-header .header-actions { margin-left: auto; }
  .home .site-header .menu-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .home .site-header .header-inner {
    min-height: 62px;
    padding: 7px 16px;
  }
  .home .site-header .custom-logo-link img,
  .home .site-header img.custom-logo { max-height: 42px; max-width: 112px; }
  .home .site-header .header-actions { gap: 13px; }
  .home .site-header .header-icon { width: 20px; min-width: 20px; }
}

/* The reference header shows only account and basket at the far right. */
@media (min-width: 1025px) {
  .home .site-header [data-search-toggle] { display: none !important; }
}


/* ============================================================
   TERRENE 1.1.7 — MOBILE FULL-SCREEN MENU (reference treatment)
   Compact icon-led list, low-contrast contour-paper texture and
   circular close control. Desktop header remains unchanged.
   ============================================================ */
@media (max-width: 1024px) {
  .home .mobile-menu,
  .mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden auto;
    padding: 0 !important;
    color: #f4f1ed !important;
    background-color: #101111 !important;
    background-image:
      radial-gradient(ellipse at 51% 48%, rgba(48,49,48,.22), rgba(12,13,13,0) 68%),
      linear-gradient(rgba(10,11,11,.91), rgba(10,11,11,.94)),
      url('../images/topographic-paper.svg') !important;
    background-size: cover, cover, cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    isolation: isolate;
  }
  .home .mobile-menu[hidden], .mobile-menu[hidden] { display: none !important; }
  .home .mobile-menu.is-open, .mobile-menu.is-open { opacity: 1; pointer-events: auto; }

  .mobile-menu-close {
    position: fixed;
    top: max(4px, env(safe-area-inset-top));
    right: 11px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 50%;
    color: rgba(255,255,255,.92);
    background: rgba(15,16,16,.22);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .mobile-menu-close:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.65); transform: rotate(5deg); }
  .mobile-menu-close:focus-visible, .mobile-submenu-toggle:focus-visible, .mobile-menu a:focus-visible { outline: 2px solid #d9c4f1; outline-offset: 5px; }

  .home .mobile-menu-inner, .mobile-menu-inner {
    position: absolute;
    top: clamp(14rem, 41.5vh, 20rem);
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0 8px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .home .mobile-menu nav, .mobile-menu nav { width: 100%; }
  .home .mobile-menu .menu, .mobile-menu .menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    width: 100%;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .home .mobile-menu .menu > li, .mobile-menu .menu > li {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin: 0 !important;
    padding: 0;
  }
  .home .mobile-menu .menu > li > a, .mobile-menu .menu > li > a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 !important;
    color: #f4f1ed !important;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif) !important;
    font-size: clamp(27px, 8.15vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -.025em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
    text-decoration: none;
  }
  .home .mobile-menu .menu > li > a::before, .mobile-menu .menu > li > a::before {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 31px;
    width: 31px;
    margin: 0 9px 0 0 !important;
    font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif !important;
    font-size: 22px !important;
    line-height: 1;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    filter: saturate(1.12);
  }
  .home .mobile-menu .menu > li:nth-child(6n+1) > a::before, .mobile-menu .menu > li:nth-child(6n+1) > a::before { content: '🥬'; }
  .home .mobile-menu .menu > li:nth-child(6n+2) > a::before, .mobile-menu .menu > li:nth-child(6n+2) > a::before { content: '🍓'; }
  .home .mobile-menu .menu > li:nth-child(6n+3) > a::before, .mobile-menu .menu > li:nth-child(6n+3) > a::before { content: '🪴'; }
  .home .mobile-menu .menu > li:nth-child(6n+4) > a::before, .mobile-menu .menu > li:nth-child(6n+4) > a::before { content: '💗'; }
  .home .mobile-menu .menu > li:nth-child(6n+5) > a::before, .mobile-menu .menu > li:nth-child(6n+5) > a::before { content: '🫐'; }
  .home .mobile-menu .menu > li:nth-child(6n) > a::before, .mobile-menu .menu > li:nth-child(6n) > a::before { content: '〰️'; }
  .home .mobile-menu .menu > li > a:hover, .mobile-menu .menu > li > a:hover { color: #fff !important; }

  .mobile-menu .menu-item-has-children > a { width: calc(100% - 43px) !important; }
  .mobile-submenu-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 42px;
    padding: 0;
    border: 0;
    color: #f4f1ed;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu .sub-menu, .home .mobile-menu .sub-menu {
    display: block;
    width: 100%;
    margin: 0 0 10px 48px !important;
    padding: 4px 0 8px !important;
    border-left: 1px solid rgba(255,255,255,.16);
    background: transparent !important;
  }
  .mobile-menu .sub-menu[hidden] { display: none !important; }
  .mobile-menu .sub-menu a {
    display: block;
    padding: 8px 14px !important;
    color: rgba(244,241,237,.82) !important;
    font-family: var(--font-display, Georgia, serif) !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
  }
}

@media (max-width: 420px) {
  .home .mobile-menu-inner, .mobile-menu-inner { padding-inline: 8px; }
  .home .mobile-menu .menu > li, .mobile-menu .menu > li,
  .home .mobile-menu .menu > li > a, .mobile-menu .menu > li > a { min-height: 58px; }
}
@media (max-height: 680px) and (max-width: 1024px) {
  .home .mobile-menu-inner, .mobile-menu-inner { top: 28vh; }
  .home .mobile-menu .menu > li, .mobile-menu .menu > li,
  .home .mobile-menu .menu > li > a, .mobile-menu .menu > li > a { min-height: 51px; }
  .home .mobile-menu .menu > li > a, .mobile-menu .menu > li > a { font-size: clamp(24px, 7.5vw, 30px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu-close { transition: none !important; }
}


/* ============================================================
   1.4.5 — SINGLE-PHOTO TWO-SIDED 3D GROCERY TURNSTILE
   The same featured image is placed on both sides of a slim 3D card:
   front → edge → mirrored reverse → edge → front.
   ============================================================ */
.reference-category__object[data-single-image-360] {
  perspective: 1500px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
  overflow: visible;
}

.reference-category__object[data-single-image-360]:active,
.reference-category__object[data-single-image-360].is-dragging {
  cursor: grabbing;
}

.reference-category__spin-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1500px;
  transform-style: preserve-3d;
  pointer-events: none;
  animation: reference-category-object-float 7.8s ease-in-out infinite;
}

.reference-category__rotor {
  position: relative;
  display: block;
  width: min(76%, 340px);
  height: 82%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
}

.reference-category__rotor-core {
  position: absolute;
  inset: 4% 3%;
  border-radius: 14px;
  transform: translateZ(0);
  background: linear-gradient(90deg,
    rgba(36,31,27,.44) 0%,
    rgba(213,201,180,.16) 18%,
    rgba(255,255,255,.28) 50%,
    rgba(155,143,126,.22) 80%,
    rgba(30,27,24,.42) 100%);
  box-shadow:
    0 0 0 1px rgba(50,42,32,.12),
    0 22px 32px rgba(25,22,18,.12);
  backface-visibility: hidden;
}

.reference-category__rotor-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reference-category__rotor-face--front {
  transform: translateZ(5px);
}

.reference-category__rotor-face--back {
  transform: rotateY(180deg) translateZ(5px);
}

.reference-category__face-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateZ(1px) !important;
  animation: none !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 23px rgba(36,31,24,.18));
  user-select: none;
  -webkit-user-drag: none;
}

.reference-category__face-image--reverse {
  transform: translateZ(1px) scaleX(-1) !important;
  filter: drop-shadow(0 22px 23px rgba(36,31,24,.2)) brightness(.91) saturate(.94);
}

.reference-category__object.is-dragging .reference-category__spin-stage {
  animation-play-state: paused;
}

.reference-category__object.is-single-360-ready .reference-category__hint {
  color: #716e65;
  opacity: .98;
  z-index: 3;
}

@keyframes reference-category-object-float {
  0%, 100% {
    transform: translate3d(0, 9px, 20px) rotateX(1.8deg);
  }
  50% {
    transform: translate3d(0, -11px, 44px) rotateX(-1.8deg);
  }
}

@media (hover: hover) {
  .reference-category__object[data-single-image-360]:hover .reference-category__rotor-core {
    box-shadow:
      0 0 0 1px rgba(50,42,32,.15),
      0 30px 40px rgba(25,22,18,.19);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-category__spin-stage {
    animation: none !important;
    transform: none !important;
  }
  .reference-category__object[data-single-image-360] .reference-category__rotor {
    transform: none !important;
    will-change: auto;
  }
}



/* ============================================================
   TERRENE 1.4.6 — EDITORIAL WOOCOMMERCE SHOP
   Inspired by the supplied shop-page reference: paper contour backdrop,
   left-aligned editorial heading, pill filters and a numbered three-column
   product gallery with isolated, floating product photography.
   ============================================================ */

.woocommerce-shop,
.post-type-archive-product,
.tax-product_cat {
  background-color: #f7f6f2 !important;
  background-image: url('../images/topographic-paper.svg') !important;
  background-position: center top !important;
  background-repeat: repeat-y !important;
  background-size: 100% auto !important;
  color: #171715 !important;
}

.woocommerce-shop .site-header,
.post-type-archive-product .site-header,
.tax-product_cat .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1400;
  width: 100%;
  background: linear-gradient(180deg, rgba(247,246,242,.72), rgba(247,246,242,0)) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #22221e;
}

.woocommerce-shop .site-header .header-inner,
.post-type-archive-product .site-header .header-inner,
.tax-product_cat .site-header .header-inner {
  width: 100%;
  max-width: none !important;
  min-height: 76px;
  margin: 0;
  padding: 8px clamp(22px, 2.2vw, 42px);
  gap: clamp(14px, 1.6vw, 28px);
}

.woocommerce-shop .site-header .site-title,
.woocommerce-shop .site-header .main-navigation a,
.woocommerce-shop .site-header .header-icon,
.woocommerce-shop .site-header .menu-toggle,
.post-type-archive-product .site-header .site-title,
.post-type-archive-product .site-header .main-navigation a,
.post-type-archive-product .site-header .header-icon,
.post-type-archive-product .site-header .menu-toggle,
.tax-product_cat .site-header .site-title,
.tax-product_cat .site-header .main-navigation a,
.tax-product_cat .site-header .header-icon,
.tax-product_cat .site-header .menu-toggle {
  color: #242420 !important;
  text-shadow: none !important;
}

.woocommerce-shop .site-header .main-navigation .menu,
.post-type-archive-product .site-header .main-navigation .menu,
.tax-product_cat .site-header .main-navigation .menu {
  align-items: center;
  gap: clamp(.85rem, 1.5vw, 1.7rem);
}

.woocommerce-shop .site-header .main-navigation a,
.post-type-archive-product .site-header .main-navigation a,
.tax-product_cat .site-header .main-navigation a {
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.woocommerce-shop .site-header .main-navigation li:nth-child(6n+1) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+1) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+1) a::before,
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+2) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+2) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+2) a::before,
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+3) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+3) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+3) a::before,
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+4) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+4) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+4) a::before,
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+5) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+5) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+5) a::before,
.woocommerce-shop .site-header .main-navigation li:nth-child(6n) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n) a::before {
  display: inline-block;
  margin-right: .38rem;
  font-size: .75rem;
  line-height: 1;
  vertical-align: -1px;
}
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+1) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+1) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+1) a::before { content: '✿'; color: #d78fc4; }
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+2) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+2) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+2) a::before { content: '◆'; color: #c39be0; }
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+3) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+3) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+3) a::before { content: '✦'; color: #75c6d0; }
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+4) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+4) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+4) a::before { content: '♡'; color: #ed9dbd; }
.woocommerce-shop .site-header .main-navigation li:nth-child(6n+5) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n+5) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n+5) a::before { content: '●'; color: #b796d5; }
.woocommerce-shop .site-header .main-navigation li:nth-child(6n) a::before,
.post-type-archive-product .site-header .main-navigation li:nth-child(6n) a::before,
.tax-product_cat .site-header .main-navigation li:nth-child(6n) a::before { content: '⌁'; color: #a8a8a1; }

.reference-shop-page {
  position: relative;
  z-index: 1;
  min-height: 75vh;
  padding: clamp(126px, 8vw, 154px) 24px clamp(7rem, 10vw, 10rem);
  color: #171715;
  background: transparent;
}

.reference-shop-shell {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.reference-shop-heading {
  max-width: 760px;
  margin: 0 0 clamp(2.2rem, 3vw, 3rem);
}

.reference-shop-eyebrow {
  display: block;
  margin: 0 0 1rem;
  color: #85857d;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.reference-shop-heading h1 {
  margin: 0;
  color: #171715;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(3.6rem, 4.2vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .94;
  text-transform: uppercase;
}

.reference-shop-subtitle {
  margin: 1.05rem 0 0;
  color: #686961;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.05rem, 1.2vw, 1.28rem);
  line-height: 1.45;
}
.reference-shop-subtitle p { margin: 0; }

.reference-shop-count {
  margin: .85rem 0 0;
  color: #999a92;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.reference-shop-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.8rem;
}

.reference-shop-pill {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid rgba(35,35,31,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #2b2b27 !important;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.reference-shop-pill:hover {
  border-color: #171715;
  background: rgba(255,255,255,.55);
  color: #111 !important;
  transform: translateY(-1px);
}
.reference-shop-pill.is-active,
.reference-shop-pill.is-active:hover {
  border-color: #151515;
  background: #151515;
  color: #f7f6f2 !important;
}

.reference-shop-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 clamp(2.3rem, 3vw, 3rem);
}
.reference-shop-sort__label {
  margin-right: .35rem;
  color: #999a92;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.reference-shop-sort .reference-shop-pill {
  min-height: 32px;
  padding: .55rem .88rem;
  font-size: .54rem;
}

.reference-shop-page .woocommerce-notices-wrapper:empty { display: none; }
.reference-shop-page .woocommerce-result-count,
.reference-shop-page .woocommerce-ordering { display: none !important; }

.reference-shop-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-top: 1px solid rgba(35,35,31,.11);
}

.reference-shop-page ul.products li.product,
.reference-shop-page ul.products li.product-card {
  position: relative;
  display: flex !important;
  width: auto !important;
  min-width: 0;
  min-height: 590px;
  flex-direction: column;
  float: none !important;
  margin: 0 !important;
  padding: 1.25rem clamp(1rem, 2.25vw, 2.25rem) 1.5rem !important;
  border: 0 !important;
  border-right: 1px solid rgba(35,35,31,.11) !important;
  border-bottom: 1px solid rgba(35,35,31,.11) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  list-style: none !important;
  transition: none !important;
}
.reference-shop-page ul.products li.product:nth-child(3n+1) {
  border-left: 1px solid rgba(35,35,31,.11) !important;
}

.reference-shop-product__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit !important;
  text-decoration: none !important;
}

.reference-shop-product__topline {
  display: flex;
  min-height: 25px;
  align-items: baseline;
  gap: .55rem;
  color: #2d2e29;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1.4;
}
.reference-shop-product__number { flex: 0 0 auto; color: #85867f; }
.reference-shop-product__name { overflow-wrap: anywhere; }

.reference-shop-product__object {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(330px, 31vw, 445px);
  flex: 0 0 auto;
  margin: .65rem 0 .5rem;
  place-items: center;
  perspective: 1350px;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
}
.reference-shop-product__object:active { cursor: grabbing; }

.reference-shop-product__depth {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transform-style: preserve-3d;
  transform: translate3d(0,calc(var(--scroll-y,0px) + var(--hover-shift,0px)),0)
    rotateX(var(--tilt-x,0deg)) rotateY(calc(var(--tilt-y,0deg) + var(--scroll-turn,0deg)));
  transition: transform .35s ease;
}

.reference-shop-product__image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 92% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 22px rgba(36,36,29,.15));
  transform: translate3d(0,0,38px) rotateZ(-1.5deg);
  animation: reference-shop-object-float 7.2s cubic-bezier(.42,0,.58,1) infinite;
  transition: filter .4s ease;
  backface-visibility: hidden;
}
.reference-shop-product:nth-child(3n+2) .reference-shop-product__image { animation-delay: -2.4s; }
.reference-shop-product:nth-child(3n+3) .reference-shop-product__image { animation-delay: -4.8s; }
.reference-shop-product__object:hover .reference-shop-product__image {
  filter: drop-shadow(0 30px 28px rgba(36,36,29,.19));
}

@keyframes reference-shop-object-float {
  0%, 100% { transform: translate3d(0,9px,38px) rotateX(1deg) rotateZ(-1.5deg); }
  50% { transform: translate3d(0,-12px,62px) rotateX(-1deg) rotateZ(1.5deg); }
}

.reference-shop-product__badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  padding: .38rem .58rem;
  border: 1px solid rgba(30,30,27,.14);
  border-radius: 999px;
  background: rgba(247,246,242,.8);
  color: #33342f;
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reference-shop-product__details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .8rem;
  justify-content: space-between;
  padding-top: .35rem;
  color: #262722;
}
.reference-shop-product__title {
  max-width: 70%;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  font-weight: 500;
  line-height: 1.1;
}
.reference-shop-product__price {
  color: #53554f;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.reference-shop-product__price del { opacity: .5; }
.reference-shop-product__price ins { color: #171715; text-decoration: none; }
.reference-shop-product__rating { flex: 0 0 100%; color: #8b765b; font-size: .68rem; }

.reference-shop-product__action {
  display: flex;
  justify-content: flex-start;
  padding-top: .9rem;
}
.reference-shop-product__add {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .58rem .85rem;
  border: 1px solid rgba(35,35,31,.28);
  border-radius: 999px;
  background: transparent;
  color: #262722 !important;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background .22s ease, color .22s ease;
}
.reference-shop-product__add:hover {
  border-color: #171715;
  background: #171715;
  color: #f7f6f2 !important;
}
.reference-shop-product__add.is-disabled { opacity: .5; }

.reference-shop-page .woocommerce-pagination {
  margin-top: 3rem;
}
.reference-shop-page .woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: .45rem;
  border: 0 !important;
}
.reference-shop-page .woocommerce-pagination li {
  border: 0 !important;
}
.reference-shop-page .woocommerce-pagination a,
.reference-shop-page .woocommerce-pagination span {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(35,35,31,.18);
  border-radius: 50%;
  background: transparent;
  color: #252623;
  font-size: .72rem;
}
.reference-shop-empty {
  padding: 4rem 0 7rem;
  color: #686961;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
}

@media (max-width: 1024px) {
  .reference-shop-page { padding-top: 116px; }
  .reference-shop-shell { width: min(100%, 900px); }
  .reference-shop-heading h1 { font-size: clamp(3.4rem, 7vw, 4.6rem); }
  .reference-shop-page ul.products { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .reference-shop-page ul.products li.product:nth-child(3n+1) { border-left: 0 !important; }
  .reference-shop-page ul.products li.product:nth-child(2n+1) { border-left: 1px solid rgba(35,35,31,.11) !important; }
  .reference-shop-product__object { height: clamp(280px, 42vw, 390px); }
}

@media (max-width: 767px) {
  .woocommerce-shop .site-header .header-inner,
  .post-type-archive-product .site-header .header-inner,
  .tax-product_cat .site-header .header-inner {
    min-height: 62px;
    padding: 7px 16px;
  }
  .woocommerce-shop .site-header .main-navigation,
  .post-type-archive-product .site-header .main-navigation,
  .tax-product_cat .site-header .main-navigation { display: none; }
  .reference-shop-page { padding: 100px 16px 5rem; }
  .reference-shop-heading { margin-bottom: 1.75rem; }
  .reference-shop-heading h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .reference-shop-subtitle { font-size: 1rem; }
  .reference-shop-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 .5rem;
    margin-right: -16px;
    scrollbar-width: thin;
  }
  .reference-shop-pill { min-height: 36px; padding: .58rem .8rem; font-size: .53rem; }
  .reference-shop-sort { gap: .4rem; margin-bottom: 2rem; }
  .reference-shop-sort__label { flex: 0 0 100%; margin-bottom: .15rem; }
  .reference-shop-page ul.products { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .reference-shop-page ul.products li.product { min-height: 420px; padding: .9rem .7rem 1.1rem !important; }
  .reference-shop-product__topline { font-size: .56rem; gap: .35rem; }
  .reference-shop-product__object { height: clamp(210px, 62vw, 285px); }
  .reference-shop-product__title { max-width: 100%; font-size: 1.06rem; }
  .reference-shop-product__price { font-size: .7rem; }
  .reference-shop-product__add { font-size: .46rem; padding: .52rem .65rem; }
}

@media (max-width: 420px) {
  .reference-shop-page ul.products { grid-template-columns: 1fr !important; }
  .reference-shop-page ul.products li.product { min-height: 460px; }
  .reference-shop-product__object { height: 310px; }
}

@media (prefers-reduced-motion: reduce) {
  .reference-shop-product__image { animation: none !important; transform: none !important; }
  .reference-shop-product__depth { transition: none !important; }
  .reference-shop-pill,
  .reference-shop-product__add { transition: none !important; }
}


/* ============================================================
   TERRENE 1.4.7 — SHOP TOP SPACING, OPEN HEADER & DISPLAY TYPE
   Corrects the archive top offset and prevents the floating menu from
   becoming a dark, compact capsule on WooCommerce shop/category pages.
   ============================================================ */

body.woocommerce-shop #masthead,
body.post-type-archive-product #masthead,
body.tax-product_cat #masthead {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(247,246,242,.76), rgba(247,246,242,0)) !important;
  box-shadow: none !important;
  color: #252522 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.woocommerce-shop #masthead.is-scrolled,
body.post-type-archive-product #masthead.is-scrolled,
body.tax-product_cat #masthead.is-scrolled {
  position: absolute !important;
  background: linear-gradient(180deg, rgba(247,246,242,.76), rgba(247,246,242,0)) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #252522 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.woocommerce-shop #masthead .header-inner,
body.post-type-archive-product #masthead .header-inner,
body.tax-product_cat #masthead .header-inner {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 76px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px clamp(22px, 2.2vw, 42px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: clamp(14px, 1.6vw, 28px) !important;
}

body.woocommerce-shop #masthead .site-branding,
body.post-type-archive-product #masthead .site-branding,
body.tax-product_cat #masthead .site-branding {
  flex: 0 0 auto !important;
  margin: 0 auto 0 0 !important;
}

body.woocommerce-shop #masthead .main-navigation,
body.post-type-archive-product #masthead .main-navigation,
body.tax-product_cat #masthead .main-navigation {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-shop #masthead .main-navigation .menu,
body.post-type-archive-product #masthead .main-navigation .menu,
body.tax-product_cat #masthead .main-navigation .menu {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(.65rem, 1.45vw, 1.55rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
}

body.woocommerce-shop #masthead .main-navigation a,
body.post-type-archive-product #masthead .main-navigation a,
body.tax-product_cat #masthead .main-navigation a {
  color: #252522 !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: .61rem !important;
  font-weight: 600 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

body.woocommerce-shop #masthead .header-icon,
body.post-type-archive-product #masthead .header-icon,
body.tax-product_cat #masthead .header-icon,
body.woocommerce-shop #masthead .menu-toggle,
body.post-type-archive-product #masthead .menu-toggle,
body.tax-product_cat #masthead .menu-toggle {
  color: #252522 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-shop .reference-shop-page,
body.post-type-archive-product .reference-shop-page,
body.tax-product_cat .reference-shop-page {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 75vh;
  padding: clamp(142px, 8.5vw, 166px) 24px clamp(7rem, 10vw, 10rem) !important;
  margin: 0 auto !important;
  background: transparent !important;
}

body.woocommerce-shop .reference-shop-shell,
body.post-type-archive-product .reference-shop-shell,
body.tax-product_cat .reference-shop-shell {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
}

body.woocommerce-shop .reference-shop-heading h1,
body.post-type-archive-product .reference-shop-heading h1,
body.tax-product_cat .reference-shop-heading h1 {
  font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif !important;
  font-size: clamp(3.9rem, 4.55vw, 5.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em !important;
  line-height: .94 !important;
  text-transform: uppercase !important;
  color: #171715 !important;
}

body.woocommerce-shop .reference-shop-subtitle,
body.post-type-archive-product .reference-shop-subtitle,
body.tax-product_cat .reference-shop-subtitle {
  font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif !important;
  font-size: clamp(1.08rem, 1.25vw, 1.3rem) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #55564f !important;
}

body.woocommerce-shop .reference-shop-eyebrow,
body.post-type-archive-product .reference-shop-eyebrow,
body.tax-product_cat .reference-shop-eyebrow,
body.woocommerce-shop .reference-shop-count,
body.post-type-archive-product .reference-shop-count,
body.tax-product_cat .reference-shop-count,
body.woocommerce-shop .reference-shop-pill,
body.post-type-archive-product .reference-shop-pill,
body.tax-product_cat .reference-shop-pill,
body.woocommerce-shop .reference-shop-sort__label,
body.post-type-archive-product .reference-shop-sort__label,
body.tax-product_cat .reference-shop-sort__label {
  font-family: "DM Sans", Arial, sans-serif !important;
}

body.woocommerce-shop .reference-shop-product__title,
body.post-type-archive-product .reference-shop-product__title,
body.tax-product_cat .reference-shop-product__title {
  font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif !important;
  font-weight: 500 !important;
}

body.woocommerce-shop .reference-shop-product__image,
body.post-type-archive-product .reference-shop-product__image,
body.tax-product_cat .reference-shop-product__image {
  filter: drop-shadow(0 24px 26px rgba(36,36,29,.2)) !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 1024px) {
  body.woocommerce-shop .reference-shop-page,
  body.post-type-archive-product .reference-shop-page,
  body.tax-product_cat .reference-shop-page {
    padding-top: 122px !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-shop #masthead .header-inner,
  body.post-type-archive-product #masthead .header-inner,
  body.tax-product_cat #masthead .header-inner {
    min-height: 62px !important;
    padding: 7px 16px !important;
  }
  body.woocommerce-shop .reference-shop-page,
  body.post-type-archive-product .reference-shop-page,
  body.tax-product_cat .reference-shop-page {
    padding: 96px 16px 5rem !important;
  }
  body.woocommerce-shop .reference-shop-heading h1,
  body.post-type-archive-product .reference-shop-heading h1,
  body.tax-product_cat .reference-shop-heading h1 {
    font-size: clamp(3rem, 12vw, 4.25rem) !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-shop #masthead .main-navigation,
  body.post-type-archive-product #masthead .main-navigation,
  body.tax-product_cat #masthead .main-navigation {
    display: none !important;
  }
}



/* ============================================================
   TERRENE 1.4.8 — REFERENCE SHOP ALIGNMENT / GRID FIX
   ============================================================ */

/* Header: logo/brand at far left; menu and account/cart cluster at far right.
   Do not distribute the three flex children with space-between, which leaves
   the navigation floating in the middle of the screen. */
body.woocommerce-shop #masthead .header-inner,
body.post-type-archive-product #masthead .header-inner,
body.tax-product_cat #masthead .header-inner {
  justify-content: flex-start !important;
  gap: clamp(14px, 1.35vw, 25px) !important;
}

body.woocommerce-shop #masthead .site-branding,
body.post-type-archive-product #masthead .site-branding,
body.tax-product_cat #masthead .site-branding {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

body.woocommerce-shop #masthead .site-branding .custom-logo,
body.post-type-archive-product #masthead .site-branding .custom-logo,
body.tax-product_cat #masthead .site-branding .custom-logo {
  display: block;
  width: auto;
  max-width: 118px;
  max-height: 48px;
  object-fit: contain;
}

body.woocommerce-shop #masthead .site-branding .site-title,
body.post-type-archive-product #masthead .site-branding .site-title,
body.tax-product_cat #masthead .site-branding .site-title {
  display: inline-block;
  color: #22221f !important;
  font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  letter-spacing: .025em !important;
  line-height: 1 !important;
  text-transform: none !important;
  white-space: nowrap;
}

body.woocommerce-shop #masthead .main-navigation,
body.post-type-archive-product #masthead .main-navigation,
body.tax-product_cat #masthead .main-navigation {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
}

body.woocommerce-shop #masthead .main-navigation .menu,
body.post-type-archive-product #masthead .main-navigation .menu,
body.tax-product_cat #masthead .main-navigation .menu {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(.72rem, 1.22vw, 1.45rem) !important;
}

body.woocommerce-shop #masthead .header-actions,
body.post-type-archive-product #masthead .header-actions,
body.tax-product_cat #masthead .header-actions {
  flex: 0 0 auto !important;
  margin: 0 0 0 clamp(10px, 1.15vw, 22px) !important;
  gap: clamp(.65rem, 1vw, 1.05rem) !important;
}

body.woocommerce-shop #masthead .main-navigation a,
body.post-type-archive-product #masthead .main-navigation a,
body.tax-product_cat #masthead .main-navigation a {
  font-size: .60rem !important;
  letter-spacing: .075em !important;
  white-space: nowrap;
}

/* The product list uses CSS Grid. WooCommerce's clearfix pseudo-elements
   become anonymous grid items and occupy grid cells unless explicitly removed.
   This is what produced an empty first product column in the supplied screenshot. */
body.woocommerce-shop .reference-shop-page ul.products::before,
body.woocommerce-shop .reference-shop-page ul.products::after,
body.post-type-archive-product .reference-shop-page ul.products::before,
body.post-type-archive-product .reference-shop-page ul.products::after,
body.tax-product_cat .reference-shop-page ul.products::before,
body.tax-product_cat .reference-shop-page ul.products::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-shop .reference-shop-page ul.products,
body.post-type-archive-product .reference-shop-page ul.products,
body.tax-product_cat .reference-shop-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  border-top: 0 !important;
  gap: 0 !important;
}

body.woocommerce-shop .reference-shop-page ul.products > li.reference-shop-product,
body.post-type-archive-product .reference-shop-page ul.products > li.reference-shop-product,
body.tax-product_cat .reference-shop-page ul.products > li.reference-shop-product {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid rgba(35,35,31,.12) !important;
  background: transparent !important;
}

body.woocommerce-shop .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n+1),
body.post-type-archive-product .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n+1),
body.tax-product_cat .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n+1) {
  border-left: 0 !important;
}

body.woocommerce-shop .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n),
body.post-type-archive-product .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n),
body.tax-product_cat .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n) {
  border-right: 0 !important;
}

/* Match the reference product-card first fold: numbered title first, then one
   isolated object, with details continuing naturally below the image. */
body.woocommerce-shop .reference-shop-product__topline,
body.post-type-archive-product .reference-shop-product__topline,
body.tax-product_cat .reference-shop-product__topline {
  min-height: 28px;
  font-size: .68rem !important;
  letter-spacing: .025em !important;
}

body.woocommerce-shop .reference-shop-product__object,
body.post-type-archive-product .reference-shop-product__object,
body.tax-product_cat .reference-shop-product__object {
  height: clamp(350px, 31vw, 455px) !important;
  margin-top: .8rem !important;
}

body.woocommerce-shop .reference-shop-product__depth,
body.post-type-archive-product .reference-shop-product__depth,
body.tax-product_cat .reference-shop-product__depth {
  width: 100%;
  height: 100%;
}

body.woocommerce-shop .reference-shop-product__image,
body.post-type-archive-product .reference-shop-product__image,
body.tax-product_cat .reference-shop-product__image {
  max-width: 94% !important;
  max-height: 94% !important;
  animation-duration: 8.5s !important;
}

@media (max-width: 1024px) {
  body.woocommerce-shop .reference-shop-page ul.products,
  body.post-type-archive-product .reference-shop-page ul.products,
  body.tax-product_cat .reference-shop-page ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  body.woocommerce-shop .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n),
  body.post-type-archive-product .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n),
  body.tax-product_cat .reference-shop-page ul.products > li.reference-shop-product:nth-child(3n) {
    border-right: 1px solid rgba(35,35,31,.12) !important;
  }
  body.woocommerce-shop .reference-shop-page ul.products > li.reference-shop-product:nth-child(2n),
  body.post-type-archive-product .reference-shop-page ul.products > li.reference-shop-product:nth-child(2n),
  body.tax-product_cat .reference-shop-page ul.products > li.reference-shop-product:nth-child(2n) {
    border-right: 0 !important;
  }
  body.woocommerce-shop .reference-shop-page ul.products > li.reference-shop-product:nth-child(2n+1),
  body.post-type-archive-product .reference-shop-page ul.products > li.reference-shop-product:nth-child(2n+1),
  body.tax-product_cat .reference-shop-page ul.products > li.reference-shop-product:nth-child(2n+1) {
    border-left: 0 !important;
  }
  body.woocommerce-shop .reference-shop-product__object,
  body.post-type-archive-product .reference-shop-product__object,
  body.tax-product_cat .reference-shop-product__object {
    height: clamp(280px, 42vw, 390px) !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-shop #masthead .header-inner,
  body.post-type-archive-product #masthead .header-inner,
  body.tax-product_cat #masthead .header-inner {
    justify-content: space-between !important;
  }
  body.woocommerce-shop #masthead .main-navigation,
  body.post-type-archive-product #masthead .main-navigation,
  body.tax-product_cat #masthead .main-navigation {
    display: none !important;
  }
}



/* ============================================================
   TERRENE 1.4.9 — REUSE HOMEPAGE SINGLE-IMAGE 360 ON SHOP CARDS
   Shop product cards now use the same front → edge → mirrored-back turntable.
   ============================================================ */
.reference-shop-product__object[data-single-image-360] {
  perspective: 1500px !important;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d !important;
  cursor: grab;
  touch-action: pan-y;
  overflow: visible !important;
}

.reference-shop-product__object[data-single-image-360]:active,
.reference-shop-product__object[data-single-image-360].is-dragging {
  cursor: grabbing;
}

.reference-shop-product__object[data-single-image-360] .reference-category__spin-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1500px;
  transform-style: preserve-3d;
  pointer-events: none;
  animation: reference-category-object-float 7.8s ease-in-out infinite;
}

.reference-shop-product__object[data-single-image-360] .reference-category__rotor {
  width: min(78%, 360px);
  height: 84%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.reference-shop-product__object[data-single-image-360] .reference-category__rotor-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reference-shop-product__object[data-single-image-360] .reference-category__rotor-face--front {
  transform: translateZ(5px);
}

.reference-shop-product__object[data-single-image-360] .reference-category__rotor-face--back {
  transform: rotateY(180deg) translateZ(5px);
}

.reference-shop-product__object[data-single-image-360] .reference-category__rotor-core {
  position: absolute;
  inset: 4% 3%;
  border-radius: 12px;
  background: linear-gradient(90deg,
    rgba(36,31,27,.32) 0%,
    rgba(213,201,180,.12) 18%,
    rgba(255,255,255,.20) 50%,
    rgba(155,143,126,.18) 80%,
    rgba(30,27,24,.30) 100%);
  box-shadow: 0 18px 28px rgba(25,22,18,.11);
  backface-visibility: hidden;
}

.reference-shop-product__object[data-single-image-360] .reference-category__face-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateZ(1px) !important;
  animation: none !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 23px rgba(36,31,24,.18));
  user-select: none;
  -webkit-user-drag: none;
}

.reference-shop-product__object[data-single-image-360] .reference-category__face-image--reverse {
  transform: translateZ(1px) scaleX(-1) !important;
  filter: drop-shadow(0 22px 23px rgba(36,31,24,.2)) brightness(.91) saturate(.94);
}

.reference-shop-product__object[data-single-image-360].is-dragging .reference-category__spin-stage {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .reference-shop-product__object[data-single-image-360] .reference-category__spin-stage {
    animation: none !important;
    transform: none !important;
  }
  .reference-shop-product__object[data-single-image-360] .reference-category__rotor {
    transform: none !important;
    will-change: auto;
  }
}


/* Custom brand photos replace only the selected expandable-card illustration. */
.benefit-panel__custom-image {
  display: block;
  width: min(76%, 230px);
  height: 190px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.14));
}
