/* ==========================================================================
   Infinity Lamp — catalog page (catalog.html)
   Quiet and minimal: studio photos on one soft backdrop, short names,
   hairline rules. Hovering a lamp switches it on in place (its night shot);
   the Day / Night switch darkens the page and switches every lamp on.
   Loaded after style.css, so it reuses its tokens, nav, buttons and footer.
   ========================================================================== */
.page-catalog {
  --studio: #F2EDE7;     /* the backdrop baked into every studio photo */
  --night: #15110E;      /* the backdrop baked into every night photo (<id>-night.webp) */
  --page: var(--paper);
  background: var(--page);
}

/* ---------- night: the catalog goes dark and every lamp switches on ----------
   main.js puts .is-night on <body>; the pager on top and the footer are dark already. */
.page-catalog.is-night :is(.shop-head, .shop, .promise) {
  --page: var(--night);
  --studio: #201914;
  --espresso: var(--on-dark);
  --ink-2: rgb(241 234 223 / .74);
  --ink-3: rgb(241 234 223 / .56);
  --line: rgb(241 234 223 / .13);
  --teak: var(--teak-light);
  color: var(--on-dark);
}
.page-catalog.is-night .shop__bar { background: rgb(21 17 14 / .86); }
/* coming back in night mode: no fade on load */
.page-catalog.is-instant :is(.daynight__thumb, .daynight__btn, .tile__img--night) { transition: none !important; }
/* only while switching: text, rules and backgrounds fade with the room (photos have their own timing) */
.page-catalog.is-switching :is(.shop-head, .shop, .promise),
.page-catalog.is-switching :is(.shop-head, .shop, .promise) :not(img) {
  transition: color .8s var(--ease-io), background-color .8s var(--ease-io), border-color .8s var(--ease-io), opacity .25s !important;
}

/* ---------- featured pager: one night photo per page, swiped sideways ----------
   Each slide is painted in its photo's own dark tone (--tone) and the photo fades into it:
   from the left edge on wide screens, from the bottom edge on phones.
   main.js sets --off (-1 … 1, how far a slide is from centre) while you swipe, for the parallax. */
.pager {
  /* ends ~72px above the window's bottom edge: a hint of the page below,
     and the controls stay clear of Netlify's "Powered by" badge in the bottom-right corner */
  --h: clamp(480px, calc(100svh - 72px), 960px);
  --pw: min(58%, calc(var(--h) * .9));      /* photo width on wide screens */
  --dur: 6.5s;                              /* time per slide when it plays by itself */
  position: relative;
  height: var(--h);
  overflow: hidden;
  background: var(--photo-bg);
  color: var(--on-dark);
}
.pager__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  transition: opacity .22s;
}
.pager__track::-webkit-scrollbar { display: none; }
.pager.is-jumping .pager__track { opacity: 0; }
.pager.is-dragging .pager__track { scroll-snap-type: none; cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .pager__track { cursor: grab; } }

.pager__slide {
  --off: 0;
  --vis: 1;
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: 72px 100px;       /* centre the words between the nav and the controls */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--tone, var(--photo-bg));
}
.pager__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--pw);
  transform: translateX(calc(var(--off) * -16vw));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
  mask-image: linear-gradient(to right, transparent 0, #000 40%);
}
.pager__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  transform: scale(1.07);
  transition: transform 1.2s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.pager__slide.is-active .pager__img { transform: scale(1); transition: transform 9s cubic-bezier(.2, .6, .3, 1); }
/* night shots (is-flat) sit on --night already: their glow reaches the top and bottom of the frame,
   so they keep the full slide height (those edges stay hidden) and only fade in from the left,
   where the frame is dark anyway, ending before the widest shade */
.pager__slide.is-flat .pager__media {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%);
}
.pager__slide.is-flat .pager__img { object-position: 50% 50%; }

