@font-face {
  font-family: Baskervville;
  src: url("/assets/site/baskervville.woff2") format("woff2");
  font-style: normal; font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: Baskervville;
  src: url("/assets/site/baskervville-italic.woff2") format("woff2");
  font-style: italic; font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/site/manrope.woff2") format("woff2");
  font-style: normal; font-weight: 400 800; font-display: swap;
}
@font-face{font-family:IBM Plex Mono;src:url("assets/plex.woff2") format("woff2");font-weight:500;font-display:swap}

:root {
  color-scheme: light;
  --paper: #fbfcfe;
  --surface: #ffffff;
  --ink: #092142;
  --muted: #465872;
  --accent: #064888;
  --accent-hover: #063868;
  --line: #d5dfec;
  --body: Manrope, Arial, sans-serif;
  --display: Baskervville, Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font: 400 15px/1.5 var(--body); }
button, a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; color:inherit; cursor:pointer; }
a { color:inherit; text-decoration:none; }
h1, h2, p { margin:0; }
img { display:block; max-width:100%; }
button:focus-visible, a:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
button:disabled { cursor:not-allowed; }
.mono { font:500 .71rem/1.4 var(--mono); letter-spacing:.075em; text-transform:uppercase; }
.frame { width:min(1280px,calc(100% - 104px)); margin-inline:auto; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; z-index:9; top:12px; left:12px; transform:translateY(-150%); background:var(--accent); color:white; padding:12px 18px; }
.skip-link:focus { transform:translateY(0); }

