/* ==========================================================================
   Sections below the hero — plain and product-first.
   Motion: .reveal (a short fade-up, once) and the objects row (drop-in, hover lift).
   ========================================================================== */
.sec { padding: clamp(72px, 9vw, 140px) var(--gutter); border-top: 1px solid var(--rule-faint); }
.sec-head { max-width: 1400px; margin: 0 auto clamp(28px, 3.5vw, 48px); }
.sec-k { margin: 0 0 12px; color: var(--magenta-ink); }
.sec-title { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; letter-spacing: .02em; }
.sec-title:lang(en) { font-family: var(--f-edit); font-weight: 400; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.1; letter-spacing: 0; }
/* catalogue title: the English name set big in the condensed face, the Chinese line small beneath it */
.sec-en { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5vw, 76px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.sec-zh { display: block; margin-top: 10px; font-family: var(--f-head); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; letter-spacing: .04em; }
.sec-zh:lang(en) { font-family: var(--f-edit); font-weight: 400; font-style: italic; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: 0; }
.sec-sub { margin: 12px 0 0; font-family: var(--f-body); font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

.reveal { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js:not(.rm) .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* ---- 02 · shop: the nine colours as a product grid ---- */
.s-shop { background: #fff; }
/* desktop: two rows (5 + 4) like the original objects row — the card the mouse comes near widens
   (so its photo grows) while the others in its row step back */
.product-grid { display: grid; gap: 56px; max-width: 1400px; margin: 0 auto; }
.product-row { display: flex; gap: 20px; align-items: flex-start; }
.product-card, .product-fill { flex: 1 1 0; min-width: 0; }
.product-card { transition: flex-grow 700ms var(--ease-cut), opacity 400ms linear, transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .product-row:has(.product-card:hover, .product-card:focus-within) .product-card { opacity: .55; }
  .product-row:has(.product-card) .product-card:is(:hover, :focus-within) { opacity: 1; flex-grow: 1.7; }
}
.product-image { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f5f2f1; }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 600ms var(--ease-out); }
.product-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; font-family: var(--f-body); }
.product-info p, .product-info h3 { margin: 0; }
.product-code { display: flex; align-items: center; gap: 8px; font-family: var(--f-info); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.product-swatch { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.product-info h3 { font-size: 15px; font-weight: 500; line-height: 1.5; }
.product-info h3 a { text-decoration: none; }
.product-info h3 a:hover { color: var(--magenta-ink); }
.product-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.product-dm { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 8px 18px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .06em; text-decoration: none; transition: background-color var(--t-quick) linear; }
.product-dm:hover { background: var(--magenta-ink); }
.product-spec { max-width: 1400px; margin: 48px auto 0; font-family: var(--f-body); font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

/* ---- 04 · day & night: two photographs side by side ---- */
.s-day { background: var(--paper); }
.day-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 1400px; margin: 0 auto; }
.day-panel { margin: 0; padding: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 24px; }
.day-a { background: var(--blush); }
.day-b { background: #351b36; color: #f8f0f4; }
.day-panel .film { width: min(100%, calc(min(72svh, 720px) * 9 / 16)); margin: 0 auto; aspect-ratio: 9 / 16; }
.day-panel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 18px; font-family: var(--f-body); font-size: 14px; }
.day-b .cat { color: var(--pink); }

/* ---- 04b · collage: a magazine spread, laid out at once; the whole board fades up when it arrives ---- */
.s-collage { background: var(--paper); border-top: 1px solid var(--rule-faint); }
.s-collage .pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.c-head { position: absolute; left: var(--gutter); top: 72px; width: min(24vw, 360px); --in: 0; --set: 0; z-index: 20; }
.c-title { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.25; }
.c-title:lang(en) { font-family: var(--f-edit); font-weight: 400; }
.c-title span { display: block; }
.c-title em { display: block; font-style: normal; color: var(--magenta-ink); }
.c-text { margin: 18px 0 0; font-family: var(--f-body); font-size: 14px; color: var(--ink-soft); }
.c-board { position: absolute; inset: 0; }
.c-item { position: absolute; left: 0; top: 0; margin: 0; }
.c-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #ddd; }
.c-item figcaption { margin-top: 6px; font-family: var(--f-info); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1099px) {
  .c-head { width: auto; right: var(--gutter); }
  .c-title span, .c-title em { display: inline; }
}
@media (max-width: 760px) {
  .s-collage .pin { min-height: 760px; }
  .c-head { top: 24px; }
  .c-item figcaption span { display: none; }
  .c-item[data-i="0"] figcaption span, .c-item[data-i="1"] figcaption span, .c-item[data-i="2"] figcaption span { display: inline; }
  .c-item:nth-child(n+4) figcaption { font-size: 10px; letter-spacing: .04em; }
}

/* ---- 05 · lookbook: vertical scroll drives a horizontal filmstrip (pinned); drag works too.
   Phones and reduced motion get a native horizontal scroller (.is-native). ---- */
.s-look { background: var(--paper); border-top: 1px solid var(--rule-faint); }
.lk-head { position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 4px 20px; }
.lk-head .sec-k { flex-basis: 100%; margin: 0; }
.lk-title { margin: 0; }
.lk-title em { font-style: normal; color: var(--magenta-ink); }
.lk-count { margin: 0; font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); }
.lk-count span { color: var(--magenta-ink); }
.lk-viewport { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-36%); height: min(56vh, 540px); cursor: grab; touch-action: pan-y; }
.lk-viewport.is-grab { cursor: grabbing; }
.lk-track:focus-visible { outline: 2px solid var(--magenta-ink); outline-offset: 6px; }
.lk-track { list-style: none; margin: 0; padding: 0 calc(50vw - 11vh); display: flex; gap: 3vw; height: 100%; will-change: transform; }
.lk-card { --f: 0; flex: none; height: 100%; aspect-ratio: 3 / 4; position: relative; transform: scale(calc(.84 + var(--f) * .16)); transform-origin: 50% 100%; transition: transform 200ms linear; }
.lk-card img { width: 100%; height: 100%; object-fit: cover; background: #ddd; filter: saturate(calc(.4 + var(--f) * .6)); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lk-no { opacity: max(0, min(1, calc((var(--f) - .45) * 3))); position: absolute; left: 0; top: -24px; font-family: var(--f-info); font-size: 12px; letter-spacing: .06em; color: var(--magenta-ink); }
.lk-name { position: absolute; left: 0; top: calc(100% + 12px); font-family: var(--f-edit); font-style: italic; font-size: 18px; opacity: max(0, calc((var(--f) - .7) * 3.4)); white-space: nowrap; }
.s-look:not(.is-native) .lk-card:not(.is-full) .lk-no, .s-look:not(.is-native) .lk-card:not(.is-full) .lk-name { visibility: hidden; }
.lk-ruler { position: absolute; left: 0; right: 0; top: calc(100% + 46px); height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 24px); opacity: .35; }
.lk-needle { position: absolute; left: 50%; top: -10px; width: 1px; height: 30px; background: var(--magenta); }
.s-look.is-native { height: auto !important; }
.s-look.is-native .pin { position: relative; height: auto; min-height: 0; overflow: visible; padding: 80px 0 60px; }
.s-look.is-native .lk-head { position: relative; top: auto; left: auto; right: auto; padding: 0 var(--gutter); margin-bottom: 30px; }
.s-look.is-native .lk-viewport { position: relative; top: auto; transform: none; height: 380px; }
.s-look.is-native .lk-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px var(--gutter) 60px; scrollbar-width: none; }
.s-look.is-native .lk-card { scroll-snap-align: center; transform: none; --f: 1; }
.s-look.is-native .lk-card:not(.is-full) .lk-no, .s-look.is-native .lk-card:not(.is-full) .lk-name { visibility: hidden; }
.s-look.is-native .lk-ruler { top: auto; bottom: 0; }

/* ---- 06 · story ---- */
.s-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-copy { justify-self: end; max-width: 34em; }
.story-copy p:not(.sec-k) { margin: 20px 0 0; font-family: var(--f-body); font-size: 16px; line-height: 1.9; }
.story-copy p:not(.sec-k):lang(en) { font-family: var(--f-edit); font-size: 19px; line-height: 1.6; }
.story-img { margin: 0; aspect-ratio: 4 / 5; max-width: 520px; overflow: hidden; background: #ece4e1; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- DM ---- */
.s-dm { background: var(--blush); padding: clamp(72px, 9vw, 140px) var(--gutter); display: grid; place-items: center; }
.dm-card { width: min(640px, 100%); background: var(--paper); padding: 40px 44px 36px; }
.dm-title { margin: 0 0 14px; font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; }
.dm-title em { font-family: var(--f-edit); font-weight: 400; color: var(--magenta-ink); }
.dm-text { margin: 0 0 20px; font-family: var(--f-body); font-size: 15px; line-height: 1.7; }
.dm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-faint); font-family: var(--f-info); font-size: 14px; letter-spacing: .08em; }
.dm-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--rule-faint); }
.dm-tbc { color: var(--ink-soft); }

