/* Obsidian caviar page, Hylé art direction */
:root {
  --ink: #060607; --bone: #ecebe7; --mute: #8d8c88; --dim: #5b5a57; --gold: #c9a45c; --line: rgba(236,235,231,.12);
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(22px, 3.2vw, 56px);
  --ease: cubic-bezier(.2,.7,.1,1);
}
*, *::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: hidden; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
.eyebrow { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.eyebrow--dim { color: var(--dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bone); color: #0b0b0b; padding: 17px 34px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; transition: background .5s var(--ease), color .5s; }
.btn:hover { background: #fff; }
.btn--full { width: 100%; }
.link { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .4s, border-color .4s; }
.link:hover { color: var(--bone); border-color: var(--bone); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity 1.1s var(--ease) .2s, visibility 1.1s .2s; }
.loader img { width: 74px; opacity: .9; animation: breathe 2.4s ease-in-out infinite; }
.loader span { font-family: var(--serif); letter-spacing: .5em; padding-left: .5em; font-size: 22px; color: var(--bone); }
@keyframes breathe { 50% { opacity: .45; } }
.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- scene ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease) .3s; }
.is-loaded #scene { opacity: 1; }
main, .foot { position: relative; z-index: 2; }
main { pointer-events: none; }
main a, main button, main .details__card, main .g-card, main .piece-card { pointer-events: auto; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px var(--pad); transition: background .6s, padding .6s var(--ease); }
.top.is-scrolled { background: linear-gradient(180deg, rgba(6,6,7,.92), rgba(6,6,7,0)); padding-block: 18px; }
.top__mark { font-family: var(--serif); font-size: 19px; letter-spacing: .42em; }
.top__nav { display: flex; gap: clamp(20px, 3vw, 44px); margin-left: auto; }
.top__nav a { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--bone); padding-bottom: 6px; border-bottom: 1px solid transparent; transition: border-color .4s, color .4s; }
.top__nav a:hover, .top__nav a.is-on { border-color: var(--bone); }
.top__end { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 6px; font-size: 10.5px; letter-spacing: .2em; color: var(--dim); }
.lang button { letter-spacing: .2em; color: var(--dim); }
.lang button.is-on { color: var(--bone); }
.top__cart { color: var(--bone); display: grid; }
.top__burger { display: none; width: 32px; height: 14px; position: relative; }
.top__burger i { position: absolute; left: 0; right: 0; height: 1px; background: var(--bone); transition: transform .5s var(--ease), top .5s var(--ease); }
.top__burger i:first-child { top: 2px; } .top__burger i:last-child { top: 11px; }
.menu-open .top__burger i:first-child { top: 7px; transform: rotate(45deg); }
.menu-open .top__burger i:last-child { top: 7px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 35; background: rgba(6,6,7,.97); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 var(--pad); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu a { font-family: var(--serif); font-size: clamp(30px, 6vw, 54px); line-height: 1.1; }
.menu .menu__sub { font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); padding-left: 4px; }