.topbar { min-height:84px; display:grid; align-items:center; grid-template-columns:1fr 1fr 1fr; border-bottom:1px solid var(--line); }
.wordmark { width:clamp(144px,15vw,195px); display:block; }
.wordmark img { width:100%; height:auto; }
.topnav { display:flex; justify-content:center; align-items:center; gap:26px; font-weight:600; font-size:.86rem; white-space:nowrap; }
.topnav a, .topnav button { padding:10px 0; border:0; background:none; }
.topnav a[aria-current] { color:var(--accent); position:relative; }
.topnav a[aria-current]::after { content:""; position:absolute; inset:auto 0 5px; height:1px; background:currentColor; }
.topnav button:hover { color:var(--accent); }
.bag-toggle { justify-self:end; display:flex; align-items:center; gap:9px; background:none; border:1px solid var(--line); padding:8px 10px 8px 13px; border-radius:6px; font-size:.85rem; font-weight:700; }
.bag-toggle:hover { border-color:var(--ink); }
.bag-icon { position:relative; width:13px; height:12px; border:1.3px solid currentColor; border-radius:1px; }
.bag-icon::before { content:""; width:5.5px; height:5px; border:1.2px solid currentColor; border-bottom:0; border-radius:4px 4px 0 0; position:absolute; bottom:100%; left:2.4px; }
.bag-count { min-width:20px; padding:1px 3px; border-radius:2px; background:#e7eff9; color:var(--accent); text-align:center; font:500 .72rem/1.4 var(--mono); }

.collection-header {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  padding:32px 0 22px;
}
.collection-header h1 { font:400 clamp(4.1rem,7.5vw,6.8rem)/.84 var(--display); color:var(--accent); letter-spacing:-.025em; }
.collection-note { max-width:228px; font-size:.9rem; line-height:1.5; color:var(--muted); padding-bottom:1px; }
.touch-guide { display:none; }
@media (hover:none) {
  .hover-guide { display:none; }
  .touch-guide { display:inline; }
}

.rack-panel { overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.rack-stage { position:relative; height:clamp(330px,30vw,422px); isolation:isolate; overflow:hidden; background:radial-gradient(ellipse at 50% 24%, #faf9f6 0%, #f0edef 82%, #ebe8ec 100%); touch-action:pan-y; }
.rack-stage:focus-visible { outline:3px solid var(--accent); outline-offset:-4px; }
.rail { position:absolute; top:14%; left:7.5%; right:7.5%; height:8px; z-index:1; border-radius:10px; border:1px solid #99929b; background:linear-gradient(to bottom,#eee8ef 0%,#faf7fa 16%,#bbb3be 42%,#736977 88%,#938996 100%); box-shadow:0 4px 8px #35233924; }
.rail i { position:absolute; top:-2px; left:-3px; width:7px; height:10px; background:linear-gradient(90deg,#837984,#d1c9d3); border:1px solid #918593; border-radius:2px; }
.rail i + i { left:auto; right:-3px; }
.rack-items { position:absolute; inset:calc(14% + 1px) 10% 0; display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); align-items:start; }
.rack-item { height:100%; min-width:0; border:0; background:none; position:relative; padding:0; overflow:visible; }
.rack-item.is-presenting { z-index:2; }
.rack-item:focus-visible { outline:0; }
.rack-item:focus-visible::after { content:""; position:absolute; left:23%; right:23%; bottom:16px; height:2px; background:var(--accent); border-radius:3px; }
.hanger { position:absolute; display:block; width:clamp(72px,8vw,108px); height:47px; left:50%; top:0; transform-origin:50% 0; transform:translateX(-50%); pointer-events:none; }
.hanger-hook { position:absolute; left:calc(50% - 6px); top:-4px; width:12px; height:17px; border:1.6px solid #726b74; border-left-color:transparent; border-bottom-color:transparent; border-radius:9px; transform:rotate(-14deg); filter:drop-shadow(0 1px 0 #fff); }
.hanger-hook::after { content:""; width:1.6px; height:16px; background:#837b84; position:absolute; top:10px; right:2px; transform:rotate(14deg); transform-origin:top; }
.hanger-shoulders { position:absolute; top:23px; left:3%; right:3%; height:26px; clip-path:polygon(50% 0,100% 68%,98% 86%,50% 27%,2% 86%,0 68%); background:linear-gradient(#ad8d74,#d5bd9d 60%,#987e67); }
.rack-item .hanger-shoulders { transform:scaleX(.32); transition:transform .45s cubic-bezier(.22,.8,.2,1); }
.rack-item.is-presenting .hanger-shoulders { transform:scaleX(1); }
.garment {
  --view-scale:.98;
  position:absolute;
  z-index:1;
  pointer-events:none;
  top:30px;
  left:50%;
  max-width:none;
  width:clamp(151px,16.5vw,238px);
  height:auto;
  aspect-ratio:12/13;
  object-fit:contain;
  transform-origin:50% 5%;
  filter:drop-shadow(0 9px 9px #2b203329);
  transition:transform .48s cubic-bezier(.22,.8,.2,1), opacity .23s ease, filter .3s ease;
}
.garment-profile { opacity:1; transform:translateX(-50%) perspective(720px) rotateY(0deg) scale(var(--view-scale)); }
.garment-profile.is-profile-fallback { transform:translateX(-50%) perspective(720px) rotateY(-69deg) scale(var(--view-scale)); }
.garment-front { opacity:0; transform:translateX(-50%) perspective(720px) rotateY(-73deg) scale(var(--view-scale)); }
.rack-item.is-presenting .garment-profile { opacity:0; transform:translateX(-50%) perspective(720px) rotateY(52deg) scale(var(--view-scale)); }
.rack-item.is-presenting .garment-front { opacity:1; transform:translateX(-50%) perspective(720px) rotateY(0deg) scale(1.08); filter:drop-shadow(0 14px 12px #2b203340); }
.noscript { position:absolute; top:40%; inset-inline:12px; text-align:center; }

.rack-control { display:grid; grid-template-columns:minmax(145px,1fr) 1fr minmax(250px,1fr); gap:20px; align-items:center; min-height:94px; padding:0 22px; border-top:1px solid var(--line); }
.rack-navigation { display:flex; align-items:center; gap:8px; }
.arrow-button { display:grid; place-items:center; width:44px; height:44px; border:1px solid #d5dfec; border-radius:50%; color:var(--accent); background:var(--surface); transition:color .2s,background .2s,border .2s; flex-shrink:0; }
.arrow-button:hover { background:var(--accent); color:white; border-color:var(--accent); }
.arrow-button span { position:relative; width:15px; height:1px; background:currentColor; }
.arrow-button span::after { content:""; position:absolute; right:0; top:-3px; width:7px; height:7px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:rotate(45deg); }
.arrow-prev span { transform:rotate(180deg); }
.selection-number { margin-left:10px; white-space:nowrap; color:var(--muted); }
.selection { text-align:center; min-width:0; padding:10px 0; }
.selection-category, .detail-category { color:var(--accent); }
.selection h2 { font:400 clamp(1.9rem,4vw,2.65rem)/.95 var(--display); color:var(--accent); letter-spacing:-.01em; margin:4px 0 0; }
.selection-action { display:flex; justify-content:flex-end; align-items:center; gap:16px; }
.selection-price { font-size:1.01rem; font-weight:700; white-space:nowrap; }
.primary-button { min-height:47px; display:inline-flex; align-items:center; justify-content:space-between; gap:18px; background:var(--accent); color:white; border:1px solid var(--accent); border-radius:5px; padding:10px 15px; font-weight:700; white-space:nowrap; transition:background .2s,border .2s; }
.primary-button:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.diagonal-arrow { display:block; position:relative; width:15px; height:15px; }
.diagonal-arrow::before { position:absolute; content:""; width:14px; height:1px; background:currentColor; top:7px; left:0; transform:rotate(-45deg); }
.diagonal-arrow::after { position:absolute; content:""; width:8px; height:8px; border-top:1px solid currentColor; border-right:1px solid currentColor; top:2px; right:2px; }
.footer { display:flex; justify-content:space-between; align-items:center; padding:17px 0 22px; color:var(--muted); font-size:.76rem; }

body:has(dialog[open]) { overflow:hidden; }
dialog { padding:0; color:var(--ink); background:var(--surface); border:1px solid var(--line); }
dialog[open] { animation:dialog-in .28s cubic-bezier(.22,.8,.2,1) both; }
dialog::backdrop { background:#181b1d66; backdrop-filter:blur(4px); }
@keyframes dialog-in { from { opacity:0; transform:translateY(9px) scale(.986); } to { opacity:1; transform:translateY(0) scale(1); } }
.detail-dialog { width:min(1020px,calc(100% - 48px)); max-width:none; max-height:calc(100% - 48px); border-radius:10px; box-shadow:0 32px 95px #23182d4a; }
.detail-shell { position:relative; display:grid; min-height:566px; grid-template-columns:1.22fr 1fr; }
.close-button { display:grid; place-items:center; width:42px; height:42px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--paper); transition:background .2s,color .2s; }
.close-button:hover { background:var(--accent); color:white; }
.close-button span { position:relative; width:16px; height:16px; }
.close-button span::before, .close-button span::after { position:absolute; content:""; width:17px; height:1px; top:7px; left:0; background:currentColor; transform:rotate(45deg); }
.close-button span::after { transform:rotate(-45deg); }
.detail-close { position:absolute; top:16px; right:16px; z-index:5; }
.detail-stage { min-width:0; min-height:450px; position:relative; overflow:hidden; background:radial-gradient(ellipse at 50% 24%, #faf9f6 0%, #f0edef 82%, #ebe8ec 100%); border-right:1px solid var(--line); }
.detail-index { position:absolute; top:22px; left:22px; z-index:1; color:var(--muted); }
.detail-rail { position:absolute; inset:78px 8% auto; height:8px; border:1px solid #99929b; border-radius:8px; background:linear-gradient(#eee8ef,#bbb3be 43%,#736977 88%,#938996); box-shadow:0 4px 8px #35233924; }
.detail-hanger { top:81px; width:140px; }
.detail-image { --image-filter:brightness(1); position:absolute; top:111px; left:50%; width: min(75%,340px); aspect-ratio:12/13; height:auto; object-fit:contain; transform:translateX(-50%); filter:drop-shadow(0 14px 15px #2b203338) var(--image-filter); transition:filter .3s; }
.detail-navigation { position:absolute; z-index:2; inset:48% 16px auto; display:flex; justify-content:space-between; pointer-events:none; }
.detail-navigation button { pointer-events:auto; }
.angle-switch { display:flex; position:absolute; z-index:2; bottom:20px; left:50%; transform:translateX(-50%); padding:3px; border:1px solid var(--line); border-radius:40px; background:var(--paper); }
.angle-switch button { border:0; background:transparent; border-radius:30px; padding:8px 18px; line-height:1.15; font-weight:700; font-size:.83rem; }
.angle-switch button[aria-pressed="true"] { background:var(--accent); color:white; }
.detail-info { padding:62px clamp(24px,4vw,48px) 32px; min-width:0; }
.detail-info h2 { font:400 clamp(2.7rem,6vw,4.75rem)/.9 var(--display); color:var(--accent); letter-spacing:-.015em; margin:9px 0 12px; }
.detail-price { font-size:1.18rem; font-weight:700; }
.detail-description { color:var(--muted); margin:16px 0 23px; max-width:290px; line-height:1.5; }
.detail-option { padding:0 0 16px; }
.option-label { margin-bottom:8px; }
.option-label span { margin-left:5px; color:var(--muted); }
.detail-colors, .detail-sizes { display:flex; flex-wrap:wrap; gap:7px; }
.color-option { border:1px solid transparent; border-radius:50%; width:38px; height:38px; padding:3px; background:transparent; display:grid; place-items:center; }
.color-option::after { display:block; content:""; width:28px; height:28px; border-radius:50%; background:var(--swatch); border:1px solid #0003; }
.color-option[aria-pressed="true"] { border-color:var(--ink); }
.size-option { min-width:43px; padding:8px 9px; border:1px solid #d5dfec; background:none; border-radius:3px; font:500 .75rem/1.5 var(--mono); }
.size-option[aria-pressed="true"] { color:white; background:var(--ink); border-color:var(--ink); }
.detail-add { width:100%; margin-top:6px; }
.detail-add span { font-size:1.2rem; line-height:1; font-weight:400; }
.detail-status { color:var(--muted); min-height:1.3em; margin-top:8px; font-size:.82rem; }
.detail-status:empty { margin-top:0; min-height:0; }

.bag-dialog { inset:0 0 0 auto; margin:0; width:min(465px,100%); max-width:none; height:100%; max-height:none; border-radius:0; }
.bag-shell { display:flex; flex-direction:column; min-height:100%; padding:22px; }
.dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:0 0 16px; margin:0 0 8px; }
.dialog-header h2 { font:400 2.7rem/.94 var(--display); color:var(--accent); }
.dialog-header h2 .mono { vertical-align:middle; margin-left:8px; }
.bag-items { flex:1; }
.bag-empty { padding:20px 0; color:var(--muted); }
.bag-row { display:grid; grid-template-columns:72px 1fr; gap:12px; position:relative; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.bag-photo { display:block; width:72px; height:83px; object-fit:contain; border-radius:3px; background:#edf3fa; }
.bag-info { min-width:0; }
.bag-info strong { display:block; font-size:.95rem; }
.bag-variant { display:block; color:var(--muted); font-size:.82rem; }
.bag-row-price { font-size:.85rem; font-weight:700; }
.bag-qty { display:flex; align-items:center; gap:7px; margin-top:7px; }
.bag-qty-button { border:1px solid var(--line); border-radius:3px; background:transparent; width:27px; height:27px; padding:0; }
.bag-qty-button:hover { border-color:var(--ink); }
.bag-qty-value { min-width:15px; text-align:center; font-family:var(--mono); }
.bag-remove { border:0; padding:8px 0 2px; background:none; color:var(--muted); text-decoration:underline; font-size:.8rem; }
.bag-summary { padding-top:20px; }
.bag-summary p { display:flex; justify-content:space-between; margin:0 0 8px; font-size:1.03rem; }
.bag-summary small { display:block; color:var(--muted); }
.about-dialog { width:min(470px,calc(100% - 28px)); border-radius:5px; }
.about-shell { padding:28px; }
.about-shell p { color:var(--muted); margin-top:15px; }

@media(max-width:1000px) {
  .frame { width:calc(100% - 54px); }
  .rack-items { inset-inline:6.5%; }
  .garment { width:clamp(142px,17vw,195px); }
}
@media(max-width:760px) {
  .frame { width:calc(100% - 36px); }
  .topbar { min-height:68px; }
  .collection-header { padding-top:28px; padding-bottom:18px; }
  .collection-header h1 { font-size:clamp(4.2rem,12.5vw,6.8rem); }
  .rack-stage { height:350px; }
  .rack-items { display:block; inset-inline:0; }
  .rack-item { --step:clamp(85px,23vw,146px); position:absolute; inset:0 auto 0 50%; width:var(--step); transform:translateX(calc(-50% + var(--offset,0) * var(--step))); transition:transform .44s cubic-bezier(.22,.8,.2,1),opacity .3s; }
  .rack-item[data-offset="3"], .rack-item[data-offset="-3"], .rack-item[data-offset="4"], .rack-item[data-offset="-4"] { opacity:0; pointer-events:none; }
  .garment { width:clamp(177px,35vw,227px); }
  .rack-control { grid-template-columns:auto 1fr auto; gap:12px; min-height:86px; padding-inline:14px; }
  .selection-number { display:none; }
  .selection-action { gap:9px; }
  .selection-price { font-size:.92rem; }
  .rack-control .primary-button { font-size:.86rem; gap:10px; }
  .detail-dialog { width:min(650px,calc(100% - 28px)); max-height:calc(100% - 28px); }
  .detail-shell { grid-template-columns:1fr 1fr; min-height:530px; }
  .detail-info { padding:60px 16px 26px; }
  .detail-image { top:117px; width:88%; }
  .detail-navigation { inset-inline:8px; inset-block-start:52%; }
  .detail-navigation .arrow-button { width:38px; height:38px; }
}
@media(max-width:540px) {
  .topbar { grid-template-columns:1fr auto auto; gap:13px; }
  .wordmark { width:128px; }
  .rail { left:6%; right:6%; }
  .topnav { gap:12px; font-size:.79rem; }
  .bag-toggle { padding:5px 6px 5px 8px; gap:6px; }
  .bag-icon { display:none; }
  .collection-header { display:block; padding:25px 0 15px; }
  .collection-header h1 { font-size:clamp(3.8rem,15.5vw,5.35rem); margin:3px 0 10px; }
  .collection-note { max-width:none; font-size:.85rem; padding:0; }
  .rack-stage { height:295px; }
  .garment { width:185px; }
  .rack-control { grid-template-columns:auto 1fr; gap:4px 12px; padding:12px; }
  .rack-navigation { gap:4px; }
  .selection-number { display:block; margin-left:4px; font-size:.64rem; }
  .arrow-button { width:39px; height:39px; }
  .selection { text-align:right; padding:0; }
  .selection h2 { font-size:1.85rem; }
  .selection-category { font-size:.64rem; }
  .selection-action { grid-column:1/-1; justify-content:space-between; margin-top:6px; }
  .rack-control .primary-button { min-height:41px; }
  .footer { padding:14px 0; }
  .detail-shell { display:block; min-height:0; }
  .detail-stage { min-height:370px; border-right:0; border-bottom:1px solid var(--line); }
  .detail-index { top:16px; left:14px; }
  .detail-close { top:9px; right:9px; }
  .detail-rail { top:58px; }
  .detail-hanger { top:60px; width:105px; }
  .detail-image { top:91px; width:min(70%,221px); }
  .detail-info { padding:20px 20px 24px; }
  .detail-info h2 { font-size:3.3rem; }
  .detail-description { margin:12px 0 17px; }
  .angle-switch { bottom:13px; }
}
@media(max-width:350px) {
  .frame { width:calc(100% - 24px); }
  .topbar { gap:9px; }
  .topnav { gap:9px; }
  .wordmark { width:116px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