.pager__text {
  position: relative;
  z-index: 1;
  width: min(max(46%, 340px), 580px);
  margin: 0 0 0 max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  opacity: var(--vis);
  transform: translateX(calc(var(--off) * 10vw));
  text-shadow: 0 1px 18px rgb(0 0 0 / .45);   /* keeps the words readable where they meet a lit shade */
}
.pager__text > * { opacity: 0; transform: translateY(22px); transition: opacity .3s, transform .3s; }
.pager__slide.is-active .pager__text > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.pager__slide.is-active .pager__text > :nth-child(1) { transition-delay: .12s; }
.pager__slide.is-active .pager__text > :nth-child(2) { transition-delay: .2s; }
.pager__slide.is-active .pager__text > :nth-child(3) { transition-delay: .3s; }
.pager__slide.is-active .pager__text > :nth-child(4) { transition-delay: .4s; }
.pager__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.pager__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp-glow); box-shadow: 0 0 12px 2px rgb(255 199 126 / .55); }
.pager__title {
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 560;
  font-variation-settings: "opsz" 96, "wdth" 90;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.pager__line { margin-top: 22px; max-width: 34ch; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.55; color: var(--on-dark-2); }
.pager__cta { margin-top: 32px; text-shadow: none; }
.btn--light { background: var(--on-dark); color: var(--espresso); }
.btn--light:hover { background: #fff; }

/* controls: progress per slide, count, pause / previous / next */
.pager__ui {
  position: absolute;
  z-index: 2;
  left: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  right: var(--gutter);
  bottom: clamp(22px, 4.5vh, 44px);
  display: flex;
  align-items: center;
  gap: 18px 24px;
}
.pager__segs { display: flex; gap: 6px; width: min(300px, 40%); }
.pager__seg { position: relative; flex: 1; height: 28px; }
.pager__seg::before,
.pager__seg i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
}
.pager__seg::before { background: rgb(241 234 223 / .26); transition: background-color .25s; }
.pager__seg:hover::before { background: rgb(241 234 223 / .5); }
.pager__seg i { background: var(--on-dark); transform: scaleX(0); transform-origin: left; }
.pager__seg.is-past i { transform: scaleX(1); }
.pager__seg[aria-current="true"] i { animation: pager-fill var(--dur) linear forwards; }
.pager.is-paused .pager__seg[aria-current="true"] i { animation-play-state: paused; }
.pager.is-still .pager__seg[aria-current="true"] i { animation: none; transform: scaleX(1); }
@keyframes pager-fill { to { transform: scaleX(1); } }
.pager__seg:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; border-radius: 3px; }

.pager__count { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--on-dark-2); letter-spacing: .04em; }
.pager__count span:first-child { color: var(--on-dark); }
.pager__count i { margin: 0 6px; font-style: normal; opacity: .5; }
.pager__btns { display: flex; gap: 8px; margin-left: auto; }
.pager__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-dark);
  border: 1px solid rgb(241 234 223 / .3);
  background: rgb(18 13 9 / .42);          /* stays readable over a bright table in the photo */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .25s, border-color .25s, color .25s, transform .4s var(--ease-out);
}
.pager__btn:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--espresso); }
.pager__btn:active { transform: scale(.95); }
.pager__btn svg { width: 18px; height: 18px; }
.pager__btn:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.pager__play { display: none; }
.pager.is-stopped .pager__pause { display: none; }
.pager.is-stopped .pager__play { display: block; }

