/* V6 gallery: labelled showcase visuals, followed by original brand footage. */
.lab-moments,
.lab-pillars {
  --experience-green: #38543a;
  --experience-soft-green: #e6eadb;
  --experience-line: #bbc3a780;
  position: relative;
  isolation: isolate;
}
.lab-moment[data-photo-id=counter-overview] { --photo-start: .48; --photo-span: .40; --photo-x: .5; }
.lab-moment[data-photo-id=branded-drink] { --photo-start: .43; --photo-span: .43; --photo-x: .6; }
.lab-moment[data-photo-id=counter-service] { --photo-start: .12; --photo-span: .40; --photo-x: .4; }
.lab-moment[data-photo-id=drink-preparation] { --photo-start: .30; --photo-span: .38; --photo-x: .58; }
.lab-moment[data-photo-id=lemon-preparation] { --photo-start: .12; --photo-span: .55; --photo-x: .5; }
.lab-moment[data-photo-id=team-at-counter] { --photo-start: .28; --photo-span: .40; --photo-x: .5; }
.lab-moment[data-photo-id=store-conversation] { --photo-start: .25; --photo-span: .45; --photo-x: .6; }
.lab-moment[data-photo-id=guest-experience] { --photo-start: .52; --photo-span: .22; --photo-x: .7; }
.lab-moments { padding: 104px 0 88px; overflow: hidden; }
.lab-moments::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(145deg, #f7f5e8c9 20%, #f4efd5a8 68%, #fffbe4b8);
}
.lab-moments-header,
.lab-pillars-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 52px;
  margin-bottom: 38px;
}
.lab-moments-header { padding: 0 var(--gutter); }
.lab-moments-header h2,
.lab-pillars-header h2 {
  font-size: clamp(37px, 4.4vw, 65px);
  line-height: 1.12;
  max-width: 13em;
  margin-top: 17px;
  color: var(--experience-green);
}
.lab-moments-intro,
.lab-pillars-intro { max-width: 31ch; font-size: 13px; line-height: 1.85; color: #606854; padding-bottom: 3px; }
.lab-moments .eyebrow,
.lab-pillars .eyebrow { color: #63734e; }
.lab-moments-stage {
  display: block;
  width: 100%;
  margin: 0;
  padding: 19px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: default;
  overflow: hidden;
  appearance: none;
  user-select: none;
  touch-action: pan-x pan-y;
}
.lab-moments-stage:focus-visible { outline-offset: -4px; outline-color: var(--experience-green); }
.lab-moments-row { --moment-gap: 20px; display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scroll-behavior: auto; }
.lab-moments-row::-webkit-scrollbar { display: none; }
.lab-moments-row:focus-visible { outline-offset: -3px; outline-color: var(--experience-green); }
.lab-moments-row + .lab-moments-row { margin-top: var(--moment-gap); }
.lab-moments-track {
  display: flex;
  width: max-content;
  transform: none;
}
.lab-moments-set { display: flex; align-items: center; gap: var(--moment-gap); padding-right: var(--moment-gap); flex: none; }
.lab-moment {
  container-type: size;
  display: block;
  position: relative;
  flex: none;
  margin: 0;
  width: clamp(250px, 28vw, 390px);
  height: clamp(195px, 21vw, 280px);
  overflow: hidden;
  background: #e3e8cf;
  border: 1px solid #fffef1d9;
  border-radius: 8px;
  box-shadow: 0 9px 26px #424b2310;
}
.lab-moments-row:first-child .lab-moment:nth-child(2n) { width: clamp(220px, 23vw, 330px); }
.lab-moments-row:nth-child(2) .lab-moment:nth-child(2n + 1) { width: clamp(280px, 31vw, 430px); }
.lab-moment::after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, #142917a8); pointer-events: none; }
.lab-moment-image { position: absolute; width: 100%; max-width: none; height: calc(100% / var(--photo-span, .4)); top: calc(-100% * var(--photo-start, .3) / var(--photo-span, .4)); left: 0; object-fit: cover; object-position: 50% 0%; }
.lab-moment-caption { position: absolute; left: 21px; right: 21px; bottom: 18px; z-index: 1; display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; color: #fffef5; }
.lab-moment-title { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.lab-moment-source { display: none; }
.lab-moment--artwork { background: #e4e9d4 url('assets/backgrounds/sunlit-linen.webp') center / cover; }
.lab-moment--artwork .lab-moment-image { object-fit: contain; padding: 16px 18px 35px; }
.lab-moment--artwork::after { background: linear-gradient(transparent, #375133c2); }
.lab-moments-footer { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin: 15px var(--gutter) 0; padding-top: 19px; border-top: 1px solid var(--experience-line); }
.lab-moments-help { color: #5a694b; font-size: 11px; line-height: 1.7; max-width: 50ch; }
.lab-moments-controls { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.lab-moments-state { color: var(--experience-green); font-size: 10px; line-height: 1.7; text-align: right; }
.lab-moments-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; border: 1px solid #a6b190; border-radius: 3px; background: #fffdf09e; color: #38543a; font-size: 10px; line-height: 1.6; max-width: 260px; }
.lab-moments-toggle:hover:not(:disabled) { background: var(--lemon); border-color: #7a8c51; }
.lab-moments-toggle:disabled { opacity: .65; }
.lab-moments-toggle [data-moments-icon] { width: 15px; flex: none; font-size: 11px; }
.lab-moments-note { margin: 16px var(--gutter) 0; font-size: 9px; line-height: 1.8; color: #717860; max-width: 98ch; }

.lab-pillars { padding: 103px var(--gutter) 100px; background: #f9f7ed78; }
.lab-pillars-header { margin-bottom: 35px; }
.lab-pillars-list { display: flex; gap: 15px; min-width: 0; height: clamp(420px, 39vw, 540px); }
.lab-pillar {
  container-type: size;
  --pillar-contrast: #1d3618;
  position: relative;
  flex: .78;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  padding: 0;
  border-radius: 7px;
  border: 1px solid #dce0ce;
  background: #d9e2c5;
  color: #fffdf0;
  isolation: isolate;
  transition: flex .6s cubic-bezier(.22,.65,.25,1), box-shadow .3s;
}
.lab-pillar.is-active { flex: 2.55; box-shadow: 0 15px 35px #3a4e2515; }
.lab-pillar::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, #1735180b 20%, #17351828 46%, #18331bd9 100%); }
.lab-pillar-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-width: none; padding: 0; object-fit: cover; object-position: var(--pillar-focus,50% 50%); }
.lab-pillar-number { position: absolute; left: 23px; top: 22px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #fffdf0de; color: #3c5434; border: 1px solid #ffffffe0; font-size: 10px; line-height: 1; font-weight: 600; }
.lab-pillar-copy { position: absolute; left: 24px; right: 24px; bottom: 25px; display: flex; flex-direction: column; align-items: flex-start; }
.lab-pillar-title { display: block; font-family: var(--body); font-size: clamp(22px, 2.35vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.045em; overflow-wrap: normal; }
.lab-pillar-description { display: block; max-width: 40ch; max-height: 0; overflow: hidden; opacity: 0; font-size: 12px; line-height: 1.85; margin-top: 0; transform: translateY(8px); transition: opacity .3s .08s, max-height .45s, margin .3s, transform .4s; }
.lab-pillar.is-active .lab-pillar-description { max-height: 140px; opacity: 1; margin-top: 15px; transform: translateY(0); }
.lab-pillar-source { display: block; margin-top: 17px; padding-top: 12px; width: 100%; border-top: 1px solid #fffde53d; font-size: 8px; line-height: 1.6; opacity: .74; }
.lab-pillar-arrow { position: absolute; right: 22px; top: 24px; width: 26px; height: 26px; border: 1px solid #fffde57c; border-radius: 50%; display: grid; place-items: center; font-family: var(--body); font-size: 15px; line-height: 1; opacity: 0; transform: translate(-5px, 5px); transition: opacity .3s, transform .3s; }
.lab-pillar.is-active .lab-pillar-arrow { opacity: 1; transform: none; }
.lab-pillars-footer { display: flex; justify-content: space-between; gap: 35px; margin-top: 22px; font-size: 10px; line-height: 1.85; color: #69775b; }
.lab-pillars-footer p { max-width: 60ch; }
.lab-pillars-footer p:first-child { font-weight: 600; color: #4d6646; }
/* Size the full frame against its safe source window, then crop with CSS.
   This keeps historical subtitles outside the viewport even in short mobile cards. */
@supports (width: 1cqw) {
  .lab-moment-image {
    --source-ratio: var(--photo-source-ratio, .5627198124);
    --frame-width: max(100cqw, calc(100cqh * var(--source-ratio) / var(--photo-span, .4)));
    width: var(--frame-width);
    height: auto;
    left: calc((100cqw - var(--frame-width)) * var(--photo-x, .5));
    top: calc(50cqh - (var(--frame-width) / var(--source-ratio)) * (var(--photo-start, .3) + var(--photo-span, .4) / 2));
  }
}
html[data-motion=paused] .lab-pillar,
html[data-motion=paused] .lab-pillar-image,
html[data-motion=paused] .lab-pillar-description,
html[data-motion=paused] .lab-pillar-arrow { transition: none; }

@media (max-width: 1050px) {
  .lab-moments-header, .lab-pillars-header { gap: 32px; }
  .lab-moments-intro, .lab-pillars-intro { font-size: 12px; max-width: 29ch; }
  .lab-pillar-copy { left: 18px; right: 18px; bottom: 20px; }
  .lab-pillar-number { left: 18px; }
  .lab-pillar-title { font-size: 23px; }
  .lab-pillar-description { font-size: 11px; }
  .lab-pillars-list { gap: 11px; }
  .lab-pillar.is-active { flex: 2.7; }
}
@media (max-width: 700px) {
  .lab-moments { padding-top: 68px; padding-bottom: 60px; }
  .lab-moments-header, .lab-pillars-header { display: block; margin-bottom: 25px; }
  .lab-moments-header h2, .lab-pillars-header h2 { font-size: clamp(34px, 8.7vw, 48px); line-height: 1.15; margin-top: 15px; max-width: 12em; }
  .lab-moments-intro, .lab-pillars-intro { margin-top: 19px; max-width: 37ch; font-size: 12px; }
  .lab-moments-stage { padding-top: 7px; padding-bottom: 8px; }
  .lab-moments-row { --moment-gap: 12px; }
  .lab-moments-row::-webkit-scrollbar { display: none; }
  .lab-moments-row + .lab-moments-row { margin-top: 12px; }
  .lab-moment, .lab-moments-row:first-child .lab-moment:nth-child(2n), .lab-moments-row:nth-child(2) .lab-moment:nth-child(2n + 1) { width: min(72vw, 315px); height: 205px; }
  .lab-moment-caption { left: 17px; right: 17px; bottom: 16px; gap: 10px; }
  .lab-moment-title { font-size: 11px; }
  .lab-moment-source { font-size: 7px; max-width: 11em; }
  .lab-moments-footer { margin-top: 15px; padding-top: 16px; gap: 14px; }
  .lab-moments-footer { flex-direction: column; }
  .lab-moments-help { max-width: 46ch; font-size: 10px; }
  .lab-moments-controls { width: 100%; justify-content: space-between; gap: 12px; }
  .lab-moments-state { text-align: left; font-size: 9px; }
  .lab-moments-toggle { font-size: 9px; padding-inline: 13px; max-width: 235px; }
  .lab-moments-note { font-size: 9px; margin-top: 13px; }
  .lab-pillars { padding-top: 68px; padding-bottom: 63px; }
  .lab-pillars-list { display: grid; height: auto; gap: 12px; }
  .lab-pillar, .lab-pillar.is-active { height: 160px; min-height: 0; transition: height .4s cubic-bezier(.22,.65,.25,1); }
  .lab-pillar.is-active { height: 350px; }
  .lab-pillar::after { background: linear-gradient(90deg, #173518c9, #17351885 52%, #1735181a); }
  .lab-pillar.is-active::after { background: linear-gradient(180deg, #17351800 15%, #1735183d 43%, #18331be3 100%); }
  .lab-pillar-number { left: 20px; top: 18px; width: 29px; height: 29px; font-size: 9px; }
  .lab-pillar-copy { left: 20px; right: 20px; bottom: 18px; }
  .lab-pillar-title { font-size: 24px; line-height: 1.3; padding-right: 15px; }
  .lab-pillar-description { max-width: 37ch; font-size: 12px; }
  .lab-pillar.is-active .lab-pillar-description { margin-top: 11px; max-height: 135px; }
  .lab-pillar-source { width: auto; margin-top: 8px; padding-top: 0; border: 0; font-size: 8px; }
  .lab-pillar.is-active .lab-pillar-source { border-top: 1px solid #fffde549; padding-top: 11px; margin-top: 14px; width: 100%; }
  .lab-pillar-arrow { top: 20px; right: 20px; }
  .lab-pillars-footer { display: block; margin-top: 18px; font-size: 9px; }
  .lab-pillars-footer p + p { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-pillar, .lab-pillar-image, .lab-pillar-description, .lab-pillar-arrow { transition: none; }
}


/* Horizontal showcase canvases use their own full source ratio, not the portrait-footage crop. */
.lab-moment[data-photo-id^="showcase-store-"] { --photo-source-ratio: 1.5; --photo-start: 0; --photo-span: 1; --photo-x: .5; }
.lab-moments-row:first-child .lab-moment.lab-moment--showcase { width: clamp(330px,36vw,480px); height: clamp(220px,24vw,320px); }
.lab-moment-badge { position: absolute; z-index: 3; top: 15px; left: 17px; display: inline-flex; align-items: center; min-height: 26px; max-width: calc(100% - 34px); padding: 5px 10px; border: 1px solid #5d6c3f; border-radius: 3px; background: #fcf0c9; color: #344b2a; font-size: 9px; font-weight: 600; line-height: 1.5; box-shadow: 2px 2px 0 #344b2a16; }
.lab-moment--showcase .lab-moment-caption { bottom: 19px; }
.lab-moment--showcase .lab-moment-title { font-size: 14px; }
@media(min-width:901px) and (max-width:1100px) {
  .site-header .desktop-nav, .site-header .header-contact { display: none; }
  .site-header .menu-toggle { display: flex; }
  .site-header .mobile-menu { position: fixed; left: 0; right: 0; top: 90px; display: flex; flex-direction: column; gap: 0; padding: 24px var(--gutter) 35px; border-bottom: 1px solid var(--ink); background: var(--paper); box-shadow: 0 30px 50px #17191625; }
  .site-header .mobile-menu a, .site-header .mobile-menu > button { font: 700 28px/1.4 var(--display); padding: 15px 0; text-align: left; border-bottom: 1px solid var(--line); background: transparent; }
}
@media(max-width:700px) {
  .lab-moments-row:first-child .lab-moment.lab-moment--showcase { width: min(80vw,350px); height: min(53.333333vw,233.333333px); }
  .lab-moment-badge { top: 12px; left: 14px; padding: 4px 8px; min-height: 25px; font-size: 8px; }
  .lab-moment--showcase .lab-moment-title { font-size: 12px; }
}

/* Full landscape support images: no inherited portrait crop or artwork inset. */
.lab-pillar[data-lab-pillar=orchard] { --photo-source-ratio: 1.3333333333; --photo-start: 0; --photo-span: 1; --photo-x: .24; --pillar-focus: 24% 44%; }
.lab-pillar[data-lab-pillar=warehouse] { --photo-source-ratio: 1.3986013986; --photo-start: 0; --photo-span: 1; --photo-x: .5; --pillar-focus: 50% 50%; }
.lab-pillar[data-lab-pillar=awards] { --photo-source-ratio: 1.3333333333; --photo-start: 0; --photo-span: 1; --photo-x: .58; --pillar-focus: 58% 48%; }
.lab-pillar[data-lab-pillar=training] { --photo-source-ratio: 1.4917234664; --photo-start: 0; --photo-span: 1; --photo-x: .52; --pillar-focus: 52% 40%; }
.lab-pillar[data-lab-pillar=training].is-active { flex: 3.5; }
@media(min-width:701px) {
  .lab-pillar:not(.is-active) .lab-pillar-title { font-size: clamp(20px,1.65vw,26px); line-height: 1.3; }
}
.lab-moment[data-photo-id="showcase-store-01"] { --photo-source-ratio: 1.3333333333; --photo-start: 0; --photo-span: 1; --photo-x: .5; }
.lab-moments-row:first-child .lab-moment[data-photo-id="showcase-store-01"] { height: auto; aspect-ratio: 4/3; }
@media(max-width:700px) {
  .lab-moments-row:first-child .lab-moment[data-photo-id="showcase-store-01"] { height: min(60vw,262.5px); aspect-ratio: 4/3; }
  .lab-pillar[data-lab-pillar=training].is-active { height: 290px; }
}

/* Text-bearing partner posters stay complete, with captions outside the image. */
.lab-moment[data-photo-id=poster-models] { --poster-ratio: 1.0396659708; }
.lab-moment[data-photo-id=poster-sop],
.lab-moment[data-photo-id=poster-digital-growth],
.lab-moment[data-photo-id=poster-budget] { --poster-ratio: 1; }
.lab-moment[data-photo-id=poster-partner-support],
.lab-moment[data-photo-id=poster-social-media] { --poster-ratio: .8; }
.lab-moments-row:nth-child(2) .lab-moment.lab-moment--poster {
  --poster-height: clamp(350px,42svh,440px);
  container-type: normal;
  width: calc(var(--poster-height) * var(--poster-ratio,1));
  height: auto;
  border: 1px solid #d0d8bf;
  border-radius: 7px;
  background: #fffdf5;
  overflow: hidden;
}
.lab-moment--poster::after { display: none; }
.lab-poster-thumb { display: block; width: 100%; height: var(--poster-height,400px); min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: #fffdf5; cursor: zoom-in; }
.lab-poster-thumb:focus-visible { outline-offset: -4px; outline-width: 4px; }
.lab-poster-image { position: static; display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; padding: 0; transform: none; }
.lab-moment--poster .lab-moment-caption { position: static; inset: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 12px 14px; color: #38543a; }
.lab-moment--poster .lab-moment-title { font-size: 11px; line-height: 1.55; }
.lab-moment--poster .lab-moment-source { max-width: none; font-size: 8px; line-height: 1.6; text-align: left; color: #6d775e; }
.lab-moment--poster noscript a { display: block; padding: 0 14px 14px; font-size: 11px; text-decoration: underline; color: #38543a; }
.lab-posters-notice { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; max-width: none; font-size: 11px; line-height: 1.85; }
.lab-posters-notice p { max-width: 85ch; }
.lab-posters-hotline { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid #80935c; border-radius: 3px; background: #f4efb5; color: #36532f; font-size: 10px; line-height: 1.6; font-weight: 600; }
.lab-posters-hotline:hover { background: var(--lemon); }
body.poster-image-open { overflow: hidden; }
.lab-poster-dialog { width: min(1320px,calc(100vw - 36px)); max-width: calc(100vw - 24px); max-height: calc(100svh - 28px); padding: 0; border: 1px solid #bcc9a8; border-radius: 7px; background: #fffdf4; color: #29462e; overflow: auto; overscroll-behavior: contain; scroll-behavior: auto; }
.lab-poster-dialog::backdrop { background: #182c1bd9; backdrop-filter: blur(5px); }
.lab-poster-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 14px 20px; border-bottom: 1px solid #d9dfcc; background: #fffdf4f5; }
.lab-poster-dialog-heading { display: flex; flex-direction: column; gap: 4px; }
.lab-poster-dialog-heading p { font-size: 9px; color: #758260; letter-spacing: .035em; }
.lab-poster-dialog-heading h2 { font: 600 17px/1.5 var(--body); letter-spacing: -.02em; }
.lab-poster-dialog-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid #afbf96; border-radius: 50%; background: #fffdf4; font: 400 25px/1 var(--body); }
.lab-poster-dialog-close:hover { background: var(--lemon); }
.lab-poster-dialog .lab-posters-notice { margin: 0; padding: 17px 20px; border-bottom: 1px solid #d9dfcc; background: #f2f4e9; font-size: 11px; }
#lab-poster-image { position: static; display: block; width: 100%; max-width: 100%; height: auto; max-height: none; margin: 0; object-fit: contain; background: #fff; }
@media(max-width:700px) {
  .lab-moments-row:nth-child(2) .lab-moment.lab-moment--poster { --poster-height: min(82vw,360px); }
  .lab-moment--poster .lab-moment-caption { padding: 10px 12px; }
  .lab-moment--poster .lab-moment-title { font-size: 10px; }
  .lab-moment--poster .lab-moment-source { font-size: 8px; }
  .lab-posters-notice { flex-direction: column; align-items: flex-start; gap: 13px; font-size: 10px; }
  .lab-posters-hotline { font-size: 10px; }
  .lab-poster-dialog { width: calc(100vw - 18px); max-width: calc(100vw - 18px); max-height: calc(100svh - 18px); }
  .lab-poster-dialog-header { gap: 15px; padding: 12px 14px; }
  .lab-poster-dialog-heading h2 { font-size: 14px; }
  .lab-poster-dialog-heading p { font-size: 8px; }
  .lab-poster-dialog-close { width: 36px; height: 36px; font-size: 24px; }
  .lab-poster-dialog .lab-posters-notice { padding: 14px; font-size: 10px; }
}

/* New team/store image keeps the supplied 4:3 frame, including the full sign and people. */
.lab-moment[data-photo-id="showcase-store-team"] { --photo-source-ratio: 1.3333333333; --photo-start: 0; --photo-span: 1; --photo-x: .5; }
.lab-moments-row:first-child .lab-moment[data-photo-id="showcase-store-team"] { height: auto; aspect-ratio: 4/3; }
@media(max-width:600px) {
  .lab-moments-row:first-child .lab-moment[data-photo-id="showcase-store-team"] { height: min(60vw,262.5px); aspect-ratio: 4/3; }
}
