:root {
  --bg: #f6f2ec; --paper: #fffdf9; --ink: #221d18; --ink2: #5c5248; --muted: #8b8076;
  --line: rgba(34, 29, 24, .1); --accent: #b0603a; --accent2: #e2a06e; --dark: #1c1916;
  --r: 18px; --shadow: 0 18px 50px -24px rgba(48, 32, 20, .35);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 28px; }
h3 { font-size: 22px; }
.wrap { width: min(1220px, 100% - 40px); margin: 0 auto; }
section { padding: 110px 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow.light { color: var(--accent2); }
.lead { font-size: 18px; color: var(--ink2); max-width: 640px; margin: -10px 0 40px; }
.muted { color: var(--muted); }
small { font-weight: 500; color: var(--muted); font-size: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .25s, background .25s, box-shadow .25s; box-shadow: 0 10px 24px -12px rgba(176, 96, 58, .8); }
.btn:hover { transform: translateY(-2px); background: #9b5231; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-ghost.dark { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn-ghost.dark:hover { background: #fff; }
.btn:disabled { opacity: .6; transform: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(20px, calc((100% - 1220px) / 2)); color: #fff; transition: background .35s, padding .35s, color .35s, box-shadow .35s; }
.nav.solid { background: rgba(246, 242, 236, .9); backdrop-filter: blur(14px); color: var(--ink); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 18px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { opacity: .85; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .3s; }
.nav-links a:hover::after { right: 0; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; padding: 140px 0 90px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 14, 10, .86) 0%, rgba(20, 14, 10, .6) 45%, rgba(20, 14, 10, .2) 100%), linear-gradient(0deg, rgba(20, 14, 10, .55), transparent 40%); }
.hero-inner { position: relative; width: min(1220px, 100% - 40px); margin: 0 auto; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 400; margin-bottom: 24px; animation: rise 1s .1s both cubic-bezier(.2, .7, .2, 1); }
.hero h1 em { font-style: italic; color: var(--accent2); }
.hero-sub { max-width: 560px; font-size: 18px; opacity: .88; margin-bottom: 36px; animation: rise 1s .25s both cubic-bezier(.2, .7, .2, 1); }
.hero .eyebrow { animation: rise 1s both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: rise 1s .4s both cubic-bezier(.2, .7, .2, 1); }
.hero-stats { display: flex; gap: 48px; margin-top: 70px; flex-wrap: wrap; animation: rise 1s .55s both cubic-bezier(.2, .7, .2, 1); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 400; }
.hero-stats span { font-size: 13px; opacity: .7; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 4px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; transition: transform .35s, box-shadow .35s; }
.step:nth-child(2) { --d: 90ms; } .step:nth-child(3) { --d: 180ms; } .step:nth-child(4) { --d: 270ms; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step span { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.step h3 { margin: 18px 0 10px; }
.step p { color: var(--ink2); font-size: 15px; }

/* profile */
.profile { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: start; }
.q { margin-bottom: 28px; }
.q label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; transition: all .25s; display: inline-flex; align-items: center; gap: 8px; }
.chips button:hover { border-color: var(--accent); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.compact button { padding: 8px 14px; }
.swatches i { width: 34px; height: 14px; border-radius: 8px; display: inline-block; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent2), var(--accent)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: grab; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: grab; }
.profile-card { position: sticky; top: 90px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); --d: 120ms; }
.pc-head { display: flex; gap: 14px; align-items: center; }
.pc-head b { display: block; font-size: 16px; }
.pc-head span { font-size: 13px; color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; font-weight: 700; }
#radar { width: 100%; height: 300px; }
.dna { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.dna span { background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; text-transform: capitalize; }
.dna b { color: var(--accent); }
.pc-list { list-style: none; }
.pc-list li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pc-list span { color: var(--muted); }

/* today */
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.today-head h2 { margin-bottom: 0; }
.controls { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.ctrl label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ctrl select { font: inherit; font-size: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); min-width: 170px; }
.ctrl input[type=range] { width: 170px; margin: 10px 0 8px; }
.weather-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.weather-strip span { background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-size: 13px; color: var(--ink2); }
.weather-strip b { color: var(--ink); }
.outfits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.look { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: transform .38s, opacity .38s, box-shadow .3s; }
.look:hover { box-shadow: var(--shadow); }
.look.pop { animation: pop .7s both cubic-bezier(.2, .7, .2, 1); animation-delay: var(--d); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.look.out-l { opacity: 0; transform: translateX(-40px) rotate(-3deg); }
.look.out-r { opacity: 0; transform: translateX(40px) rotate(3deg); }
.look header { display: flex; justify-content: space-between; align-items: center; }
.look-no { font-family: var(--serif); font-size: 20px; }
.score { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; align-content: center; font-size: 10px; color: var(--muted); background: radial-gradient(closest-side, var(--paper) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), #eee2d6 0); line-height: 1; }
.score b { font-size: 18px; color: var(--ink); }
.look-items { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.look-items figure { position: relative; border-radius: 12px; overflow: hidden; background: #ece5dc; aspect-ratio: 3/4; }
.look-items.n4 figure:first-child, .look-items.n5 figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.look-items.n4 { grid-template-columns: 1.2fr 1fr 1fr; }
.look-items img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.look-items figure:hover img { transform: scale(1.06); }
.look-items figcaption { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(255, 253, 249, .92); border-radius: 8px; padding: 4px 7px; font-size: 10.5px; font-weight: 500; display: flex; gap: 5px; align-items: center; line-height: 1.2; }
.look-items figcaption i, .it-body i { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1px solid rgba(0, 0, 0, .15); display: inline-block; }
.why { list-style: none; display: grid; gap: 6px; }
.why li { font-size: 13.5px; color: var(--ink2); padding-left: 20px; position: relative; }
.why li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.bars div, .w, .meters div { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.bars em, .w em, .meters em { display: block; height: 5px; border-radius: 5px; background: #eee2d6; overflow: hidden; }
.bars s, .w s, .meters s { display: block; height: 100%; background: var(--accent); border-radius: 5px; text-decoration: none; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.look footer { display: flex; gap: 8px; margin-top: auto; }
.fb { flex: 1; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); transition: all .2s; }
.fb.like { background: var(--ink); color: #fff; flex: 1.4; }
.fb.like:hover { background: var(--accent); }
.fb.skip:hover, .fb.wear:hover { border-color: var(--ink); }
.learn { margin-top: 40px; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.learn p { color: var(--ink2); font-size: 14px; margin-top: 8px; }
.weights { display: grid; gap: 9px; }
.w { grid-template-columns: 110px 1fr 38px; align-items: center; font-size: 12px; }
.w b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.log { font-size: 13px; display: grid; gap: 6px; align-content: start; }
.log p { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--ink2); animation: rise .4s both; }
.log p b { color: var(--ink); margin-right: 6px; }
.log p.like { border-left: 3px solid #4f8a5b; } .log p.skip { border-left: 3px solid #c0533e; } .log p.wear { border-left: 3px solid var(--accent2); }

/* wardrobe */
.wardrobe { background: var(--paper); border-block: 1px solid var(--line); }
.wardrobe-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.wardrobe-stats > div { background: var(--bg); border-radius: 14px; padding: 12px 18px; min-width: 96px; }
.wardrobe-stats b { font-family: var(--serif); font-size: 26px; display: block; font-weight: 400; }
.wardrobe-stats span { font-size: 12px; color: var(--muted); }
.palette-bar { display: flex; flex-wrap: wrap; align-content: center; min-width: 220px !important; gap: 0; }
.palette-bar s { height: 12px; display: block; text-decoration: none; }
.palette-bar s:first-child { border-radius: 6px 0 0 6px; } .palette-bar s:nth-last-child(2) { border-radius: 0 6px 6px 0; }
.palette-bar span { flex-basis: 100%; margin-top: 8px; }
.f-neutral { background: #cfc6ba; } .f-earth { background: #b0794c; } .f-cool { background: #4f6f93; } .f-bold { background: #d2523f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.item { text-align: left; background: var(--bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, opacity .9s cubic-bezier(.2, .7, .2, 1); }
.item:hover { box-shadow: var(--shadow); }
.item.in:hover { transform: translateY(-5px); }
.ph { aspect-ratio: 4/5; overflow: hidden; background: #ece5dc; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.item:hover .ph img, .gap:hover .ph img { transform: scale(1.06); }
.it-body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.it-body b { font-size: 14px; font-weight: 600; }
.it-body span { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; text-transform: capitalize; }
.it-body small { font-size: 11.5px; }
.it-body small.hot { color: #4f8a5b; } .it-body small.cold { color: #c0533e; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(28, 22, 18, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal-card { position: relative; background: var(--paper); border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; width: min(820px, 100%); max-height: 90vh; transform: translateY(20px) scale(.98); transition: transform .3s; }
.modal.open .modal-card { transform: none; }
.modal-card img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.m-body { padding: 34px 30px; display: grid; gap: 16px; align-content: start; overflow: auto; }
.m-body .eyebrow { margin: 0; text-transform: uppercase; }
.m-body h3 { font-size: 28px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; text-transform: capitalize; }
.meters { display: grid; gap: 10px; }
.meters div { font-size: 12px; }
.m-body p { font-size: 14px; }
.x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font-size: 22px; line-height: 1; z-index: 2; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }

/* planner */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.day { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; transition: box-shadow .3s, opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.day:hover { box-shadow: var(--shadow); }
.day header { display: flex; justify-content: space-between; align-items: baseline; }
.day header b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.day header span { font-size: 11.5px; color: var(--muted); }
.day p { font-size: 13px; font-weight: 600; color: var(--accent); }
.day-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.day-imgs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.day small { font-size: 11.5px; }

/* shop */
.shop { background: var(--paper); border-block: 1px solid var(--line); }
.gaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gap { display: grid; grid-template-columns: 150px 1fr; background: var(--bg); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.gap:hover { box-shadow: var(--shadow); }
.gap .ph { aspect-ratio: auto; height: 100%; }
.gap-body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.gap-body h4 { font-size: 18px; }
.gap-body p { font-size: 13.5px; color: var(--ink2); }
.gap-body p b { color: #4f8a5b; font-size: 16px; }
.badge { justify-self: start; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: #fff; padding: 4px 9px; border-radius: 6px; }
.price { display: grid; font-size: 12px; color: var(--muted); }
.price b { font-size: 17px; color: var(--ink); }
.gap.over { opacity: .72; }
.gap.over.in { opacity: .72; }
.gap .btn { justify-self: start; margin-top: 4px; }

/* engine */
.engine { background: var(--dark); color: #f3ece4; }
.pipeline { display: flex; align-items: stretch; gap: 0; margin: 10px 0 40px; }
.node { flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 18px; display: grid; gap: 6px; }
.node b { font-size: 15px; } .node span { font-size: 12.5px; opacity: .65; }
.arrow { width: 34px; flex: none; position: relative; }
.arrow::before { content: ''; position: absolute; top: 50%; left: 4px; right: 6px; height: 2px; background: linear-gradient(90deg, rgba(226, 160, 110, .2), var(--accent2)); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
.arrow::after { content: ''; position: absolute; top: calc(50% - 4px); right: 4px; border: 5px solid transparent; border-left-color: var(--accent2); border-right: 0; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 26px; }
.panel h3 { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel h3 small { color: rgba(255, 255, 255, .5); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.metrics div { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 12px; }
.metrics b { font-family: var(--serif); font-size: 24px; font-weight: 400; display: block; color: var(--accent2); }
.metrics span { font-size: 11.5px; opacity: .65; }
#trend { width: 100%; height: 180px; }
.code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.65; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 18px; overflow: auto; color: #e9e2d9; }
.code .c { color: #8d8378; } .code .k { color: #e2a06e; } .code .s { color: #a9c7a0; } .code .n { color: #9cc1e6; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stack span { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 8px 16px; font-size: 13px; }

/* roadmap */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li:nth-child(2) { --d: 90ms; } .timeline li:nth-child(3) { --d: 180ms; } .timeline li:nth-child(4) { --d: 270ms; }
.timeline li::before { content: ''; position: absolute; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.timeline b { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.timeline h4 { font-size: 20px; margin: 6px 0 8px; }
.timeline p { font-size: 14px; color: var(--ink2); }

.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; opacity: 0; transition: all .35s; z-index: 90; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .outfits, .gaps { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .learn { grid-template-columns: 1fr 1fr; }
  .learn > div:first-child { grid-column: 1 / -1; }
  .pipeline { flex-wrap: wrap; gap: 10px; }
  .pipeline .arrow { display: none; }
  .node { flex: 1 1 30%; }
}
@media (max-width: 820px) {
  section { padding: 80px 0; }
  .steps, .timeline { grid-template-columns: 1fr 1fr; }
  .split, .engine-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .outfits, .gaps { grid-template-columns: 1fr; }
  .learn { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-card img { min-height: 0; height: 260px; }
  .timeline::before { display: none; }
}
@media (max-width: 520px) {
  .wrap, .hero-inner { width: calc(100% - 32px); }
  .steps, .timeline { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .gap { grid-template-columns: 120px 1fr; }
  .controls, .ctrl, .ctrl select, .ctrl input[type=range] { width: 100%; }
  .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; }
}
.engine-grid > *, .split > *, .outfits > *, .gaps > * { min-width: 0; }
canvas { max-width: 100%; }
.look-items.n4 { grid-template-columns: 1fr 1fr; }
.look-items.n4 figure:first-child { grid-row: auto; aspect-ratio: 1; }
.look-items.n4 figure { aspect-ratio: 1; }
