/* Pink Sunday — "the garden first". The film fills the screen; the interface is small type and a
   few dots that follow the stage's zoom (--z: 0 gallery, 1 slideshow). No card sits on the garden. */
:root {
  --z: 0;
  --shirt-bottom: 60vh;
  --arch-x: 50vw;
  --phrase-top: 110px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ribbon: 0px; /* the blue ribbon's height on phones */
  --bottom: calc(var(--safe-bottom) + var(--ribbon));
  --sky: #3d8fe6;
  --ink: #2f1823;
  --ink-soft: #6d4d59;
  --paper: #fffaf5;
  --pink: #fb7db4;
  --pink-deep: #c2185b;
  --white: #fff;
  --shadow-text: 0 1px 2px rgb(20 16 10 / .38), 0 0 14px rgb(20 16 10 / .22);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Helvetica Neue", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  color-scheme: light;
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  background: #3d8fe6;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; overscroll-behavior: none; color: var(--white); background: #3d8fe6; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { opacity: .35; cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Small type over the film. */
.label, .phrase, .caption, .dock, .trial-note, .hint, .langs button, .inspect-hint {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-shadow: var(--shadow-text);
}

/* ——— Garden ——— */
.garden { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #3d8fe6; }
.garden picture, .garden-still, .garden-film { position: absolute; inset: 0; width: 100%; height: 100%; }
.garden-still, .garden-film { object-fit: cover; object-position: 50% 50%; }
.garden-film { opacity: 0; transition: opacity .6s ease; }
.garden.has-film .garden-film { opacity: 1; }
.garden-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(18 34 70 / .2), rgb(18 34 70 / 0) 16%), linear-gradient(0deg, rgb(24 34 10 / .42), rgb(24 34 10 / 0) 30%); }
html.is-inspecting .garden-still, html.is-inspecting .garden-film { filter: blur(14px) brightness(.88); transition: filter .4s ease; }

/* ——— Visibility by view, driven by the same zoom as the garments ——— */
.overview-only { opacity: clamp(0, calc(1 - var(--z) * 2.2), 1); transition: visibility 0s 0s; }
.focus-only { opacity: clamp(0, calc((var(--z) - .45) * 2.2), 1); transition: visibility 0s 0s; }
html.is-focus .overview-only, html:not(.is-focus) .focus-only { visibility: hidden; transition: visibility 0s .32s; }
html.is-inspecting .top .tools, html.is-inspecting .phrase, html.is-inspecting .caption, html.is-inspecting .faces, html.is-inspecting .dock,
html.is-inspecting .trial-note, html.is-inspecting .hint, html.is-inspecting .buy { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* ——— Top ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 10; pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; will-change: transform; border-radius: 8px; filter: drop-shadow(0 2px 10px rgb(255 255 255 / .35)); }
.logo img { width: 100%; height: auto; }
.phrase { position: fixed; left: 50%; top: var(--phrase-top); transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100vw - 32px); text-align: center; font-size: 10.5px; letter-spacing: .22em;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; pointer-events: none; }
/* Arrival: the hero — the logo in the middle of the sky and the brand phrase under it, once; at the
   first gesture (or after a few seconds) the logo glides to its corner and the phrase fades. */
html.is-arrival .phrase { opacity: 1; visibility: visible; transition: opacity .9s ease .55s, visibility 0s; }
/* On the arrival's warm light: the brand's deep pink, no white halo. */
.phrase { color: #c2185b; text-shadow: none; font-weight: 700; }
.tools { position: absolute; right: max(10px, env(safe-area-inset-right)); top: calc(var(--safe-top) + 8px); display: flex; align-items: center; gap: 2px; }
.tool { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--white); filter: drop-shadow(0 1px 3px rgb(20 16 10 / .4)); }
.tool:hover { background: rgb(255 255 255 / .14); }
.langs { display: flex; }
.langs button { min-width: 34px; height: 42px; font-size: 11px; letter-spacing: .12em; opacity: .62; }
.langs button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.view-icon { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; align-items: center; }
.view-icon i { display: block; width: 4px; height: 10px; border-radius: 1px; background: currentColor; }
.view-toggle[data-view="slideshow"] .view-icon i { height: 6px; }
.view-toggle[data-view="gallery"] .view-icon { grid-template-columns: 4px 8px 4px; }
.view-toggle[data-view="gallery"] .view-icon i:nth-child(2) { height: 13px; width: 8px; }
.view-toggle[data-view="gallery"] .view-icon i:not(:nth-child(2)) { opacity: .55; }
.pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
#pause-toggle[aria-pressed="true"] .pause-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.bag-icon { width: 16px; height: 15px; border: 1.6px solid currentColor; border-radius: 2px 2px 5px 5px; margin-top: 4px; position: relative; }
.bag-icon::before { content: ""; position: absolute; left: 3px; right: 3px; top: -6px; height: 7px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.bag-count { position: absolute; right: 2px; top: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--pink); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0; text-shadow: none; }
.bag-count:empty, .bag-count:is([data-count="0"]) { display: none; }

