/* ALBEDO — Collection 03, Black Body. White page, black ink, one light. */

:root {
  --white: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #5e5e5e;      /* secondary text: 6.4:1 on white */
  --ink-3: #767676;      /* quiet labels: 4.54:1 on white */
  --rule: #bdbdbd;       /* decorative hairlines only */
  --line: #e7e7e7;
  --line-2: #cdcdcd;
  --hh: 64px;
  --pad: 28px;
  --ftr: 46px;

  --mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.is-loading { background: #000; }
body {
  margin: 0; min-height: 100%;
  font: 400 11px/1.45 var(--mono); letter-spacing: 0.02em;
  background: var(--white); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow: hidden; overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }
sup { font-size: 0.72em; vertical-align: 0.5em; line-height: 0; margin-left: 0.25em; color: var(--ink-2); font-family: var(--mono); }
.mono { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.mark { display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 8.5; stroke-linejoin: miter; stroke-miterlimit: 4; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--white); }

/* line masks (SplitText) */
.ln-m { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* =================================================================== loader */
.loader { position: fixed; inset: 0; z-index: 100; color: #fff; pointer-events: auto; }
.loader.is-out { pointer-events: none; }
.loader.is-gone { display: none; }
html.is-loading body { background: #000; }
.ld-p { position: fixed; left: 0; top: 0; width: 0; height: 0; background: #000; will-change: transform; }
.ld-t { width: 100vw; height: 100vh; }
.ld-frame { position: fixed; left: 50%; top: 50%; width: 0; height: 0; background: #000; }
.ld-frame.is-open { background: none; }
.ld-p { overflow: hidden; }
.ld-glow { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
/* the collection is named in the black, either side of the frame; it leaves with the panels */
.ld-ttl { position: absolute; right: clamp(28px, 4vw, 64px); top: 50%; transform: translateY(-50%); display: grid; justify-items: end; gap: 14px; margin: 0; color: #fff; text-align: right; opacity: 0; }
.ld-ttl span { color: rgba(255, 255, 255, 0.6); }
.ld-ttl b { font: 300 clamp(30px, 3.1vw, 50px)/0.95 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.005em; }
.ld-line { position: absolute; left: clamp(28px, 4vw, 64px); top: 50%; transform: translateY(-50%); width: min(300px, calc(100% - 56px)); margin: 0; color: rgba(255, 255, 255, 0.7); font: 360 14px/1.55 var(--sans); font-stretch: 112%; opacity: 0; }
.ld-ttl-m { display: none; }
.ld-on .ld-ttl, .ld-on .ld-line { opacity: 1; transition: opacity 1.2s ease 0.9s; }
.ld-narrow .ld-lf .ld-ttl, .ld-narrow .ld-line { display: none; }
.ld-narrow .ld-ttl-m { display: grid; left: 0; right: 0; top: auto; bottom: 22px; transform: none; justify-items: center; text-align: center; gap: 8px; }
.ld-ttl-m span { white-space: nowrap; }
.ld-narrow .ld-ttl-m b { font-size: 24px; }
.ld-narrow .ld-ttl-m span { font-size: 10px; }
.ld-notitle .ld-ttl-m { display: none !important; }
.ld-c { position: absolute; width: 11px; height: 11px; border: 0 solid rgba(255, 255, 255, 0.85); opacity: 0; transition: opacity 0.6s var(--ease-out) 0.3s; }
.ld-on .ld-c { opacity: 1; }
.ld-c.tl { left: -10px; top: -10px; border-left-width: 1px; border-top-width: 1px; }
.ld-c.tr { right: -10px; top: -10px; border-right-width: 1px; border-top-width: 1px; }
.ld-c.bl { left: -10px; bottom: -10px; border-left-width: 1px; border-bottom-width: 1px; }
.ld-c.br { right: -10px; bottom: -10px; border-right-width: 1px; border-bottom-width: 1px; }
.ld-neg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) invert(1); opacity: 0; }
.ld-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.ld-mark { position: fixed; color: #fff; mix-blend-mode: difference; z-index: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.ld-on .ld-mark { animation: draw 1.5s var(--ease-io) 0.1s forwards; }
.is-embed .ld-on .ld-mark, .is-embed.ld-on .ld-mark { animation-duration: 0.5s; animation-delay: 0s; }
/* cross-origin preview iframes in Firefox drop multiply-blended layers; the preview only drifts, so no blend there */
.is-embed .card { mix-blend-mode: normal; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ld-meta {
  position: fixed; left: var(--pad); right: var(--pad); bottom: 0; height: var(--ftr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #fff;
}
.ld-meta > span { display: flex; gap: 14px; }
.ld-l { justify-self: start; }
.ld-r { justify-self: end; }
.ld-read { color: rgba(255, 255, 255, 0.62); min-width: 220px; justify-content: center; }
.ld-meta [data-ld="pct"] { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.ld-meta > span > span { display: inline-block; }
.ld-fail { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 86vw); text-align: center; color: #fff; display: grid; gap: 14px; justify-items: center; z-index: 3; }
.ld-fail p:nth-child(2) { font: 300 15px/1.5 var(--sans); font-stretch: 112%; color: rgba(255, 255, 255, 0.75); }

/* =================================================================== header */
.hdr {
  position: fixed; inset: 0 0 auto 0; height: var(--hh); z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
}
.hdr-mark { display: block; padding: 10px 0; }
.hdr-mark .mark { height: 14px; width: calc(14px * 771 / 116); }
.hdr-l { position: relative; display: flex; align-items: center; gap: 22px; justify-self: start; height: 100%; }
.hdr-r { justify-self: end; display: flex; gap: 22px; align-items: center; }
.hbtn {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; height: 32px; align-items: center;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2);
  transition-property: color, opacity, transform; transition-duration: 200ms, 300ms, 150ms; transition-timing-function: ease, var(--ease-out), ease-out;
}
.hbtn[aria-pressed="true"], .hbtn.is-on { color: var(--ink); }
.hbtn:active { transform: scale(0.96); }
.hbtn sup { margin-left: 0; color: var(--ink-3); }
.hdr-ind { position: absolute; left: 0; bottom: 14px; width: 4px; height: 4px; background: var(--ink); transition: transform 500ms var(--ease-out), opacity 200ms ease; }
.hbtn-back { display: none; color: var(--ink); }
.hbtn-back .arr { display: inline-block; transition: transform 300ms var(--ease-out); }
.is-product .hbtn[data-view] { display: none; }
.is-product .hbtn-back { display: inline-flex; }
.is-product .hdr-ind { opacity: 0; }
.hbtn-bag { color: var(--ink); gap: 8px; }
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.45em; vertical-align: top; font-variant-numeric: tabular-nums; min-width: 1ch; }
.roll > span { display: block; }
.roll > span + span { position: absolute; left: 0; top: 0; }
.bag-ping { position: absolute; right: -9px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 400ms var(--ease-out); }
.has-items .bag-ping { transform: scale(1); }
.bag-ping::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; }
.bag-ping.is-ping::after { animation: ping 900ms var(--ease-out); }
@keyframes ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(5.5); } }
@media (hover: hover) and (pointer: fine) {
  .hbtn:hover { color: var(--ink); }
  .hbtn-back:hover .arr { transform: translateX(-4px); }
}

/* =================================================================== home: collection strip + index grid */
.v-home { position: fixed; inset: 0; overflow: hidden; }
.strip { position: absolute; left: 0; right: 0; top: var(--strip-top, 120px); height: calc(var(--ch) + 56px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card { position: absolute; left: 0; top: 0; width: var(--cw); display: block; outline-offset: 8px; -webkit-user-drag: none; mix-blend-mode: multiply; }
/* multiply: the studio white of every picture vanishes into the white page, so pieces crossing each other in a
   FLIP or a flight overlap as silhouettes instead of cutting each other with white rectangles */
/* copies flying over their own source use darken: min() of two identical pictures is the picture, not a doubled shadow */
.ghost, .fly, .note-img, .bi-img { mix-blend-mode: darken; }
.c-top, .c-bot { display: flex; align-items: baseline; height: 18px; gap: 12px; }
/* number and albedo belong to the same piece, so they sit together on its left edge */
.c-top { margin-bottom: 10px; color: var(--ink-3); justify-content: flex-start; gap: 14px; }
.c-top > *, .c-sw { opacity: var(--lo, 1); transition: opacity 200ms linear; }
.c-bot { margin-top: 10px; position: relative; }
.c-img { position: relative; display: block; width: var(--cw); height: var(--ch); }
.c-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.c-img .i-b { opacity: 0; }
.c-sw { position: relative; overflow: clip; height: 18px; flex: 1; }
/* at rest: the name (price too on touch screens and in the index); under the pointer: price · category */
.c-sw > span { position: absolute; left: 0; top: 0; width: 100%; display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; transition: transform 520ms var(--ease-out); }
.c-sw > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.c-sw b { font-weight: 400; color: var(--ink-2); flex: none; }
.c-name { transform: translateY(105%); }
.card.is-hot .c-cat { transform: translateY(-105%); }
.card.is-hot .c-name { transform: none; }
.card.is-hot { --lo: 1 !important; }
@media (hover: hover) and (pointer: fine) { .v-home:not(.is-index) .c-pr { display: none; } }
.c-alb { font-variant-numeric: tabular-nums; }

.home-hint { position: absolute; left: 50%; bottom: calc(var(--ftr) + 10px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: var(--ink-3); transition: opacity 400ms ease; }
.hint-line { width: 36px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hint-line::after { content: ''; position: absolute; inset: 0; background: var(--ink-2); transform: translateX(-100%); animation: hint 2.4s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

.home-title { position: absolute; left: 50%; top: var(--ht-top, 200px); width: min(760px, 90vw); transform: translate(-50%, -50%); text-align: center; display: none; justify-items: center; gap: 22px; }
.is-tall .v-home:not(.is-index) .home-title { display: grid; }
.ht-k { color: var(--ink-2); }
.ht-name { font: 300 clamp(40px, 4.4vw, 68px)/0.95 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.005em; }
.ht-line { font: 360 15px/1.55 var(--sans); font-stretch: 112%; color: var(--ink-2); max-width: 44ch; text-wrap: balance; }

.hdr-pn { display: none; align-items: center; gap: 10px; color: var(--ink-3); margin-left: 18px; }
.hdr-pn [data-pn-n] { color: var(--ink); }
.is-product .hdr-pn { display: inline-flex; }

/* index */
.idx-bar {
  position: absolute; left: var(--ix-l, var(--pad)); right: var(--ix-l, var(--pad)); top: calc(var(--hh) + 6px); height: 40px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 300ms ease, transform 500ms var(--ease-out), visibility 0s linear 300ms;
}
.is-index .idx-bar { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms ease 200ms, transform 600ms var(--ease-out) 200ms, visibility 0s; }
.seg { display: flex; gap: 20px; align-items: center; }
.seg-r { display: flex; gap: 44px; align-items: center; }
.seg-l { color: var(--ink-3); margin-right: 2px; }
.seg button { position: relative; height: 32px; color: var(--ink-2); transition-property: color, transform; transition-duration: 200ms, 150ms; transition-timing-function: ease, ease-out; }
.seg button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg button[aria-pressed="true"]::after { transform: none; }
.seg button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: var(--ink); } }

.v-home.is-index { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.v-home.is-index::-webkit-scrollbar { display: none; }
.is-index .strip {
  position: relative; top: auto; height: auto; left: auto; right: auto; touch-action: auto;
  display: grid; grid-template-columns: repeat(var(--cols), var(--gw)); justify-content: center;
  column-gap: var(--gx); row-gap: 52px;
  padding: calc(var(--hh) + 64px) var(--pad) calc(var(--ftr) + 24px);
}
.is-index .card { position: relative; width: var(--gw); }
.is-index .c-img { width: var(--gw); height: calc(var(--gw) * 16 / 9); }
.is-index .c-top { margin-bottom: 7px; }
.is-index .c-bot { margin-top: 7px; }
.is-index .home-hint { opacity: 0; }
.card.is-out { display: none; }

/* =================================================================== product */
.v-product { position: fixed; inset: 0; overflow: hidden; }
.v-product[hidden] { display: none; }
.pg { position: absolute; left: 0; right: 0; top: var(--pg-top); display: flex; justify-content: center; gap: var(--pg-gap); }
.pg-f { position: relative; flex: none; width: var(--pw); height: var(--ph); display: block; margin: 0; outline-offset: 6px; }
.pg-f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.pg-i { position: absolute; inset: 0; overflow: clip; }
/* full-bleed close-ups keep their edge on the white page; packshots float without a frame on purpose */
.pg-f.is-fill img { outline: 1px solid oklch(0 0 0 / 0.08); outline-offset: -1px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* the piece steps a little closer under the pointer: a hint that the frame opens close up */
  .pg-f img { transition: scale 1.2s var(--ease-out); }
  .pg-f:hover img { scale: 1.035; }
}
.pg-f figcaption { position: absolute; left: 0; top: calc(100% + 10px); color: var(--ink-3); }
.pg-dots { display: none; }

.pd {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--ftr) + 6px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: end;
}
.is-pd-top .pd { top: var(--pd-top); bottom: auto; align-items: start; }
.pd-col { display: grid; gap: 10px; align-content: end; min-width: 0; }
.pd-no { color: var(--ink-3); display: flex; gap: 14px; }
.pd-name { font: 340 28px/1.02 var(--sans); font-stretch: 125%; letter-spacing: 0.01em; text-transform: uppercase; }
.pd-sub { color: var(--ink-2); }
.pd-name:focus { outline: none; }
.alb { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.alb-bar {
  position: relative; width: 112px; height: 9px;
  background:
    linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px calc(10% - 0.1px)) 0 100% / calc(100% + 1px) 4px no-repeat;
}
.alb-bar::before, .alb-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.alb-bar::before { left: 0; } .alb-bar::after { right: 0; }
.alb-tick { position: absolute; top: -4px; bottom: -4px; left: calc(var(--v) * 100%); width: 2px; margin-left: -1px; background: var(--ink); }
.alb-v { color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-desc { font: 360 14px/1.5 var(--sans); font-stretch: 112%; letter-spacing: 0.005em; max-width: 40ch; text-wrap: pretty; }
.pd-comp { color: var(--ink-2); display: grid; gap: 2px; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sz {
  position: relative; min-width: 46px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; text-transform: uppercase;
  transition-property: background-color, color, border-color, transform; transition-duration: 180ms, 180ms, 180ms, 150ms; transition-timing-function: ease, ease, ease, ease-out;
}
.sz[aria-checked="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sz:not(:disabled):active { transform: scale(0.96); }
.sz:disabled { color: var(--ink-3); cursor: not-allowed; border-color: var(--line); }
.sz:disabled::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--ink-3); transform: rotate(-18deg); }
.sz.is-low::before { content: ''; position: absolute; right: 4px; top: 4px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.sz.is-nudge { border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sz:not(:disabled):not([aria-checked="true"]):hover { border-color: var(--ink); } }
.pd-stock { color: var(--ink-2); min-height: 16px; }
.pd-sz { position: relative; }
.pd-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pd-sh .tbtn { color: var(--ink-2); flex: none; }
.guide {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: max(100%, 320px); z-index: 6; padding: 14px 18px 16px;
  background: var(--white); border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 48px -24px rgba(0, 0, 0, 0.22);
  transform-origin: 100% 100%;
}
.guide table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.guide th, .guide td { text-align: left; font-weight: 400; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.guide thead th { color: var(--ink-3); }
.guide tbody th { color: var(--ink); }
.guide tr.is-on th, .guide tr.is-on td { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 calc(100% + 0px) / 100% 1px no-repeat; }
.guide-n { margin-top: 10px; font: 360 12px/1.45 var(--sans); font-stretch: 112%; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .pd-sh .tbtn:hover { color: var(--ink); } }
.pd-buy { justify-items: end; text-align: right; }
.pd-price { font: 340 22px/1 var(--sans); font-stretch: 125%; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.pd-note { color: var(--ink-2); text-wrap: balance; }
.pd-note span { white-space: nowrap; }
.pd-sub-m { display: none; }
.pnav-m { display: none; }
.pnav { display: flex; gap: 18px; color: var(--ink-2); }
.pnav button { height: 28px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .pnav button:hover { color: var(--ink); } }

/* =================================================================== buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; min-width: 190px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); overflow: hidden; isolation: isolate;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  transition-property: background-color, color, transform; transition-duration: 200ms, 200ms, 150ms; transition-timing-function: ease, ease, ease-out;
}
.btn:not(:disabled):active { transform: scale(0.96); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-s { height: 38px; min-width: 0; padding: 0 16px; }
.btn-inv { border-color: #fff; color: #fff; }
.btn-l { position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.btn-l svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.btn-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }
.btn-spin { position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 1px solid currentColor; border-right-color: transparent; opacity: 0; }
.is-busy .btn-spin { opacity: 1; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn-solid):not(:disabled):hover { background: var(--ink); color: var(--white); }
  .btn-solid:not(:disabled):hover { background: #2a2a2a; }
  .btn-inv:hover { background: #fff !important; color: #000 !important; }
}
.tbtn { position: relative; height: 28px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 calc(100% - 5px) / 0 1px no-repeat; transition: background-size 400ms var(--ease-out), transform 150ms ease-out; }
.tbtn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .tbtn:hover { background-size: 100% 1px; } }

/* =================================================================== footer */
.ftr {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--ftr); z-index: 30; padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink-2); white-space: nowrap;
}
.ftr-credit { color: var(--ink); }
@media (max-width: 1559px) { .ftr > span:nth-child(3) { display: none; } }
@media (max-width: 1180px) { .ftr > span:nth-child(4) { display: none; } }
@media (max-width: 920px) { .ftr > span:nth-child(2) { display: none; } }
.is-index .ftr { background: linear-gradient(to top, #fff 60%, rgba(255, 255, 255, 0)); }

/* =================================================================== bag drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 400ms ease; }
.bag-open .scrim { opacity: 1; pointer-events: auto; }
.bag { touch-action: pan-y;
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 61; background: var(--white);
  box-shadow: -1px 0 0 var(--line); transform: translateX(100%); visibility: hidden;
  transition: transform 640ms var(--ease-drawer), visibility 0s linear 640ms;
  outline: none;
}
.bag-open .bag { transform: none; visibility: visible; transition: transform 640ms var(--ease-drawer), visibility 0s; }
.bag-in { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.bag-h { height: var(--hh); display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); }
.bag-title { font: 340 15px/1 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.02em; display: flex; gap: 10px; align-items: baseline; }
.bag-title .roll { font-size: 11px; color: var(--ink-2); }
.bag-steps { position: relative; display: grid; overflow: hidden; }
.bag-step { grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--pad) var(--pad); visibility: hidden; }
.bag-step.is-on { visibility: visible; }
.bag-list { display: grid; }
.bi { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: stretch; }
.bi:last-child { border-bottom: 1px solid var(--line); }
.bi-img { width: 74px; height: 131px; position: relative; }
.bi-img img { width: 100%; height: 100%; object-fit: cover; }
.bi-t { display: grid; align-content: space-between; gap: 6px; min-width: 0; }
.bi-name { font: 360 13px/1.2 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.02em; }
.bi-meta { color: var(--ink-2); display: grid; gap: 2px; }
.bi-r { display: grid; align-content: space-between; justify-items: end; }
.bi-price { font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--line-2); height: 30px; }
.qty button { width: 30px; height: 28px; display: grid; place-items: center; color: var(--ink); transition: background-color 150ms ease, transform 150ms ease-out; }
.qty button:disabled { color: var(--ink-3); cursor: not-allowed; }
.qty button:not(:disabled):active { transform: scale(0.9); }
.qty .roll { min-width: 2ch; text-align: center; }
.qty .roll > span { text-align: center; width: 100%; }
@media (hover: hover) and (pointer: fine) { .qty button:not(:disabled):hover { background: #f3f3f3; } }
.bi-rm { color: var(--ink-2); height: 24px; }
.bag-empty { display: none; padding: 48px 0; gap: 14px; justify-items: start; }
.is-empty .bag-empty { display: grid; }
.is-empty .bag-sum { display: none; }
.bag-empty-t { font: 340 20px/1.2 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.01em; }
.bag-sum { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.bag-sum p { display: flex; justify-content: space-between; color: var(--ink-2); }
.bag-sum p span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.bag-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--ink) !important; }
.bag-total span:last-child { font: 340 18px/1 var(--sans); font-stretch: 125%; }
.bag-sum .btn { width: 100%; margin-top: 12px; }
.bag-note { color: var(--ink-2) !important; display: block !important; text-transform: none; font-size: 11px; line-height: 1.5; letter-spacing: 0.01em; }

.rsv { display: grid; gap: 18px; padding-top: 10px; }
.rsv-lead { font: 360 14px/1.5 var(--sans); font-stretch: 112%; color: var(--ink); max-width: 38ch; margin-bottom: 4px; }
.fld { display: grid; gap: 6px; position: relative; }
.fld > span { color: var(--ink-2); }
.fld > span i { font-style: normal; color: var(--ink-3); margin-left: 6px; }
.fld input {
  height: 44px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 0;
  font: 360 15px/1 var(--sans); font-stretch: 112%; color: var(--ink); outline: none; transition: border-color 200ms ease;
}
.fld input:focus { border-color: var(--ink); }
.fld-err { font-style: normal; color: var(--ink); height: 0; overflow: hidden; opacity: 0; transition: opacity 200ms ease; }
.fld.is-bad input { border-color: var(--ink); border-bottom-width: 2px; }
.fld.is-bad .fld-err { height: auto; opacity: 1; }
.fld-set { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fld-set legend { color: var(--ink-2); padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.chk { display: flex; gap: 12px; align-items: center; cursor: pointer; font: 360 13px/1.4 var(--sans); font-stretch: 112%; }
.chk input { position: absolute; opacity: 0; }
.chk i { width: 16px; height: 16px; border: 1px solid var(--ink-2); position: relative; flex: none; transition: background-color 150ms ease; }
.chk i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg) scale(0.6); opacity: 0; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.chk input:checked + i { background: var(--ink); border-color: var(--ink); }
.chk input:checked + i::after { opacity: 1; transform: rotate(45deg) scale(1); }
.chk input:focus-visible + i { outline: 1px solid var(--ink); outline-offset: 2px; }
.rsv-f { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.rsv-f .btn { min-width: 0; flex: 1; max-width: 270px; }

.done { display: grid; justify-items: start; gap: 16px; padding-top: 24px; }
.done-mark { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 1; }
.done-mark path { stroke-width: 1.4; }
.done-t { font: 330 40px/1 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.005em; }
.done-no b { font-weight: 400; color: var(--ink); }
.done-no { color: var(--ink-2); }
.done-p { font: 360 14px/1.5 var(--sans); font-stretch: 112%; max-width: 36ch; }
.done-list { width: 100%; border-top: 1px solid var(--line); color: var(--ink-2); }
.done-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.done-list li span:first-child { color: var(--ink); }
.done .btn { margin-top: 8px; }

/* =================================================================== added-to-bag notice */
.note { position: fixed; top: calc(var(--hh) + 6px); right: var(--pad); width: 392px; z-index: 50; pointer-events: none; }
.note-in {
  position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 14px 16px; padding: 16px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 18px 40px -18px rgba(0, 0, 0, 0.18); border: 1px solid transparent;
  opacity: 0; transform: translateY(-12px); filter: blur(4px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, filter 150ms ease-out;
}
.note.is-on { pointer-events: auto; }
.note.is-on .note-in { opacity: 1; transform: none; filter: blur(0); transition: opacity 300ms ease-out, transform 420ms var(--ease-out), filter 300ms ease-out; }
.note-img { grid-row: 1 / 3; width: 64px; height: 113px; position: relative; }
.note-img img { width: 100%; height: 100%; object-fit: cover; }
.note-t { display: grid; gap: 4px; align-content: start; min-width: 0; }
.note-h { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.note-h svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.note-name { font: 360 13px/1.25 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.02em; }
.note-meta { color: var(--ink-2); }
.note-hold { color: var(--ink); margin-top: 4px; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note-a { display: flex; gap: 16px; align-items: center; align-self: end; }
.note-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* flying thumbnail */
.fly { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; transform-origin: 0 0; will-change: transform, filter, opacity; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* shared-element clone for view transitions */
.ghost { position: fixed; left: 0; top: 0; z-index: 35; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.ghost img { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================== zoom */
/* .zoom stays static (no stacking context) so its fixed children and the picture layer share one context:
   ground 80, picture 81 (darken), captions 82 */
.zoom { position: static; }
.zoom-bg { position: fixed; inset: 0; z-index: 80; background: var(--white); }
.zoom-img { position: fixed; left: 0; top: 0; z-index: 81; will-change: transform; mix-blend-mode: darken; pointer-events: none; }
.zoom-img img { width: 100%; height: 100%; object-fit: cover; }
.zoom-ui { position: fixed; z-index: 82; left: var(--pad); right: var(--pad); bottom: 0; height: var(--ftr); display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.zoom-ui > span:first-child { color: var(--ink); }
.zoom-r { display: flex; gap: 28px; align-items: center; }

/* =================================================================== cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; color: #fff; opacity: 0; transition: opacity 300ms ease; }
.is-fine.cur-on .cursor { opacity: 1; }
.cur-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: transform 360ms var(--ease-out), opacity 200ms ease; }
.cur-ring { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; border: 1px solid #fff; opacity: 0; transform: scale(0.3); transition: transform 520ms var(--ease-out), opacity 240ms ease; }
.cur-l { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.8); opacity: 0; white-space: nowrap; font-size: 10px; letter-spacing: 0.08em; transition: opacity 200ms ease, transform 420ms var(--ease-out); }
.cursor.is-ring .cur-dot, .cursor.is-down .cur-dot { transform: scale(0); opacity: 0; }
.cursor.is-ring .cur-ring { opacity: 1; transform: none; }
.cursor.is-down .cur-ring { opacity: 1; transform: scale(0.82); }
.cursor.is-ring .cur-l, .cursor.is-down .cur-l { opacity: 1; transform: translate(-50%, -50%); }
.cursor.is-small .cur-dot { transform: scale(0.5); }
.is-fine.cur-on, .is-fine.cur-on * { cursor: none !important; }
.is-fine.cur-on input, .is-fine.cur-on textarea { cursor: text !important; }

.nojs { position: fixed; inset: 0; display: grid; place-items: center; background: #000; color: #fff; z-index: 300; }

/* =================================================================== mobile */
@media (max-width: 759px), (max-height: 559px) {
  :root { --hh: 56px; --pad: 16px; --ftr: 58px; }
  .hdr-mark .mark { height: 12px; width: calc(12px * 771 / 116); }
  .ld-meta { font-size: 10px; }
  .ld-meta > span { gap: 8px; white-space: nowrap; }
  .ld-l > span:first-child, .ld-r > span:first-child { display: none; }
  .ld-read { min-width: 0; }
  .hdr-l { gap: 0; }
  .hbtn[data-view] { display: none; }
  .hbtn[data-view].is-alt { display: inline-flex; color: var(--ink); }
  .is-product .hbtn[data-view].is-alt { display: none; }
  .hdr-ind { display: none; }
  .ftr { flex-wrap: wrap; justify-content: center; align-content: center; row-gap: 2px; column-gap: 14px; font-size: 10px; }
  .ftr > span:nth-child(2), .ftr > span:nth-child(3), .ftr > span:nth-child(4) { display: none; }
  .home-hint { bottom: calc(var(--ftr) + 2px); }
  .idx-bar { flex-direction: column; align-items: flex-start; height: auto; gap: 0; top: calc(var(--hh) + 2px); }
  .seg-r { flex-direction: column; align-items: flex-start; gap: 0; }
  .seg { gap: 14px; }
  .is-index .strip { row-gap: 26px; padding-top: calc(var(--hh) + 118px); }
  .c-top { margin-bottom: 6px; }
  .c-bot { margin-top: 6px; }

  .v-product { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  /* opaque bars: a black garment scrolling under a see-through bar turns it into a grey slab */
  .is-product .hdr, .is-index .hdr { background: var(--white); box-shadow: 0 1px 0 var(--line); }
  .is-index .idx-bar { background: var(--white); left: 0; right: 0; padding: 4px var(--pad) 8px; top: var(--hh); }
  /* the pieces sit a little closer on a phone; the loader's negative matches so the hand-over stays exact */
  .c-img { overflow: clip; }
  .c-img img, .ld-neg { scale: 1.2; }
  .hbtn { height: 44px; }
  .sz { height: 44px; min-width: 52px; }
  .qty { height: 44px; }
  .qty button { width: 44px; height: 42px; }
  .chips span { height: 42px; padding: 0 16px; }
  .tbtn { height: 44px; }
  .is-index .ftr { background: var(--white); box-shadow: 0 -1px 0 var(--line); }
  .ftr-credit { white-space: normal; text-align: center; }
  .ld-neg { clip-path: inset(8.333%); }
  .zoom-ui { background: var(--white); box-shadow: 0 -1px 0 var(--line); left: 0; right: 0; padding: 0 var(--pad); }
  .is-product .hdr-pn { display: none; }
  .is-product .ftr { display: none; }
  .pnav-m { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-2); }
  .pnav-m button { height: 44px; color: var(--ink); }
  .pg {
    position: relative; top: auto; margin-top: var(--pg-top); justify-content: flex-start; gap: var(--pg-gap);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc((100vw - var(--pw)) / 2);
  }
  .pg::-webkit-scrollbar { display: none; }
  .pg-f { scroll-snap-align: center; }
  .pg-fit .pg { justify-content: center; padding: 0 var(--pad); }
  .pg-fit .pg-dots { display: none; }
  .pg-f figcaption { display: none; }
  .pg-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .pg-dots i { width: 14px; height: 1px; background: var(--line-2); transition: background-color 200ms ease; }
  .pg-dots i.is-on { background: var(--ink); }
  .pd { position: relative; left: auto; right: auto; bottom: auto; display: grid; grid-template-columns: 1fr; gap: 22px; padding: 22px var(--pad) calc(var(--ftr) + 110px); align-items: start; }
  .pd-col { align-content: start; }
  .pd { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .pd-buy { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; z-index: 31; padding: 10px var(--pad); background: var(--white); box-shadow: 0 -1px 0 var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
  .pd-buy .pd-note, .pd-buy .pnav { display: none; }
  .pd-buy .btn { flex: 1; min-width: 0; max-width: 230px; }
  .pd-name { font-size: 24px; }
  .pd-sub-m { display: inline; }
  .note { left: var(--pad); right: var(--pad); width: auto; }
  .bag { width: 100vw; }
}

/* =================================================================== reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .hint-line::after { animation: none; }
  .note-in { transform: none !important; filter: none !important; }
}

/* the stylesheet is in: the page may show (index.html hides it until then) */
body { visibility: visible; }
