/* The same wardrobe, in the velvet-curtain edition. */
:root[data-season] {
  --paper:var(--ft-paper); --ink:var(--ft-ink); --muted:var(--ft-muted); --wine:var(--ft-accent);
  --salon-accent:var(--ft-accent); --season-paper:var(--ft-paper);
}
.mast, .mast.is-scrolled, .footer { background:var(--ft-dark); color:var(--ft-on-dark) }
:is(.mast, .footer, .material-room) :focus-visible { outline-color:var(--ft-focus-on-dark) }
.mast { border-bottom:1px solid #e7d9ca38 }
.mast-account { display:flex; align-items:center; gap:6px; font-size:14px; white-space:nowrap }
.mast-account a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px }
.mast-actions [hidden],.mobile-nav [hidden] { display:none!important }
.main-nav { gap:clamp(12px,2vw,38px) }
.main-nav a,.main-nav button { min-height:44px; display:inline-flex; align-items:center }
.hero .issue { color:#fff1dc; letter-spacing:.05em; font-size:13px }
.hero .issue i { font-size:18px }
.hero #home-title { display:block; margin:20px 0 22px; color:#fff0dc; font:500 clamp(58px,min(8.7vw,15vh),156px)/.79 var(--serif); letter-spacing:-.065em; }
#home-title span,#home-title em { display:block; color:inherit }
#home-title em { padding-left:.18em; font-weight:400; line-height:1; }
.hero #hero-desc { font:500 clamp(24px,2.2vw,38px)/1.32 var(--cn); color:#fff3e2 }
.hero #cover-garment { margin-top:7px; font-size:14px; color:#f4e8db }
.hero-actions .button.light { background:#f5e9d7; color:#331e23 }
.hero .hero-rail { background:linear-gradient(0deg,#1a1015d9,transparent) }
#premiere-rack { padding:18px var(--pad); display:flex; align-items:center; justify-content:space-between; gap:28px; background:#f6eee3; border-bottom:1px solid #4b323241 }
.rack-index,.rack-looks,.rack-look { display:flex; align-items:center }
.rack-index { gap:clamp(20px,3.4vw,70px) }
.rack-index h2,.design-journey h2 { margin:0; font:500 clamp(26px,2.3vw,39px)/1.3 var(--cn); white-space:nowrap }
.rack-looks { min-width:0; gap:clamp(5px,.8vw,14px) }
.rack-look { min-width:0; gap:9px; min-height:52px; padding:4px 12px 4px 5px; border:1px solid transparent; border-radius:var(--field-radius); font-size:14px; color:var(--ink); transition:background-color .16s ease, border-color .16s ease }
.rack-look[aria-pressed=true] { border-color:var(--ft-accent); background:#fff9ef }
.rack-look img { width:36px; height:42px; border-radius:8px; object-fit:cover; object-position:center 42% }
.design-journey { background:#eadfd2; padding:clamp(36px,5vw,86px) var(--pad); display:grid; grid-template-columns:minmax(190px,.8fr) 2fr; gap:5vw; align-items:start }
.design-journey .under-link { margin-top:12px; min-height:44px }
.design-journey ol { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,3vw,52px); list-style:none; margin:0; padding:0 }
.design-journey li { border-top:1px solid #766362; padding-top:10px }
.design-journey strong { display:block; font:500 23px/1.45 var(--cn) }
.design-journey p { margin:8px 0 0; font-size:15px; line-height:1.75 }
.look-card[aria-pressed=true] .card-info { box-shadow:inset 0 -2px var(--salon-accent) }
.studio-route { display:flex; align-items:center; list-style:none; padding:0; margin:0 0 14px; gap:0; color:#69565a; font:500 13px/1.4 var(--sans) }
.studio-route li:not([hidden]) { display:flex; align-items:center; gap:6px; white-space:nowrap }
.studio-route li:not(:first-child)::before { content:""; width:clamp(6px,.8vw,14px); margin-left:6px; height:1px; background:#bda99e }
.studio-route [aria-current] { color:#5b2839; font-weight:700 }
.studio-route li[aria-current]::after { content:""; width:6px; height:6px; border-radius:50%; background:currentColor }
.return-window { min-height:44px; margin-top:8px }
.dialog.ft-sheet { background:var(--ft-surface); color:var(--ft-ink) }
.dialog.ft-sheet :is(.studio-form,.piece-copy,.library-body) { padding-inline:var(--ft-pad) }
.dialog.ft-sheet .button.dark { background:var(--ft-accent); color:#fff9f1 }
.dialog.ft-sheet .button:disabled { background:var(--ft-tint); color:var(--ft-disabled-ink); opacity:1 }
.material-room { color:var(--cream) }
.closing { color:var(--ink) }
@media (max-width:780px) {
  .mast-account .account-register { display:none }
  .mast .main-nav { display:none }
  .mast .menu-button { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px }
  .mast { display:flex; justify-content:space-between }
  .mast-actions { gap:10px }
  .mast-actions .header-order { padding:0 6px; border:0; gap:5px }
}
@media (max-width:950px) {
  #premiere-rack { flex-wrap:wrap; gap:12px }
}
@media (max-width:700px) {
  :is(.mast,.tail-header) .brand-lockup { width:clamp(98px,31vw,150px) }
  .mast-actions .header-order .icon { display:none }
  .mast-actions .header-order { font-size:13px; letter-spacing:0 }
  .hero #home-title { margin:8px 0 6px; font-size:clamp(44px,12.4vw,72px); line-height:.9 }
  .hero #home-title span,.hero #home-title em { display:inline }
  .hero #home-title em { padding-left:.14em }
  .hero #hero-desc { font-size:23px }
  .hero #cover-garment { margin:3px 0 0; font-size:14px }
  .hero .issue i { font-size:16px }
  .hero .hero-rail { background:var(--salon-deep) }
  #premiere-rack { padding-block:12px; display:block }
  .rack-index { justify-content:space-between; gap:8px }
  .rack-index h2 { font-size:24px }
  .rack-looks { margin-top:7px; gap:5px; align-items:stretch }
  .rack-look { flex:1; gap:4px; font-size:12px; text-align:left; line-height:1.35 }
  .rack-look img { width:32px; height:40px }
  .design-journey { grid-template-columns:1fr; gap:16px }
  .design-journey ol { grid-template-columns:1fr; gap:15px }
  .design-journey p { font-size:16px }
}
.hero-photo { transition:opacity .22s ease }
@media(prefers-reduced-motion:reduce){.hero-photo{transition:none!important}}
.hotspot.label-inward .hotspot-line, .hotspot.label-inward .hotspot-label { transform:translateX(calc(-100% - 42px)) }
@media(max-width:700px){
  :is(.mast,.tail-header) .brand { width:clamp(94px,32vw,160px); min-width:0; flex-shrink:1 }
  .mast .mast-actions { flex-shrink:0 }
  .mast-actions .header-order { width:auto; min-width:0; white-space:nowrap }
}
.mast .header-order { background:#f3e6d3; color:#342026; padding:0 17px; border:0; border-radius:var(--action-radius); min-height:44px; white-space:nowrap }
@media(max-width:780px){.mast .header-order{padding:0 10px} .mast .mast-actions{gap:6px}}
.studio-alternatives { margin-top:12px }
.studio-form .studio-alternatives > :is(a,button) { font:550 14px/1.4 var(--ft-control-font); text-decoration:none; }
.studio-alternatives .icon { width:17px; height:17px; stroke-width:1.6; }
.studio-form #engine-note { margin:8px 0 0; color:var(--ft-muted); font:14px/1.5 var(--ft-control-font); }
.studio-form #engine-note:empty { display:none; }
.studio-form :is(#generate-design,.save-design,#approve-design) { width:100%; min-height:48px; }
.studio-form .proof-actions { margin-top:8px; }
.studio-form #save-proof { width:100%; }
.studio-form :is(#pick-open,#retry-engine,#dog-clear,#leave-job) { min-height:var(--ft-target); color:var(--ft-accent); text-decoration:none; }
.studio-form .form-label, .studio-form .color-field { font-family:var(--ft-control-font); }
.dialog .spec-list { gap:8px 16px; }
.dialog .spec-list :is(dt,dd) { padding:0; border:0; font-size:14px; }
.dialog .quote { padding:12px 0; border:0; }
.dialog .record-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.dialog .record-actions .ft-quiet { min-height:var(--ft-target); padding:7px 12px; font:550 13px/1.4 var(--ft-control-font); text-decoration:none; }
.dialog .library-actions { gap:8px; }
.piece-copy #piece-order { width:100%; }
.studio-route li:not(:first-child)::before { width:4px; height:4px; border-radius:50%; background:#baa8a0; }
@media (min-width:701px) {
  .studio-form { padding:var(--ft-pad); }
  .studio-form .studio-route { padding-right:44px; }
  .dialog .library-body { padding:var(--ft-pad); }
  .library-body h2 { padding-right:48px; }
  .studio-layout .draft-bottom { padding:12px 20px; }
}
.piece-copy .return-window { width:100%; margin-top:8px }
@media (min-width:701px) and (max-width:780px) {
  .mast .mobile-nav:not([hidden]) { position:absolute; inset:100% 0 auto; display:grid; background:#241318; padding:14px var(--pad); gap:3px }
  .mast .mobile-nav > * { display:flex; align-items:center; min-height:44px; color:#fff1df }
}
#pattern-fields .measure-grid label { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; font-size:13px }
#pattern-fields .measure-grid input { box-sizing:border-box; width:100%; min-width:0; height:44px; padding:6px 10px; border:1px solid #a99991; border-radius:var(--field-radius); background:#fffaf4; color:var(--ink); font:16px var(--sans) }
#pattern-fields input[aria-invalid="true"] { border-color:#963a3d; box-shadow:inset 0 0 0 1px #963a3d }
.measure-error { font:500 13px/1.45 var(--sans); color:#812e32 }

/* Still-life and lining plates belong to the Christmas sample photographs. */
.view-buttons button[hidden] { display:none }
.view-buttons:has([data-view="body"]:not([hidden])) { max-width:calc(100% - 16px); white-space:nowrap }
.view-buttons:has([data-view="body"]:not([hidden])) button { min-width:44px; min-height:44px; padding-inline:clamp(7px,1vw,13px) }

/* A single series selector stays with the reader between the window and the wardrobe. */
:root { --series-height:56px }
html { scroll-padding-top:calc(var(--mast-height) + var(--series-height)) }
.window-series {
  position:sticky; top:var(--mast-height); z-index:7; height:var(--series-height);
  margin-bottom:calc(0px - var(--series-height)); padding-inline:var(--pad);
  display:flex; align-items:center; gap:clamp(18px,3vw,48px);
  background:#f5eee4; border-bottom:1px solid #c2afa280; color:#35232b;
}
#series-label { font:500 19px/1.2 var(--cn); white-space:nowrap }
.window-series .premiere-seasons { --segment-fill:#fffaf2; --segment-inset:3px; display:inline-flex; align-items:center; gap:2px; padding:3px; border-radius:var(--action-radius); background:#e7dccf }
.premiere-seasons button {
  min-height:44px; min-width:78px; padding:0 14px; display:inline-flex; gap:8px;
  align-items:center; justify-content:center; font:500 15px/1.3 var(--sans); color:#5a4d4a;
}
.premiere-seasons button[aria-pressed=true] { color:#41212c; font-weight:650; background:var(--segment-fill) }
.premiere-seasons[data-thumb]::before { box-shadow:0 1px 4px #39272e2b, 0 0 0 1px #533b4210 }
.premiere-seasons button img { width:19px; height:19px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 1px #35232b26 }
.hero { --mast-height:calc(var(--mast-bar) + env(safe-area-inset-top,0px) + var(--series-height)) }
.rotation-control { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:50px; min-height:44px; font:500 13px var(--sans); color:inherit }
.rotation-control[hidden],.rotation-control .play-symbol,.rotation-control[data-paused] .pause-symbol { display:none }
.rotation-control[data-paused] .play-symbol { display:block }
@media(max-width:700px){
  :root { --series-height:54px }
  .window-series { gap:12px; justify-content:space-between }
  #series-label { font-size:16px }
  .window-series .premiere-seasons { gap:2px }
  .premiere-seasons button { min-width:52px; min-height:44px; padding:0 8px; gap:5px; font-size:14px }
  .premiere-seasons button img { width:17px; height:17px }
  .hero .hero-rail { column-gap:6px }
  .hero .hero-arrows { gap:3px }
  .rotation-control { min-width:44px }
  .rotation-control span { display:none }
  #premiere-rack .rack-index h2 { font-size:22px }
}
@media(max-height:470px) and (orientation:landscape) {
  :root { --series-height:48px }
}

/* The visual plane and its hotspot travel together; touch and the loupe keep their original coordinate space. */
.hero-visual { position:absolute; inset:0; z-index:-4; pointer-events:none; }
@media(prefers-reduced-motion:no-preference){
  .hero { --cover-travel:clamp(88px,21vh,190px); }
  .hero-visual, .hero .hotspot { transform:translate3d(0,calc(var(--cover-exit,0) * var(--cover-travel)),0); }
  .hero #home-title span { transform:translateX(calc(-.17em * var(--cover-exit,0))); }
  .hero #home-title em { transform:translateX(calc(.20em * var(--cover-exit,0))); }
  .hero-photo { transition:opacity .46s ease-out }
  [data-reading] {
    --remaining:calc(1 - var(--read, 1));
    --rise:clamp(26px,3.6vw,54px);
    --grow:.13;
  }
  /* Move siblings monotonically so upper headings never slide over lower paragraphs. */
  .note-copy h2, .section-head h2, .fabric-copy h2, .closing h2 {
    transform:translateY(calc(var(--rise) * .5 * var(--remaining)));
  }
  .note-copy > p:not(.eyebrow) {
    transform:translateY(calc(var(--rise) * .8 * var(--remaining)));
  }
  [data-reading] .eyebrow > span {
    transform-origin:left;
    transform:scaleX(var(--read, 1));
  }
  .design-journey li, .look-card, .material-list button {
    --phase:clamp(0, calc(var(--read, 1) * 1.25 - var(--lag, 0)), 1);
    --remaining:calc(1 - var(--phase));
  }
  :where(.look-card, .design-journey li, .material-list button):nth-child(2) { --lag:.12 }
  :where(.look-card, .design-journey li, .material-list button):nth-child(3) { --lag:.24 }
  .material-list .swatch {
    transform-origin:left bottom;
    transform:scale(calc(1 - .38 * var(--remaining)));
    opacity:calc(1 - .6 * var(--remaining));
  }
  .design-journey li { position:relative }
  .design-journey li::before {
    content:""; position:absolute; inset:-1px 0 auto; height:2px; background:#743d4b;
    transform-origin:left; transform:scaleX(var(--phase));
  }
  .note-copy h3, .note-copy #note-body, .fabric-sub {
    transform:translateY(calc(var(--rise) * 1.1 * var(--remaining)));
  }
  /* Keep photograph full-bleed inside its frame without clipping an asymmetric dark bar. */
  .note-photo:not([data-view="fit"]) img {
    transform:scale(calc(1 + .05 * var(--remaining)));
  }
  .look-card .card-media {
    transform-origin:50% 80%;
    transform:translateY(calc(var(--rise) * var(--remaining))) scale(calc(1 - var(--grow) * var(--remaining)));
  }
  .look-card .card-media img {
    opacity:calc(1 - .62 * var(--remaining));
  }
  .look-card:focus-visible, .material-list button:focus-visible { --remaining:0 }
  .specimen :is(#cloth, .fabric-fallback) {
    opacity:calc(.3 + .7 * var(--read, 1));
  }
  .specimen:not(:focus-within) :is(#cloth, .fabric-fallback) {
    transform:scale(calc(1 + .04 * var(--remaining)));
  }
  .material-list button .swatch { transform:translateX(calc(-22px * var(--remaining))) scale(calc(1 - .26 * var(--remaining))); }
  .specimen .sample-caption {
    transform:translateY(calc(10px * var(--remaining)));
  }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference) {
  [data-reading] { --rise:32px; --grow:.12 }
  /* The seven looks share one track on phones. Swiping sideways keeps the vertical reveal in sync. */
  .collection-grid .look-card { --lag:0 }
  .design-journey li { --lag:0 }
}
@media print {
  [data-reading] {
    --read:1 !important;
  }
}
.note-photo .note-outgoing { position:absolute; inset:0; z-index:1; pointer-events:none }
.note-photo .note-photo-label {
  z-index:2; left:14px; bottom:12px; max-width:calc(100% - 190px); padding:3px 8px;
  background:#241a19d9; color:#fff2e2; font-size:13px; line-height:1.45;
}
.note-browse {
  position:absolute; z-index:2; right:10px; bottom:8px;
  display:flex; align-items:center; padding:0 4px; background:#251b1be8; color:#fff4e5;
}
.note-browse[hidden] { display:none }
.note-browse button { display:inline-flex; justify-content:center; align-items:center; min-width:44px; min-height:44px }
.note-browse .rotation-control span { display:none }
.note-browse .icon { width:16px; height:16px }
#note-position { font:13px var(--sans); white-space:nowrap; font-variant-numeric:tabular-nums }

.note-photo[data-view='fit'] img { scale:1 }
.rotation-control { position:relative }
.rotation-meter {
  pointer-events:none; position:absolute; inset:auto 10px 6px; height:1.5px; border-radius:2px;
  background:currentColor; opacity:.45; transform:scaleX(0); transform-origin:left;
}
.rotation-control[data-paused] .rotation-meter { opacity:0 }
@media(max-width:370px) {
  .hero .hero-rail { display:flex; align-items:center; justify-content:space-between; gap:8px }
  .hero .hero-rail .rail-budget { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
  .hero .hero-arrows { margin-left:auto; flex-shrink:0 }
}
@media (min-width:501px) and (max-width:700px) and (min-height:521px),
       (min-width:701px) and (max-aspect-ratio:6/5) {
  .hero { --cover-photo-top:var(--mast-height); --cover-photo-height:min(60vw,50svh) }
  .hero #home-title { margin:12px 0 }
  .hero #home-title span,.hero #home-title em { display:inline }
  .hero #home-title em { padding-left:.15em }
}
/* Android browsers can expose a wider CSS viewport at the same panel resolution.
   Keep the portrait together when the address bar takes part of the screen. */
@media (min-width:501px) and (max-width:700px) and (orientation:portrait) {
  .hero {
    --cover-photo-height:min(110vw, 58vh);
  }
  .hero-photo { object-position:50% 32%; }
}
@media (max-width:500px) and (orientation:portrait) {
  .hero {
    height:clamp(610px, 92vh, 875px);
    height:clamp(610px, 92svh, 875px);
  }
  .hero-art { height:calc(100% - var(--mast-height) - 155px); }
  .hero-photo { object-position:50% 32%; }
}
@media (orientation:landscape) and (min-width:560px) and (max-height:520px) {
  .hero .hero-body { padding-top:calc(var(--mast-height) + 10px); padding-bottom:56px }
  .hero #home-title { font-size:clamp(34px,5.6vw,48px); margin:5px 0 8px }
  .hero #home-title span,.hero #home-title em { display:inline }
  .hero #home-title em { padding-left:.14em }
  .hero #hero-desc { font-size:21px }
  .hero #cover-garment { margin-top:2px }
}

.note-photo, .specimen { border-radius:var(--surface-radius); overflow:hidden }
.note-browse, .note-photo .note-photo-label { border-radius:var(--action-radius) }
.hero .rotation-control { border-radius:var(--action-radius) }
.main-nav a[aria-current="location"]::after { transform:scaleX(1) }
html:has(.dialog[open]) { overflow:hidden }

@supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))) {
  .window-series { background:#f5eee4ed; -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px) }
}
@media (max-width:780px) {
  .mast .mobile-nav:not([hidden]) {
    position:absolute; inset:calc(100% + 6px) var(--pad) auto auto;
    width:min(272px,calc(100vw - 2 * var(--pad))); max-height:calc(100dvh - var(--mast-height) - 16px);
    overflow:auto; padding:6px; display:grid; gap:0; border-radius:18px;
    background:#302027; color:#fff3e4; border:1px solid #f5e4d329; box-shadow:0 10px 30px #21101940;
    transform-origin:calc(100% - 24px) 0;
  }
  .mast .mobile-nav > :is(button,a) { display:flex; align-items:center; padding:0 14px; min-height:44px; border:0; border-radius:12px; font:500 15px var(--sans); text-align:start }
  .mast .mobile-nav > :is(button,a):is(:active,:focus-visible,[aria-current]) { background:#fff4e317 }
}
@media (prefers-reduced-motion:no-preference) {
  .mast .mobile-nav:not([hidden]) { animation:open-salon-menu .15s var(--press-return) }
  @keyframes open-salon-menu { from { opacity:0; transform:translateY(-4px) scale(.98) } }
  .rack-look:active, .note-browse button:active, .sheet-back:active { scale:.98 }
}

.studio-context { display:none }
.sheet-back {
  position:absolute; top:12px; left:12px; display:inline-flex; align-items:center; gap:6px;
  min-width:44px; min-height:44px; padding:0 14px; border:1px solid #876e6238; border-radius:var(--action-radius);
  color:#38232b; background:#fff9f0f5; box-shadow:0 1px 6px #33202916; font:550 14px var(--sans);
}
.sheet-back[hidden] { display:none }
.sheet-back .icon { width:16px; height:16px }
.dialog-close { min-height:44px; min-width:44px; box-shadow:0 1px 6px #33202916 }
.studio-form:has(#pattern-fields:not([hidden])) .measure-guide { padding:10px; background:#eee3d7; border-radius:var(--field-radius) }
.studio-form:has(#pattern-fields:not([hidden])) .measure-guide img { border-radius:7px }
.studio-form .form-message:empty { display:none }
@media (max-width:700px) {
  .dialog.ft-sheet { --sheet-travel:32px; --sheet-scale:1; border-radius:var(--ft-sheet-radius) var(--ft-sheet-radius) 0 0 }
  .studio-dialog { width:100%; height:calc(100dvh - max(10px,env(safe-area-inset-top,0px))); max-height:calc(100dvh - max(10px,env(safe-area-inset-top,0px))) }
  .studio-dialog .dialog-tools { height:52px; background:var(--ft-surface); border-bottom:1px solid #8f756625 }
  .studio-context { display:grid; place-items:center; height:100%; margin-inline:28%; color:#5d4146; font:600 14px/1.25 var(--sans); text-align:center }
  .studio-dialog .dialog-close { top:4px; right:max(10px,env(safe-area-inset-right,0px)); }
  .studio-dialog .sheet-back { top:4px; left:max(10px,env(safe-area-inset-left,0px)); background:transparent; border:0; box-shadow:none }
  #studio-dialog[data-stage="pattern"] .draft-pane { display:none }
  #studio-dialog[data-stage="proof"] #studio-picture img { width:auto; max-width:100%; height:auto; max-height:46svh; margin-inline:auto; border-radius:12px; object-fit:contain; background:transparent }
  .studio-dialog .studio-form { padding-bottom:max(24px,env(safe-area-inset-bottom)) }
  .library-body { padding-top:58px }
  .rack-look { padding:3px; gap:5px }
}
@media(max-height:470px) and (orientation:landscape) {
  .window-series .premiere-seasons { padding-block:2px }
}
@media (prefers-reduced-motion:reduce) {
  .dialog, .dialog[open], .dialog::backdrop { transition:none; transform:none }
  .mast .mobile-nav:not([hidden]) { animation:none }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  .window-series, .studio-dialog .dialog-tools { background:#f5eee4; -webkit-backdrop-filter:none; backdrop-filter:none }
  .studio-dialog .dialog-tools { background:var(--ft-surface) }
  .sheet-back, .dialog-close { background:#fffaf4 }
  .dialog::backdrop { background:#201219d9 }
}


/* Some Android browser engines size their layout viewport behind the address bar or keyboard. */
@supports not (height:100dvh) {
  @media (max-width:700px) {
    .dialog { max-height:calc(var(--visible-height, 100vh) - 10px); }
    .studio-dialog { height:calc(var(--visible-height, 100vh) - 10px); }
    .mast .mobile-nav:not([hidden]) { max-height:calc(var(--visible-height, 100vh) - var(--mast-height) - 16px); }
  }
}
@supports not (color:color-mix(in srgb, black 50%, transparent)) {
  @media (max-width:500px) and (orientation:portrait) {
    .hero[data-look] .hero-shade { background:linear-gradient(to top, var(--salon-deep) 0 28%, rgba(22,16,19,.88) 36%, rgba(22,16,19,.25) 53%, transparent 66%); }
  }
}

.hero-actions .text-link, #fabric-studio, .closing-actions .under-link {
  display:inline-flex; align-items:center; min-height:44px;
}

/* Keep the photographs, their view selector and the next action in a single reading order. */
.piece-dialog { width:min(960px,94vw); }
.piece-dialog .piece-layout {
  display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);
  grid-template-areas:"photo title" "photo controls" "photo copy" "photo actions";
  grid-template-rows:auto auto 1fr auto; align-items:start;
}
.piece-dialog .piece-heading { grid-area:title; padding:clamp(36px,5vw,66px) var(--ft-pad) 0; }
.piece-heading .eyebrow { margin:0 0 9px; color:var(--ft-accent); font:600 14px/1.4 var(--ft-control-font); letter-spacing:.06em; }
.piece-dialog .piece-heading h2 { margin:0; line-height:1.16; }
.piece-heading .piece-english { margin:4px 0 0; color:#715a50; font-size:clamp(21px,2.1vw,32px); }
.piece-dialog .piece-visual {
  grid-area:photo; align-self:stretch; min-height:clamp(390px,55vh,540px);
  height:auto; aspect-ratio:auto; background:transparent;
}
.piece-dialog .piece-image-area > img { object-fit:cover; object-position:var(--plate-pos, 50% 35%); background:transparent; transform:none; }
.piece-dialog .piece-image-area > img[data-plate="detail"] {
  object-fit:cover; transform:scale(1.1);
  object-position:var(--detail-x) var(--detail-y); transform-origin:var(--detail-x) var(--detail-y);
}
@media (min-width:701px) {
  .piece-dialog .piece-visual[data-orientation="landscape"]:not([data-plate="detail"]) {
    align-self:center; min-height:0; height:auto; aspect-ratio:var(--plate-ratio, 1.25);
    margin:24px 0 24px 24px; border-radius:14px; overflow:hidden;
    box-shadow:0 10px 28px rgba(48, 37, 42, 0.10);
  }
}
.piece-dialog .piece-image-area::before { display:none; }
.plate-status:not(:empty) {
  position:absolute; bottom:12px; left:12px; border-radius:var(--ft-pill); padding:5px 12px;
  background:#33242c; color:#fff9f1; font:500 14px/1.4 var(--ft-control-font);
}
.piece-controls { grid-area:controls; padding:22px var(--ft-pad) 0; min-width:0; }
.piece-controls :is(.view-buttons,.fit-views) {
  --segment-fill:var(--ft-accent); display:flex; position:relative; inset:auto; transform:none;
  padding:3px; gap:2px; width:fit-content; max-width:100%;
  background:#eae0d5; border:0; box-shadow:none; border-radius:var(--ft-pill);
}
.piece-controls .segmented button {
  flex:1 1 auto; min-width:44px; min-height:44px; padding:0 clamp(7px,1vw,14px);
  white-space:nowrap; color:var(--ft-ink); font:550 14px/1.25 var(--ft-control-font); letter-spacing:0;
}
.piece-controls .segmented button[aria-pressed="true"] { color:#fff9f1; background:var(--ft-accent); }
.piece-controls .segmented[data-thumb] button[aria-pressed="true"] { background:transparent; }
.piece-dialog .piece-copy { grid-area:copy; align-self:start; width:100%; padding:18px var(--ft-pad) 20px; }
.piece-dialog #piece-description { margin:0; color:var(--ft-ink); font:normal 16px/1.75 var(--ft-control-font); }
.piece-dialog #piece-fit-title { margin:0 0 6px; font:600 18px/1.45 var(--ft-control-font); }
.piece-copy .spec-list { width:100%; margin-top:18px; padding-top:14px; border-top:1px solid #d7cbbe; grid-template-columns:max-content 1fr; }
.piece-copy .spec-list dt { color:var(--ft-muted); }
.piece-actions {
  grid-area:actions; display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  padding:0 var(--ft-pad) var(--ft-pad); background:var(--ft-surface);
}
.piece-actions :is(#piece-order,.return-window) { width:auto; min-height:46px; margin:0; }
.piece-actions #piece-order { gap:9px; padding-inline:20px; }
.piece-actions .icon { width:17px; height:17px; }
@media (max-width:700px) {
  .piece-dialog { width:min(100%,32rem); height:calc(100svh - max(12px,env(safe-area-inset-top))); padding-bottom:0; }
  .piece-dialog .piece-layout {
    min-height:100%; grid-template-columns:100%; grid-template-rows:auto auto auto 1fr auto;
    grid-template-areas:"title" "photo" "controls" "copy" "actions";
  }
  .piece-dialog .piece-heading { position:relative; padding:19px 64px 14px var(--ft-pad); }
  .piece-heading .eyebrow { margin-bottom:4px; }
  .piece-dialog .piece-heading h2 { display:inline; margin-right:10px; font-size:clamp(26px,6.9vw,34px); }
  .piece-heading .piece-english { display:inline-block; font-size:21px; margin:0; }
  .piece-dialog .piece-visual {
    min-height:0; height:auto; width:100%;
    aspect-ratio:clamp(0.76, var(--plate-ratio, 0.8), 1.6);
    max-height:min(58svh, 490px);
    background:transparent; overflow:hidden;
  }
  .piece-controls { padding:12px var(--ft-pad) 0; }
  .piece-controls .segmented { width:100%; max-width:100%; }
  .piece-dialog .piece-copy { padding:12px var(--ft-pad) 18px; }
  .piece-copy .spec-list { margin-top:12px; padding-top:10px; }
  .piece-actions {
    position:sticky; bottom:0; z-index:2; flex-wrap:nowrap; padding:9px var(--ft-pad) max(10px,env(safe-area-inset-bottom));
    border-top:1px solid #d7cbbe;
  }
  .piece-actions #piece-order { flex:1; }
  .piece-actions .return-window { padding-inline:16px; }
}