/* ——— WebGL composition: garden and garments drawn together; the DOM keeps hit areas and focus ——— */
.scene { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Arrival with WebGL: the page opens in the same warm light as the scene's first frame, so the lens
   opens with no flash; then the interface comes in, once the garden and the T-shirt are there. */
html.has-renderer .garden { background: #ffedf0; }
html.has-renderer .garden picture { opacity: 0; }
@keyframes ui-in { from { opacity: 0; } }
html.has-renderer .top .tools { animation: ui-in 1s ease 2.5s both; }
html.has-renderer .ribbon { animation: ui-in 1s ease 2.9s both; }
html.has-renderer .hint { animation: ui-in .8s ease 3.6s both; }
html.has-renderer .shirt-face, html.has-renderer .shirt-ground { visibility: hidden; }
html.has-renderer .shirt-float { filter: none; }
/* Film sources: decoded by the page, drawn by WebGL (kept rendered, behind the canvas, for mobile browsers). */
.film-sources { position: fixed; left: 0; top: 0; z-index: 0; width: 96px; height: 96px; overflow: hidden; opacity: .01; pointer-events: none; }
.film-sources video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ——— Stage: one aligned row ——— */
.stage { position: fixed; inset: 0; z-index: 2; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.shirt { position: absolute; left: 0; top: 0; width: var(--base-w); height: var(--base-h); transform-origin: 50% 50%; will-change: transform; }
.shirt-hit { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 28px; }
.shirt-hit:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.shirt-zoom, .shirt-turn, .shirt-float { position: absolute; inset: 0; display: block; }
.shirt-zoom { transform-origin: 50% 50%; }
/* One shadow for the pair of faces, so turning over never shows a second shadow appearing and leaving. */
.shirt-float { transition: scale .45s var(--ease); filter: drop-shadow(0 18px 20px rgb(44 32 12 / .3)); }
.shirt-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.shirt-face.is-back, .is-front .shirt-face.is-front { z-index: 2; opacity: 1; transition: opacity .34s ease; }
.shirt-face.is-front, .is-front .shirt-face.is-back { z-index: 1; opacity: 0; transition: opacity 0s .34s; }
.shirt-ground { position: absolute; left: 26%; right: 26%; bottom: -3%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgb(30 26 10 / .32), rgb(30 26 10 / 0)); }
.shirt-missing { position: absolute; inset: 30% 10%; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-shadow: var(--shadow-text); border: 1.5px dashed rgb(255 255 255 / .7); border-radius: 22px; }
@media (hover: hover) and (pointer: fine) { html:not(.is-focus) .shirt-hit:hover .shirt-float { scale: 1.035; } }
.stage.is-inspecting { cursor: grab; }


/* ——— Under the centred piece ——— */
.caption { position: fixed; z-index: 5; left: var(--arch-x); top: calc(var(--shirt-bottom) + 16px); transform: translateX(-50%); margin: 0; display: flex; gap: 10px; align-items: baseline; pointer-events: none; white-space: nowrap; }
.caption span:first-child { opacity: .75; font-weight: 500; }
/* Front/back and the magnifier live in the order panel; a tap on the T-shirt flips it too. */
.faces { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html:not(.is-focus) .faces .loupe { display: none; }
/* Front/back: an iPhone switch between its two labels, in a light glass pill. The knob jumps; the
   garment turns. Shown in both views, under the piece in front. */
.turn-switch { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 4px; border-radius: 999px;
  background: rgb(250 250 252 / .32); -webkit-backdrop-filter: blur(24px) saturate(1.2) brightness(1.1); backdrop-filter: blur(24px) saturate(1.2) brightness(1.1);
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .6), inset 0 0 0 .5px rgb(255 255 255 / .3), 0 6px 18px rgb(40 26 10 / .1); user-select: none; -webkit-user-select: none; }
.faces .turn-switch .turn-side { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 8px; border-radius: 999px;
  font-family: var(--system); font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none; text-shadow: none; color: rgb(29 29 31 / .5); transition: color .2s ease; }
.faces .turn-switch .turn-side[aria-pressed="true"] { color: #1d1d1f; }
.turn-toggle { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; background: rgb(120 120 128 / .32); transition: background .25s ease; }
.turn-knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 1px 1px rgb(0 0 0 / .16), 0 3px 1px rgb(0 0 0 / .1); transition: transform .3s cubic-bezier(.3, 1.35, .45, 1); }
.turn-switch.is-front .turn-toggle { background: var(--brand); }
.turn-switch.is-front .turn-knob { transform: translateX(18px); }
.turn-switch.is-pressed .turn-knob { width: 28px; }
.turn-switch.is-front.is-pressed .turn-knob { transform: translateX(14px); }
.turn-toggle:focus-visible, .turn-side:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 2px; }
.turn-icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linejoin: round; stroke-linecap: round; }
.turn-icon circle { fill: currentColor; stroke: none; }
.loupe { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: rgb(250 250 252 / .3); -webkit-backdrop-filter: blur(24px) saturate(1.2) brightness(1.1); backdrop-filter: blur(24px) saturate(1.2) brightness(1.1);
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .6), inset 0 0 0 .5px rgb(255 255 255 / .3), 0 6px 18px rgb(40 26 10 / .1); }
.loupe span { width: 13px; height: 13px; border: 1.6px solid #1d1d1f; border-radius: 50%; position: relative; opacity: .78; }
.loupe span::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: #1d1d1f; right: -6px; bottom: -3px; transform: rotate(45deg); }

/* ——— Bottom ——— */
.dock { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; padding: 0 max(18px, env(safe-area-inset-right)) calc(var(--bottom) + 14px) max(18px, env(safe-area-inset-left));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-id { margin: 0; display: grid; gap: 4px; justify-self: start; }
.dock-id span { font-size: 10px; opacity: .78; letter-spacing: .2em; }
.dock-id strong { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 17px; letter-spacing: .04em; line-height: 1; }
.dock-colours { display: grid; justify-items: center; gap: 4px; }
.dots { display: flex; gap: 4px; }
.dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.dot::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1px rgb(40 24 30 / .2), 0 1px 6px rgb(20 16 10 / .35); }
.dot[aria-pressed="true"]::before { box-shadow: 0 0 0 2px rgb(255 255 255 / .95), 0 0 0 3px rgb(40 24 30 / .25), 0 1px 6px rgb(20 16 10 / .35); }
.colour-name { font-size: 10px; letter-spacing: .2em; }
.dock-buy { justify-self: end; }
.buy-open { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; border-radius: 999px; background: var(--pink-deep); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: none; text-shadow: none; box-shadow: 0 6px 18px rgb(120 10 50 / .3); }
.buy-open [data-buy-label] { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; opacity: .85; }
.chevron { width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg) translate(1px, 1px); }
.trial-note { position: fixed; z-index: 6; left: 50%; bottom: calc(var(--bottom) + 82px); transform: translateX(-50%); margin: 0; font-size: 10px; letter-spacing: .14em; opacity: .9; white-space: nowrap; }
.hint { position: fixed; z-index: 6; left: 50%; bottom: calc(var(--bottom) + 104px); transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100vw - 32px); text-align: center; font-size: 10px; letter-spacing: .16em; line-height: 1.6; opacity: .92; transition: opacity .6s ease, visibility 0s; pointer-events: none; }
html.hint-seen .hint { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .phrase { font-size: 11px; }
}