/* ---- responsive ---- */
@media (max-width: 1099px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; }
  .product-row { display: contents; }
  .product-fill { display: none; }
}
/* narrower windows with a mouse: the columns are fixed, so the card under the mouse grows in place instead */
@media (max-width: 1099px) and (hover: hover) and (pointer: fine) {
  .product-card { position: relative; transform-origin: 50% 40%; }
  .product-row:has(.product-card) .product-card:is(:hover, :focus-within) { transform: scale(1.12); z-index: 2; }
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .product-info h3 { font-size: 14px; }
  .s-story { grid-template-columns: 1fr; }
  .story-copy { justify-self: start; }
  .day-pair { grid-template-columns: 1fr; }
  .dm-card { padding: 28px 22px; }
}

/* ==========================================================================
   00 · Opening — a catalogue cover: the V01 film fills the left half edge to edge, the right half is
   a cream page with the collection name; the nine colours run along the bottom as an index.
   ========================================================================== */
.s-open { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); height: calc(100svh - var(--bar-h, 30px)); min-height: 520px;
  padding-bottom: 40px; overflow: hidden; background: #f8f6f0; }
/* the film column is exactly as wide as the 9:16 film at full height, so no part of the frame is cut off */
.open-film { position: relative; height: 100%; aspect-ratio: 9 / 16; background: var(--plum); }
.open-film img, .open-film video { object-fit: contain; }
.open-text { align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: calc(var(--nav-h) + 16px) clamp(28px, 6vw, 96px) 24px; }
.open-title { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.open-en { font-family: var(--f-edit); font-weight: 400; font-style: italic; font-size: clamp(60px, 7.4vw, 116px); line-height: .9; letter-spacing: -.01em; }
.open-zh { font-family: var(--f-head); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .12em; }
.open-zh:lang(en) { font-family: var(--f-display); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.open-sub { margin: 0; max-width: 24em; font-family: var(--f-body); font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.open-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 8px 0 0; }
.open-more { font-family: var(--f-body); font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.open-more:hover { color: var(--magenta-ink); }
.open-fig { margin: 0; color: var(--ink-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 44px; padding: 10px 24px; font-family: var(--f-body); font-size: 14px; letter-spacing: .08em; text-decoration: none; transition: background-color var(--t-quick) linear, color var(--t-quick) linear; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--magenta-ink); }

/* the nine colours as an index bar along the bottom */
.open-index { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr));
  background: #f8f6f0; border-top: 1px solid var(--ink); }
.open-index a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-right: 1px solid var(--rule-faint); color: var(--ink); text-decoration: none;
  font-family: var(--f-info); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background var(--t-quick) linear; }
.open-index a:last-child { border-right: 0; }
.open-index a:hover, .open-index a:focus-visible { background: var(--blush); }
.open-index i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--sw); }
@media (max-width: 1099px) { .open-index .oi-name { display: none; } }
@media (max-width: 760px) and (min-height: 501px), (max-width: 760px) and (orientation: portrait) {
  .s-open { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; padding-bottom: 36px; }
  .open-film { width: 100%; height: auto; max-height: 82svh; }   /* whole 9:16 frame; very tall phones letterbox on plum */
  .open-text { padding: 28px 20px 36px; gap: 14px; }
  .open-en { font-size: 54px; }
  .open-index a { height: 36px; gap: 4px; font-size: 9px; letter-spacing: 0; }
  .open-index i { width: 7px; height: 7px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .s-open { height: 100svh; min-height: 300px; padding-bottom: 30px; }
  .open-text { gap: 10px; padding-top: calc(var(--nav-h) + 8px); }
  .open-en { font-size: min(9vw, 18svh); }
  .open-index a { height: 30px; }
}

/* ==========================================================================
   Opening, version A (default, .open-v-photo): the full-bleed photograph with the title centred on it.
   Version B (.open-v-film) is the film + catalogue cover above. The team picks one; then delete the other.
   ========================================================================== */
.open-v-film .open-photo { display: none; }
.open-v-photo .open-film, .open-v-photo .open-fig { display: none; }
.open-v-photo .s-open { display: block; background: var(--plum); }
.open-v-photo .open-photo { position: absolute; inset: 0 0 40px; display: block; }
.open-v-photo .open-img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; }
.open-v-photo .s-open::after { content: ""; position: absolute; inset: 0 0 40px; pointer-events: none;
  background: linear-gradient(to top, rgba(36, 18, 31, .6) 0%, rgba(36, 18, 31, .25) 34%, rgba(36, 18, 31, 0) 58%); }