/* ---------- intro ---------- */
.shop-head { padding: clamp(118px, 17vh, 168px) var(--gutter) clamp(28px, 5vh, 48px); background: var(--page); }
.pager + .shop-head { padding-top: clamp(56px, 9vh, 96px); }
.shop-head__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
}
.shop-head__title {
  font-family: var(--f-display);
  font-weight: 560;
  font-variation-settings: "opsz" 96, "wdth" 92;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.shop-head__lede { max-width: 400px; padding-bottom: 6px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* ---------- filter bar: sits under the nav, slides up when the nav hides ---------- */
.shop { background: var(--page); padding-bottom: clamp(72px, 11vh, 120px); }
.shop__bar {
  position: sticky;
  top: 68px;
  z-index: 20;
  background: rgb(248 244 237 / .92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-block: 1px solid var(--line);
  transition: top .6s var(--ease-out);
}
body:has(.nav.is-hidden) .shop__bar { top: 0; }
.shop__bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.shop__base { display: flex; align-items: center; gap: 14px; }
.shop__label { font-size: 13px; color: var(--ink-3); }

/* text tabs with a hairline underline */
.tabs { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.tabs--quiet { gap: clamp(12px, 1.6vw, 20px); }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 54px;
  padding: 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-3);
  transition: color .25s, opacity .25s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--espresso);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.tab:hover { color: var(--espresso); }
.tab[aria-pressed="true"] { color: var(--espresso); }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }
.tab small { position: relative; top: -.45em; font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tab.is-zero:not([aria-pressed="true"]) { opacity: .45; }
.tab:focus-visible { outline-offset: -2px; }

/* ---------- grid ---------- */
.shop__body { padding: 0 var(--gutter); }
.shop__row {
  max-width: 1440px;
  margin: 14px auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shop__count {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* day / night switch: two options, a thumb slides under the chosen one */
.daynight {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(36 27 20 / .035);
}
.daynight__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--espresso);
  transition: transform .55s var(--ease-out), background-color .8s var(--ease-io);
}
.daynight[data-mode="night"] .daynight__thumb { transform: translateX(100%); background: var(--on-dark); }
.daynight__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-3);
  transition: color .4s;
}
.daynight__btn:hover { color: var(--espresso); }
.daynight__btn[aria-pressed="true"] { color: var(--paper); }
.page-catalog.is-night .daynight__btn[aria-pressed="true"] { color: var(--night); }
.daynight__btn svg { width: 16px; height: 16px; flex: none; }
.daynight__btn:focus-visible { outline: 2px solid var(--teak); outline-offset: 2px; }
.page-catalog.is-night .daynight { background: rgb(241 234 223 / .05); }
/* the moon picks up the lamp glow once it's night */
.page-catalog.is-night .daynight__btn[data-mode="night"] svg { color: #b0640f; }
.shop__grid {
  --cols: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(36px, 5vh, 56px) clamp(12px, 1.6vw, 24px);
}

.tile { scroll-margin-top: 150px; }
.tile[hidden] { display: none; }
.tile.is-entering { animation: tile-in .6s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px); } }

.tile__open { display: block; width: 100%; text-align: left; }
.tile__open:focus-visible { outline: none; }
.tile__open:focus-visible .tile__media { outline: 2px solid var(--teak); outline-offset: 4px; }
.tile__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--studio);
  isolation: isolate;
}
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease-out), transform 1.1s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.tile__img--alt { opacity: 0; transform: scale(1.04); }
/* the same lamp, same framing, switched on: it fades in over the studio photo at night */
.tile__img--night { opacity: 0; transition: opacity .6s var(--ease-io), transform 1.1s var(--ease-out); }
.tile.is-lit .tile__img--night { opacity: 1; }
/* touch screens, by day: the row in the middle of the screen is switched on (main.js) */
.page-catalog:not(.is-night) .tile.is-focus .tile__img--night { opacity: 1; }
.tile.is-flicker .tile__img--night { animation: night-flicker .9s linear both; }
@media (hover: hover) and (pointer: fine) {
  .tile__open:hover .tile__img { transform: scale(1.03); }
  .tile__open:hover .tile__img--alt { opacity: 1; transform: scale(1); }
  /* by day, hovering a lamp switches it on in place */
  .page-catalog:not(.is-night) .tile__open:hover .tile__img--night { opacity: 1; }
}
.tile__name {
  display: block;
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 560;
  font-variation-settings: "opsz" 32, "wdth" 94;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--espresso);
}
.tile__meta { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }

.shop__empty { max-width: 480px; margin: 24px auto 0; text-align: center; color: var(--ink-2); }
.shop__empty p { margin-bottom: 20px; }

/* ---------- what every lamp comes with ---------- */
.promise { padding: 0 var(--gutter) clamp(80px, 12vh, 130px); background: var(--page); }
.promise__list {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 40px) 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line);
}
.promise__list li { display: grid; gap: 4px; }
.promise__list b { font-family: var(--f-display); font-weight: 560; font-variation-settings: "opsz" 32, "wdth" 94; font-size: 1.05rem; }
.promise__list span { font-size: .93rem; color: var(--ink-2); }
.promise__ask {
  max-width: 1440px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  color: var(--ink-2);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--espresso);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .4s var(--ease-out), color .25s;
}
.link-arrow:hover { color: var(--teak); background-size: 0 1.5px; background-position: 100% 100%; }
.link-arrow i { font-style: normal; transition: transform .4s var(--ease-out); }
.link-arrow:hover i { transform: translate(2px, -2px); }