/* Close view: only the garment, a way out and a short hint. */
.inspect-close { position: fixed; z-index: 12; right: max(14px, env(safe-area-inset-right)); top: calc(var(--safe-top) + 10px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .8), 0 4px 14px rgb(0 0 0 / .12); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.inspect-close span { width: 16px; height: 16px; position: relative; }
.inspect-close span::before, .inspect-close span::after { content: ""; position: absolute; left: 7px; top: -1px; width: 2px; height: 18px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); }
.inspect-close span::after { transform: rotate(-45deg); }
.inspect-hint { position: fixed; z-index: 12; left: 50%; bottom: calc(var(--bottom) + 22px); transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100vw - 32px); text-align: center; font-size: 10px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; pointer-events: none; }
html.is-inspecting .inspect-close, html.is-inspecting .inspect-hint { opacity: 1; visibility: visible; transition: opacity .3s ease .1s, visibility 0s; }

/* ——— Sheets opened on demand: details, bag, checkout ——— */
.sheet { width: min(460px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 26px; background: #fbfbfd; color: var(--ink); box-shadow: 0 30px 90px rgb(30 16 24 / .32); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgb(20 16 24 / .3); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet[open] { animation: sheet-in .34s var(--ease) both; }
.sheet-body { position: relative; padding: 26px 22px 24px; display: grid; gap: 14px; font-size: 14px; }
.sheet .kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--label-2); }
.sheet h2 { margin: 0; padding-right: 44px; font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 28px; line-height: .95; text-transform: uppercase; }
.sheet h3 { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--label-2); }
.sheet .note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--label-2); }
.close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgb(118 118 128 / .14); }
.close::before, .close::after { content: ""; position: absolute; left: 15px; top: 9px; width: 2px; height: 14px; border-radius: 1px; background: var(--label-2); transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visual { margin: 0; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, #cfe5fb, #fff1c4); display: grid; gap: 8px; }
.visual img { width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgb(44 32 12 / .2)); }
.visual figcaption { display: grid; gap: 2px; font-size: 12px; line-height: 1.35; color: var(--label-2); }
.visual figcaption strong { color: var(--label); font-size: 13px; }
.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid rgb(0 0 0 / .08); font-size: 13px; }
.facts dt { color: var(--label-2); font-weight: 600; }
.facts dd { margin: 0; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.offers li { display: grid; grid-template-columns: 4.6em auto 1fr; gap: 10px; align-items: baseline; font-size: 13px; }
.offers li span { font-weight: 700; letter-spacing: .06em; }
.offers li em { justify-self: end; font-style: normal; font-size: 12px; color: var(--brand); }
.care summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 13px; }
.care p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--label-2); }
.link { justify-self: start; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--brand); }
/* Bag: one row per piece, thumbnail of the garment as the film shows it. */
.pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pieces .empty { padding: 14px 0; color: var(--label-2); line-height: 1.5; }
.piece { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; background: rgb(118 118 128 / .08); }
.piece img { width: 56px; height: 56px; object-fit: contain; }
.piece-text { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--label-2); }
.piece-text strong { font-family: var(--display); font-stretch: condensed; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; color: var(--label); }
.piece select { height: 34px; padding: 0 6px; border-radius: 9px; border: 0; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .12), 0 1px 3px rgb(0 0 0 / .06); font: 600 14px var(--system); color: var(--label); }
.piece-remove { min-height: 34px; padding: 0 4px; font-size: 13px; font-weight: 500; color: var(--brand); }
.summary { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid rgb(0 0 0 / .08); }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.parts li, .total, .saving { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.total { font-size: 17px; font-weight: 700; padding-top: 4px; }
.saving { color: var(--brand); font-weight: 600; }
.promo { display: grid; gap: 6px; }
.promo-field { display: flex; gap: 8px; }
.promo-field input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 0; background: rgb(118 118 128 / .12); font: 16px var(--system); letter-spacing: .08em; text-transform: uppercase; }
.promo-field button { height: 42px; padding: 0 14px; border-radius: 12px; background: rgb(118 118 128 / .14); font-weight: 600; font-size: 14px; }
.message { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--brand); }
.message:empty { display: none; }
.actions { display: grid; gap: 8px; }

