/* lamina: built in layers (design concept)
   tokens → base → buttons → header → hero → collection → quick add → bag → builder → fabric → break → repair →
   final → footer → dialogs → smooth scroll → motion → responsive */

/* ---------- tokens ---------- */
:root {
  --bg: #ECEBE7;
  --alt: #E2E1DC;
  --paper: #F6F5F2;
  --ink: #131415;
  --muted: #5B5E61;
  --soft: #7F8285;
  --line: #D2D1CC;
  --line-2: #BDBCB7;
  --dark: #17181A;
  --dark-2: #202224;
  --line-d: #2E3033;
  --on-d: #EEEDEA;
  --muted-d: #A3A5A8;
  --soft-d: #8A8D90;
  --accent: #EC5A24;

  --sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 3.4vw, 56px);
  --maxw: 1440px;
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sec: clamp(96px, 10vw, 152px);
}

@font-face { font-family: "Switzer"; src: url("../assets/fonts/switzer-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.k { font-size: 13px; font-weight: 500; color: var(--muted); }
.h2 { font-size: clamp(40px, 5.4vw, 84px); font-weight: 520; line-height: .98; letter-spacing: -.045em; }
.tone { color: var(--soft); }
[data-theme="dark"] .tone { color: var(--soft-d); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { margin-bottom: 18px; }
.sec-lead { max-width: 520px; margin-top: 22px; font-size: 17.5px; color: var(--muted); }
.sec-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; gap: 40px; max-width: none; }
.sec-head-split .sec-lead { margin-top: 0; }
.frame { position: relative; overflow: hidden; overflow: clip; background: var(--alt); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn .i { width: 17px; height: 17px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #2A2C2E; }
.btn-line { border: 1px solid currentColor; }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgb(236 235 231 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background-color .45s, border-color .45s; }
.nav[data-over="true"] { background: rgb(236 235 231 / 0); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav { color: var(--ink); }
.nav[data-over="true"] { color: #fff; }
.nav[data-over="true"] .links a:hover { color: rgb(255 255 255 / .75); }
.nav[data-over="true"] .nav-line { background: #fff; }
.nav[data-over="true"] .bag-btn, .nav[data-over="true"] .menu-btn { border-color: rgb(255 255 255 / .75); }
.nav[data-over="true"] .bag-btn:hover { background: #fff; color: var(--ink); }
.nav[data-over="true"] .bag-n { background: #fff; color: var(--ink); }
.nav, .nav .bag-btn, .nav .menu-btn, .nav .bag-n { transition: background-color .45s, border-color .45s, color .45s; }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.links { position: relative; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); height: var(--nav-h); }
.links a { font-size: 14.5px; font-weight: 500; }
.links a:hover { color: var(--muted); }
.nav-line { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--ink); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.logo { font-size: 27px; font-weight: 600; letter-spacing: -.055em; line-height: 1; padding-bottom: 3px; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background-color .2s, color .2s; }
.bag-btn:hover { background: var(--ink); color: var(--bg); }
.bag-btn .i { width: 17px; height: 17px; }
.bag-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; }
.bag-btn:hover .bag-n { background: var(--bg); color: var(--ink); }
.bag-n.bump { animation: bump .5s var(--ease); }
.menu-btn { display: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--pad) 32px; background: var(--bg); overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.menu-note { color: var(--muted); }

/* ---------- hero: the photo, the headline, then the person cut out of the same photo, so the type sits behind her;
   each layer peels off the next ---------- */
.hero { --sage: #8E938C; --floor: #C8C8CC; position: relative; height: 100svh; min-height: 680px; max-height: 1200px; overflow: hidden; overflow: clip; background: var(--sage); color: #fff; }
.peel, .ply { position: absolute; inset: 0; }
.peel { z-index: 1; }
.peel-front { z-index: 4; pointer-events: none; }
.ply { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); will-change: clip-path; }
.ply.lifted { clip-path: inset(0 0 100% 0); }
.ply img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.peel:not(.peel-front) .ply::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / .5)); opacity: 0; transition: opacity .3s; }
.peel:not(.peel-front) .ply.moving::after { opacity: 1; }
.hero-tint { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgb(24 28 25 / .38), rgb(24 28 25 / .22) 40%, rgb(24 28 25 / .06) 68%, rgb(24 28 25 / 0) 86%); -webkit-mask: linear-gradient(#000 0 64%, transparent 82%); mask: linear-gradient(#000 0 64%, transparent 82%); }
.hero-t { position: absolute; z-index: 3; left: 0; right: 0; top: var(--face, 26%); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); font-size: clamp(64px, 12vw, 190px); font-weight: 560; line-height: .9; letter-spacing: -.06em; white-space: nowrap; transform: translateY(-58%); }
.hero-t .line { display: inline-block; overflow: hidden; overflow: clip; padding: 0 .06em .14em; margin: 0 -.06em -.14em; vertical-align: top; }
.hero-t .line > span { display: block; }
.hero-t .tone { color: rgb(255 255 255 / .74); }
.hero-in { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--face, 26%) + clamp(70px, 8.4vw, 132px)); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.hero-lead { max-width: 400px; font-size: 17.5px; line-height: 1.5; color: rgb(255 255 255 / .92); text-shadow: 0 1px 18px rgb(24 28 25 / .25); }
.hero-in .ctas { margin-top: clamp(22px, 3.2vh, 32px); }
.btn-pill { display: inline-flex; align-items: center; gap: 16px; min-height: 58px; padding: 6px 6px 6px 26px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 520; white-space: nowrap; box-shadow: 0 14px 34px -20px rgb(19 20 21 / .6); transition: background-color .3s, color .3s; }
.pill-i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .55s var(--ease), background-color .3s, color .3s; }
.pill-i .i { width: 18px; height: 18px; }
.btn-pill:hover .pill-i { transform: rotate(45deg); }
.btn-pill:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn-pill-glass { background: rgb(19 20 21 / .16); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-pill-glass .pill-i { background: #fff; color: var(--ink); }
.btn-pill-glass:hover { background: rgb(19 20 21 / .28); }
.btn-pill-ink { background: var(--ink); color: var(--bg); }
.btn-pill-ink .pill-i { background: var(--bg); color: var(--ink); }
/* the layer switch: small chips, each with a round swatch photo of that layer's garment; the chosen one turns white
   and shows its spec. Smaller than the buttons and unfilled, so they read as options, not actions */
.rail-label { margin-top: clamp(24px, 3.4vh, 36px); font-size: 13px; font-weight: 500; color: rgb(255 255 255 / .9); }
.rail { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rail-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 3px 14px 3px 3px; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); color: #fff; white-space: nowrap; transition: background-color .35s, color .35s, box-shadow .35s; }
.rk { flex: none; width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .55); transition: box-shadow .35s; }
.rk img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rn { font-size: 14px; font-weight: 540; letter-spacing: -.01em; }
.rs { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; font-size: 12.5px; color: var(--muted); transition: max-width .6s var(--ease), opacity .35s, margin-left .6s var(--ease); }
.rail-tab:hover:not([aria-selected="true"]) { background: rgb(255 255 255 / .1); }
.rail-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 10px 26px -18px rgb(19 20 21 / .6); }
.rail-tab[aria-selected="true"] .rk { box-shadow: 0 0 0 1px rgb(19 20 21 / .12); }
.rail-tab[aria-selected="true"] .rs { max-width: 190px; opacity: 1; margin-left: 8px; }
.rail-tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tag { position: absolute; z-index: 6; left: 0; top: 0; color: var(--ink); transition: transform .9s var(--ease), opacity .4s; }
.js .tag { opacity: 0; }
.js .hero.ready .tag { opacity: 1; }
.tag-string { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; width: 1px; height: 1px; pointer-events: none; }
.ts-cord { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 1px 1px rgb(19 20 21 / .32)); }
.ts-halo { fill: rgb(255 255 255 / .16); stroke: rgb(255 255 255 / .8); stroke-width: 1; }
.ts-pin { fill: #fff; filter: drop-shadow(0 1px 1.5px rgb(19 20 21 / .45)); }
.ts-eye { fill: #6E736C; stroke: #DEDDD8; stroke-width: 2; }              /* a metal grommet; the cord ends inside it */
.tag-card { position: relative; display: grid; gap: 1px; min-width: 150px; padding: 12px 14px 12px 25px; background: var(--paper); text-align: left; box-shadow: 0 18px 40px -24px rgb(19 20 21 / .5); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }
.tag[data-side="left"] .tag-card { padding: 12px 25px 12px 14px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.tag-go .i { transition: transform .4s var(--ease); }
.tag-card:hover .tag-go .i { transform: rotate(90deg); }
.tag-k { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tag-n { font-size: 16px; font-weight: 560; letter-spacing: -.02em; }
.tag-m { font-size: 13px; color: var(--muted); }
.tag-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 560; }
.tag-go .i { width: 13px; height: 13px; color: var(--accent); }

/* ---------- collection ---------- */
.collection { padding: var(--sec) 0; }
.collection .sec-head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
.col-side { display: grid; gap: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip small { font-size: 12.5px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] small { color: #B8BABC; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 16px; }
.card { display: grid; align-content: start; gap: 12px; }
.card.out { display: none; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; overflow: clip; background: var(--alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .35s; }
.card:hover .card-img img { transform: scale(1.035); }
.card-img img.swap { opacity: 0; }
.badge { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 600; }
.quick { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; background: rgb(246 245 242 / .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; font-weight: 560; transform: translateY(12px); opacity: 0; transition: transform .45s var(--ease), opacity .3s, background-color .2s, color .2s; }
.quick .i { width: 15px; height: 15px; }
.card:hover .quick, .quick:focus-visible { transform: none; opacity: 1; }
.quick:hover { background: var(--ink); color: var(--bg); }
.card-meta { display: flex; justify-content: space-between; gap: 12px; }
.card-meta h3 { font-size: 16px; font-weight: 560; letter-spacing: -.015em; }
.card-meta .price { font-size: 16px; }
.card-sub { margin-top: -8px; font-size: 13.5px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(19 20 21 / .18); }
.sw::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1px transparent; transition: box-shadow .2s; }
.sw[aria-checked="true"]::after { box-shadow: 0 0 0 1px var(--ink); }
.sw:hover::after { box-shadow: 0 0 0 1px var(--line-2); }
.sw[aria-checked="true"]:hover::after { box-shadow: 0 0 0 1px var(--ink); }
.grid-plain { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- quick add ---------- */
.sheet { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -40px rgb(19 20 21 / .55); overflow: auto; }
.sheet::backdrop { background: rgb(19 20 21 / .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.x { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); }
.x:hover { background: var(--alt); }
.x .i { width: 18px; height: 18px; }
.q-img { position: relative; min-height: 100%; background: var(--alt); }
.q-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-body { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.q-name { font-size: 32px; font-weight: 540; line-height: 1; letter-spacing: -.035em; }
.q-price { font-size: 18px; }
.q-desc { color: var(--muted); font-size: 15.5px; }
.q-colours, .q-sizes { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.q-cname { color: var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.size { min-height: 44px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 14px; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size:disabled { color: var(--soft); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line-2) 50%, transparent calc(50% + .5px)); cursor: not-allowed; }
.q-fit { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.q-err { font-size: 14px; color: #A2381B; }
.q-add { width: 100%; }
.q-facts { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.q-facts li { display: flex; gap: 8px; }
.q-facts .i { width: 16px; height: 16px; margin-top: 2px; color: var(--ink); }

/* ---------- bag ---------- */
.bag { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100vw); background: var(--paper); box-shadow: -30px 0 60px -40px rgb(19 20 21 / .5); transform: translateX(100%); transition: transform .6s var(--ease); }
.bag.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 69; background: rgb(19 20 21 / .34); opacity: 0; transition: opacity .4s; }
.scrim.open { opacity: 1; }
.bag-head { position: relative; display: flex; align-items: center; min-height: 72px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 22px; letter-spacing: -.03em; }
.bag-head .x { top: 16px; right: 16px; }
.ship { display: grid; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ship-bar { height: 3px; border-radius: 3px; background: var(--alt); overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .6s var(--ease); }
.bag-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--alt); }
.bi-name { font-weight: 560; }
.bi-meta { font-size: 13.5px; color: var(--muted); }
.bi-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.bi-qty button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.bi-qty button:hover { background: var(--alt); }
.bi-qty .i { width: 14px; height: 14px; }
.bi-qty span { min-width: 18px; text-align: center; font-size: 14px; }
.bi-right { display: grid; justify-items: end; align-content: space-between; font-size: 15px; }
.bi-remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag-empty { padding: 32px 24px; color: var(--muted); }
.bag-foot { display: grid; gap: 14px; padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.bag-sub { display: flex; justify-content: space-between; font-size: 17px; font-weight: 560; }

/* ---------- layer builder ---------- */
.builder { padding: var(--sec) 0; background: var(--alt); }
.builder .tone { color: #74777A; }   /* 3.2:1 on the darker band */
.bld { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.bld-in { display: grid; gap: 28px; }
.bld-in fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.day-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day { display: grid; justify-items: start; gap: 6px; padding: 14px 12px; border: 1px solid var(--line-2); border-radius: 4px; text-align: left; transition: border-color .2s, background-color .2s; }
.day:hover { border-color: var(--ink); }
.day[aria-checked="true"] { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.day .i { width: 26px; height: 26px; }
.d-name { font-size: 13.5px; font-weight: 560; }
.d-temp { font-size: 22px; font-weight: 520; letter-spacing: -.03em; line-height: 1; }
.d-meta { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; }
.seg span .i { width: 17px; height: 17px; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.own { padding-top: 20px; border-top: 1px solid var(--line-2); }
.own-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 80px; align-items: center; gap: 14px; font-size: 14.5px; }
.own-v { text-align: right; font-weight: 560; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.bld-out { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); background: var(--paper); border-radius: 4px; }
.need { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.need-n { margin-top: 2px; font-size: clamp(30px, 3vw, 42px); font-weight: 520; letter-spacing: -.04em; line-height: 1; }
.need-n .unit { font-size: .5em; letter-spacing: 0; color: var(--muted); }
.stack { display: grid; }
.ply-row { display: grid; grid-template-columns: 58px 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ply-row:first-child { border-top: 1px solid var(--line); }
.ply-slot { font-size: 13px; font-weight: 560; color: var(--muted); }
.ply-row img { width: 54px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--alt); }
.ply-row .none { display: grid; place-items: center; width: 54px; aspect-ratio: 4 / 5; border: 1px dashed var(--line-2); color: var(--soft); font-size: 12px; }
.ply-name { font-weight: 560; }
.ply-spec { font-size: 13px; color: var(--muted); }
.ply-row select { min-height: 38px; max-width: 170px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z' fill='%23131415'/%3E%3C/svg%3E") no-repeat right 11px center / 13px; font-size: 13.5px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ply-row select:hover { border-color: var(--ink); }
.ply-row.pop { animation: pop .6s var(--ease); }
.meter { display: grid; gap: 8px; }
.meter-bar { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #C9CDD2, var(--alt) 38%, var(--alt) 62%, #DDD0C2); }
.meter-zone { position: absolute; top: 0; bottom: 0; left: 38%; width: 24%; border-radius: 999px; background: rgb(19 20 21 / .12); }
.meter-mark { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--accent); left: 50%; transition: left .8s var(--ease); }
.meter-k { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 12.5px; color: var(--muted); }
.meter-k span:nth-child(2) { text-align: center; }
.meter-k span:last-child { text-align: right; }
.advice { font-size: 16px; }
.advice b { font-weight: 600; }
.bld-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.bld-total { font-size: 15px; color: var(--muted); }
.bld-buy { display: flex; align-items: center; gap: 8px; }
.bld-size { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.bld-size select { min-height: 50px; padding: 0 34px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z' fill='%23131415'/%3E%3C/svg%3E") no-repeat right 13px center / 13px; color: var(--ink); font-size: 15px; font-weight: 500; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bld-size select:hover { border-color: var(--ink); }
.bld-total b { color: var(--ink); font-weight: 600; }
.bld-note { display: flex; gap: 10px; max-width: 520px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.bld-note .i { width: 17px; height: 17px; margin-top: 2px; }

/* ---------- fabric (dark) ---------- */
.fabric { padding: var(--sec) 0; background: var(--dark); color: var(--on-d); }
.fabric .label, .fabric .sec-lead { color: var(--muted-d); }
.fabric-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.fabric-copy .h2 { margin-top: 18px; }
.seg-dark { margin-top: 30px; max-width: 320px; border-color: var(--line-d); }
.seg-dark input:checked + span { background: var(--on-d); color: var(--dark); }
.seg-dark input:focus-visible + span { outline-color: var(--on-d); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 30px; border-top: 1px solid var(--line-d); }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.specs dt { font-size: 13px; color: var(--muted-d); }
.specs dd { margin-top: 2px; font-size: 18px; font-weight: 520; letter-spacing: -.02em; }
.fabric-stage { position: relative; aspect-ratio: 6 / 5; touch-action: pan-y; cursor: grab; }
.fabric-stage:active { cursor: grabbing; }
.fab-canvas, .fab-fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fab-canvas { opacity: 0; transition: opacity .8s var(--ease); }
.fabric-stage.is-3d .fab-canvas { opacity: 1; }
.fabric-stage.is-3d .fab-fallback { display: none; }
.fab-labels { position: absolute; right: 0; top: 0; bottom: 0; width: 200px; pointer-events: none; }
.fab-labels li { position: absolute; right: 0; top: 0; width: 200px; padding-left: 14px; border-left: 1px solid var(--line-d); font-size: 13px; line-height: 1.4; color: var(--muted-d); transition: transform .9s var(--ease), opacity .4s; }
.fab-labels b { display: block; font-size: 15px; font-weight: 560; color: var(--on-d); }
.js .fab-labels li { opacity: 0; }
.js .fabric-stage.labels-in .fab-labels li { opacity: 1; }
.fab-hint { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-d); }
.fab-hint .i { width: 16px; height: 16px; }

/* ---------- break ---------- */
.break-frame { position: relative; height: min(92svh, 58vw); min-height: 440px; overflow: hidden; overflow: clip; background: #2A2C2E; }
.break-frame img { width: 100%; height: 120%; object-fit: cover; object-position: 62% 50%; }
.break-t { position: absolute; left: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad))); top: clamp(40px, 9%, 120px); color: #F1F0EC; font-size: clamp(44px, 6.4vw, 104px); font-weight: 540; line-height: .94; letter-spacing: -.05em; }
.break-t .line { display: block; }
.break-t .tone { color: rgb(241 240 236 / .56); }

/* ---------- repair ---------- */
.repair { padding: var(--sec) 0; }
.repair-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
.repair-img { aspect-ratio: 4 / 5; }
.repair-copy .h2 { margin-top: 18px; }
.promises { margin: 34px 0 30px; border-top: 1px solid var(--line); }
.promises li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.promises .i { width: 30px; height: 30px; }
.promises h3 { font-size: 18px; font-weight: 560; letter-spacing: -.02em; }
.promises p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- final ---------- */
.final { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.final-in { display: grid; justify-items: center; text-align: center; }
.final-t { max-width: 900px; }
.news { display: flex; gap: 6px; width: min(480px, 100%); margin-top: 36px; padding: 5px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); }
.news input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: none; font-size: 16px; }
.news input:focus { outline: none; }
.news:focus-within { box-shadow: 0 0 0 1px var(--ink); }
.news .btn { min-height: 46px; }
.news-msg { margin-top: 14px; font-size: 14px; color: var(--muted); }
.news-msg.ok { color: var(--ink); }

/* ---------- footer ---------- */
.foot { padding: 64px 0 clamp(18px, 2.4vw, 36px); background: var(--ink); color: var(--on-d); overflow: hidden; overflow: clip; }
.foot .wrap { container-type: inline-size; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; }
.foot-k { margin-bottom: 14px; font-size: 13px; color: var(--muted-d); }
.foot ul { display: grid; gap: 8px; }
.foot a:hover, .foot .link:hover { color: var(--muted-d); }
.foot .link { text-decoration: none; }
.foot-note p:last-child { max-width: 420px; color: var(--muted-d); font-size: 15px; }
.foot-word { margin: 72px 0 0; padding-bottom: .04em; font-size: clamp(110px, 30vw, 460px); font-size: 36cqi; font-weight: 560; line-height: .76; letter-spacing: -.07em; }

/* ---------- dialogs ---------- */
.modal { width: min(460px, calc(100vw - 32px)); padding: 32px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -40px rgb(19 20 21 / .55); }
.modal::backdrop { background: rgb(19 20 21 / .38); }
.modal-i { width: 28px; height: 28px; }
.modal h2 { margin-top: 14px; font-size: 26px; letter-spacing: -.035em; line-height: 1.05; }
.modal p { margin-top: 10px; color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- motion ---------- */
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bump { 40% { transform: scale(1.3); } }
@keyframes pop { from { background-color: rgb(236 90 36 / .1); } to { background-color: transparent; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes word-up { from { transform: translateY(24%); } to { transform: none; } }
.js .hero-t .line > span { transform: translateY(108%); animation: rise 1.15s var(--ease) forwards; }
.js .hero-t .line + .line > span { animation-delay: .1s; }
.js .hero-lead, .js .hero-in .ctas, .js .rail, .js .rail-label { opacity: 0; animation: fadeup .9s var(--ease) forwards; }
.js .hero-lead { animation-delay: .35s; }
.js .hero-in .ctas { animation-delay: .47s; }
.js .rail-label, .js .rail { animation-delay: .6s; }
.js .peel { animation: unveil 1.4s var(--ease) both; }
.js .hero-t .line > span { transition: none; }
.io [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.io [data-reveal].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.split .w > span { display: inline-block; }
.io .split .w > span { transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--wi, 0) * 55ms); }
.io .split.in .w > span { transform: none; }
.io .card { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.io .card.in { opacity: 1; transform: none; }
/* the clip goes on the image, never on the frame the observer watches: a fully clipped target never reports itself
   visible, so it would never reveal */
.io .frame.unveil img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.io .frame.unveil.in img { clip-path: inset(0 0 0 0); }
@supports (animation-timeline: view()) {
  .break-frame img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .repair-img img { animation: drift-s linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .foot-word { animation: word-up linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  @keyframes drift { from { transform: translateY(-12%); } to { transform: translateY(0); } }
  @keyframes drift-s { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero-t .line > span, .io [data-reveal], .io .split .w > span, .io .card { transform: none; opacity: 1; }
  .js .hero-lead, .js .hero-in .ctas, .js .rail, .js .rail-label, .js .tag { opacity: 1; }
  .io .frame.unveil img { clip-path: none; }
  .break-frame img, .repair-img img, .foot-word { animation: none !important; transform: none !important; }
  .break-frame img { height: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sec-head-split, .collection .sec-head-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sec-head-split .sec-lead { max-width: 560px; }
  .links { display: none; }
  .nav-in { grid-template-columns: 1fr auto 1fr; }
  .menu-btn { display: inline-flex; align-items: center; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bld { grid-template-columns: minmax(0, 1fr); }
  .fabric-grid { grid-template-columns: minmax(0, 1fr); }
  .fabric-stage { max-width: 760px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  body { font-size: 16px; }
  .nav-in { grid-template-columns: auto 1fr auto; }
  .logo { grid-column: 1; grid-row: 1; font-size: 25px; }
  .nav-end { grid-column: 3; }
  .bag-btn > span:not(.bag-n) { display: none; }
  .bag-btn { padding: 0 12px; }
  .sec-head-split, .collection .sec-head-split { gap: 18px; }
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; padding: var(--nav-h) 0 36px; background: linear-gradient(90deg, #989C95, #90948D 37%, #888C84 62%, #7F837C) top / 100% calc(var(--nav-h) + 2px) no-repeat, var(--floor); color: var(--ink); overflow: hidden; overflow: clip; }
  .peel { position: relative; inset: auto; order: 1; aspect-ratio: 4 / 5; }
  .peel-front { position: absolute; inset: var(--nav-h) 0 auto; aspect-ratio: 4 / 5; }
  .ply img { object-position: 50% 50%; }
  .hero-tint { inset: var(--nav-h) 0 auto; aspect-ratio: 4 / 5; background: linear-gradient(rgb(24 28 25 / 0), rgb(24 28 25 / .2) 16%, rgb(24 28 25 / .14) 36%, rgb(24 28 25 / 0) 56%); -webkit-mask: none; mask: none; }
  .hero-t { top: var(--face, 170px); padding: 0; font-size: 21vw; line-height: .86; text-align: center; white-space: normal; color: #fff; transform: translateY(-78%); }
  .hero-t .line { display: block; margin: 0 auto -.14em; }
  .hero-in { position: relative; top: auto; order: 2; margin-top: 26px; }
  .hero-lead { max-width: none; font-size: 16.5px; color: #2E3134; text-shadow: none; }
  .hero-in .ctas { display: grid; gap: 10px; }
  .hero-in .btn-pill { justify-content: space-between; }
  .hero-in .btn-pill:not(.btn-pill-glass) { background: var(--ink); color: var(--bg); }
  .hero-in .btn-pill:not(.btn-pill-glass) .pill-i { background: var(--bg); color: var(--ink); }
  .hero-in .btn-pill-glass { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-in .btn-pill-glass .pill-i { background: var(--ink); color: var(--bg); }
  .hero-in { display: flex; flex-direction: column; }
  .rail-label { order: -2; margin-top: 0; color: #45484B; }                  /* right under the photo, so a tap shows the peel */
  .rail { order: -1; margin-bottom: 26px; }
  .rail { gap: 6px; }
  .rail-tab { padding-right: 13px; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(19 20 21 / .5); }
  .rk { margin-right: 8px; box-shadow: 0 0 0 1px rgb(19 20 21 / .15); }
  .rs { display: none; }
  .rail-tab:hover:not([aria-selected="true"]) { background: rgb(19 20 21 / .05); }
  .rail-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .rail-tab[aria-selected="true"] .rk { box-shadow: 0 0 0 1px rgb(236 235 231 / .3); }
  .rail-tab:focus-visible { outline-color: var(--ink); }
  .tag-card, .tag[data-side="left"] .tag-card { min-width: 0; padding: 8px 20px 8px 11px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
  .tag-k { display: none; }
  .tag-n { font-size: 14px; }
  .tag-m { font-size: 12px; }
  .tag-go { margin-top: 4px; padding-top: 5px; font-size: 11.5px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
  .quick { opacity: 1; transform: none; left: auto; right: 8px; bottom: 8px; width: 40px; min-height: 40px; padding: 0; }
  .quick span { display: none; }
  .card-meta { flex-direction: column; gap: 2px; }
  .card-meta h3, .card-meta .price { font-size: 15px; }
  .card-sub { margin-top: -6px; font-size: 13px; }
  .sheet { width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .sheet-in { grid-template-columns: minmax(0, 1fr); }
  .q-img { min-height: 0; aspect-ratio: 5 / 4; }
  .day-row { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 6px; position: relative; }
  .seg { grid-auto-flow: row; grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .own-row { grid-template-columns: 90px minmax(0, 1fr) 64px; gap: 10px; }
  .need { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ply-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .ply-slot { display: none; }
  .ply-row select { max-width: 120px; }
  .fabric-stage { display: grid; grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; }
  .fab-canvas, .fab-fallback { position: relative; grid-area: 1 / 1; aspect-ratio: 5 / 4; height: auto; }
  .fab-labels { position: relative; grid-area: 2 / 1; width: auto; display: grid; gap: 14px; margin-top: 12px; }
  .fab-labels li { position: static; width: auto; transform: none !important; }
  .fab-hint { position: static; grid-area: 3 / 1; margin-top: 16px; }
  .specs { grid-template-columns: 1fr; }
  .break-frame { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .break-t { top: 20px; font-size: clamp(34px, 10vw, 54px); }
  .repair-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
}
