/* Landing: editorial layout on vellum, hairline rules, one rouge accent. */

.landing { position: relative; }
.i { width: 18px; height: 18px; flex: none; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background var(--d-base) var(--ease-out), border-color var(--d-base), transform var(--d-base) var(--ease-out); border-bottom: var(--hair) solid transparent; }
.nav.is-scrolled { background: rgba(242, 236, 227, 0.88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-color: rgba(22, 18, 15, 0.08); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); padding-top: max(18px, env(safe-area-inset-top)); display: flex; align-items: center; gap: var(--s-6); }
.nav__brand svg { height: 22px; width: auto; color: var(--ink); }
.nav__links { display: flex; gap: var(--s-5); margin-left: auto; font-size: var(--t-small); }
.nav__links + .nav__end { margin-left: 0; }
@media (max-width: 900px) { .nav__links + .nav__end { margin-left: auto; } }
.nav__end { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.nav__menu { display: none; width: 40px; height: 40px; position: relative; }
.nav__menu span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform var(--d-base) var(--ease-out); }
.nav__menu span:first-child { top: 16px; } .nav__menu span:last-child { top: 23px; }
.nav__menu[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__drawer { display: grid; gap: 4px; padding: 8px var(--gutter) 24px; background: var(--vellum); border-bottom: var(--hair) solid var(--vellum-3); }
.nav__drawer a { font-family: var(--font-display); font-size: 2rem; line-height: 1.25; padding: 4px 0; }

/* Language switch */
.lang { position: relative; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: var(--hair) solid currentColor; border-radius: var(--r-pill); padding: 6px 28px 6px 12px; font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.08em; cursor: pointer; color: inherit; }
.lang::after { content: ''; position: absolute; right: 12px; top: 50%; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lang select option { color: var(--ink); background: var(--vellum); }

/* Hero */
.hero { max-width: var(--maxw); margin: 0 auto; min-height: 100svh; padding: calc(96px + 4vh) var(--gutter) var(--s-8); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 5vw, 96px); align-items: center; }
.hero__copy { display: grid; gap: var(--s-6); align-content: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); display: inline-block; animation: pulse 2.4s var(--ease-in-out) infinite; }
.hero__title { font-size: var(--t-h1); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > * { display: inline-block; }
.hero__title em { color: var(--rouge); padding-right: 0.06em; }
.hero__lead { max-width: 34em; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-micro); letter-spacing: 0.06em; color: var(--stone); }
.hero__note .i { width: 14px; height: 14px; }
.hero__visual { margin: 0; display: grid; gap: var(--s-4); }
.caption { font-size: var(--t-micro); color: var(--stone); letter-spacing: 0.04em; line-height: 1.5; }

/* Before/after demo */
.demo { position: relative; aspect-ratio: 4 / 5; background: var(--vellum-2); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__before { position: absolute; inset: 0; clip-path: inset(0 58% 0 0); will-change: clip-path; }
.demo__handle { position: absolute; top: 0; bottom: 0; left: 42%; width: 44px; margin-left: -22px; cursor: ew-resize; display: grid; place-items: center; z-index: 2; }
.demo__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--vellum); box-shadow: 0 0 12px rgba(0,0,0,.25); }
.demo__handle span { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--vellum); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.demo__handle span::before, .demo__handle span::after { content: ''; position: absolute; top: 50%; width: 6px; height: 6px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.demo__handle span::before { left: 10px; transform: translateY(-50%) rotate(-45deg); }
.demo__handle span::after { right: 10px; transform: translateY(-50%) rotate(135deg); }
.demo__tag { position: absolute; top: 14px; z-index: 1; font-size: var(--t-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--vellum); background: rgba(22,18,15,.55); padding: 5px 9px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo__tag--l { left: 14px; } .demo__tag--r { right: 14px; }
.demo__loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--t-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--stone); background: var(--vellum-2); transition: opacity var(--d-slow) var(--ease-out); z-index: 3; }
.demo.is-ready .demo__loading { opacity: 0; pointer-events: none; }
.looks { display: flex; flex-wrap: wrap; gap: 6px; }
.look-chip { height: 34px; padding: 0 14px; border: var(--hair) solid var(--vellum-3); border-radius: var(--r-pill); font-size: var(--t-small); color: var(--ink-2); transition: all var(--d-fast) var(--ease-out); display: inline-flex; align-items: center; gap: 8px; }
.look-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.look-chip:hover { border-color: var(--ink); color: var(--ink); }
.look-chip[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--vellum); }