.reference { width: min(640px, calc(100vw - 24px)); }
.reference-image { width: 100%; height: auto; max-height: 62svh; object-fit: contain; border-radius: 14px; background: #f1f1f1; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--bottom) + 72px); margin: 0; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; border-radius: 14px;
  background: rgb(28 28 30 / .84); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); color: #fff;
  font-family: var(--system); font-size: 14px; font-weight: 500; letter-spacing: -.01em; transform: translate(-50%, 10px) scale(.98); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--ease); white-space: nowrap; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.toast:not(.has-action) { padding-right: 16px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.has-action.is-visible { pointer-events: auto; }
.toast-action { height: 30px; padding: 0 12px; border-radius: 9px; background: rgb(255 255 255 / .16); color: #fff; font-weight: 600; }
.startup-error { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 14px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.dev-panel { position: fixed; z-index: 90; left: 8px; top: 64px; max-width: min(340px, calc(100vw - 16px)); max-height: 50vh; overflow: auto; padding: 8px; border-radius: 10px; background: rgb(18 14 22 / .82); color: #e9ffe9; font: 10.5px/1.35 ui-monospace, Menlo, monospace; text-shadow: none; letter-spacing: 0; text-transform: none; }
.dev-panel pre { margin: 0 0 6px; white-space: pre-wrap; }
.dev-panel button { padding: 4px 8px; border-radius: 6px; background: #fff; color: #222; }

@media (max-aspect-ratio: 1/1) {
  .phrase { font-size: 9.5px; letter-spacing: .2em; line-height: 1.6; width: auto; max-width: 300px; white-space: normal; }
}
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .sheet { width: 100%; max-width: 100%; max-height: 90svh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .sheet-body { padding-bottom: calc(var(--safe-bottom) + 22px); }
}
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  :root { --ribbon: 30px; }
  /* Phones: a light top bar (gestures replace the view switch; one button for the other language). */
  /* The gallery is about the pieces: colour choice lives in the close view. */
  html.is-sheet-open .hint { opacity: 0 !important; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
}
html.hint-faded .hint { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.tool.bag.is-bumped { animation: bag-bump .5s var(--ease); }
@keyframes bag-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-6deg); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }

/* ——— The blue ribbon at the very bottom (phones): the collection scrolls by with Joan's pictograms ——— */
/* The ribbon sits just above the phone's bottom safe area, which stays clear (the garden shows there). */
.ribbon { display: none; position: fixed; z-index: 7; left: 0; right: 0; bottom: var(--safe-bottom); height: var(--ribbon); padding-bottom: 0;
  overflow: hidden; background: var(--sky); color: var(--white); pointer-events: none; box-shadow: 0 -1px 0 rgb(255 255 255 / .22) inset, 0 -8px 22px rgb(20 50 110 / .18);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.ribbon-shift { height: var(--ribbon); transform: translate3d(var(--ribbon-shift, 0px), 0, 0); will-change: transform; }
.ribbon-track { display: flex; width: max-content; height: 100%; align-items: center; animation: ribbon-run var(--ribbon-duration, 40s) linear infinite; will-change: transform; }
.ribbon-item { display: inline-flex; align-items: center; gap: 14px; padding-right: 14px; white-space: nowrap;
  font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.ribbon-item .soft { font-weight: 600; opacity: .82; letter-spacing: .16em; font-size: 11px; }
.ribbon-icon { width: auto; height: 17px; flex: none; filter: drop-shadow(0 1px 1px rgb(10 40 100 / .25)); transform-origin: 50% 55%; }
.ribbon-icon[data-icon="fleur"] { animation: ribbon-spin 9s linear infinite; }
.ribbon-icon[data-icon="etoile"] { animation: ribbon-twinkle 2.6s ease-in-out infinite; }
.ribbon-icon[data-icon="nuage"] { animation: ribbon-drift 3.4s ease-in-out infinite alternate; }
.ribbon-icon[data-icon="arrosoir"] { animation: ribbon-pour 3.2s ease-in-out infinite; transform-origin: 30% 70%; }
.ribbon-icon[data-icon="chaise"] { animation: ribbon-rock 2.8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes ribbon-run { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes ribbon-spin { to { transform: rotate(360deg); } }
@keyframes ribbon-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 45% { transform: scale(1.22) rotate(12deg); } 60% { transform: scale(.94) rotate(-4deg); } }
@keyframes ribbon-drift { from { transform: translateX(-2px); } to { transform: translateX(3px); } }
@keyframes ribbon-pour { 0%, 55%, 100% { transform: rotate(0deg); } 70%, 85% { transform: rotate(-16deg); } }
@keyframes ribbon-rock { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
html.is-paused .ribbon-track, html.is-paused .ribbon-icon { animation-play-state: paused; }
html.is-inspecting .ribbon { opacity: 0; transition: opacity .25s ease; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .ribbon { display: block; } }
@media (max-width: 380px) {
  .tool { width: 38px; }
  .langs button { min-width: 30px; }
  .dot { width: 32px; height: 32px; }
  .buy-open { padding: 0 12px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .garden-film { display: none; }
}

/* ——— Interface: light glass in the iPhone idiom, quiet over the garden; one family of controls ——— */
:root { --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; --label: #1d1d1f; --label-2: #6e6e73; --brand: #d6336c; }
.caption, .dock { display: none !important; }
.tools { top: calc(var(--safe-top) + 10px); right: max(12px, env(safe-area-inset-right)); gap: 8px; }
.langs { gap: 8px; }
.langs button[aria-pressed="true"] { display: none; }
.tool, .langs button { width: 36px; min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--label); opacity: 1; text-decoration: none; text-shadow: none; filter: none;
  background: rgb(255 255 255 / .46); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .75), 0 0 0 .5px rgb(0 0 0 / .05), 0 4px 14px rgb(20 40 90 / .12); transition: transform .15s var(--ease); }
.tool:hover { background: rgb(255 255 255 / .6); }
.tool:active, .langs button:active { transform: scale(.92); }
.langs button { font-family: var(--system); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.view-icon { gap: 2px; grid-template-columns: repeat(3, 3px); }
.view-icon i { width: 3px; height: 9px; }
.view-toggle[data-view="gallery"] .view-icon { grid-template-columns: 3px 7px 3px; }
.view-toggle[data-view="gallery"] .view-icon i:nth-child(2) { width: 7px; height: 11px; }
.pause-icon { width: 9px; height: 11px; border-left-width: 2.5px; border-right-width: 2.5px; }
.bag-icon { width: 14px; height: 13px; border-width: 1.5px; margin-top: 3px; }
.bag-icon::before { border-width: 1.5px; left: 2.5px; right: 2.5px; top: -5.5px; height: 6px; }
.bag-count { right: -3px; top: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: #fff; font-family: var(--system); font-size: 10px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .9); }
.tool.lang-toggle { width: auto; min-width: 0; display: inline-flex; gap: 0; padding: 0 11px; border-radius: 18px; font-family: var(--system); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.lang-toggle span { opacity: .36; transition: opacity .2s ease; }
.lang-toggle span + span { margin-left: 6px; padding-left: 6px; border-left: 1px solid rgb(29 29 31 / .2); }
.lang-toggle[data-current="fr"] [lang="fr"], .lang-toggle[data-current="en"] [lang="en"] { opacity: 1; }
.sound-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .speaker { fill: currentColor; stroke: none; }
.sound-toggle[aria-pressed="false"] .waves, .sound-toggle[aria-pressed="true"] .mute { display: none; }

/* ——— The bar at the bottom, in clear glass: the colour swatches (the colour controls everything) and
   "Acheter", which opens the panel above it. With WebGL the scene itself draws the glass under it
   (refraction, light on the rims); without, a frosted fallback. ——— */
.dock-bar { position: fixed; z-index: 9; left: 50%; bottom: calc(var(--bottom) + 14px); display: flex; transform: translateX(-50%); touch-action: none;
  animation: pill-in .9s var(--ease) 3.1s both; transition: opacity .3s ease; }
/* The colours, just under the T-shirt: three swatches, quiet, in a faint glass capsule. */
/* Fixed under the place of the piece in front (not the moving piece): constant while the row turns. */
.colour-pick { position: fixed; z-index: 8; left: 50%; top: calc(var(--shirt-bottom) + 12px); transform: translateX(-50%); transition: opacity .3s ease; }
html.has-renderer .colour-pick { animation: ui-in .9s ease 3s both; }
.colour-pick .swatches { padding: 2px 4px; border-radius: 999px; background: rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .7), 0 0 0 .5px rgb(0 0 0 / .04), 0 4px 14px rgb(30 20 10 / .12); }
html.is-inspecting .colour-pick { opacity: 0 !important; pointer-events: none; }
@keyframes pill-in { from { opacity: 0; translate: 0 22px; } }

html.is-inspecting .dock-bar { opacity: 0 !important; pointer-events: none; }
.swatches { display: flex; align-items: center; padding: 0 1px 0 3px; }
.swatch { width: 34px; height: 38px; display: grid; place-items: center; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.swatch::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .2), inset 0 1.5px 2px rgb(255 255 255 / .55), 0 1px 3px rgb(0 0 0 / .16);
  transition: transform .32s cubic-bezier(.3, 1.4, .45, 1), box-shadow .25s var(--ease); }
.swatch[aria-checked="true"]::before { transform: scale(.8); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .2), inset 0 1.5px 2px rgb(255 255 255 / .55), 0 0 0 3px #fff, 0 0 0 4px rgb(29 29 31 / .28), 0 2px 8px rgb(0 0 0 / .18); }
.swatch:active::before { transform: scale(.7); }
.swatch:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* The colour's name, for a moment, just above the bar. */
.swatch-name { position: absolute; left: 50%; top: calc(100% + 8px); margin: 0; padding: 5px 11px; border-radius: 999px; pointer-events: none;
  background: rgb(28 28 30 / .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font: 600 10.5px var(--system); letter-spacing: .08em; white-space: nowrap;
  transform: translate(-50%, 5px); opacity: 0; transition: opacity .3s ease, transform .45s var(--ease); }
.swatch-name.is-shown { opacity: 1; transform: translate(-50%, 0); }
/* "Acheter": the call to action, in the brand pink; it folds away while the panel is open. */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; max-width: 200px; padding: 0 24px 0 18px; border-radius: 999px; overflow: hidden;
  color: #fff; font-family: var(--system); letter-spacing: 0; text-transform: none; text-shadow: none; white-space: nowrap; touch-action: none; -webkit-tap-highlight-color: transparent;
  background: var(--brand); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 10px 26px rgb(214 51 108 / .36), 0 2px 6px rgb(120 20 60 / .2);
  transition: max-width .45s var(--ease), padding .45s var(--ease), opacity .25s ease, transform .2s var(--ease), background .2s ease; }
.pill:hover { background: #c22a60; }
.pill:active { transform: scale(.96); }
.pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pill-icon { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.pill-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill-label { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
html.is-card-open .pill { max-width: 0; padding: 0; opacity: 0; pointer-events: none; }

/* ——— The Pink Sunday game: a discreet tab on the right edge (Joan's flower, "Jeu"), and on a tap a
   small card linking to the existing game. Never over "Acheter" or the colours; hidden on the page. ——— */
.game { position: fixed; z-index: 9; right: 0; top: calc(var(--safe-top) + 30svh); font-family: var(--system); transition: opacity .3s ease; }
html.has-renderer .game { animation: ui-in 1s ease 3.8s both; }
.game-tab { display: grid; justify-items: center; gap: 7px; width: 30px; padding: 10px 0 12px; border-radius: 14px 0 0 14px; color: var(--label); -webkit-tap-highlight-color: transparent;
  background: rgb(255 255 255 / .55); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .8), 0 0 0 .5px rgb(0 0 0 / .05), 0 6px 18px rgb(30 20 10 / .14); transition: background .2s ease, transform .2s var(--ease); }
.game-tab:hover { background: rgb(255 255 255 / .75); }
.game-tab:active { transform: translateX(2px); }
.game-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.game-tab img { width: 18px; height: 18px; animation: ribbon-spin 12s linear infinite; }
.game-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.game-card { position: absolute; right: 38px; top: 50%; width: 222px; padding: 14px 14px 14px 16px; border-radius: 18px; color: var(--label);
  background: rgb(255 255 255 / .84); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .9), 0 0 0 .5px rgb(0 0 0 / .05), 0 14px 36px rgb(30 20 10 / .2);
  opacity: 0; visibility: hidden; transform: translate(10px, -50%) scale(.96); transform-origin: 100% 50%;
  transition: opacity .2s ease, transform .3s var(--ease), visibility 0s .3s; }
.game.is-open .game-card { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .2s ease, transform .4s cubic-bezier(.3, 1.3, .45, 1), visibility 0s; }
.game-title { margin: 0 26px 4px 0; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.game-text { margin: 0 0 12px; font-size: 12px; line-height: 1.4; color: var(--label-2); }
.game-play { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px rgb(214 51 108 / .3); transition: background .2s ease, transform .15s var(--ease); }
.game-play:hover { background: #c22a60; }
.game-play:active { transform: scale(.97); }
.game-play svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.game-close { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgb(118 118 128 / .14); }
.game-close::before, .game-close::after { content: ""; position: absolute; left: 11px; top: 6px; width: 1.6px; height: 12px; border-radius: 1px; background: var(--label-2); transform: rotate(45deg); }
.game-close::after { transform: rotate(-45deg); }
html.is-card-open .game, html.is-inspecting .game { opacity: 0 !important; pointer-events: none; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .game { top: 42vh; } }

/* ——— The product page. "Acheter" opens it. Phone: the photos full screen (worn first) with progress bars
   and a double tap to zoom; a panel at the bottom — collapsed: name, price, Ajouter; pulled up or tapped:
   Dos | Devant, colour, size, key facts; under the photos, the lookbook of the other designs, worn.
   Laptop: a photo grid, the information in a column held in view, the lookbook below. ——— */
.buy { position: fixed; z-index: 10; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: #faf9f7; color: var(--label); font-family: var(--system);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s .25s; }
html.is-card-open .buy { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease .15s, visibility 0s; }
.buy-close { position: fixed; z-index: 12; top: calc(var(--safe-top) + 18px); right: max(14px, env(safe-area-inset-right)); height: 32px; padding: 0 14px; border-radius: 999px;
  border: 0; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 .5px rgb(0 0 0 / .08), 0 4px 14px rgb(0 0 0 / .1);
  color: var(--label); font: 600 12.5px var(--system); letter-spacing: 0; text-transform: none; text-shadow: none; }
.buy-close:hover { background: #fff; }
.buy-close:focus-visible { outline: 2px solid var(--label); outline-offset: 2px; }
/* The photos, full screen. */
.buy-media { position: relative; height: 100svh; }
.buy-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.buy-slides::-webkit-scrollbar { display: none; }
.buy-slides.is-zoomed { overflow-x: hidden; touch-action: none; }
.buy-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; background: #efeeec; transition: background-color .4s ease; }
.buy-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.buy-slide.is-worn img { object-position: 50% 28%; }
/* Laid flat: the whole T-shirt, on its own ground colour (read from the photo), above the panel. */
.buy-slide.is-flat img { object-fit: contain; padding: calc(var(--safe-top) + 70px) 16px 214px; }
.buy-slide figcaption { position: absolute; left: 14px; bottom: 210px; padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--label); background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.is-card-open .buy-slide img { animation: photo-in .8s var(--ease) .1s both; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.05); filter: blur(8px); } }
.buy-photo-note { display: none; }
/* Where we are among the photos: thin bars, like stories. */
.buy-progress { position: absolute; z-index: 2; top: calc(var(--safe-top) + 8px); left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.buy-progress i { flex: 1; height: 2.5px; border-radius: 2px; background: rgb(29 29 31 / .16); box-shadow: 0 0 0 .5px rgb(255 255 255 / .35); transition: background .3s ease; }
.buy-progress i.is-on, .buy-progress i.is-seen { background: rgb(29 29 31 / .72); }
/* The panel at the bottom. */
.buy-sheet { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; max-height: calc(100svh - var(--safe-top) - 64px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 20px calc(var(--safe-bottom) + 14px); border-radius: 22px 22px 0 0;
  background: rgb(250 249 247 / .95); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 -.5px 0 rgb(0 0 0 / .06), 0 -14px 40px rgb(30 20 10 / .14); transition: translate .35s var(--ease); }
html.is-card-open .buy-sheet { animation: sheet-up .6s var(--ease) .2s both; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.buy-grabber { position: relative; display: block; width: 100%; height: 22px; touch-action: none; -webkit-tap-highlight-color: transparent; }
.buy-grabber::before { content: ""; position: absolute; left: 50%; top: 8px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgb(60 60 67 / .26); }
.buy-grabber:focus-visible { outline: 2px solid var(--label); outline-offset: -4px; border-radius: 8px; }
.buy-info { display: grid; gap: 12px; }
.buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.buy-head-text { display: grid; gap: 1px; min-width: 0; }
.buy-index { margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--label-2); font-variant-numeric: tabular-nums; }
.buy-name { margin: 0; font-family: var(--system); font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-transform: none; color: var(--label); }
.buy-colour-line { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label-2); }
.buy-price { margin: 15px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--label); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* What the panel opens onto, growing smoothly from nothing. */
.buy-more, .buy-extra { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s ease; }
.buy-more-inner, .buy-extra-inner { min-height: 0; overflow: hidden; display: grid; gap: 12px; }
.buy-more-inner { padding: 4px 2px 2px; }
.buy-extra-inner { padding: 2px 0 0; }
.buy-sheet.is-expanded .buy-more, .buy-sheet.is-expanded .buy-extra { grid-template-rows: 1fr; opacity: 1; }
/* Dos | Devant as tabs, the current one underlined; the magnifier beside them. */
.buy .faces { justify-content: space-between; }
.buy .turn-switch { height: auto; padding: 0; gap: 20px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.buy .turn-toggle, .buy .turn-icon { display: none; }
.buy .faces .turn-switch .turn-side { height: auto; padding: 0 0 6px; border-radius: 0; gap: 0; font-size: 13px; font-weight: 500; color: var(--label-2); border-bottom: 1.5px solid transparent; transition: color .2s ease, border-color .2s ease; }
.buy .faces .turn-switch .turn-side[aria-pressed="true"] { color: var(--label); border-color: var(--label); }
.buy .faces .turn-switch .turn-side:nth-child(1) { order: 3; }
.buy .loupe { width: 30px; height: 30px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgb(29 29 31 / .16); }
.buy-label { margin: 2px 0 -5px; display: flex; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--label-2); }
.buy-colour { color: var(--label); }
.buy .sheet-dots { display: flex; gap: 6px; margin-left: -4px; }
.buy .sizes { display: flex; flex: none; gap: 8px; padding: 0; background: none; border-radius: 0; }
.buy .size { width: 48px; height: 34px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(29 29 31 / .18); font-size: 12.5px; font-weight: 600; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.buy .size:hover { box-shadow: inset 0 0 0 1px rgb(29 29 31 / .5); background: #fff; }
.buy .size[aria-pressed="true"] { background: #1d1d1f; color: #fff; box-shadow: none; }
.buy .add { height: 50px; justify-content: center; border-radius: 999px; background: #1d1d1f; box-shadow: none; font-size: 15px; }
.buy .add:hover { background: #000; }
.buy .add [data-add-price] { display: none; }
.buy .buy-offers { display: none; }
/* The key information, packed in a quiet grid of four. */
.buy-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-facts li { display: grid; gap: 3px; align-content: start; padding: 12px 13px; border-radius: 14px; background: #f1f0ee; }
.buy-facts strong { font-size: 12px; font-weight: 600; letter-spacing: -.005em; color: var(--label); }
.buy-facts span { font-size: 11.5px; line-height: 1.4; color: var(--label-2); }
.buy .buy-links { margin: -4px 0 0; }
/* The lookbook: the other designs, worn and laid flat, in a masonry; a tap brings one onto the page. */
.buy-lookbook { padding: 28px 10px calc(var(--safe-bottom) + 220px); }
.buy-lookbook h3 { margin: 0 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label-2); }
.lookbook { columns: 2; column-gap: 8px; }
.look { position: relative; display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; break-inside: avoid; background: #efeeec; aspect-ratio: 4 / 5; transition: background-color .4s ease; }
.look.is-tall { aspect-ratio: 3 / 5; }
.look.is-flat { aspect-ratio: 1; }
.look img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.look.is-flat img { object-fit: contain; padding: 9%; }
.look:active img { transform: scale(.97); }
.look:focus-visible { outline: 2px solid var(--label); outline-offset: 2px; }
/* While the page is open: the bar, the ribbon, the hint and the other tools step aside; a toast shows at the top. */
html.is-card-open :is(.dock-bar, .colour-pick, .ribbon, .hint, .trial-note), html.is-card-open .tools > :not(#selection-open) { opacity: 0 !important; pointer-events: none; transition: opacity .3s ease; }
html.is-card-open .toast { bottom: auto; top: calc(var(--safe-top) + 60px); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* A laptop: the photos in a grid with the lookbook under them, the information in a column held in view
     the whole way down (nothing ever passes under it). */
  .buy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); grid-template-areas: "media sheet" "look sheet"; grid-template-rows: auto 1fr; align-items: start; column-gap: 4vw; padding: 80px 6vw 48px; }
  .buy-media { grid-area: media; height: auto; width: 100%; max-width: 760px; justify-self: end; }
  .buy-progress, .buy-grabber { display: none; }
  .buy-slides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: auto; overflow: visible; scroll-snap-type: none; }
  .buy-slide { height: auto; aspect-ratio: 4 / 5; border-radius: 4px; }
  .buy-slide.is-flat img { padding: 8%; }
  .buy-slide figcaption { bottom: 12px; }
  .buy-slide:hover img { transform: scale(1.035); }
  .buy-sheet { grid-area: sheet; align-self: start; position: sticky; top: 0; bottom: auto; left: auto; right: auto; max-height: none; overflow: visible; padding: 0 0 12px; border-radius: 0; background: #faf9f7; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  html.is-card-open .buy-sheet { animation: none; }
  .buy-more, .buy-extra { grid-template-rows: 1fr; opacity: 1; }
  .buy-head { cursor: default; }
  .buy-info { max-width: 340px; }
  .buy-lookbook { grid-area: look; width: 100%; max-width: 760px; justify-self: end; padding: 56px 0 0; }
  .lookbook { columns: 3; column-gap: 10px; }
  .look { margin-bottom: 10px; }
  .look:hover img { transform: scale(1.04); }
}
.buy-note { display: none; }
.sheet-dots { display: flex; gap: 0; margin-left: -6px; }
.dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.dot::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .16); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.dot[aria-pressed="true"]::before { transform: scale(.86); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .16), 0 0 0 2.5px #fff, 0 0 0 4px rgb(29 29 31 / .5); }
/* Sizes: a segmented control, like the front/back switch. */
.sizes { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 2px; border-radius: 10px; background: rgb(118 118 128 / .14); }
.size { height: 30px; border: 0; border-radius: 8px; color: var(--label); font-size: 13px; font-weight: 600; letter-spacing: 0; text-shadow: none; transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.size:hover { background: rgb(255 255 255 / .5); }
.size[aria-pressed="true"] { background: #fff; color: var(--label); box-shadow: 0 2px 6px rgb(0 0 0 / .12), 0 .5px 1px rgb(0 0 0 / .1); }
.sizes.needs-size { animation: needs-size .45s var(--ease); box-shadow: 0 0 0 1.5px var(--brand); }
@keyframes needs-size { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.size-message { margin: -4px 0 0; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.size-message:empty { display: none; }
/* The main action: an iOS filled button in the brand pink (also in the bag and at checkout). */
.add { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-radius: 14px; background: var(--brand); color: #fff;
  font-family: var(--system); font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-transform: none; box-shadow: 0 4px 14px rgb(214 51 108 / .28); transition: transform .15s var(--ease), background .2s ease; }
.add:hover { background: #c22a60; }
.add:active { transform: scale(.98); }
.add [data-add-price] { font-weight: 500; opacity: .92; font-variant-numeric: tabular-nums; }
.sheet .add { justify-content: center; width: 100%; }
.buy-links { margin: -2px 0 -4px; display: flex; justify-content: center; gap: 18px; }
.buy-links button { min-height: 28px; font-family: var(--system); font-size: 13px; font-weight: 500; color: var(--label-2); text-decoration: none; letter-spacing: 0; text-transform: none; text-shadow: none; }
.buy-links #reference-open { display: none; }
@keyframes card-open { from { opacity: 0; transform: translateY(6px); } }
/* The hint: just above the pill in the gallery; right under the piece up close. */
.hint { bottom: calc(var(--bottom) + 74px); }
html.is-focus .hint { top: calc(var(--shirt-bottom) + 62px); bottom: auto; }
html.is-browsing .hint { opacity: 0 !important; }
@media (max-height: 760px) and (max-aspect-ratio: 1/1) { .buy-links { display: none; } }
.fly-to-bag { position: fixed; z-index: 70; pointer-events: none; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(40 26 10 / .25)); transform-origin: 50% 50%; will-change: transform; }

/* Checkout: steps, fields and payment choices in the same idiom. */
.sheet { font-family: var(--system); }
.steps { display: flex; gap: 6px; margin: 0 44px -4px 0; padding: 0; list-style: none; font-size: 12px; font-weight: 600; color: var(--label-2); }
.steps li { flex: 1; padding-top: 8px; border-top: 3px solid rgb(118 118 128 / .2); }
.steps li.is-current { color: var(--label); border-color: var(--brand); }
.steps li.is-done { border-color: rgb(214 51 108 / .45); }
.checkout-form { display: grid; gap: 14px; }
.checkout-step { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--label-2); }
.field-hint { font-size: 12px; color: var(--label-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 0; background: rgb(118 118 128 / .12); color: var(--label); font: 16px var(--system); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"], .field .phone:has([aria-invalid="true"]) { box-shadow: 0 0 0 1.5px var(--brand); }
.phone { display: flex; align-items: center; border-radius: 12px; background: rgb(118 118 128 / .12); }
.phone .prefix { padding: 0 4px 0 12px; font-weight: 600; color: var(--label-2); }
.phone input { background: none; }
.pay-options { display: grid; gap: 8px; }
.pay-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; border-radius: 14px; background: rgb(118 118 128 / .1); font-weight: 600; cursor: pointer; }
.pay-text { display: grid; gap: 1px; }
.pay-detail { font-size: 12.5px; font-weight: 500; color: var(--label-2); font-variant-numeric: tabular-nums; }
.pay-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pay-option input { position: absolute; opacity: 0; }
.pay-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .15); }
.pay-option:has(input:checked) { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 4px 14px rgb(0 0 0 / .08); }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--label); outline-offset: 2px; }
.order-summary .parts li { font-size: 14px; }
.order-summary .total { padding-top: 8px; border-top: 1px solid rgb(0 0 0 / .08); }
.review { margin: 0; display: grid; gap: 10px; }
.review div { display: grid; gap: 2px; }
.review dt { font-size: 12.5px; font-weight: 600; color: var(--label-2); }
.review dd { margin: 0; white-space: pre-line; font-size: 14px; }
.checkout-actions { display: flex; gap: 10px; align-items: center; }
.checkout-back { min-height: 46px; padding: 0 16px; border-radius: 14px; background: rgb(118 118 128 / .12); font-weight: 600; }
.checkout-back[hidden] + .add { flex: 1; }
.checkout-actions .add { flex: 1; }
.done-mark { margin: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 28px; font-weight: 700; animation: done-in .5s var(--ease) both; }
@keyframes done-in { from { transform: scale(.4); opacity: 0; } }

/* Last step: what to send and where, each with a copy button, then the steps in the order they happen. */
.pay-card { display: grid; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .08), 0 8px 22px rgb(30 16 24 / .06); overflow: hidden; animation: card-open .4s var(--ease) both; }
.pay-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 11px 16px; }
.pay-row + .pay-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgb(60 60 67 / .2); }
.pay-row-text { display: grid; gap: 1px; min-width: 0; }
.pay-row-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--label-2); }
.pay-row.is-number .pay-row-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); }
.pay-row-value { font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-row.is-amount .pay-row-value { font-size: 25px; letter-spacing: -.02em; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: rgb(118 118 128 / .12); color: var(--label); font: 600 13px var(--system); letter-spacing: -.01em; transition: background .2s ease, color .2s ease, transform .15s var(--ease); }
.copy svg { width: 14px; height: 14px; }
.copy:active { transform: scale(.95); }
.copy.is-copied { background: rgb(52 199 89 / .16); color: #1d7a3b; }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; }
.how li::before { content: counter(how); width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; background: rgb(214 51 108 / .12); color: var(--brand); font-size: 12.5px; font-weight: 700; }
.how li.is-done { color: var(--label-2); }
.how li.is-done::before { content: "✓"; background: var(--brand); color: #fff; animation: done-in .4s var(--ease) both; }
.sheet a.add { text-decoration: none; }
.send svg { width: 20px; height: 20px; margin-left: -2px; }

/* Fairy dust around the bag when a piece arrives. */
/* Dust catching the light around the bag: tiny, soft, quiet. */
.fairy { position: fixed; z-index: 71; width: 3px; height: 3px; border-radius: 50%; pointer-events: none;
  background: rgb(255 250 236); box-shadow: 0 0 6px 1px rgb(255 236 200 / .55); }

/* No cast shadow in the fallback either: the garments float in the arches. */
.shirt-ground { display: none; }
.shirt-float { filter: none; }