/* ---------- hero ---------- */
.p-hero { position: relative; height: 100svh; min-height: 640px; }
.p-hero__stage { position: absolute; inset: 15% 18% 22% 18%; pointer-events: auto; cursor: grab; }
.back { position: absolute; top: 96px; left: var(--pad); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.back:hover { color: var(--bone); }
.view { position: absolute; top: 88px; right: var(--pad); display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(236,235,231,.35); border-radius: 999px; padding: 12px 22px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; transition: border-color .4s, background .4s; }
.view:hover { border-color: var(--bone); background: rgba(236,235,231,.04); }
.view__dots { display: inline-flex; gap: 4px; }
.view__dots b { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); transition: transform .6s var(--ease); }
.is-exploded .view__dots b:first-child { transform: translateX(-2px) rotate(45deg); }
.is-exploded .view__dots b:last-child { transform: translateX(2px) rotate(45deg); }
.p-hero__hint { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); white-space: nowrap; transition: opacity .6s; }
body:not(.is-exploded) .p-hero__hint { top: auto; left: auto; right: var(--pad); bottom: calc(10vh + 74px); transform: none; }
body:not(.is-exploded) .p-hero__hint::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mute); margin-right: 12px; vertical-align: middle; }
.p-hero__text { position: absolute; left: var(--pad); bottom: 10vh; max-width: 560px; transition: opacity .6s; }
.p-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 8.6vw, 128px); line-height: .92; letter-spacing: -.01em; margin: 16px 0 22px; }
.p-hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: #b6b4ae; max-width: 30em; }
.p-hero__cta { position: absolute; right: var(--pad); bottom: 10vh; }
.p-hero__text, .p-hero__cta, .back, .view, .p-hero__hint { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.is-loaded .p-hero__text, .is-loaded .p-hero__cta, .is-loaded .back, .is-loaded .view { opacity: 1; transform: none; transition-delay: .9s; }
.is-loaded .p-hero__hint { opacity: 1; transition-delay: 1.4s; }
body:not(.is-exploded).is-loaded .p-hero__hint { transform: none; }
.is-exploded.is-loaded .p-hero__hint { transform: translateX(-50%); }
.past-hero .view, .past-hero .p-hero__hint, .past-hero .pieces { opacity: 0 !important; pointer-events: none; }

/* labels of the exploded view */
.pieces { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.piece { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; pointer-events: auto; opacity: 0; transition: opacity .5s; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--bone); white-space: nowrap; will-change: transform; }
.piece i { width: 9px; height: 9px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 5px rgba(236,235,231,.12), 0 0 18px rgba(255,240,210,.55); flex: 0 0 auto; transform: translate(-50%, 0); }
.piece span { text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.piece.is-focus i { background: var(--gold); box-shadow: 0 0 0 6px rgba(201,164,92,.22), 0 0 22px rgba(201,164,92,.7); }
body:not(.is-exploded) .piece { pointer-events: none; }
.piece-card { position: absolute; left: var(--pad); top: 50%; width: min(330px, 80vw); transform: translate(-12px, -50%); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; z-index: 4; }
.piece-card.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.piece-card__title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin-bottom: 12px; }
.piece-card__text { color: #b6b4ae; font-size: 14px; }
.piece-card__close { position: absolute; top: -6px; right: 0; font-size: 22px; color: var(--mute); }
.piece-card.is-open ~ .p-hero__text { opacity: 0; }

/* ---------- anatomy ---------- */
.aside-step { height: 70vh; }
.anat__step { min-height: 120vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) 18vh; max-width: 560px; }
.anat__step:first-child { min-height: 110vh; }
.anat__step > * { position: relative; z-index: 1; }
.anat__step::before { content: ""; position: sticky; display: block; height: 0; }
.anat { position: relative; }
.anat::before { content: ""; position: sticky; top: 0; display: block; height: 100vh; margin-bottom: -100vh; width: 46vw; pointer-events: none; background: linear-gradient(90deg, rgba(6,6,7,.78), rgba(6,6,7,.35) 60%, transparent); }
.anat__n { font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--mute); margin: 18px 0 10px; }
.anat__n i { font-style: normal; margin: 0 .6em; }
.anat__step h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; margin-bottom: 20px; }
.anat__text { font-size: 15px; line-height: 1.7; color: #b6b4ae; max-width: 26em; }

/* ---------- gallery ---------- */
.gallery { height: 340vh; position: relative; }
.gallery__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1400px; background: linear-gradient(180deg, rgba(6,6,7,0), rgba(6,6,7,.86) 22%, rgba(6,6,7,.9) 80%, rgba(6,6,7,0)); }
.gallery__head { position: absolute; top: 16vh; left: var(--pad); z-index: 200; display: grid; gap: 8px; }
.gallery__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; }
.gallery__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.g-card { position: absolute; left: 50%; top: 56%; width: min(28vw, 340px); aspect-ratio: 3 / 4; cursor: pointer; transform-style: preserve-3d; transition: filter .6s; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); will-change: transform; }
.g-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-card:not(.is-front) { filter: brightness(.62) saturate(.85); }