/* Ticker */
.ticker { border-block: var(--hair) solid var(--vellum-3); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 60s linear infinite; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-style: italic; white-space: nowrap; }
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker__track span::after { content: ''; width: 8px; height: 8px; background: var(--rouge); transform: rotate(45deg); display: inline-block; }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 176px) var(--gutter); }
.section__head { display: grid; gap: var(--s-5); margin-bottom: clamp(40px, 6vw, 88px); }
.section__num { color: var(--stone); display: flex; gap: 14px; align-items: baseline; }
.section__num span { color: var(--ink-2); }
.section__title { font-size: var(--t-h2); max-width: 14em; }
.section__title em { color: var(--rouge); }

.engine__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; border-top: var(--hair) solid var(--ink); padding-top: var(--s-6); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: 0; }
.stat { border-left: var(--hair) solid var(--vellum-3); padding-left: var(--s-4); }
.stat dt { font-size: clamp(2.6rem, 1.8rem + 3vw, 5rem); line-height: 1; color: var(--rouge); }
.stat dd { margin: 12px 0 0; font-size: var(--t-small); color: var(--ink-2); }
.closeups { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: var(--s-4); margin-top: clamp(48px, 8vw, 120px); }
.closeup { margin: 0; display: grid; gap: 10px; }
.closeup canvas { width: 100%; aspect-ratio: 4 / 3; background: var(--vellum-2); object-fit: cover; }
.closeup:first-child canvas { aspect-ratio: 5 / 3; }
.closeup figcaption { font-size: var(--t-small); color: var(--ink-2); display: flex; gap: 10px; }
.closeup figcaption .mono { color: var(--rouge); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 128px); align-items: center; }
.split--rev .split__copy { order: 2; }
.split__copy { display: grid; gap: var(--s-5); align-content: center; }
.ticks { display: grid; gap: 10px; border-top: var(--hair) solid var(--vellum-3); padding-top: var(--s-4); }
.ticks li { display: flex; gap: 12px; font-size: var(--t-body); }
.ticks li::before { content: ''; width: 14px; height: 1px; background: var(--rouge); margin-top: 0.8em; flex: none; }
.split__copy .btn { justify-self: start; }

/* Swatcher: real lips close-up re-rendered per shade */
.swatcher { background: var(--ink); display: grid; }
.swatcher__canvas { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.swatcher__bar { padding: var(--s-4); display: grid; gap: var(--s-3); color: var(--vellum); }
.swatcher__label { font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: #b9aea4; }
.swatcher__label b { color: var(--vellum); font-weight: 500; }
.swatcher__shades { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-dot { width: 34px; height: 34px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform var(--d-fast) var(--ease-out); }
.swatch-dot:hover { transform: scale(1.08); }
.swatch-dot[aria-selected='true']::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--vellum); border-radius: 50%; }

/* Live */
.live { max-width: none; background: var(--ink); color: var(--vellum); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.live .section__num, .live .section__num span { color: #a89c92; }
.live .section__title em { color: var(--blush); }
.live__stage { position: relative; aspect-ratio: 1; }
.live__stage canvas { width: 100%; height: 100%; }
.live__readout { position: absolute; left: 0; bottom: 0; font-size: var(--t-micro); letter-spacing: 0.1em; color: #8d8178; }
.live__copy { display: grid; gap: var(--s-5); }
.live__copy .lead { color: #d8cfc6; }
.steps-inline { display: grid; gap: 0; border-top: 1px solid rgba(242,236,227,.16); }
.steps-inline li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(242,236,227,.16); font-size: var(--t-body); }
.steps-inline b { font-family: var(--font-mono); font-weight: 400; font-size: var(--t-micro); color: var(--blush); padding-top: 4px; }
.live .btn { justify-self: start; }
.hint { font-size: var(--t-micro); color: #8d8178; letter-spacing: 0.04em; }
.btn--on-dark { --fg: var(--vellum); --bd: var(--vellum); }

/* Kit */
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--hair) solid var(--ink); }
.kit__col { padding: var(--s-5) var(--s-4) var(--s-6) 0; border-right: var(--hair) solid var(--vellum-3); display: grid; gap: var(--s-4); align-content: start; }
.kit__col:last-child { border-right: 0; }
.kit__col + .kit__col { padding-left: var(--s-4); }
.kit__col h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); }
.kit__col canvas { width: 100%; aspect-ratio: 1; background: var(--vellum-2); }
.kit__col ul { display: grid; gap: 6px; font-size: var(--t-small); color: var(--ink-2); }
.kit__col li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--vellum-3); padding-bottom: 6px; }
.kit__col li i { font-style: normal; font-family: var(--font-mono); font-size: var(--t-micro); color: var(--stone); }
.kit__swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.kit__swatches span { width: 16px; height: 16px; border-radius: 50%; }