/* ---------- lamp viewer ---------- */
/* lock the page behind the viewer; --sbw keeps the layout from jumping when the scrollbar goes */
body.lb-open { overflow: hidden; padding-right: var(--sbw, 0px); }
body.lb-open .nav { padding-right: calc(var(--gutter) + var(--sbw, 0px)); }
.lb {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: clamp(12px, 3vw, 40px);
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgb(36 27 20 / .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  width: min(1240px, 100%);
  height: min(820px, 100%);
  overflow: hidden;
  border-radius: 10px;
  background: var(--page);
  color: var(--espresso);
  box-shadow: 0 40px 90px -40px rgb(36 27 20 / .55);
}
.lb[open] .lb__panel { animation: lb-in .5s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px); } }
.lb__media { position: relative; min-height: 0; background: var(--studio); touch-action: pan-y; user-select: none; transition: background-color .4s; }
.lb__media.is-night { background: var(--night); }
.lb__media.is-night .lb__counter { color: var(--on-dark-2); }
.lb__thumb.is-night { background: var(--night); }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.lb__media:not(.is-studio) .lb__img { inset: clamp(16px, 4%, 40px); width: calc(100% - 2 * clamp(16px, 4%, 40px)); height: calc(100% - 2 * clamp(16px, 4%, 40px)); }
.lb__img.is-swap { animation: lb-swap .4s var(--ease-out); }
@keyframes lb-swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 16px)); } }
.lb__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(248 244 237 / .9);
  color: var(--espresso);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .25s, transform .4s var(--ease-out);
}
.lb__arrow:hover { background: #fff; transform: scale(1.05); }
.lb__arrow svg { width: 18px; height: 18px; }
.lb__arrow--prev { left: 14px; }
.lb__arrow--next { right: 14px; }
.lb__counter {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.lb.is-single .lb__arrow,
.lb.is-single .lb__counter,
.lb.is-single .lb__thumbs { display: none; }
.lb__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--espresso);
  transition: background-color .25s, transform .4s var(--ease-out);
}
.lb__close:hover { background: var(--studio); transform: rotate(90deg); }
.lb__close svg { width: 18px; height: 18px; }

.lb__info { display: flex; flex-direction: column; min-height: 0; padding: clamp(40px, 6vh, 64px) clamp(24px, 3vw, 44px) 24px; overflow-y: auto; }
.lb__info > * { flex-shrink: 0; }
.lb__name {
  margin-right: 40px;
  font-family: var(--f-display);
  font-weight: 560;
  font-variation-settings: "opsz" 96, "wdth" 92;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.lb__desc { margin-top: 14px; max-width: 40ch; color: var(--ink-2); }
.lb__thumbs { display: flex; gap: 8px; margin-top: 24px; }
.lb__thumb {
  width: 58px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--studio);
  opacity: .55;
  transition: opacity .25s, box-shadow .25s;
}
.lb__thumb:hover { opacity: .85; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1.5px var(--espresso); }

.lb__specs { margin: 28px 0 0; border-top: 1px solid var(--line); }
.lb__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb__specs dt { color: var(--ink-3); }
.lb__specs dd { margin: 0; text-align: right; }
.lb__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.lb__ctas .btn { height: 48px; }
.lb__steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.lb__step { display: grid; gap: 2px; min-width: 0; padding: 4px 0; text-align: left; font-size: 12px; color: var(--ink-3); transition: color .25s; }
.lb__step b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--espresso); transition: color .25s; }
.lb__step:hover b { color: var(--teak); }
.lb__step--next { text-align: right; }
.lb.is-solo .lb__steps { display: none; }

/* ---------- Burmese ---------- */
html[lang="my"] .shop-head__title { line-height: 1.35; letter-spacing: 0; }
html[lang="my"] .tab { font-size: 13.5px; }
html[lang="my"] .tile__meta,
html[lang="my"] .lb__specs div { line-height: 1.7; }
html[lang="my"] .lb__desc,
html[lang="my"] .promise__list span { line-height: 1.8; }
html[lang="my"] .pager__kicker { font-size: 13px; letter-spacing: 0; text-transform: none; }
html[lang="my"] .pager__title { font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: 1.3; letter-spacing: -.01em; }
html[lang="my"] .pager__line { line-height: 1.85; }

