/* tomtoc page (Rev8): the hero film and the brand timeline.
   The hero is a short sequence of real tomtoc catalogue photographs inside one stage: a title card with the
   tomtoc logo on plain black, then four chapters (urban lifestyle → protection → organisation → on the move).
   Camera moves are transform-only CSS transitions (wipe = a moving clip box: the shot slides in while its image
   slides back the same distance; a slow push-in on each photo; the previous shot recedes and darkens), plus one
   light sweep per cut. tomtoc.js only switches classes on a timer, so nothing runs once the film has ended.
   Without JS, or with reduced motion, the final chapter is shown at once. */

/* tertiary text on the sand page: the global Soft Slate (#65707c) is 3.8:1 on #e7ddcf, so this page uses a warm grey (5.2:1 on sand, 6.2:1 on #f6f1ea) */
.tt-page { --on-paper-3: #5f584f; }

/* ---------------- timeline: tomtoc sand / copper on the light paper ---------------- */
.tl.tl-tt {
  --tl-ac: #8c5a38;               /* copper, 5.1:1 on #f6f1ea */
  --tl-glow: rgb(140 90 56 / .14);
  --tl-line: rgb(28 28 28 / .2);
  --tl-sep: rgb(28 28 28 / .1);
  --tl-dot: #f6f1ea;
  --tl-year: #736c63;             /* 4.6:1 on #f6f1ea */
  --tl-text: #4c4740;
}
.tl-tt .tl-fill { box-shadow: none; }
.tl-tt .tl-item h3 { color: var(--tt); }
.tt-hist .tl-side .lead { color: #4c4740; }

/* ---------------- hero ---------------- */
.tth {
  --dur: 4200ms;                       /* one chapter on screen */
  --wipe: 1250ms;                      /* the cut */
  --e-cam: cubic-bezier(.66, 0, .16, 1);
  --e-kb: cubic-bezier(.22, .5, .3, 1);
  --wx: 100%;                          /* the next shot enters from the reading end */
  --sv: 300px;                         /* height kept free around the stage */
  --ratio: 1.25;
  padding-block: 128px clamp(56px, 3rem + 3vw, 104px);
  color: var(--tt);
}
[dir="rtl"] .tth { --wx: -100%; }
.tth-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); grid-template-areas: "head film" "body film"; column-gap: clamp(32px, 4.5vw, 76px); align-items: start; }
.tth-head { grid-area: head; align-self: end; }
.tth-body { grid-area: body; align-self: start; padding-block-start: var(--s5); }
.tth-film { grid-area: film; align-self: center; justify-self: end; inline-size: min(100%, max(300px, calc((100svh - var(--sv)) * var(--ratio)))); }

/* brand lockup: the official logo file, beside (never on) the photographs */
.tth-brand { display: flex; align-items: center; gap: 18px; margin-block: var(--s6) var(--s6); }
.tth-logo { block-size: clamp(38px, 1.9rem + 1vw, 54px); inline-size: auto; }
.tth .h1 { font-weight: var(--w-1, 760); color: var(--tt); }
.tth .lead { color: #4c4740; max-inline-size: 44ch; }
.tth .btn:not(.btn-ghost) { --bg: var(--tt); --fg: #f6f1ea; }

/* the stage */
.tth-stage { position: relative; aspect-ratio: var(--ratio); border-radius: 18px; overflow: hidden; isolation: isolate; background: #141312;
  box-shadow: 0 1px 2px rgb(40 28 16 / .18), 0 34px 60px -34px rgb(40 28 16 / .55), 0 70px 110px -60px rgb(40 28 16 / .35); }
.tth-shot { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; z-index: 1; }
.tth-shot.is-on { visibility: visible; z-index: 5; }
.tth-shot.is-prev { visibility: visible; z-index: 3; }
.tth-shot::after { content: ""; position: absolute; inset: 0; background: #0d0c0b; opacity: 0; pointer-events: none; }
.tth-kb { position: absolute; inset: 0; }
.tth-kb { transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--k1, 1)); }
.tth-kb img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--op, 50%) 50%; }