/* Booth show */
.strip-show { display: grid; place-items: center; background: var(--vellum-2); padding: clamp(24px, 5vw, 72px) 0; }
.strip-show canvas { width: min(46%, 260px); height: auto; box-shadow: 0 40px 80px -30px rgba(22,18,15,.45), 0 2px 6px rgba(22,18,15,.12); transform: rotate(-2.5deg); transition: transform var(--d-slow) var(--ease-out); }
.strip-show:hover canvas { transform: rotate(0deg) translateY(-6px); }

/* How */
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.how__steps li { border-top: var(--hair) solid var(--ink); padding-top: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.how__n { font-size: 3rem; line-height: 1; color: var(--rouge); font-style: italic; }
.how__steps h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); }
.how__steps p { color: var(--ink-2); max-width: 26em; }

/* Privacy */
.privacy { border-top: var(--hair) solid var(--vellum-3); }
.privacy__title { font-size: clamp(3rem, 1.4rem + 7vw, 9rem); margin: var(--s-5) 0 clamp(40px, 6vw, 96px); }
.privacy__title em { color: var(--rouge); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); }
.privacy__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
.privacy__list li { display: grid; gap: 8px; border-top: var(--hair) solid var(--ink); padding-top: var(--s-4); }
.privacy__list b { font-weight: 500; }
.privacy__list span { color: var(--ink-2); font-size: var(--t-small); }

/* Final */
.final { background: var(--rouge); color: var(--vellum); padding: clamp(96px, 14vw, 200px) var(--gutter); text-align: center; display: grid; gap: var(--s-6); justify-items: center; }
.final__title { font-size: clamp(3rem, 1.2rem + 7vw, 9.5rem); }
.final__title em { color: var(--blush); }
.final__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.final .btn--light::before { background: var(--ink); }

/* Footer */
.footer { background: var(--ink); color: var(--vellum); padding: clamp(56px, 8vw, 112px) var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.footer > * { max-width: var(--maxw); margin-inline: auto; }
.footer__top { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); flex-wrap: wrap; padding-bottom: var(--s-7); border-bottom: 1px solid rgba(242,236,227,.14); }
.footer__logo svg { width: min(70vw, 520px); height: auto; color: var(--vellum); }
.footer__tag { font-size: var(--t-h3); }
.footer__tag em { color: var(--blush); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding: var(--s-7) 0; }
.footer__cols > div { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer__cols .eyebrow { color: #8d8178; margin-bottom: 6px; }
.footer__cols a { font-size: var(--t-small); color: #d8cfc6; }
.footer__cols a:hover { color: var(--vellum); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--t-micro); color: #8d8178; border-top: 1px solid rgba(242,236,227,.14); padding-top: var(--s-5); }

/* Reveal states (JS adds .is-in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(8% 0 8% 0); opacity: 0.001; transition: clip-path 1300ms var(--ease-out), opacity 600ms var(--ease-out); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); opacity: 1; }
.js .hero__title .line > * { transform: translateY(105%); transition: transform 1200ms var(--ease-out); }
.js .is-loaded .hero__title .line > * { transform: none; }
.js .is-loaded .hero__title .line:nth-child(2) > * { transition-delay: 90ms; }
.js .is-loaded .hero__title .line:nth-child(3) > * { transition-delay: 180ms; }
.hero__visual { width: 100%; max-width: min(100%, calc((100svh - 200px) * 0.8)); justify-self: end; }
@media (max-width: 1100px) { .hero__visual { justify-self: start; max-width: min(560px, 100%); } }
