:root {
    --black: #0a0a0a;
    --charcoal: #121212;
    --panel: #171717;
    --panel-2: #1d1d1d;
    --silver: #c0c0c0;
    --silver-soft: #d1d1d1;
    --muted: #929292;
    --line: #2a2a2a;
    --white: #fff;
    --danger: #ff7f7f;
    --success: #a8d9b4;
    --max: 1280px;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--silver-soft); font-family: var(--sans); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 16px; color: var(--silver); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
h1,h2,h3 { margin-top: 0; color: var(--white); font-family: var(--serif); font-weight: 600; line-height: 1.05; }
h1 { font-size: clamp(3rem, 7.2vw, 7.2rem); letter-spacing: -.035em; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4vw, 4.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.55rem; }
p { margin-top: 0; }
.lead { font-size: 1.2rem; color: #eee; }
.btn { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; border: 1px solid var(--white); padding: 13px 23px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: .25s ease; }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover, .btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-full { width: 100%; }
.text-link { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; color: var(--white); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; border-bottom: 1px solid transparent; background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0)); transition: .25s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10,10,10,.94); backdrop-filter: blur(16px); }
.nav-shell { width: min(calc(100% - 36px), 1440px); height: 82px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--silver); font-family: var(--serif); font-size: .82rem; letter-spacing: .03em; }
.brand-name { font-family: var(--serif); font-size: .95rem; letter-spacing: .15em; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 2px; }
.footer-logo { display: block; width: 128px; height: 128px; object-fit: cover; border-radius: 3px; }
.primary-nav { display: flex; justify-content: center; gap: clamp(18px, 2.5vw, 40px); }
.primary-nav a, .nav-logout-btn { position: relative; font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav a { color: #efefef; }
.primary-nav a::after, .nav-logout-btn::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: #fff; transition: .2s; }
.primary-nav a:hover::after,.primary-nav a.active::after, .nav-logout-btn:hover::after { right: 0; }
.nav-account-link { color: #c0c0c0 !important; }
.nav-account-link::after { background: #c0c0c0 !important; }
.nav-logout-form { display: contents; }
.nav-logout-btn { border: 0; background: none; padding: 0; color: #8f8f8f; transition: color .2s; }
.nav-logout-btn:hover { color: #fff; }
.nav-call { min-height: 42px; padding: 9px 17px; font-size: .64rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px; background: #fff; }
.hero,.page-hero { position: relative; overflow: hidden; background: var(--charcoal); }
.hero { min-height: 100svh; display: flex; align-items: center; }
.hero::before,.page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hero-image); background-size: cover; background-position: center 30%; transform: scale(1.015); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 42%, rgba(0,0,0,.28) 75%, rgba(0,0,0,.52) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-content h1 { max-width: 1030px; margin-bottom: 24px; }
.hero-subtitle { max-width: 670px; color: #e4e4e4; font-size: clamp(1rem,1.4vw,1.25rem); }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 38px; }
.hero-scroll { position: absolute; right: 34px; bottom: 42px; z-index: 2; color: rgba(255,255,255,.65); writing-mode: vertical-rl; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.alert { margin: 0 0 24px; border: 1px solid var(--line); padding: 16px 18px; background: #171717; color: #eee; }
.alert.error { border-color: rgba(255,127,127,.5); color: #ffd0d0; }
.alert.success { border-color: rgba(168,217,180,.5); color: #d6ffe0; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* Flash toasts stay fixed above page content. */
.toast-stack { position: fixed; z-index: 1200; top: 96px; right: 24px; display: flex; flex-direction: column; gap: 12px; width: min(calc(100vw - 48px), 400px); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-left-width: 3px; padding: 15px 14px 15px 16px; background: rgba(23,23,23,.97); backdrop-filter: blur(14px); box-shadow: 0 18px 44px rgba(0,0,0,.55); color: #ededed; font-size: .875rem; line-height: 1.55; pointer-events: auto; animation: toast-in .38s cubic-bezier(.2,.8,.25,1) both; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-icon { flex: none; width: 19px; height: 19px; margin-top: 1px; }
.toast-icon svg { width: 100%; height: 100%; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-text { flex: 1 1 auto; min-width: 0; }
.toast-close { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 0; padding: 0; background: none; color: #7d7d7d; transition: color .2s; }
.toast-close svg { width: 11px; height: 11px; }
.toast-close:hover { color: #fff; }
.toast.is-leaving { animation: toast-out .28s ease both; }
@keyframes toast-in {
    from { opacity: 0; transform: translateX(26px); }
    to { opacity: 1; transform: none; }
}
@keyframes toast-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateX(26px); }
}
@media (prefers-reduced-motion: reduce) {
    .toast, .toast.is-leaving { animation-duration: .01ms; }
}
@media (max-width: 800px) {
    .toast-stack { top: 80px; right: 14px; left: 14px; width: auto; }
}
.section-intro { max-width: 860px; padding-top: 115px; padding-bottom: 115px; text-align: center; }
.section-intro p:last-child { max-width: 740px; margin: 0 auto; color: #bcbcbc; font-size: 1.05rem; }
.collection-section { padding-bottom: 110px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading-row h2 { margin-bottom: 0; }
.category-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(320px, 38vw)); gap: 14px; }
.category-card { position: relative; min-height: 320px; overflow: hidden; background: #111; }
.category-card::before { content: ''; position: absolute; inset: 0; background-image: var(--card-image); background-size: cover; background-position: center 25%; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.category-card:hover::before { transform: scale(1.04); }
.category-card-tall { grid-row: 1 / span 2; }
.category-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.05) 65%); }
.category-content { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2; display: grid; gap: 4px; color: #fff; }
.category-content small { font-size: .65rem; letter-spacing: .2em; color: #cfcfcf; }
.category-content strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: 600; }
.category-content em { font-style: normal; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.process { border-block: 1px solid var(--line); background: #0d0d0d; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-grid article { min-height: 240px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; }
.process-grid article > span { color: #777; font-size: .7rem; letter-spacing: .18em; }
.process-grid h3 { margin-top: 55px; margin-bottom: 12px; }
.process-grid p { color: #9e9e9e; }
.about-section { background: var(--charcoal); }
.about-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(50px,8vw,120px); }
.about-copy { max-width: 590px; }
.about-copy .btn { margin-top: 20px; }
.about-image { margin: 0; overflow: hidden; aspect-ratio: .82; background: #0b0b0b; }
.about-image img { height: 100%; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(1.04); }
.lookbook-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lookbook-track figure { margin: 0; aspect-ratio: .72; overflow: hidden; background: #111; }
.lookbook-track img { height: 100%; object-fit: cover; transition: .5s; }
.lookbook-track figure:hover img { transform: scale(1.035); }
.consultation-section { border-top: 1px solid var(--line); background: #0e0e0e; }
.consultation-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px,8vw,120px); align-items: start; }
.luxury-form { display: grid; gap: 20px; }
.luxury-form label,.notes-field { display: grid; gap: 8px; }
.luxury-form label > span,.notes-field > span { color: #f1f1f1; font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
input,select,textarea { width: 100%; border: 1px solid #343434; border-radius: 0; outline: none; background: #101010; color: #fff; padding: 14px; transition: border-color .2s, background .2s; }
input:focus,select:focus,textarea:focus { border-color: #bdbdbd; background: #141414; }
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#aaa 50%),linear-gradient(135deg,#aaa 50%,transparent 50%); background-position: calc(100% - 18px) 50%,calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.field-grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
.page-hero { min-height: 430px; display: flex; align-items: end; }
.compact-hero::before { background-position: center 35%; }
.page-hero-content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 60px; }
.page-hero-content h1 { margin: 0 0 12px; font-size: clamp(3rem,6vw,6.2rem); }
.page-hero-content p:last-child { max-width: 650px; }
.booking-section { background: #0d0d0d; }
.measurement-title > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #555; color: #aaa; font-size: .66rem; }
.confirmation-card { max-width: 800px; margin: 0 auto; padding: clamp(30px,6vw,70px); border: 1px solid var(--line); background: var(--charcoal); text-align: center; }
.confirmation-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 26px; border: 1px solid #888; border-radius: 50%; color: #fff; font-size: 1.5rem; }
.tracking-code { margin: 20px auto 10px; padding: 18px; border: 1px solid #666; background: #0c0c0c; color: #fff; font-family: var(--serif); font-size: clamp(1.7rem,4vw,3rem); letter-spacing: .06em; }
.copy-button { border: 0; background: none; color: #aaa; text-decoration: underline; }
.notice-box { margin: 24px 0; border-left: 2px solid #b8b8b8; background: #191919; padding: 16px 18px; text-align: left; }
.success-note { border-left-color: #72ba84; }
.danger-note { border-left-color: #d76c6c; }
.button-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.track-container { max-width: 800px; }
.track-form { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 34px; }
.track-form .btn { min-height: 53px; }
.status-card { border: 1px solid var(--line); background: var(--charcoal); padding: clamp(26px,5vw,48px); }
.status-card-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.status-card-top h2 { margin-bottom: 0; font-size: clamp(1.7rem,4vw,3rem); }
.status-pill { display: inline-flex; padding: 7px 10px; border: 1px solid; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.status-pending { border-color: #947b45; color: #e7ca8d; }
.status-confirmed { border-color: #557d5f; color: #acd8b6; }
.status-processing { border-color: #8a6f35; color: #e9c98a; }
.status-shipped { border-color: #4d6f88; color: #a9c8e6; }
.status-rejected { border-color: #7d5151; color: #f0aaaa; }
.status-details { display: grid; grid-template-columns: repeat(2,1fr); margin: 0; }
.status-details > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.status-details > div:nth-child(odd) { padding-right: 20px; }
.status-details dt { color: #777; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.status-details dd { margin: 4px 0 0; color: #eee; }
.measurement-section { background: #0d0d0d; }
.measurement-container { max-width: 1000px; }
.measurement-lookup { max-width: 640px; margin-inline: auto; border: 1px solid var(--line); background: var(--charcoal); padding: clamp(26px,5vw,44px); }
.measurement-lookup h2 { font-size: clamp(1.7rem,3.2vw,2.4rem); margin-bottom: 12px; }
.measurement-lookup > p { color: var(--muted); font-size: .95rem; }
.measurement-lookup .track-form { margin: 26px 0 0; }
.measurement-lookup-alt { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.measurement-lookup-alt p { color: var(--muted); font-size: .9rem; }
.measurement-lookup-alt strong { color: #eee; }
.measurement-lookup-help { margin: 18px 0 0; font-size: .84rem; }
.measurement-lookup-help a { color: var(--silver-soft); text-decoration: underline; text-underline-offset: 3px; }
.measurement-form { display: grid; gap: 26px; }
.measurement-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.unit-switch { display: flex; gap: 16px; min-height: 52px; align-items: center; margin: 0; border: 1px solid var(--line); padding: 8px 14px; }
.unit-switch legend { padding: 0 8px; color: #999; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.unit-switch label { display: flex; gap: 7px; align-items: center; color: #ddd; font-size: .8rem; }
.unit-switch input { width: auto; }
.measurement-client { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 12px 20px; padding: 18px; border: 1px solid #2f2f2f; background: #111; }
.measurement-client span { color: #777; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.measurement-client strong { color: #eee; }
.measurement-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.measurement-panel { border: 1px solid var(--line); background: var(--charcoal); }
.measurement-title { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.measurement-title h2 { margin: 0; font-size: 1.5rem; }
.measurement-row { display: grid; grid-template-columns: 1fr 125px 38px; align-items: center; min-height: 67px; border-bottom: 1px solid var(--line); }
.measurement-row:last-child { border-bottom: 0; }
.measurement-row > span { padding: 0 20px; color: #eee; }
.measurement-row input { height: 100%; min-height: 67px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #0f0f0f; text-align: center; }
.measurement-row em { text-align: center; color: #777; font-size: .7rem; font-style: normal; text-transform: uppercase; }
.notes-field textarea { min-height: 120px; }
.reference-preview { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); background: #111; }
.reference-preview img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); }
.reference-preview label { display: flex; align-items: center; gap: 8px; color: #ddd; font-size: .8rem; }
.reference-preview input { width: auto; }
.measurement-help { padding: 18px 20px; border: 1px solid var(--line); background: #111; color: #999; font-size: .82rem; }
.measurement-help p:last-child { margin-bottom: 0; }

/* Posture and profile photo guide */
.measurement-subtitle { margin: 6px 0 0; color: var(--muted, #888); font-size: 0.88rem; line-height: 1.5; font-weight: 400; }
.posture-section { margin-top: 6px; border: 1px solid var(--line, #2a2a2a); background: var(--charcoal, #121212); }
.posture-layout { display: grid; grid-template-columns: 1.05fr 1.35fr; gap: 28px; padding: 24px; align-items: start; }
.posture-guide-card { border: 1px solid #282828; background: #0d0d0d; padding: 18px; border-radius: 4px; display: flex; flex-direction: column; gap: 16px; }
.posture-guide-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.posture-guide-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(212, 175, 55, 0.12); border: 1px solid rgba(212, 175, 55, 0.35); color: #e5c158; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-guide-zoom { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #3d3d3d; color: #ccc; font-size: 0.72rem; padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; }
.btn-guide-zoom:hover { border-color: #aaa; color: #fff; background: rgba(255,255,255,0.06); }
.posture-guide-img-container { position: relative; border: 1px solid #2a2a2a; border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); transition: transform 0.25s ease, border-color 0.25s ease; }
.posture-guide-img-container:hover { border-color: #666; transform: translateY(-2px); }
.posture-guide-img { width: 100%; height: auto; display: block; object-fit: contain; background: #fff; }
.posture-guide-overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.65); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.22s ease; padding: 14px; text-align: center; }
.posture-guide-img-container:hover .posture-guide-overlay { opacity: 1; }
.posture-guide-checklist { border-top: 1px solid #222; padding-top: 14px; }
.posture-guide-checklist h4 { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #eee; }
.posture-guide-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.posture-guide-checklist li { display: flex; align-items: flex-start; gap: 8px; color: #aaa; font-size: 0.82rem; line-height: 1.4; }
.posture-guide-checklist li strong { color: #ddd; }
.check-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; min-width: 16px; border-radius: 50%; background: #1b3022; color: #8ce4a7; font-size: 0.65rem; font-weight: 700; margin-top: 2px; }
.posture-uploads { display: grid; gap: 20px; }
.posture-upload-box { border: 1px solid #282828; background: #0f0f0f; padding: 20px; border-radius: 4px; display: grid; gap: 14px; transition: border-color 0.2s ease; }
.posture-upload-box:focus-within { border-color: #555; }
.upload-header { display: grid; gap: 4px; }
.upload-tag { display: inline-block; align-self: start; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #888; }
.upload-header h3 { margin: 0; font-size: 1.15rem; color: #f5f5f5; font-family: var(--serif, 'Playfair Display', serif); }
.upload-desc { margin: 0; color: #888; font-size: 0.82rem; line-height: 1.4; }
.existing-photo-card { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid #333; background: #141414; border-radius: 4px; }
.existing-photo-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; border: 1px solid #444; }
.existing-photo-info { display: grid; gap: 6px; }
.photo-saved-badge { display: inline-flex; align-self: start; padding: 2px 7px; background: #18281d; border: 1px solid #2f563a; color: #9bd7ad; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 3px; }
.remove-photo-label { display: flex; align-items: center; gap: 6px; color: #bbb; font-size: 0.8rem; cursor: pointer; }
.remove-photo-label input { width: auto !important; min-height: auto !important; cursor: pointer; }
.dropzone { position: relative; border: 1.5px dashed #3a3a3a; background: #111; border-radius: 4px; padding: 24px 18px; text-align: center; transition: all 0.2s ease; cursor: pointer; }
.dropzone:hover,
.dropzone.dragover { border-color: #888; background: #161616; }
.posture-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.dropzone-content { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.dropzone-icon { color: #888; margin-bottom: 2px; }
.dropzone-title { color: #eee; font-weight: 600; font-size: 0.9rem; }
.dropzone-hint { color: #888; font-size: 0.8rem; }
.dropzone-hint u { color: #bbb; text-underline-offset: 3px; }
.dropzone-formats { color: #666; font-size: 0.72rem; letter-spacing: 0.04em; margin-top: 4px; }
.preview-thumbnail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #1a1a1a; border: 1px solid #444; border-radius: 4px; position: relative; z-index: 3; }
.preview-thumb-inner { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.preview-thumbnail img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; border: 1px solid #555; }
.preview-file-details { display: grid; text-align: left; font-size: 0.78rem; }
.preview-file-name { color: #eee; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.preview-file-size { color: #888; font-size: 0.7rem; }
.btn-clear-preview { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; border: 1px solid #555; background: #0f0f0f; color: #eee; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: all 0.15s ease; }
.btn-clear-preview:hover { background: #754c4c; border-color: #efb0b0; color: #fff; }

/* Posture guide lightbox */
.posture-guide-modal { display: none; position: fixed; inset: 0; z-index: 999; }
.posture-guide-modal.open { display: grid; place-items: center; }
.posture-modal-content { position: relative; z-index: 1; width: min(calc(100% - 32px), 820px); height: auto; max-height: 90vh; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: #121212; border: 1px solid #3a3a3a; box-shadow: 0 16px 50px rgba(0,0,0,0.8); border-radius: 4px; }
.posture-modal-header h3 { margin: 4px 0 0; font-family: var(--serif, serif); font-size: 1.5rem; color: #fff; }
.posture-modal-header p { margin: 4px 0 0; color: #888; font-size: 0.84rem; }
.posture-modal-img-wrap { background: #fff; border-radius: 4px; padding: 12px; overflow: auto; display: flex; justify-content: center; border: 1px solid #333; }
.posture-modal-img { max-width: 100%; max-height: 65vh; object-fit: contain; display: block; }
@media (max-width: 960px) {
    .posture-layout { grid-template-columns: 1fr; }
}
.site-footer { border-top: 1px solid var(--line); background: #080808; padding: 70px 0 24px; }
.footer-grid { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 50px; }
.footer-grid h3 { margin-bottom: 12px; font-family: var(--sans); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-grid p,.footer-grid a { color: #a0a0a0; }
.footer-grid a:hover { color: #fff; }
.footer-brand { margin-bottom: 18px; }
.footer-bottom { width: min(calc(100% - 48px), var(--max)); margin: 55px auto 0; padding-top: 18px; border-top: 1px solid #1e1e1e; display: flex; justify-content: space-between; color: #a0a0a0; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1024px) {
    .nav-call { display: none; }
    .primary-nav { justify-content: end; }
    .lookbook-track { grid-template-columns: repeat(3,1fr); }
    .measurement-panels { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .section { padding: 78px 0; }
    .nav-shell { height: 70px; }
    .menu-toggle { display: block; justify-self: end; }
    .primary-nav { position: fixed; inset: 70px 0 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding: 24px 28px; background: rgba(10,10,10,.99); transform: translateX(100%); transition: .25s; }
    .primary-nav.open { transform: translateX(0); }
    .primary-nav a, .nav-logout-btn { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; text-transform: none; }
    .primary-nav a::after, .nav-logout-btn::after { display: none; }
    .nav-logout-btn { width: 100%; text-align: left; }
    .hero-content { padding-top: 70px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-scroll { display: none; }
    .category-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .category-card,.category-card-tall { grid-column: auto; grid-row: auto; min-height: 62vw; }
    .process-grid { grid-template-columns: repeat(2,1fr); }
    .about-grid,.consultation-grid { grid-template-columns: 1fr; }
    .about-image { max-height: 650px; }
    .page-hero { min-height: 390px; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .track-form, .measurement-toolbar { grid-template-columns: 1fr; }
    .unit-switch { justify-content: flex-start; }
}
@media (max-width: 560px) {
    h1 { font-size: clamp(2.65rem,13vw,4rem); }
    .brand-logo { width: 42px; height: 42px; }
    .hero::before { background-position: 58% center; }
    .section-heading-row { align-items: start; flex-direction: column; }
    .two-col,.status-details, .process-grid { grid-template-columns: 1fr; }
    .lookbook-track { grid-template-columns: repeat(2,1fr); }
    .status-card-top { flex-direction: column; }
    .measurement-client { grid-template-columns: 1fr 1fr; }
    .measurement-row { grid-template-columns: 1fr 100px 34px; }
    .measurement-row > span { padding: 0 12px; font-size: .82rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; width: calc(100% - 28px); }
    .footer-bottom { width: calc(100% - 28px); flex-direction: column; gap: 7px; }
}

/* Header cart and notifications */
.nav-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nav-icons { display: flex; align-items: center; gap: 4px; }
.nav-icon-wrap { position: relative; }
.nav-icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--silver-soft); transition: color .2s, border-color .2s, background .2s; }
.nav-icon-btn:hover, .nav-icon-btn[aria-expanded="true"] { color: #fff; border-color: var(--line); background: rgba(255,255,255,.05); }
.nav-icon-btn svg { width: 21px; height: 21px; }
.nav-badge { position: absolute; top: -1px; right: -1px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--silver); color: #0a0a0a; font-family: var(--sans); font-size: .58rem; font-weight: 700; line-height: 1; }
.nav-dropdown { position: absolute; top: calc(100% + 13px); right: 0; width: 322px; max-width: calc(100vw - 28px); display: none; flex-direction: column; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 60px rgba(0,0,0,.55); z-index: 1200; }
.nav-dropdown.open { display: flex; }
.nav-dropdown::before { content: ''; position: absolute; top: -6px; right: 13px; width: 11px; height: 11px; background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.nav-dropdown-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.nav-dropdown-head strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.nav-dropdown-head a { color: var(--silver); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(192,192,192,.4); padding-bottom: 2px; }
.nav-dropdown-head a:hover { color: #fff; }
.nav-dropdown-empty { margin: 0; padding: 24px 18px; color: #9a9a9a; font-size: .85rem; text-align: center; }
.nav-dropdown > .btn { margin: 14px 18px 18px; width: auto; min-height: 44px; }
.nav-cart-list { list-style: none; margin: 0; padding: 6px 0; max-height: 264px; overflow-y: auto; }
.nav-cart-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 18px; }
.nav-cart-list .ci-name { color: #ededed; font-size: .84rem; }
.nav-cart-list .ci-meta { color: #9a9a9a; font-size: .75rem; white-space: nowrap; }
.nav-cart-totals { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.nav-cart-totals > div { display: flex; justify-content: space-between; align-items: baseline; }
.nav-cart-totals dt { color: #9a9a9a; font-size: .78rem; }
.nav-cart-totals dd { margin: 0; color: #dcdcdc; font-size: .82rem; }
.nav-cart-totals .grand dt, .nav-cart-totals .grand dd { color: #fff; font-weight: 700; font-size: .95rem; }
.nav-dropdown-notif { width: 342px; }
.nav-notif-list { list-style: none; margin: 0; padding: 0; max-height: 344px; overflow-y: auto; }
.nav-notif-list li { display: grid; gap: 3px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.nav-notif-list li:last-child { border-bottom: 0; }
.nav-notif-list li.unread { background: rgba(192,192,192,.05); border-left: 2px solid var(--silver); padding-left: 16px; }
.nav-notif-list .nn-title { color: #fff; font-size: .82rem; font-weight: 600; }
.nav-notif-list .nn-body { color: #a8a8a8; font-size: .78rem; line-height: 1.5; }
.nav-notif-list .nn-time { color: #6f6f6f; font-size: .68rem; letter-spacing: .04em; }

/* Cart */
.cart-empty { max-width: 560px; margin: 0 auto; padding: clamp(40px,8vw,80px) 0; text-align: center; }
.cart-empty h2 { margin-bottom: 12px; }
.cart-empty p { color: #9a9a9a; margin-bottom: 26px; }
.cart-list { border: 1px solid var(--line); background: var(--charcoal); }
.cart-row { display: grid; grid-template-columns: 1fr auto auto 40px; gap: 22px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row-main { display: grid; gap: 4px; min-width: 0; }
.cart-row-main strong { color: #fff; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.cart-row-main span { color: #8f8f8f; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.cart-qty-form { display: flex; align-items: center; gap: 10px; }
.cart-qty-form input { width: 74px; text-align: center; padding: 10px; }
.cart-qty-form .btn { min-height: 42px; padding: 10px 16px; font-size: .62rem; }
.cart-row-total { color: #fff; font-size: 1.05rem; white-space: nowrap; text-align: right; }
.cart-remove-form { justify-self: end; }
.cart-remove { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: #9a9a9a; font-size: 1.2rem; line-height: 1; border-radius: 50%; transition: .2s; }
.cart-remove:hover { border-color: var(--danger); color: var(--danger); }
.cart-summary { margin: 26px 0 0 auto; max-width: 360px; display: grid; gap: 10px; border: 1px solid var(--line); background: #111; padding: 22px 24px; }
.cart-summary > div { display: flex; justify-content: space-between; align-items: baseline; }
.cart-summary dt { color: #9a9a9a; font-size: .84rem; }
.cart-summary dd { margin: 0; color: #ddd; }
.cart-summary .grand { padding-top: 12px; border-top: 1px solid var(--line); }
.cart-summary .grand dt, .cart-summary .grand dd { color: #fff; font-size: 1.1rem; font-weight: 700; }
.cart-actions { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.cart-alt-note { margin: 16px 0 0; color: var(--muted); font-size: .84rem; text-align: right; }
@media (max-width: 640px) {
    .cart-row { grid-template-columns: 1fr auto; grid-template-areas: 'main remove' 'qty total'; gap: 14px 18px; }
    .cart-row-main { grid-area: main; }
    .cart-qty-form { grid-area: qty; }
    .cart-row-total { grid-area: total; text-align: left; align-self: center; }
    .cart-remove-form { grid-area: remove; }
    .cart-summary { max-width: none; }
    .cart-actions .btn { flex: 1; }
}

/* Fabric decision modal */
.fork-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.fork-modal[hidden] { display: none; }
.fork-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.fork-modal-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid var(--line); background: var(--panel); padding: clamp(28px,5vw,44px); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.fork-modal-x { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 0; background: transparent; color: #9a9a9a; font-size: 1.5rem; line-height: 1; }
.fork-modal-x:hover { color: #fff; }
.fork-modal-eyebrow { margin: 0 0 10px; color: var(--success); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.fork-modal-card h2 { margin: 0 0 8px; font-size: clamp(1.6rem,3.4vw,2.2rem); }
.fork-modal-sub { margin: 0 0 26px; color: #9a9a9a; font-size: .9rem; }
.fork-options { display: grid; gap: 14px; }
.fork-option { display: grid; gap: 5px; border: 1px solid var(--line); padding: 20px 22px; background: #121212; transition: border-color .2s, background .2s, transform .2s; }
.fork-option:hover { border-color: #d6d6d6; background: #171717; transform: translateY(-2px); }
.fork-option strong { color: #fff; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.fork-option span { color: #9a9a9a; font-size: .82rem; line-height: 1.55; }
.fork-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fork-modal-foot a { color: var(--silver); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(192,192,192,.4); padding-bottom: 2px; }
.fork-modal-foot a:hover { color: #fff; }
.btn-link { border: 0; background: transparent; color: #8f8f8f; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.btn-link:hover { color: #fff; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; margin-top: 8px; }
.checkout-section-title { font-family: var(--serif); font-size: 1.15rem; color: var(--white); margin: 26px 0 14px; }
.checkout-section-title:first-child { margin-top: 0; }
.checkout-note { color: var(--muted); font-size: .82rem; line-height: 1.6; margin: 6px 0 0; }
.checkout-note a { color: var(--silver-soft); }
.checkout-file { width: 100%; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--silver-soft); font-size: .85rem; }
.checkout-file::file-selector-button { margin-right: 12px; padding: 8px 14px; background: var(--silver); color: #0a0a0a; border: 0; border-radius: 8px; font-weight: 600; cursor: pointer; }
.checkout-agree { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.checkout-agree input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.checkout-terms { margin: 24px 0 0; border: 1px solid var(--line); background: var(--charcoal); padding: 20px; }
.checkout-terms-kicker { margin: 0 0 8px; color: var(--silver); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.checkout-terms h3 { margin: 0 0 6px; font-size: 1.25rem; }
.checkout-terms-date { margin: 0 0 14px; color: var(--muted); font-size: .78rem; }
.checkout-terms-copy { max-height: 255px; overflow: auto; padding-right: 10px; color: #c9c9c9; font-size: .84rem; line-height: 1.65; }
.checkout-terms-copy p { margin: 0 0 13px; }
.checkout-terms-copy p:last-child { margin-bottom: 0; }
.checkout-terms-agree { margin-top: 16px; }
.checkout-final-notice { margin: 0 0 16px; border-left: 2px solid var(--silver); background: #151515; padding: 14px 16px; color: #cfcfcf; font-size: .82rem; line-height: 1.55; }
.checkout-final-notice strong { color: var(--white); }
.checkout-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.checkout-summary, .paypal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.checkout-summary h3, .paypal-box h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 14px; color: var(--white); }
.checkout-items { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--silver-soft); }
.checkout-items .ci-q { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.checkout-totals { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.checkout-totals div { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.checkout-totals .grand { color: var(--white); font-size: 1.05rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.checkout-summary .btn-link { margin-top: 14px; display: inline-block; }
.paypal-box .paypal-amount { font-size: 1.7rem; font-family: var(--serif); color: var(--white); margin: 0 0 6px; }
.paypal-email { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 4px; font-size: .9rem; color: var(--silver-soft); word-break: break-all; }
.paypal-box ol { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-aside { position: static; }
}

/* Account portal */
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.account-tabs a { padding: 12px 18px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--silver-soft); }
.account-tabs a.active { color: var(--white); border-bottom-color: var(--silver); }
.account-panel { display: flex; flex-direction: column; gap: 20px; }
.account-subhead { font-family: var(--serif); font-size: 1.1rem; color: var(--white); margin: 6px 0 0; }
.account-empty { color: var(--muted); font-size: .92rem; }
.account-signout { margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.account-stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--white); }
.account-stat span { color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.order-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.order-card-top h2 { font-family: var(--serif); font-size: 1.3rem; color: var(--white); margin: 4px 0 0; }
.muted-inline { color: var(--muted); font-size: .8rem; }
.order-pipeline { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; counter-reset: step; }
.order-pipeline .pipe-step { flex: 1; position: relative; text-align: center; padding-top: 26px; }
.order-pipeline .pipe-step::before { content: ''; position: absolute; top: 8px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.order-pipeline .pipe-step:last-child::before { display: none; }
.order-pipeline .pipe-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--line); z-index: 1; }
.order-pipeline .pipe-label { display: block; font-size: .7rem; letter-spacing: .04em; color: var(--muted); padding: 0 6px; }
.order-pipeline .pipe-step.done .pipe-dot { background: var(--silver); border-color: var(--silver); }
.order-pipeline .pipe-step.done::before { background: var(--silver); }
.order-pipeline .pipe-step.done .pipe-label { color: var(--silver-soft); }
.order-pipeline .pipe-step.active .pipe-dot { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 4px rgba(168,217,180,.18); }
.order-pipeline .pipe-step.active .pipe-label { color: var(--white); font-weight: 600; }
.order-pipeline.is-rejected .pipe-dot { border-color: var(--danger); }
.notif-allread { display: flex; justify-content: flex-end; }
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notif-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.notif-item.unread { border-left: 3px solid var(--success); }
.notif-title { color: var(--white); font-size: .95rem; margin: 0 0 4px; font-weight: 600; }
.notif-body { color: var(--silver-soft); font-size: .86rem; margin: 0 0 6px; line-height: 1.6; }
.notif-time { color: var(--muted); font-size: .74rem; margin: 0; letter-spacing: .04em; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.profile-grid div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.profile-grid dt { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.profile-grid dd { color: var(--white); font-size: 1rem; margin: 0; }
@media (max-width: 640px) {
    .account-stats { grid-template-columns: 1fr; }
    .order-pipeline { flex-direction: column; gap: 14px; }
    .order-pipeline .pipe-step { text-align: left; padding: 0 0 0 30px; min-height: 20px; }
    .order-pipeline .pipe-step::before { top: 0; left: 8px; width: 2px; height: 100%; }
    .order-pipeline .pipe-dot { left: 8px; transform: none; }
    .order-pipeline .pipe-label { padding: 0; }
}
