/* Orvelle — concept luxury leather goods. Cream silk, thin serif, bags that float. */
:root {
  --cream: #EFEAE2;
  --cream-2: #E6DFD4;
  --paper: #F7F4EF;
  --ink: #1B1714;
  --ink-2: #2A2420;
  --muted: #7A7067;
  --line: #D8CFC3;
  --gold: #B08D57;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.caps { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.01em; }
.h2 em, h1 em { font-style: italic; }
.sec { position: relative; padding: clamp(80px, 12vw, 160px) var(--pad); }
.label { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.btn:hover { background: var(--gold); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }

/* Custom cursor */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input { cursor: text !important; }
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; color: #fff; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border: 1px solid #fff; border-radius: 50%; transition: transform .5s var(--ease); }
.cursor__ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; }
.cursor__label { position: absolute; left: 28px; top: -6px; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.cursor.has-label .cursor__ring { transform: scale(1.7); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 150; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--ink); color: var(--cream); transition: clip-path 1.1s var(--ease-io); clip-path: inset(0); animation: safe 0s 6s forwards; }
@keyframes safe { to { visibility: hidden; } }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__word { overflow: hidden; }
.loader__word span { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 14vw, 200px); letter-spacing: .14em; line-height: 1; padding-left: .14em; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.loader.is-on .loader__word span { transform: none; }
.loader__sub { display: flex; gap: 28px; color: var(--muted); }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 var(--pad); color: var(--cream); mix-blend-mode: difference; }
.top__menu { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.top__menu i { display: grid; gap: 5px; width: 20px; }
.top__menu i::before, .top__menu i::after { content: ''; height: 1px; background: currentColor; }
.top__logo { font-family: var(--serif); font-size: 26px; letter-spacing: .32em; padding-left: .32em; }
.top__bag { justify-self: end; }
.menu { position: fixed; inset: 0; z-index: 70; display: grid; align-content: center; gap: 40px; padding: 0 var(--pad); background: var(--ink); color: var(--cream); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
.menu.is-open { clip-path: inset(0); }
.menu__close { position: absolute; top: 22px; right: var(--pad); }
.menu ol { display: grid; gap: 6px; }
.menu a { display: flex; align-items: baseline; gap: 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 8vw, 96px); line-height: 1.05; transition: color .3s, padding-left .5s var(--ease); }
.menu a:hover { color: var(--gold); padding-left: 16px; }
.menu a .caps { color: var(--muted); }
.menu__foot { color: var(--muted); }

/* Hero: collections in chapters */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.silk { position: absolute; inset: -20%; filter: blur(8px); animation: silk 18s ease-in-out infinite alternate;
  background: radial-gradient(40% 30% at 30% 40%, rgba(255,255,255,.95), transparent 70%), radial-gradient(35% 25% at 72% 62%, rgba(201,186,165,.55), transparent 70%), radial-gradient(50% 35% at 55% 22%, rgba(236,229,219,.85), transparent 70%), radial-gradient(45% 30% at 18% 82%, rgba(214,203,188,.6), transparent 70%), var(--cream); }
.silk::after { content: ''; position: absolute; inset: 0; mix-blend-mode: soft-light; background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 24px, rgba(255,255,255,.4) 32px, rgba(255,255,255,0) 44px 76px); animation: sheen 26s linear infinite; }
@keyframes silk { to { transform: translate(4%, -3%) rotate(3deg) scale(1.05); } }
@keyframes sheen { to { background-position: 700px 0; } }
.hero__intro { position: absolute; z-index: 2; top: 84px; left: 0; right: 0; text-align: center; color: var(--muted); }
.hero__stage { position: absolute; inset: 0; z-index: 2; perspective: 1100px; }
.bag { position: absolute; overflow: hidden; border-radius: 999px 999px 18px 18px; background: var(--cream-2); box-shadow: 0 60px 80px -50px rgba(40, 28, 18, .55); transform-style: preserve-3d; animation: bob 6s ease-in-out infinite; }
.bag img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(calc(var(--ry, 0deg) * -0.5px), calc(var(--rx, 0deg) * 0.5px)); transition: transform .6s var(--ease); }
.bag--main { left: 50%; top: 40%; width: min(26vw, 30svh, 330px); aspect-ratio: 3 / 4; margin-left: calc(min(26vw, 30svh, 330px) / -2); transform: translateY(-50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); z-index: 2; }
.bag--side { width: min(15vw, 190px); aspect-ratio: 3 / 4; opacity: .95; }
.bag--a { left: 12%; top: 22%; animation-delay: -2s; }
.bag--b { right: 13%; top: 48%; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -14px; } }
.hero__stage.out .bag { opacity: 0; filter: blur(14px); scale: .9; transition: opacity .6s var(--ease-io), filter .6s, scale .6s var(--ease-io); }
.hero__stage.in .bag { animation: bob 6s ease-in-out infinite, bagin 1.2s var(--ease) both; }
.hero__stage.in .bag--a { animation-delay: -2s, .1s; }
.hero__stage.in .bag--b { animation-delay: -4s, .18s; }
@keyframes bagin { from { opacity: 0; filter: blur(16px); scale: 1.08; } }
.hero__title { position: absolute; z-index: 3; left: 0; right: 0; bottom: 5svh; display: grid; justify-items: center; gap: 12px; text-align: center; pointer-events: none; }
.hero__title h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6.6vw, 100px); line-height: .9; }
.hero__title h1 .ln:nth-child(2) { font-size: .34em; line-height: 1.5; }
.hero__title h1 em { font-size: 1em; letter-spacing: .02em; color: var(--muted); }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .ln > * { display: inline-block; }
.hero__title.out .ln > * { transform: translateY(105%); transition: transform .6s var(--ease-io); }
.hero__title.in .ln > * { animation: up 1.1s var(--ease) both; }
.hero__title.in .ln:nth-child(2) > * { animation-delay: .08s; }
@keyframes up { from { transform: translateY(105%); } }
.hero__chap { color: var(--muted); }
.hero__buy { display: flex; align-items: center; gap: 18px; margin-top: 6px; pointer-events: auto; }
.hero__price { font-family: var(--serif); font-size: 26px; }
.chapters { position: absolute; z-index: 4; right: var(--pad); top: 50%; display: grid; gap: 10px; transform: translateY(-50%); }
.chapters button { width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 18px; opacity: .3; transition: opacity .4s, background-color .4s, color .4s; }
.chapters button:hover { opacity: 1; }
.chapters button[aria-pressed="true"] { opacity: 1; background: var(--ink); color: var(--cream); }
.hero__nav { position: absolute; z-index: 4; left: var(--pad); bottom: 24px; display: flex; gap: 22px; }
.hero__nav button { padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.hero__down { position: absolute; z-index: 4; right: var(--pad); bottom: 24px; }
[data-in] { opacity: 0; transition: opacity 1s .4s; }
.is-ready [data-in] { opacity: 1; }
@media (max-width: 767px) {
  .bag--main { width: 50vw; top: 34%; margin-left: -25vw; }
  .bag--side { width: 26vw; }
  .bag--a { left: 4%; top: 15%; }
  .bag--b { right: 4%; top: 50%; }
  .chapters { top: auto; bottom: 74px; transform: none; display: flex; left: 0; right: 0; justify-content: center; }
  .hero__title { bottom: 128px; }
  .hero__nav { display: none; }
}

/* Ribbon */
.ribbon { overflow: hidden; padding: 18px 0; background: var(--ink); color: var(--cream); white-space: nowrap; }
.ribbon div { display: inline-flex; align-items: center; gap: 36px; font-family: var(--serif); font-size: 26px; font-style: italic; animation: run 40s linear infinite; }
.ribbon i { font-style: normal; color: var(--gold); font-size: 14px; }
@keyframes run { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto { background: var(--paper); }
.manifesto__text { max-width: 20ch; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.06; }
.mw { color: rgba(27, 23, 20, calc(.14 + .86 * var(--on, 0))); }

/* Split titles */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.is-in .sw > span { transform: none; }

/* Shop grid */
.shop { background: var(--cream); }
.shop__head { display: grid; gap: 24px; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 14px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 56px 24px; } }
.card { position: relative; opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.card.is-in { opacity: 1; transform: none; }
.card.is-hidden { display: none; }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 14px 14px; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 44px; border-radius: 999px; background: rgba(247,244,239,.92); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transform: translateY(140%); transition: transform .5s var(--ease); }
.card:hover .card__quick, .card__quick:focus-visible { transform: none; }
@media (pointer: coarse) { .card__quick { transform: none; } }
.card__info { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.card__name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.card__name small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.card__price { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* Atelier */
.atelier { background: var(--paper); }
.atelier .h2 { margin-bottom: 64px; }
.steps { position: relative; display: grid; gap: 48px; }
.steps__line { position: absolute; left: 0; right: 0; top: -24px; width: 100%; height: 10px; overflow: visible; }
.steps__line path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step__n { margin-top: 18px; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold); }
.step h3 { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.step p:last-child { margin-top: 8px; max-width: 34ch; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } .step:nth-child(3) { margin-top: 80px; } .step:nth-child(4) { margin-top: 160px; } }

/* Feature: image grows as you scroll */
.feature { position: relative; height: 200vh; background: var(--ink); color: var(--cream); }
.feature__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.feature__img { position: absolute; inset: 0; margin: auto; width: calc(46vw + 54vw * var(--f, 0)); height: calc(56vh + 44vh * var(--f, 0)); border-radius: calc(28px * (1 - var(--f, 0))); overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - .25 * var(--f, 0))); }
.feature__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,23,20,.8), rgba(27,23,20,.1) 60%); opacity: var(--f, 0); }
.feature__txt { position: relative; z-index: 2; justify-self: start; display: grid; gap: 18px; max-width: 420px; padding: 0 var(--pad); opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 30px)); }
.specs { display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(239,234,226,.2); }
.specs dt { color: rgba(239,234,226,.6); }
.specs dd { margin: 0; text-align: right; }

