/* Gentleman's Wardrobe redesign mockup, built on the Tar storefront system
   (marquee, pill header, edge-to-edge gallery, hairline grids, signature chapter,
   dark bespoke band, curtain footer).
   Motion follows Emil Kowalski's rules: custom curves, transform/opacity/clip-path
   only, hover gated to fine pointers, press feedback, exits faster than entries,
   reduced-motion fallbacks. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* A · Gallery (Tar monochrome) is the default */
  --paper: #ffffff;
  --ink: #0a0a0a;
  --mute: rgba(10, 10, 10, 0.55);
  --hair: rgba(10, 10, 10, 0.1);
  --tile: #ebebea;
  --band: #0a0a0a;
  --band-ink: #ffffff;
  --accent: #8a6a4a;
  --bar: #0a0a0a;
  --bar-ink: #ffffff;
  --btn: #0a0a0a;
  --btn-ink: #ffffff;
  --display: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-case: uppercase;
  --display-track: -0.035em;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sign: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  --tile-filter: grayscale(1);
  --glass: rgba(12, 12, 11, 0.86);
  --glass-solid: rgba(12, 12, 11, 0.97);
  --glass-ink: #f2efe8;
}

html[data-v="b"] {
  /* B · Wardrobe: GW's own warmth, mahogany panelling and cream paper */
  --paper: #f7f2ea;
  --ink: #1d1813;
  --mute: rgba(29, 24, 19, 0.58);
  --hair: rgba(29, 24, 19, 0.12);
  --tile: #ece4d8;
  --band: #2b1710;
  --band-ink: #f7f2ea;
  --accent: #8b4a2b;
  --bar: #2b1710;
  --bar-ink: #efe4d3;
  --btn: #2b1710;
  --btn-ink: #f7f2ea;
  --display: "Playfair Display", Georgia, serif;
  --display-weight: 600;
  --display-case: none;
  --display-track: -0.01em;
  --tile-filter: none;
  --glass: rgba(43, 23, 16, 0.86);
  --glass-solid: rgba(43, 23, 16, 0.97);
  --glass-ink: #f4ebdd;
}

html[data-v="c"] {
  /* C · Club: the navy of the gw roundel, brass details, the "for the Well-Dressed" lockup */
  --paper: #ffffff;
  --ink: #121a2e;
  --mute: rgba(18, 26, 46, 0.7);
  --hair: rgba(18, 26, 46, 0.11);
  --tile: #e9ebef;
  --band: #16213d;
  --band-ink: #ffffff;
  --accent: #85653a;
  --bar: #16213d;
  --bar-ink: #e9dcc4;
  --btn: #16213d;
  --btn-ink: #ffffff;
  --display: "Playfair Display", Georgia, serif;
  --display-weight: 800;
  --display-case: none;
  --display-track: -0.02em;
  --tile-filter: none;
  --glass: rgba(22, 33, 61, 0.86);
  --glass-solid: rgba(22, 33, 61, 0.97);
  --glass-ink: #f1ead9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color 300ms ease, color 300ms ease;
}
body { background: var(--band); }
main { position: relative; z-index: 1; overflow-x: clip; background: var(--paper); border-radius: 0 0 40px 40px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.5); transition: background-color 300ms ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── shared motion ── */
.press { transition: transform 160ms var(--ease-out); }
.press:active { transform: scale(0.97); }
.ulink { position: relative; display: inline-block; padding-bottom: 2px; }
.ulink::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: currentColor; transform-origin: left; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ulink:hover::after { transform: scaleX(0.35); } }
/* Lens pull: a photo enters out of focus and finds it once, sharpening fast then settling.
   Uses the independent `scale` property so the tiles' hover zoom (`transform`) still works. */