/* ---------- details ---------- */
.details { min-height: 120vh; display: flex; align-items: center; padding: 14vh var(--pad); }
.details__card { width: min(470px, 100%); border: 1px solid var(--line); padding: clamp(28px, 3vw, 44px); background: rgba(6,6,7,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.details__card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 58px); line-height: 1; margin: 14px 0 26px; }
.details__list { list-style: none; }
.details__list li { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.details__list li > span:first-child { color: var(--mute); }
.details__list em { font-family: var(--serif); }
.buy { margin-top: 30px; display: grid; gap: 16px; }
.buy__weights { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.w { font-size: 13px; letter-spacing: .08em; color: var(--mute); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.w:hover { color: var(--bone); }
.w.is-on { color: var(--bone); border-color: var(--bone); }
.buy__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0 6px; }
.qty { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; }
.qty button { color: var(--mute); font-size: 18px; width: 22px; } .qty button:hover { color: var(--bone); }
.buy__price { font-family: var(--serif); font-size: 36px; line-height: 1; text-align: right; display: grid; }
.buy__price small { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.buy .link { justify-self: start; margin-top: 4px; }
.details__note { margin-top: 26px; font-size: 12px; color: var(--dim); }

.pager { display: flex; justify-content: space-between; padding: 6vh var(--pad) 14vh; }
.pager a { display: grid; gap: 6px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); transition: color .4s; }
.pager a:last-child { text-align: right; }
.pager a:hover { color: #fff; }
.pager small { font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* ---------- grain sheet ---------- */
.grain { position: fixed; z-index: 60; right: var(--pad); top: 50%; width: min(380px, calc(100vw - 2 * var(--pad))); max-height: 82vh; overflow-y: auto; transform: translate(30px, -50%); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), transform .7s var(--ease), visibility .6s; background: rgba(8,8,9,.9); border: 1px solid var(--line); padding: 34px 32px 28px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.grain.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.grain__close { position: absolute; top: 20px; right: 22px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.grain__close:hover { color: var(--bone); }
.grain__pearl { display: block; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 22px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.95), inset 0 -5px 12px rgba(0,0,0,.55); animation: pearl 4s ease-in-out infinite; }
@keyframes pearl { 50% { transform: translateY(-4px); } }
.grain h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; margin: 10px 0 14px; }
.grain__intro { color: #b6b4ae; font-size: 13.5px; margin-bottom: 18px; }
.grain dl div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.grain dt { color: var(--mute); }

/* ---------- footer ---------- */
.foot { padding: 12vh var(--pad) 0; overflow: hidden; background: linear-gradient(180deg, rgba(6,6,7,0), var(--ink) 30%); }
.foot__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 22px; }
.foot__brand img { width: 46px; opacity: .9; }
.foot__brand p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; max-width: 14em; }
.foot__cols { display: flex; gap: clamp(40px, 6vw, 110px); }
.foot__cols div { display: grid; gap: 12px; align-content: start; }
.foot__cols a { font-size: 13px; color: var(--mute); transition: color .4s; }
.foot__cols a:hover { color: var(--bone); }
.foot__word { font-family: var(--serif); font-size: clamp(90px, 22vw, 340px); line-height: .78; letter-spacing: .04em; color: rgba(236,235,231,.06); text-align: center; margin-top: 8vh; white-space: nowrap; transform: translateY(12%); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .top__nav, .top__cart { display: none; }
  .top__burger { display: block; }
  .p-hero__stage { inset: 14% 0 30% 0; }
  .view { top: 84px; right: var(--pad); padding: 9px 14px; font-size: 9.5px; }
  .p-hero__hint { display: none; }
  .p-hero__text { right: var(--pad); bottom: 15vh; }
  .p-hero__cta { left: var(--pad); right: var(--pad); bottom: 5vh; }
  .p-hero__cta .btn { width: 100%; }
  .piece span { font-size: 13px; }
  .piece-card { top: auto; bottom: 14vh; transform: translate(0, 12px); }
  .piece-card.is-open { transform: none; }
  .anat__step { padding-bottom: 10vh; }
  .anat__step > * { position: relative; }
  .anat__step { background: linear-gradient(180deg, transparent 55%, rgba(6,6,7,.75) 85%); }
  .g-card { width: 62vw; }
  .details { padding-top: 40vh; align-items: flex-end; }
  .grain { right: 12px; left: 12px; top: auto; bottom: 12px; width: auto; transform: translateY(30px); max-height: 78vh; }
  .grain.is-open { transform: none; }
  .foot__brand { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
.no-webgl #scene, .no-webgl .view, .no-webgl .p-hero__hint { display: none; }
.top__mark { display: inline-grid; justify-items: center; line-height: 1; }
.top__mark small { font-family: var(--sans); font-size: 8px; letter-spacing: .5em; margin-top: 6px; padding-left: .5em; color: var(--mute); }