/* Lookbook */
.look { background: var(--cream); padding-left: 0; padding-right: 0; }
.look__head { padding: 0 var(--pad); }
.look__track { display: flex; gap: 16px; padding: 40px var(--pad) 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.look__track::-webkit-scrollbar { display: none; }
.shot { flex: none; width: min(68vw, 420px); scroll-snap-align: center; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { margin-top: 12px; color: var(--muted); }
.look__bar { height: 1px; margin: 0 var(--pad); background: var(--line); }
.look__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--lp, .2)); }

/* Newsletter */
.news { background: var(--paper); text-align: center; display: grid; justify-items: center; gap: 22px; }
.news__form { display: flex; gap: 10px; width: min(520px, 100%); }
.news__form input { flex: 1; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.news__note { color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: var(--cream); padding: 64px var(--pad) 0; overflow: hidden; }
.foot__cols { display: grid; gap: 24px; font-size: 14px; color: rgba(239,234,226,.65); }
.foot__cols b { color: var(--cream); }
@media (min-width: 900px) { .foot__cols { grid-template-columns: repeat(3, 1fr); } }
.foot__word { overflow: hidden; margin-top: 48px; }
.foot__word span { display: block; font-family: var(--serif); font-weight: 300; font-size: 21vw; line-height: .78; letter-spacing: .04em; text-align: center; transform: translateY(calc((1 - var(--m, 0)) * 60%)); }

/* Bag drawer */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(27,23,20,.4); opacity: 0; transition: opacity .4s; }
.drawer.is-open { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); transform: translateX(100%); transition: transform .6s var(--ease-io); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__lines { overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 40px 40px 8px 8px; }
.line b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.line small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; }
.drawer__empty { padding: 40px 0; color: var(--muted); text-align: center; }
.drawer__foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-size: 26px; }
.drawer__note { text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); opacity: 0; transform: translate(-50%, 200%); transition: transform .5s var(--ease), opacity .3s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