/* ---------- responsive ---------- */
@media (min-width: 760px) { .shop__grid { --cols: 3; } }
@media (min-width: 1100px) { .shop__grid { --cols: 4; } }

/* phones and portrait tablets: photo on top fading down into the tone, words underneath.
   The photo keeps a portrait shape (centred, sides fading out) so the whole lamp stays in view. */
@media (max-width: 600px), (max-width: 1024px) and (max-aspect-ratio: 9/10) {
  .pager__slide { align-items: flex-end; padding-block: 0; }
  .pager__media {
    left: 0;
    right: 0;
    bottom: auto;
    width: min(100%, calc(var(--h) * .64 * .86));
    height: 64%;
    margin: 0 auto;
    transform: translateX(calc(var(--off) * -24vw));
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 66%, transparent 100%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
  }
  .pager__img { object-position: 50% 62%; }
  /* night shots: the whole square under the nav; its top glow fades in so the frame's edge never shows */
  .pager__slide.is-flat .pager__media {
    top: 44px;
    bottom: auto;
    width: 100%;
    height: calc(62% - 44px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 19%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 19%, #000 90%, transparent 100%);
  }
  .pager__slide.is-flat .pager__img { object-fit: contain; object-position: 50% 60%; }
  .pager__text { width: auto; max-width: 560px; margin: 0 var(--gutter) 96px; transform: translateX(calc(var(--off) * 14vw)); }
  .pager__kicker { font-size: 11.5px; }
  .pager__title { margin-top: 12px; font-size: clamp(2.3rem, 10vw, 3.6rem); }
  .pager__line { margin-top: 12px; font-size: .95rem; }
  .pager__cta { margin-top: 20px; height: 46px; }
  .pager__ui { left: var(--gutter); bottom: 22px; gap: 16px; }
  .pager__segs { flex: 1; width: auto; max-width: 280px; }
  .pager__btn { width: 42px; height: 42px; }
}

@media (max-width: 900px) {
  .shop__bar-inner { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; gap: 8px 28px; }
  .shop__bar-inner::-webkit-scrollbar { display: none; }
  .tabs, .shop__base { flex: none; }
  .tab { height: 48px; }

  .lb { padding: 0; }
  .lb__panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; border-radius: 0; }
  .lb__info { max-height: 52vh; max-height: 52dvh; padding: 20px var(--gutter) 16px; }
  .lb__name { font-size: 1.7rem; }
  .lb__desc { margin-top: 8px; font-size: .95rem; }
  .lb__thumbs { margin-top: 14px; }
  .lb__thumb { width: 48px; }
  .lb__specs { margin-top: 16px; }
  .lb__specs div { padding: 8px 0; font-size: 13.5px; }
  .lb__ctas { padding-top: 18px; }
  .lb__ctas .btn { flex: 1 1 auto; height: 46px; }
  .lb__steps { margin-top: 12px; padding-top: 10px; }
  .lb__close { background: rgb(248 244 237 / .9); }
  .lb__arrow { width: 38px; height: 38px; margin-top: -19px; }
  .lb__arrow--prev { left: 10px; }
  .lb__arrow--next { right: 10px; }
}

@media (max-width: 640px) {
  /* swipe does the paging on phones; keep only pause */
  #pagerPrev, #pagerNext { display: none; }
  .shop-head__inner { display: block; }
  .shop-head__lede { margin-top: 12px; font-size: .95rem; }
  .shop__grid { gap: 30px 12px; }
  .daynight__btn { height: 32px; padding: 0 13px 0 11px; font-size: 13px; }
  .tile__name { margin-top: 10px; font-size: .98rem; }
  .tile__meta { font-size: 12px; }
  .promise__list { grid-template-columns: 1fr; gap: 18px; }
  .lb__specs div:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile__img, .tile.is-entering, .tile.is-flicker .tile__img--night, .lb__img.is-swap, .lb[open] .lb__panel { transition: none; animation: none; }
  .daynight__thumb { transition: none; }
  .pager__img, .pager__slide.is-active .pager__img, .pager__media, .pager__text, .pager__text > * { transform: none !important; transition: none !important; }
  .pager__text > * { opacity: 1; }
}