/* per chapter: where the product sits (crop), and the camera move (k0 → k1) */
.tth-city { --op: 65%; --ox: 50%; --oy: 42%; --k0: 1.01; --k1: 1.1; }
.tth-zip  { --ox: 62%; --oy: 52%; --k0: 1.07; --k1: 1; }
.tth-org  { --op: 80%; --ox: 56%; --oy: 56%; --k0: 1.12; --k1: 1.03; }
.tth-move { --op: 44%; --ox: 50%; --oy: 62%; --k0: 1.09; --k1: 1; }

/* protection: a real cut-out of the zipper and pull (catalogue p18) on a plain warm backdrop.
   The cut-out is cropped at its top and left edges, so it stays anchored there (never mirrored: the pull carries the brand's own embossing). */
.tth-zip { background: radial-gradient(80% 70% at 78% 96%, #f4eee6, transparent 70%), linear-gradient(172deg, #cfc4b5, #e6ddd1 55%, #ddd3c5); }
.tth-zip .tth-kb img { position: absolute; inset-block-start: 0; left: -10%; inline-size: 110%; max-inline-size: none; block-size: auto; object-fit: fill; }

/* light sweep across a cut, and a quiet vignette on top of every shot */
.tth-dim { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgb(12 10 8 / .22)); }
.tth-sweep { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background-repeat: no-repeat; background-size: 300% 100%; background-position: 100% 0;
  background-image: linear-gradient(100deg, transparent 40%, rgb(255 248 236 / .2) 48%, rgb(255 248 236 / .32) 50%, rgb(255 248 236 / .2) 52%, transparent 60%); }
.tth-sweep.go { animation: tth-sweep 1500ms var(--e-cam) 1 both; }
[dir="rtl"] .tth-sweep.go { animation-name: tth-sweep-r; }
/* the band moves by background position (a moving transformed layer here would register as a layout shift) */
@keyframes tth-sweep { 0% { opacity: 0; background-position: 100% 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; background-position: 0% 0; } }
@keyframes tth-sweep-r { 0% { opacity: 0; background-position: 0% 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; background-position: 100% 0; } }

/* the title card: the white tomtoc logo on a dark veil over the first photograph, which shows through from the
   first paint (final technical closeout: an opaque card kept the first photograph off screen for about two seconds,
   the page's largest content). The veil then leaves with the same wipe as a cut. */
.tth-title { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 46%, rgb(42 39 36 / .72), rgb(18 17 16 / .84) 78%); opacity: 0; visibility: hidden; }
.tth-shot.is-under { visibility: visible; z-index: 2; }
.tth-shot.is-under .tth-kb { transform: scale(var(--k0, 1)); }
.tth-film.is-live .tth-title {
  -webkit-mask-image: linear-gradient(var(--mg), #000 45%, transparent 55%); mask-image: linear-gradient(var(--mg), #000 45%, transparent 55%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: var(--m0) 0; mask-position: var(--m0) 0; }
.tth-film.is-live.is-lift .tth-title { -webkit-mask-position: var(--m1) 0; mask-position: var(--m1) 0;
  transition: -webkit-mask-position var(--wipe) var(--e-cam), mask-position var(--wipe) var(--e-cam); }
.tth-title img { inline-size: clamp(150px, 36%, 300px); block-size: auto; opacity: 0; transform: scale(.96); transition: opacity 900ms var(--ease), transform 1500ms var(--ease); }
/* before tomtoc.js takes over (only when motion is allowed); a fallback hides it should the script never run */
@media (prefers-reduced-motion: no-preference) {
  .js .tth-film:not(.is-live) .tth-title { opacity: 1; visibility: visible; animation: tth-fallback 0s 5s forwards; }
  .js .tth-film:not(.is-live) .tth-shot.is-on { visibility: hidden; animation: tth-fallback-shot 0s 5s forwards; }
  .js .tth-film:not(.is-live) .tth-shot[data-i="0"] { visibility: visible; z-index: 2; animation: tth-fallback 0s 5s forwards; }
  .js .tth-film:not(.is-live) .tth-shot[data-i="0"] .tth-kb { transform: scale(var(--k0, 1)); }
}
@keyframes tth-fallback { to { opacity: 0; visibility: hidden; } }
@keyframes tth-fallback-shot { to { visibility: visible; } }
.tth-film.is-title .tth-title { opacity: 1; visibility: visible; }
.tth-film.is-title.logo-in .tth-title img { opacity: 1; transform: none; }

/* ---- the moves (JS adds is-enter without transitions, then is-on with them) ----
   The cut is a soft-edged mask wipe from the reading end (a mask keeps the element's box: a moving clip edge
   would register as a layout shift); each photo moves only through its own .tth-kb transform. */
.tth { --mg: 90deg; --m0: 0%; --m1: 100%; }
[dir="rtl"] .tth { --mg: 270deg; --m0: 100%; --m1: 0%; }
.tth-film.is-live .tth-shot {
  -webkit-mask-image: linear-gradient(var(--mg), transparent 45%, #000 55%); mask-image: linear-gradient(var(--mg), transparent 45%, #000 55%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: var(--m1) 0; mask-position: var(--m1) 0; }
.tth-film.is-live .tth-shot.is-enter { -webkit-mask-position: var(--m0) 0; mask-position: var(--m0) 0; }
.tth-shot.is-enter .tth-kb { transform: scale(var(--k0, 1)); }
.tth-shot.is-enter.tth-zip .tth-kb { transform: translate(-4%, -3%) scale(var(--k0, 1)); }
.tth-film.is-live .tth-shot.is-on { transition: -webkit-mask-position var(--wipe) var(--e-cam), mask-position var(--wipe) var(--e-cam); }
.tth-film.is-live .tth-shot.is-on .tth-kb { transition: transform calc(var(--dur) + var(--wipe)) var(--e-kb); }
/* the previous shot recedes: drifts against the cut, pushes in a little more, darkens */
.tth-film.is-live .tth-shot.is-prev .tth-kb { transform: translateX(calc(var(--wx) * -.08)) scale(calc(var(--k1, 1) * 1.05)); transition: transform var(--wipe) var(--e-cam); }
.tth-film.is-live .tth-shot.is-prev::after { opacity: .55; transition: opacity var(--wipe) linear; }
/* a choice made after the film (chapter buttons): a shorter cut, no long push-in */
.tth-film.is-done { --dur: 900ms; --wipe: 900ms; }

/* caption: the chapter line, the control, the chapter buttons */
.tth-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "line ctl" "rail rail"; gap: 16px 20px; align-items: center; margin-block-start: 22px; }
.tth-lines { grid-area: line; display: grid; }
.tth-line { grid-area: 1 / 1; margin: 0; font-family: var(--font-head); font-size: clamp(1.05rem, .9rem + .55vw, 1.4rem); font-weight: var(--w-2, 660); line-height: 1.5; color: var(--tt); opacity: 0; transform: translateY(8px); transition: opacity 450ms linear, transform 700ms var(--ease); text-wrap: balance; }
.tth-line.is-on { opacity: 1; transform: none; transition-delay: 320ms; }
.tth-ctl { grid-area: ctl; display: flex; }
.tth-btn { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--tt); box-shadow: inset 0 0 0 1px rgb(28 28 28 / .34); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 160ms linear, color 160ms linear, box-shadow 160ms linear, transform 160ms var(--ease); }
.tth-btn[hidden] { display: none; }
.tth-rail { grid-area: rail; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.tth-ch { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; align-content: start; gap: 10px 8px; min-block-size: 44px; padding: 0 0 4px; border: 0; background: none; color: #5f584f; font: inherit; text-align: start; cursor: pointer; }
.tth-bar { grid-column: 1 / -1; display: block; block-size: 2px; border-radius: 2px; background: rgb(28 28 28 / .17); overflow: hidden; }
.tth-bar > i { display: block; block-size: 100%; background: var(--tt); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .tth-bar > i { transform-origin: right; }
.tth-ch .n { font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tth-ch .t { font-size: .88rem; font-weight: 600; line-height: 1.45; overflow-wrap: break-word; hyphens: manual; }
.tth-ch.is-on { color: var(--tt); }
.tth-ch.is-on .tth-bar > i, .tth-ch.is-past .tth-bar > i { transform: none; }
.tth-film.is-play .tth-ch.is-on:not(.is-run) .tth-bar > i { transform: scaleX(0); }
.tth-film.is-play .tth-ch.is-on.is-run .tth-bar > i { transform: none; transition: transform var(--dur) linear; }
.tth-ch:focus-visible, .tth-btn:focus-visible { outline: 2px solid var(--tt); outline-offset: 4px; border-radius: 6px; }
.tth-btn:focus-visible { border-radius: 999px; }
html:not(.js) .tth-ch { pointer-events: none; }

/* jumps (skip, reset) and reduced motion: no transitions */
.tth-film.no-anim *, .tth-film.no-anim *::after { transition: none !important; animation: none !important; }
html[data-motion="reduce"] .tth-film *, html[data-motion="reduce"] .tth-film *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tth-film *, .tth-film *::after { transition: none !important; animation: none !important; } }

/* short screens: keep the whole stage on screen */
@media (max-height: 760px) { .tth { --sv: 220px; } }
@media (max-height: 560px) { .tth { --sv: 110px; padding-block-start: 104px; } }

/* tablet and phones: one column, the film between the headline and the text */
@media (max-width: 899px) {
  .tth { --ratio: 1.5; --sv: 150px; padding-block-start: 112px; }
  .tth-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "film" "body"; }
  .tth-head { align-self: start; }
  .tth-brand { margin-block: var(--s5) var(--s5); }
  .tth-film { justify-self: center; margin-block-start: var(--s6); }
  .tth-body { padding-block-start: var(--s6); }
  .tth-city { --op: 76%; } .tth-org { --op: 95%; } .tth-move { --op: 40%; }
}
/* landscape phones: side by side again */
@media (min-width: 640px) and (max-width: 899px) and (max-height: 520px) {
  .tth { --ratio: 1.3; --sv: 96px; padding-block-start: 92px; }
  .tth-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "head film" "body film"; column-gap: 28px; }
  .tth-head { align-self: end; }
  .tth-film { margin-block-start: 0; justify-self: end; align-self: start; }
  .tth-body { padding-block-start: var(--s4); }
  .tth-brand { margin-block: var(--s3) var(--s3); }
  .tth-cap { margin-block-start: 12px; gap: 8px 12px; }
}
/* phones (portrait): a portrait stage, its own crops */
@media (max-width: 599px) {
  .tth { --ratio: .8; --sv: 0px; padding-block-start: 104px; }
  .tth-film { inline-size: 100%; margin-block-start: var(--s5); }
  .tth-stage { border-radius: 14px; }
  .tth-city { --op: 59%; --ox: 50%; --oy: 45%; }
  .tth-org  { --op: 71%; }
  .tth-move { --op: 46%; --oy: 58%; }
  /* the cut-out keeps its pull and tab in frame: wider than the stage, anchored to its top-right */
  .tth-zip .tth-kb img { inline-size: 170%; left: auto; right: -8%; }
  .tth-shot.is-enter.tth-zip .tth-kb { transform: translate(3%, -3%) scale(var(--k0, 1)); }
  .tth-zip { --ox: 70%; --oy: 40%; }
  .tth-cap { gap: 14px 12px; margin-block-start: 16px; }
  .tth-btn { padding: 0 16px; font-size: .85rem; }
  .tth-ch { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tth-ch .t { font-size: .8rem; }
  .tth-brand { gap: 14px; }
}
/* page polish: the copper eyebrow of Rev6 (#b9825a) was below 4.5:1 on the sand; a deeper copper keeps the hue */
.tt-page .eyebrow { color: #75502f; }

/* categories on phones: the shared mosaic leaves the sixth tile alone in a half-width row; give it the full row */
@media (max-width: 720px) { .tt-page .mosaic .t6 { grid-column: span 2; } }

/* very large screens: the hero takes the first screen and centres its content */
@media (min-width: 1600px) and (min-height: 1000px) {
  .tth { min-block-size: min(100svh, 1300px); display: grid; align-content: center; padding-block-end: 96px; }
}

/* ---------------- Rev9: the owner's new photographs ---------------- */
/* intro: the one "inside the bag" moment — a product shot on white, contained at its natural proportions on a white
   card (the photo's own background), with a short caption */
.tt-quote figure.tt-in { overflow: visible; border-radius: 0; }
.tt-in-card { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: clamp(16px, 3vw, 40px); border-radius: 4px; background: #fff;
  box-shadow: 0 1px 2px rgb(40 28 16 / .08), 0 30px 60px -40px rgb(40 28 16 / .35); }
.tt-in-card img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1176 / 663; object-fit: contain; }
.tt-in figcaption { margin-block-start: 14px; font-size: .85rem; line-height: 1.6; color: #5f584f; }
@media (max-width: 1080px) { .tt-in-card img { inline-size: min(100%, 640px); } }
@media (max-width: 720px) { .tt-in-card { aspect-ratio: auto; padding: 20px 14px; } }

/* category tiles: where each new photograph keeps its product in frame (cover crops, never stretched) */
.tt-page .tile img { object-position: 50% 50%; }
.tt-page .tile .tt-ti-backpack { object-position: 58% 50%; }
.tt-page .tile .tt-ti-organiser { object-position: 22% 40%; }
.tt-page .tile .tt-ti-laptop { object-position: 18% 28%; }
.tt-page .tile .tt-ti-gaming { object-position: 50% 42%; }
@media (max-width: 720px) {
  .tt-page .tile .tt-ti-backpack { object-position: 50% 54%; }
  .tt-page .tile .tt-ti-organiser { object-position: 17% 50%; }
  .tt-page .tile .tt-ti-laptop { object-position: 6% 50%; }
}
/* a light scrim at the top of every tile so the tile number stays readable on pale desks and floors */
.tt-page .tile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgb(20 16 12 / .34), transparent 26%); }
.tt-page .tile .n { z-index: 2; }

/* shop panel: hands closing the sling's chest buckle (lifestyle) */
.tt-cta figure img.tt-buckle { object-position: 50% 52%; }
@media (max-width: 1080px) { .tt-cta figure img.tt-buckle { object-position: 92% 52%; } }

/* ---------------- Final design candidate (worker "brands"): interaction states, small-screen fixes ---------------- */
/* hover only where a pointer can hover (no sticky state after a tap), 160 ms; pressed = slight press; selected = .is-on */
.tth-ch { transition: color 160ms linear; }
.tth-ch:active .t, .tth-ch:active .n { opacity: .72; }
.tth-btn:active { transform: scale(.97); }
@media (hover: hover) {
  .tth-btn:hover { background: var(--tt); color: #f6f1ea; box-shadow: none; }
  .tth-ch:hover { color: var(--tt); }
  .tth-ch:not(.is-on):hover .tth-bar { background: rgb(28 28 28 / .3); }
}
/* category tiles: the photo zoom is a mouse-only hover (gated), the description shows on hover and on keyboard focus
   as before; on touch screens, where nothing can hover, the description is simply always shown (it was unreachable) */
.tt-page .tile { transition: transform 120ms var(--ease); }
.tt-page .tile:active { transform: scale(.992); }
.tt-page .tile .cap span span { transition: max-block-size 240ms var(--ease); }
@media (hover: none) { .tt-page .tile .cap span span { max-block-size: none; } } /* D12 (QA): a 60 px cap clipped 3–5 line descriptions on 320–390 px and tablets */
.tt-page .tile:focus-visible { outline-offset: 3px; }

/* hero calls to action: never squeezed below their label (wrap instead; the shared flex: 1 rule clipped them in narrow
   side-by-side columns, e.g. 667 x 375 and 200 % zoom) */
@media (max-width: 720px) { .tth .hero-ctas .btn { flex: 1 1 auto; justify-content: center; } }

/* landscape phones and 200 % zoom (short and narrow): a headline size in line with the UGREEN and IQAir heroes, and the
   chapter buttons in two rows so a chapter name never breaks inside a word */
@media (min-width: 640px) and (max-width: 899px) and (max-height: 520px) {
  .tth .h1 { font-size: 1.9rem; }
  .tth .lead { font-size: 1rem; }
  .tth-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .tth-ch .t { font-size: .8rem; }
}
/* narrow phones in English: "Organisation" is wider than a quarter of the rail */
@media (max-width: 380px) { :root[lang="en"] .tth-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } }
/* a narrow rail (e.g. 900–1000 px windows, where the film column is ~470 px): number above the name, as on phones,
   so the name gets the whole column */
.tth-rail { container: tthrail / inline-size; }
@container tthrail (max-width: 480px) { .tth-ch { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* intro on tablets (761–1080 px): the shared rule stacks it into one column, which made the white product card a
   ~940 × 590 px slab with the bag in its middle third and a ~110-character text line under it; two columns keep the
   card and the text in proportion, as on desktop. Phones keep the stacked layout. */
@media (min-width: 761px) and (max-width: 1080px) {
  .tt-page .tt-quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
  .tt-in-card { padding: clamp(14px, 2.4vw, 28px); }
}

/* D11 (QA): tile numbers over pale parts of a photo fell below 4.5:1 (06 all langs, 05 fa/ar, 02 en/zh-cn: the number sits on a
   different part of the photo in RTL and LTR). A small dark chip behind the number gives ≥ 5:1 on any photo (white on
   rgb(20 16 12 / .62) over pure white ≈ 5.2:1). */
.tt-page .tile .n { padding: 3px 8px 3px 9px; border-radius: 999px; background: rgb(20 16 12 / .62); line-height: 1.4; text-shadow: none; inset-block-start: 12px; inset-inline-start: 12px; }

/* D14 (QA): between 460 and 599 px the portrait 4:5 stage needed the 857 px catalogue photos at up to ×1.5; from 460 px the
   stage uses the tablet proportion and crops (whole photos are 857 × 462, never upscaled in files) */
@media (min-width: 460px) and (max-width: 599px) {
  .tth { --ratio: 1.5; }
  .tth-city { --op: 76%; --ox: 50%; --oy: 42%; }
  .tth-org { --op: 95%; }
  .tth-move { --op: 40%; --oy: 62%; }
  .tth-zip { --ox: 62%; --oy: 52%; }
  .tth-zip .tth-kb img { inline-size: 110%; left: -10%; right: auto; }
  .tth-shot.is-enter.tth-zip .tth-kb { transform: translate(-4%, -3%) scale(var(--k0, 1)); }
}

/* ---------------- Final master (owner, 2026-10-20) ---------------- */
/* intro photograph: a full-bleed lifestyle photo now, so no white mat */
.tt-in-card, .tt-quote .tt-in-card { padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e4dc; }
.tt-in-card img { inline-size: 100%; block-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 50%; }
@media (max-width: 1080px) { .tt-in-card img { inline-size: 100%; } }
@media (max-width: 720px) { .tt-in-card { aspect-ratio: 16 / 9; padding: 0; } }

/* product craftsmanship showcase: captions under the photographs, one studio feature */
.tts-head { max-inline-size: 760px; margin-block-end: clamp(28px, 3.5vw, 48px); }
.tts-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tts-tile { display: grid; grid-template-rows: auto auto; gap: 12px; align-content: start; color: var(--tt); text-decoration: none; }
.tts-fig { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #ddd3c5; }
.tts-img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .tts-tile:hover .tts-img { transform: scale(1.03); } }
.tts-f { grid-column: span 7; grid-row: span 2; grid-template-rows: 1fr auto; }
.tts-f .tts-fig { min-block-size: 360px; background: #fff; }
.tts-f .tts-img { position: absolute; inset: 0; object-fit: contain; } /* the whole product stays visible, on its own white studio ground */
.tts-w { grid-column: span 5; }
.tts-w .tts-fig { aspect-ratio: 16 / 9; }
.tts-s { grid-column: span 4; }
.tts-s .tts-fig { aspect-ratio: 4 / 3; }
/* the wide tiles share the feature's height: their two captions take the rest */
.tts-cap { display: grid; gap: 3px; padding-inline: 2px; }
.tts-cap b { font-size: 1.05rem; font-weight: 700; }
.tts-cap span { font-size: .9rem; line-height: 1.65; color: #4c4740; }
.tts-desk { object-position: 30% 50%; }
.tts-organiser { object-position: 50% 62%; }
.tts-theher { object-position: 40% 50%; }
.tts-backpack { object-position: 50% 40%; }
.tts-gaming { object-position: 50% 70%; }
.tts-tile:focus-visible { outline: 3px solid var(--tt-clay); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 1080px) {
  .tts-f { grid-column: 1 / -1; grid-row: auto; }
  .tts-f .tts-fig { aspect-ratio: 4 / 3; min-block-size: 0; } /* a min height with aspect-ratio would widen the tile past a phone screen */
  .tts-w { grid-column: span 6; }
  .tts-s { grid-column: span 4; }
}
@media (max-width: 720px) {
  .tts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tts-f, .tts-w { grid-column: 1 / -1; }
  .tts-s { grid-column: span 1; }
  .tts-s:last-child { grid-column: 1 / -1; }
  .tts-s:last-child .tts-fig { aspect-ratio: 16 / 9; }
  .tts-cap span { font-size: .86rem; }
}

/* YKK craftsmanship */
.ykk-head { max-inline-size: 780px; margin-block-end: clamp(28px, 3.5vw, 44px); }
.ykk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.ykk-fig { margin: 0; display: grid; gap: 12px; }
.ykk-ph { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 5 / 4; background: #ececec; }
.ykk-ph img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.ykk-fig figcaption { font-size: .98rem; font-weight: 650; color: var(--tt); }
@media (max-width: 720px) { .ykk-row { grid-template-columns: 1fr; } }

/* recycled PET */
.rpet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.rpet-fig { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 1; background: #e6e6e6; }
.rpet-fig img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.rpet-body > p:not(.eyebrow) { color: #4c4740; line-height: 2; max-inline-size: 60ch; margin-block-start: var(--s4); }
:lang(en) .rpet-body > p:not(.eyebrow), :lang(zh-CN) .rpet-body > p:not(.eyebrow) { line-height: 1.75; }
.rpet-steps { list-style: none; padding: 0; margin: clamp(24px, 3vw, 36px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid rgb(28 28 28 / .14); }
.rpet-steps li { display: grid; gap: 6px; padding: 18px 14px; position: relative; }
.rpet-steps li + li { border-inline-start: 1px solid rgb(28 28 28 / .14); }
.rpet-steps .ic svg { inline-size: 30px; block-size: 30px; fill: none; stroke: #8c5a38; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rpet-steps .n { font-family: "Inter", system-ui, sans-serif; font-size: .75rem; letter-spacing: .08em; color: #615a52; }   /* 5.1:1 on the #e7ddcf card */
.rpet-steps .t { font-size: .95rem; font-weight: 650; color: var(--tt); line-height: 1.5; }
@media (max-width: 900px) { .rpet { grid-template-columns: 1fr; } .rpet-fig { max-inline-size: 560px; } }
@media (max-width: 420px) { .rpet-steps { grid-template-columns: 1fr; } .rpet-steps li + li { border-inline-start: 0; border-block-start: 1px solid rgb(28 28 28 / .14); } .rpet-steps li { grid-template-columns: 30px 28px 1fr; align-items: center; } }