.open-v-photo .open-text { position: absolute; left: 0; right: 0; bottom: calc(40px + 6svh); z-index: 2; align-items: center; gap: 12px; padding: 0 var(--gutter); color: #fff; text-align: center; }
.open-v-photo .open-title { align-items: center; gap: 6px; text-shadow: 0 1px 18px rgba(36, 18, 31, .35); }
.open-v-photo .open-en { font-size: clamp(44px, 5vw, 72px); }
.open-v-photo .open-sub { color: #fff; text-shadow: 0 1px 12px rgba(36, 18, 31, .4); }
.open-v-photo .open-ctas { justify-content: center; }
.open-v-photo .btn-dark { background: #fff; color: var(--ink); }
.open-v-photo .btn-dark:hover { background: var(--blush); }
.open-v-photo .open-more { color: #fff; }
@media (max-width: 760px) and (min-height: 501px), (max-width: 760px) and (orientation: portrait) {
  .open-v-photo .s-open { height: calc(100svh - var(--bar-h, 30px)); min-height: 420px; }
  .open-v-photo .open-photo, .open-v-photo .s-open::after { bottom: 36px; }
  .open-v-photo .open-text { bottom: calc(36px + 6svh); }
  .open-v-photo .open-en { font-size: 44px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .open-v-photo .open-photo, .open-v-photo .s-open::after { bottom: 30px; }
  .open-v-photo .open-text { bottom: calc(30px + 4svh); }
}

/* review-only A/B switch (bottom left) */
.open-switch { position: fixed; left: 12px; bottom: 56px; z-index: 80; display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--paper);
  box-shadow: 0 6px 20px rgba(36, 18, 31, .18); font-family: var(--f-body); font-size: 12px; }
.open-switch span { padding: 0 8px; color: var(--ink-soft); }
.open-switch a { padding: 6px 10px; text-decoration: none; }
.open-v-photo .open-switch [data-v="photo"], .open-v-film .open-switch [data-v="film"] { background: var(--ink); color: #fff; }