.wipe { filter: blur(18px); scale: 1.09; opacity: 0; transition: filter 1100ms var(--ease-out), scale 1500ms var(--ease-out), opacity 450ms ease; }
.wipe.in { filter: none; scale: 1; opacity: 1; }
.tile img.wipe { filter: blur(18px); }
.tile img.wipe.in { filter: var(--tile-filter); }
.tile img.wipe { transition: filter 1100ms var(--ease-out), scale 1500ms var(--ease-out), opacity 450ms ease, transform 900ms var(--ease-out); }
.card:nth-child(4n + 2) .wipe, .tile:nth-child(2) .wipe { transition-delay: 70ms; }
.card:nth-child(4n + 3) .wipe, .tile:nth-child(3) .wipe { transition-delay: 140ms; }
.card:nth-child(4n + 4) .wipe { transition-delay: 210ms; }
@media (max-width: 820px) { .card:nth-child(2n) .wipe { transition-delay: 70ms; } .card:nth-child(2n + 1) .wipe { transition-delay: 0ms; } }
.rise { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.rise.in { opacity: 1; transform: none; }
.settle { transform: scale(1.07); transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.settle.in { transform: scale(1); }
.sign { clip-path: inset(-30% 100% -30% -10%); transition: clip-path 1500ms cubic-bezier(0.45, 0.05, 0.35, 1) 400ms; }
.sign.in { clip-path: inset(-30% -10% -30% -10%); }

/* ── marquee ── */
.bar { background: var(--bar); color: var(--bar-ink); height: 30px; overflow: hidden; white-space: nowrap; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; transition: background-color 300ms ease; }
.bar__track { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee 42s linear infinite; }
.bar__track span::before { content: "·"; margin-right: 48px; opacity: .5; }
.bar__track span:first-child::before { content: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── header: Tar's Island ── */
.hdr { position: sticky; top: 0; z-index: 40; height: 60px; display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--hair); transition: background-color 200ms ease, border-color 200ms ease; }
.hdr > nav { display: flex; gap: 22px; font-size: 13px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .hdr > nav a:hover { opacity: .6; } }
.hdr > nav a { transition: opacity 150ms ease; }
.hdr .tools { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.hdr .tools svg { width: 19px; height: 19px; display: block; }
.hdr .tools > * { position: relative; }
.hdr .tools b { position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 8.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.tools__saved { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.logo { color: currentColor; }

.isl {
  --cap-w: 150px; font-family: "Inter", system-ui, sans-serif;
  position: absolute; z-index: 2; top: 12px; left: 50%; width: 420px; margin-left: -210px; min-height: 36px;
  border-radius: 28px; background: var(--glass); color: var(--glass-ink);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  clip-path: inset(0 calc(50% - var(--cap-w) / 2) calc(100% - 36px) calc(50% - var(--cap-w) / 2) round 18px);
  max-height: calc(100dvh - 60px); overflow: hidden; overscroll-behavior: contain; scrollbar-width: none;
  transition: clip-path 340ms var(--ease-drawer), height 420ms var(--ease-drawer), background-color 300ms ease;
}
.isl::-webkit-scrollbar { display: none; }
.isl[data-open] { clip-path: inset(0 0 0 0 round 28px); overflow-y: auto; background-color: var(--glass-solid); transition-duration: 520ms, 420ms, 300ms; }
.isl__cap { position: absolute; top: 0; left: 50%; width: var(--cap-w); height: 36px; margin-left: calc(var(--cap-w) / -2); display: flex; align-items: center; transition: opacity 160ms ease, filter 160ms ease; }
.isl[data-open] .isl__cap { opacity: 0; filter: blur(4px); pointer-events: none; }
.isl__menu { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px; overflow: visible; }
.isl__menu .logo { height: 17px; width: auto; }
.isl__menu i { display: block; width: 13px; height: 6px; border-block: 1.2px solid currentColor; opacity: .8; }
.isl__chip { display: none; position: relative; margin-right: 7px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--glass-ink); color: var(--glass-solid); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; place-items: center; transition: transform 200ms var(--ease-out); }
.isl__chip::after { content: ""; position: absolute; inset: -8px; }
.isl__chip.bump { transform: scale(1.2); transition-duration: 100ms; }
.isl__inner { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top center; transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms; }
.isl[data-open] .isl__inner { opacity: 1; visibility: visible; transform: none; transition: opacity 280ms ease 140ms, transform 420ms var(--ease-out) 100ms, visibility 0s; }
.isl__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .65; font-variant-numeric: tabular-nums; }
.isl__top span { opacity: 1; }
.isl__x { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 17px; line-height: 1; letter-spacing: 0; display: grid; place-items: center; }
.isl__top:has(.isl__x) { opacity: 1; }
.isl__top span { opacity: .65; }
.isl__search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.09); color: rgba(255,255,255,.7); transition: background-color 150ms ease; }
.isl__search:focus-within { background: rgba(255,255,255,.14); }
.isl__search svg { width: 16px; height: 16px; flex: none; }
.isl__search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--glass-ink); font: inherit; font-size: 16px; }
.isl__search input::placeholder { color: rgba(255,255,255,.6); }
.isl__search input::-webkit-search-cancel-button { display: none; }
.isl__results, .isl__list { list-style: none; display: grid; gap: 4px; margin-top: -4px; }
.isl__results a, .isl__list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.isl__list li { grid-template-columns: 1fr auto auto; }
.isl__list li a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-width: 0; }
.isl__results img, .isl__list img { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.1); }
.isl__results span, .isl__list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isl__list small { display: block; font-size: 11px; font-weight: 400; opacity: .6; }
.isl__results b, .isl__list b { font-size: 13px; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; padding-right: 4px; }
@media (hover: hover) and (pointer: fine) { .isl__results a:hover { background: rgba(255,255,255,.07); } }
.isl__rm { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 14px; }
.isl__none, .isl__empty { padding: 4px; font-size: 13px; opacity: .65; }
.isl__body { display: grid; gap: 14px; }
.isl__body[hidden] { display: none; }
.isl__nav { display: grid; gap: 1px; padding-bottom: 4px; }
.isl button:focus-visible, .isl a:focus-visible, .isl input:focus-visible { outline: 2px solid color-mix(in srgb, var(--glass-ink) 55%, transparent); outline-offset: 2px; }
.isl__nav > a, .isl__fold { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 4px 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-align: left; transition: opacity 150ms ease; }
@media (hover: hover) and (pointer: fine) { .isl__nav > a:hover, .isl__fold:hover { opacity: .6; } }
.isl__fold span { font-size: 11px; font-weight: 500; opacity: .5; display: inline-flex; align-items: center; gap: 8px; }
.isl__fold span::after { content: ""; width: 7px; height: 7px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 240ms var(--ease-out); }
.isl__fold[aria-expanded="true"] span::after { transform: translateY(1px) rotate(225deg); }
.isl__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.isl__fold[aria-expanded="true"] + .isl__sub { grid-template-rows: 1fr; transition-duration: 380ms; transition-timing-function: var(--ease-drawer); }
.isl__sub > div { overflow: hidden; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; opacity: 0; transition: opacity 120ms ease; }
.isl__fold[aria-expanded="true"] + .isl__sub > div { opacity: 1; padding: 4px 0 10px; transition: opacity 240ms ease 80ms; }
.isl__sub a { padding: 6px 0; font-size: 14px; opacity: .75; }
.isl__feature { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.07); }
.isl__feature img { width: 52px; height: 66px; border-radius: 10px; object-fit: cover; }
.isl__feature b { display: block; font-family: var(--sign); font-weight: 400; font-size: 30px; line-height: 1; }
.isl__feature small { font-size: 12px; opacity: .7; }
.isl__feature em { font-style: normal; opacity: .6; padding-right: 8px; }
.isl__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.isl__pair button, .isl__cta { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 13px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 500; }
.isl__cta { background: var(--glass-ink); color: var(--glass-solid); font-weight: 600; }
.isl__total { display: flex; justify-content: space-between; padding: 10px 6px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.scrim[data-open] { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }

/* ── hero ── */
.hero { position: relative; height: calc(100svh - 90px); min-height: 560px; overflow: hidden; color: #fff; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero picture img.hero__campaign { object-position: 50% 24%; background: #1a1108; }
@media (max-width: 820px) { .hero picture img.hero__campaign { object-position: 46% 0%; } }
/* navy suit on the dummy: keep the jacket in frame on wide screens, the full scene on phones */
.hero picture img.hero__suit { object-position: 50% 27%; background: #2a1a0c; }
@media (max-width: 820px) { .hero picture img.hero__suit { object-position: 50% 30%; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 92%); }
.hero__copy { position: absolute; z-index: 2; left: 32px; bottom: 44px; max-width: 1000px; }
.hero h1 .plain span { white-space: nowrap; }
.hero__kick { font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.hero h1 { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: clamp(34px, 4.6vw, 64px); line-height: .96; margin: 14px 0 20px; }
.hero h1 .script { display: none; font-family: var(--sign); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.05em; line-height: .6; }
.hero h1 .club { display: none; }
.hero h1 .caps { display: none; font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: .32em; font-size: .42em; text-transform: uppercase; }
html[data-v="c"] .hero h1 .script, html[data-v="c"] .hero h1 .club, html[data-v="c"] .hero h1 .caps { display: block; }
html[data-v="c"] .hero h1 .plain { display: none; }
html[data-v="c"] .hero h1 { line-height: 1; }
html[data-v="c"] .hero h1 .caps { color: #e9dcc4; margin-top: 14px; }
.hero__links { display: flex; gap: 22px; font-size: 13.5px; font-weight: 500; }

/* ── category tiles ── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tile); }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: var(--tile-filter); transition: transform 900ms var(--ease-out), filter 400ms ease; }
.tile span { position: absolute; left: 24px; bottom: 22px; color: #fff; font-size: 15px; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
html[data-v="b"] .tile span, html[data-v="c"] .tile span { font-family: var(--display); font-size: 22px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }

/* ── section heads ── */
.h2 { padding: 30px 20px 26px; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[data-v="b"] .h2, html[data-v="c"] .h2 { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; padding: 54px 20px 30px; }
/* Home titles: a quiet Inter lead word, then the key word signed in script.
   The lead rises first; the signature writes itself left to right just after. */
html[data-v] .h2--sig { display: flex; justify-content: center; align-items: baseline; gap: 14px; padding: 46px 20px 22px; font-family: "Inter", sans-serif; text-transform: none; letter-spacing: 0; }
.h2__lead { font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; translate: 0 -.2em; }
.h2__sig { font-family: var(--sign); font-weight: 400; font-size: clamp(56px, 6.4vw, 88px); line-height: 1; padding: .06em .12em .14em; margin-bottom: -.22em; }
.h2--sig .sign { transition: clip-path 1300ms cubic-bezier(0.45, 0.05, 0.35, 1) 240ms; }
@media (max-width: 820px) { html[data-v] .h2--sig { gap: 10px; padding: 40px 16px 16px; } .h2__lead { font-size: 11px; } .h2__sig { font-size: 54px; } }

/* ── product grid (hairlines like Tar) ── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.card { position: relative; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper); }
.grid > .card:nth-child(4n) { border-right: 0; }
.card__img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img .alt { opacity: 0; transition: opacity 280ms ease; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img .alt { opacity: 1; } }
.card__save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; color: rgba(10,10,10,.55); }
.card__save[aria-pressed="true"] { color: var(--ink); }
.card__save svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.card__save:active svg { transform: scale(.85); }
.card__tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); padding: 4px 7px; }
.card__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 12px 14px; font-size: 12px; }
.card__cat { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card__t { font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card__p { font-weight: 500; white-space: nowrap; text-align: right; }
.card__p s { display: block; color: var(--mute); font-size: 11px; font-weight: 400; }
.card__n { grid-column: 1; color: var(--mute); font-size: 11px; }
.more { display: flex; justify-content: center; padding: 34px 0 64px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 24px; background: var(--btn); color: var(--btn-ink); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ── category explorer: 4 pieces from every category ── */
.explore { border-top: 1px solid var(--hair); }
.rail { position: sticky; top: 60px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.rail__groups { display: flex; gap: 4px; flex: none; padding: 3px; border-radius: 16px; background: var(--tile); position: relative; }
.rail__groups button { position: relative; z-index: 1; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 11.5px; font-weight: 600; transition: color 200ms ease; }
.rail__groups button[aria-pressed="true"] { color: var(--btn-ink); }
.rail__groups .knob { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 13px; background: var(--btn); transition: transform 300ms var(--ease-out), width 300ms var(--ease-out); }
.rail__cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative; flex: 1; scroll-behavior: smooth; overscroll-behavior-x: contain; mask: linear-gradient(90deg, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, #000 92%, transparent); }
.rail__cats::-webkit-scrollbar { display: none; }
.rail__cats button { flex: none; position: relative; height: 52px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--mute); transition: color 160ms ease; white-space: nowrap; }
.rail__cats button[aria-selected="true"] { color: var(--ink); }
.rail__cats .line { position: absolute; left: 0; bottom: 0; height: 1.5px; width: 1px; background: var(--ink); transform-origin: left; transition: transform 320ms var(--ease-out); }
.rail__count { flex: none; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.stage { position: relative; }
.stage .grid { transition: opacity 200ms ease, filter 200ms ease, transform 260ms var(--ease-out); }
.stage .grid.out { opacity: 0; filter: blur(4px); transform: translateY(6px); transition-duration: 120ms; }
.stage__foot { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 64px; font-size: 12px; color: var(--mute); }
.stage__foot a { color: var(--ink); font-weight: 500; }

/* ── signature chapter (Slow Hours) ── */
.chapter { position: relative; display: grid; grid-template-columns: 1fr 440px 1fr; align-items: end; gap: 0 56px; padding: 0 72px 84px; overflow: hidden; }
.chapter__word { position: absolute; inset: 22px 0 auto; text-align: center; pointer-events: none; z-index: 2; }
.chapter__word h2 { display: inline-block; font-family: var(--sign); font-weight: 400; font-size: clamp(110px, 19vw, 280px); line-height: 1; padding: .12em .2em .18em; white-space: nowrap; }
.chapter__img { grid-column: 2; padding-top: clamp(170px, 24vw, 330px); }
.chapter__img a { display: block; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.chapter__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__l { grid-column: 1; grid-row: 1; display: grid; gap: 12px; padding-bottom: 4px; }
.chapter__l small { font-size: 10px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; }
.chapter__l p { max-width: 34ch; font-size: 14px; line-height: 1.65; color: var(--mute); }
.chapter__r { grid-column: 3; grid-row: 1; justify-self: end; padding-bottom: 4px; }
.chapter__r a { display: inline-flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.chapter__r a span { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .chapter__r a:hover span { transform: translateX(4px); } }

/* ── custom tailoring band ── */
.band { display: grid; grid-template-columns: 1fr 1fr; background: var(--band); color: var(--band-ink); transition: background-color 300ms ease; }
.band__img { position: relative; min-height: 660px; overflow: hidden; }
.band__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.band__copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(28px, 6vw, 96px); }
.band small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.band h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(32px, 3.4vw, 50px); line-height: 1.02; margin: 16px 0 18px; }
.band p { max-width: 430px; font-size: 14px; line-height: 1.65; opacity: .62; margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--band-ink) 16%, transparent); margin-bottom: 38px; }
.steps div { background: var(--band); padding: 18px 16px 20px; transition: background-color 300ms ease; }
.steps b { display: block; font-size: 11px; font-weight: 500; opacity: .45; margin-bottom: 26px; }
.steps span { font-size: 13px; font-weight: 500; }
.band .btn { background: var(--band-ink); color: var(--band); align-self: flex-start; }

/* ── outlets ── */
.outlets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.outlet { border-right: 1px solid var(--hair); }
.outlet:last-child { border-right: 0; }
.outlet__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); position: relative; }
.outlet__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .outlet:hover .outlet__img img { transform: scale(1.03); } }
.outlet__meta { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 22px; font-size: 13px; font-weight: 500; }
.outlet__meta span { color: var(--mute); font-size: 11.5px; font-weight: 500; }

/* ── curtain footer ── */
.ftr { background: var(--band); color: var(--band-ink); padding: 84px 32px 30px; text-align: center; overflow: hidden; position: sticky; bottom: 0; z-index: 0; transition: background-color 300ms ease; }
.ftr .logo { width: min(520px, 76vw); height: auto; margin: 0 auto; opacity: .92; }
.ftr .crystal { display: flex; width: max-content; }
.ftr__line { font-family: var(--serif); font-style: italic; font-size: 22px; opacity: .6; margin: 22px 0 46px; }
.ftr nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; font-size: 13px; opacity: .85; }
.ftr__base { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); font-size: 11px; opacity: .5; }
.ftr__arc { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 22px; font-size: 9.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; opacity: .55; }
.ftr__arc i { width: 1px; height: 14px; background: currentColor; opacity: .4; }
.ftr__arc em { display: block; width: 40px; height: 16px; background: currentColor; -webkit-mask: url(assets/brand/arc-logo-mask.png) center / contain no-repeat; mask: url(assets/brand/arc-logo-mask.png) center / contain no-repeat; }

/* ── variant switcher (mockup only) ── */
.vsw { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 22px; background: rgba(18, 18, 18, .86); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 11.5px; }
.vsw > span { opacity: .55; font-weight: 500; }
.vsw__seg { position: relative; display: flex; }
.vsw__seg a { white-space: nowrap; position: relative; z-index: 1; height: 30px; padding: 0 13px; display: grid; place-items: center; border-radius: 15px; font-weight: 600; opacity: .7; transition: opacity 160ms ease; }
.vsw__seg a[aria-current="true"] { opacity: 1; color: #111; }
.vsw__seg .knob { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 15px; background: #fff; transition: transform 280ms var(--ease-out), width 280ms var(--ease-out); }

/* ── phone ── */
@media (max-width: 820px) {
  .hdr { height: 44px; padding: 0 16px; grid-template-columns: 1fr; border-bottom: 0; }
  .hdr[data-floating] { margin-bottom: -44px; background: transparent; }
  .hdr > nav, .hdr .tools, .hdr__gap { display: none; }
  .hero h1 .plain span { white-space: normal; }
  .isl { --cap-w: 140px; top: 4px; left: 10px; right: 10px; width: auto; margin-left: 0; }
  .isl__menu { justify-content: space-between; padding: 0 8px 0 14px; }
  .isl__chip { display: grid; }
  main { border-radius: 0 0 30px 30px; }
  .rail { top: 44px; gap: 12px; padding: 0 14px; flex-wrap: wrap; justify-content: center; }
  .rail__groups { margin: 10px auto 0; }
  .rail__count { display: none; }
  .rail__cats { flex-basis: 100%; margin: 0 -14px; padding-left: 8px; }
  .rail__cats button { height: 46px; }
  .hero { height: calc(100svh - 30px); }
  .hero__copy { left: 18px; right: 18px; bottom: 76px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > .card:nth-child(4n) { border-right: 1px solid var(--hair); }
  .grid > .card:nth-child(2n) { border-right: 0; }
  .chapter { grid-template-columns: 1fr; padding: 0 0 34px; }
  .chapter__word h2 { font-size: 86px; }
  .chapter__img { padding-top: 130px !important; }
  .chapter__img { grid-column: 1; padding-top: 150px; }
  .chapter__l { grid-row: 2; padding: 26px 22px 0; }
  .chapter__r { grid-column: 1; grid-row: 3; justify-self: start; padding: 22px; }
  .band { grid-template-columns: 1fr; }
  .band__img { min-height: 440px; }
  .band__copy { padding: 48px 20px 56px; }
  .steps { grid-template-columns: 1fr; }
  .steps b { margin-bottom: 10px; }
  .outlets { grid-template-columns: 1fr; }
  .outlet { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ftr { padding: 64px 20px calc(30px + env(safe-area-inset-bottom)); }
  .ftr__base { flex-direction: column; gap: 6px; }
  .ftr__arc { justify-content: center; }
  .vsw { bottom: max(12px, env(safe-area-inset-bottom)); }
  .vsw > span { display: none; }
  .vsw { left: 12px; transform: none; padding: 4px; }
  .vsw__name { display: none; }
  .vsw__seg a { padding: 0 11px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .sign { clip-path: none !important; transition: none; }
  .wipe, .tile img.wipe { filter: none; scale: 1; transition: opacity 300ms ease; }
  .rise { transform: none; transition: opacity 300ms ease; }
  .settle, .settle.in { transform: none; transition: none; }
  .bar__track { animation-duration: 120s; }
  .stage .grid, .stage .grid.out { transform: none; filter: none; }
  .isl, .isl[data-open], .isl__inner { transition-duration: 0ms !important; }
}

/* Cross-page photo morph (Tar): the tapped card photo becomes the product page's first photo */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 340ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Island capsule, closed: clear glass. Only the opened card is solid. Contents take the colour
   of what's behind: white over the hero photograph, navy over the white header. */
.isl:not([data-open]) { background-color: rgba(255, 255, 255, .08); color: var(--ink); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
.isl__cap::before { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px currentColor; opacity: .22; pointer-events: none; transition: opacity 160ms ease; }
.isl__cap { color: inherit; }
@media (max-width: 820px) { .hdr[data-floating] .isl:not([data-open]) { color: #fff; background-color: rgba(255, 255, 255, .06); } }
.isl:not([data-open]) .isl__chip { background: var(--ink); color: #fff; }
@media (max-width: 820px) { .hdr[data-floating] .isl:not([data-open]) .isl__chip { background: #fff; color: var(--ink); } }
.isl { transition: clip-path 340ms var(--ease-drawer), height 420ms var(--ease-drawer), background-color 300ms ease, color 200ms ease; }
/* Closed capsule: fully transparent, no fill, no blur, no outline. */
.isl:not([data-open]), .hdr[data-floating] .isl:not([data-open]) { background-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.isl:not([data-open]) .isl__cap::before { opacity: .45; }

/* The phone's status-bar strip stays white on every page (home, welcome, product, booking).
   theme-color handles Safari's tint; when the page runs under the status bar (viewport-fit=cover),
   this strip paints that inset white and the announcement bar starts below it. */
html::after { content: ""; position: fixed; z-index: 2147483647; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #fff; pointer-events: none; }
.bar { box-sizing: content-box; padding-top: env(safe-area-inset-top, 0px); }
.hdr { top: env(safe-area-inset-top, 0px); }
.rail { top: calc(60px + env(safe-area-inset-top, 0px)); }
@media (max-width: 820px) { .rail { top: calc(44px + env(safe-area-inset-top, 0px)); } }
/* The category bar scrolls away with the page (no longer sticky), on home and product pages. */
.rail, .explore .rail { position: relative; top: auto; }

/* Section titles signed in Yosarosa Cursive Tattoo (thin monoline signature). Freeware for
   NON-COMMERCIAL use only (fontspace.com/yosarosa-cursive-tattoo-font-f160613): fine for the pitch,
   needs a commercial licence before GW uses it on their own site. Its letters are smaller on the
   body than Mrs Saint Delafield, so the titles are set larger and given a hair more weight. */
@font-face { font-family: "Yosarosa"; src: url(assets/fonts/yosarosa.otf) format("opentype"); font-display: swap; }
.chapter__word h2, .h2__sig { font-family: "Yosarosa", var(--sign); -webkit-text-stroke: .012em currentColor; letter-spacing: .01em; }
.chapter__word h2 { font-size: clamp(96px, 15vw, 230px); padding: .2em .25em .25em; }
.h2__sig { font-size: clamp(52px, 5.6vw, 80px); padding: .14em .14em .2em; margin-bottom: -.12em; }
@media (max-width: 820px) { .chapter__word h2 { font-size: 72px; } .h2__sig { font-size: 50px; } }
