/* ==========================================================================
   Lumiè Nature
   Karanlık bir zemin; ışığı yalnızca ürünlerin renkleri taşır.
   Hero (yörünge) stilleri: orbit.css
   ========================================================================== */

@font-face {
  font-family: "Gambarino";
  src: url("../fonts/gambarino-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #1f0a0f;          /* oxblood siyahı */
  --ink-2: #2a0f16;
  --wine: #4a1322;
  --wine-lit: #6e1f33;     /* etiketlerdeki bordo */
  --text: #f3e7e4;
  --text-2: #c4a8ac;
  --text-3: #8c6c72;

  --display: "Gambarino", "Times New Roman", serif;
  --sans: "Switzer", system-ui, sans-serif;

  --gut: clamp(1rem, 4.5vw, 4.5rem);
  --men: clamp(36px, 5vw, 84px);   /* menisküs yüksekliği */
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --drop: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'><path d='M50 0C50 0 9 60 4 88C0 118 22 140 50 140C78 140 100 118 96 88C91 60 50 0 50 0Z'/></svg>");
  --meniscus: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0 80C300 80 420 0 720 0C1020 0 1140 80 1440 80Z'/></svg>");
  --grain-l: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-d: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1 0 0 0 0 .02 0 0 0 0 .04 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--wine-lit); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--text); color: var(--ink); }
.skip:focus { top: 1rem; }
.anchor { display: block; height: 0; scroll-margin-top: 0; }

/* ---------- ortak: ürün kırpması ----------------------------------------
   --cx/--cy: ürünün fotoğraftaki merkez noktası (0-1)
   --h: ürünün fotoğraf yüksekliğine oranı
   --fill: ürünün kutu yüksekliğinin ne kadarını kaplayacağı               */
.crop { position: relative; overflow: hidden; background: var(--tint, #f3e7e4); isolation: isolate; }
.crop img {
  position: absolute;
  left: var(--ax, 50%);
  top: var(--ay, 50%);
  height: calc(var(--fill, .86) * 100% / var(--h, 1));
  width: auto;
  max-width: none;
  transform: translate(calc(var(--cx, .5) * -100%), calc(var(--cy, .5) * -100%));
  mix-blend-mode: multiply;
}

/* ---------- NAV --------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--gut);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.4rem;
  width: min(100%, 860px);
  padding: .4rem 1.4rem;
  border-radius: 999px;
  background: rgba(31, 10, 15, .0);
  box-shadow: inset 0 0 0 1px rgba(243, 231, 228, 0);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), width .7s var(--ease), padding .5s var(--ease);
}
.nav.is-solid .nav__bar {
  width: min(100%, 720px);
  background: rgba(31, 10, 15, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(110, 31, 51, .55), inset 0 1px 0 rgba(255, 236, 232, .08);
}
.nav__links { display: flex; gap: 1.8rem; font-size: .88rem; }
.nav__links--r { justify-content: flex-end; }
.nav__links a { color: var(--text-2); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-here { color: var(--text); }
.nav__links a.is-here { font-weight: 500; }

/* logo: logo.pdf s.6; damla markanın kendi lila tonunda, yazı metin renginde */
.brand { display: block; line-height: 0; padding: .1rem .3rem; color: var(--text); --logo-mark: #f4c7ff; --logo-sub: var(--text-2); }
.brand svg { display: block; height: 50px; width: auto; }

.nav__menu { display: none; font-size: .9rem; padding: .35rem .2rem; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  background-image: var(--grain-l);
  display: grid; place-items: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: .6rem; text-align: center; }
.mobile-menu a { font: 400 clamp(2.4rem, 11vw, 4rem)/1.1 var(--display); }

/* ---------- STACK (yörünge hero + renk atlası) -------------------------- */
.stack { position: relative; }
.stack .anchor { scroll-margin-top: calc(var(--men) * -1); }
.sheet + .sheet { margin-top: var(--men); }

/* ortak giriş hareketi: içerik hiç gizlenmez, yalnızca yerine oturur */
@keyframes rise { from { transform: translateY(.5em); opacity: .25; } }

/* ---------- RENK ATLASI: üst üste kayan sıvı katmanlar ------------------ */
.sheet {
  position: sticky;
  top: 0;
  z-index: var(--z);
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  background: var(--grain-d), var(--tint);
  color: color-mix(in oklab, var(--deep) 55%, #1b0a0e);
}
/* menisküs: her katmanın üst kenarı bir sıvı yüzeyi gibi kabarır */
.sheet::before,
.drawer__sheet::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--men) * -1 + 1px);
  height: var(--men);
  background: inherit;
  -webkit-mask: var(--meniscus) 0 0 / 100% 100% no-repeat;
  mask: var(--meniscus) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.sheet__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: var(--gut);
  padding: calc(5.6rem + 2svh) var(--gut) clamp(1.6rem, 5svh, 3.2rem);
  background: var(--grain-d), var(--tint);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover, 0) * .06));
}
.sheet__shade {
  position: absolute; inset: 0;
  background: var(--ink);
  opacity: calc(var(--cover, 0) * .2);
  pointer-events: none;
}
.sheet__name {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 3;
  font: 400 clamp(3.6rem, 13.5vw, 15rem)/.86 var(--display);
  letter-spacing: -.015em;
  color: var(--deep);
  white-space: nowrap;
}
.sheet__kind {
  grid-column: 1;
  grid-row: 2;
  margin-top: 1.1rem;
  font: 400 clamp(1.25rem, 2vw, 1.9rem)/1.1 var(--display);
  display: flex; gap: 1rem; align-items: baseline;
}
.sheet__kind span { font: 500 .82rem/1 var(--sans); opacity: .7; }
.sheet__fig {
  grid-column: 2;
  grid-row: 1 / -1;
  mix-blend-mode: multiply;
  align-self: end;
  justify-self: center;
  height: min(108svh, 1180px);
  margin-bottom: calc(clamp(1.6rem, 5svh, 3.2rem) * -1 - 4svh);
  pointer-events: none;
}
.sheet__fig img { height: 100%; width: auto; max-width: none; }
/* not: fotoğrafların neredeyse beyaz zemini dosyada 255'e çekildi (multiply'da sınır kalmaz).
   CSS filtresi kullanılmaz: filtre + multiply animasyonda beyaz çerçeve bırakıyordu. */
.sheet__copy {
  grid-column: 1;
  grid-row: 3;
  max-width: 34rem;
  display: grid;
  gap: 1.3rem;
  align-content: start;
  margin-top: clamp(2rem, 7svh, 4.5rem);
  position: relative;
  z-index: 3;
}
.sheet__copy > p { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.55; max-width: 31em; }
.sheet__idx {
  position: absolute;
  right: var(--gut);
  top: calc(5.6rem + 2svh);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  opacity: .7;
  z-index: 3;
}

/* formül listesi: damla işaretli içerikler */
.formula { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; font-weight: 500; }
.formula li { display: flex; align-items: baseline; gap: .55rem; }
.formula li::before {
  content: "";
  width: 7px; height: 10px;
  flex: none;
  background: currentColor;
  opacity: .55;
  -webkit-mask: var(--drop) 0 0 / 100% 100%;
  mask: var(--drop) 0 0 / 100% 100%;
}
.formula b { font-weight: 500; font-family: var(--display); font-size: 1.15em; }

/* "incele" bağlantısı: ok dışarı kayar, yüzey tonu koyulaşır */
.more {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.3rem .85rem 1.4rem;
  border-radius: 2px 18px 18px 18px;
  background: color-mix(in oklab, var(--deep) 88%, #000);
  color: var(--tint);
  font-size: .9rem; font-weight: 500;
  transition: background .35s var(--ease);
}
.more span { display: inline-block; transition: transform .45s var(--ease); }
.more:hover { background: color-mix(in oklab, var(--deep) 70%, #000); }
.more:hover span { transform: translate(3px, -3px); }

/* ---------- RİTÜEL ------------------------------------------------------- */
.rituel {
  position: relative;
  z-index: 10;
  background:
    var(--grain-l),
    linear-gradient(200deg, rgba(255, 214, 205, .06), transparent 40%),
    var(--ink);
  padding: clamp(6rem, 14vw, 11rem) var(--gut) clamp(5rem, 10vw, 8rem);
}
.rituel__grid {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  row-gap: 3rem;
  max-width: 1500px;
  margin: 0 auto;
}
.rituel__switch { display: grid; align-content: start; gap: .2rem; position: sticky; top: 7rem; }
.rituel__tab {
  justify-self: start;
  font: 400 clamp(2.6rem, 5.6vw, 6rem)/1.02 var(--display);
  color: var(--text-3);
  transition: color .4s var(--ease);
  padding: 0 .1em;
}
.rituel__tab:hover { color: var(--text-2); }
.rituel__tab.is-on { color: var(--text); }
.rituel__set {
  font: 400 clamp(1.9rem, 3.9vw, 4.4rem)/1.32 var(--display);
  letter-spacing: -.005em;
  color: var(--text);
}
.js .rituel__set:not(.is-on) { display: none; }
.no-js .rituel__set + .rituel__set { margin-top: 3rem; }
.rituel__set .w { display: inline; }
.rituel__set.is-on .w,
.rituel__set.is-on .pin { animation: rise .8s var(--ease) both; }

.pin {
  display: inline-block;
  vertical-align: -.26em;
  width: 1.04em;
  height: 1.46em;
  margin: 0 .1em;
  -webkit-mask: var(--drop) 0 0 / 100% 100%;
  mask: var(--drop) 0 0 / 100% 100%;
  --fill: .84;
  --ay: 60%;
  transition: transform .5s var(--ease);
}
.pin img { transition: scale .6s var(--ease); }
.pin:hover img, .pin:focus-visible img { scale: 1.12; }
.rituel__note {
  grid-column: 2;
  font-size: .95rem;
  color: var(--text-2);
}

/* ---------- KOLEKSİYON --------------------------------------------------- */
.koleksiyon {
  position: relative;
  z-index: 10;
  padding: clamp(3rem, 7vw, 6rem) var(--gut) clamp(6rem, 12vw, 10rem);
  background:
    var(--grain-l),
    linear-gradient(180deg, var(--ink), #240b12 60%, var(--ink));
}
.kol__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(2rem, 6vw, 7rem);
  row-gap: 1.6rem;
  max-width: 1500px;
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
}
.kol__title { display: flex; align-items: baseline; gap: .25em; font-weight: 400; }
.kol__num {
  font: 400 clamp(6rem, 17vw, 16rem)/.8 var(--display);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.kol__word { font: 400 clamp(1.6rem, 3vw, 2.8rem)/1 var(--display); color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: flex-end; padding-bottom: .6rem; }
.filter {
  font: 400 clamp(1.15rem, 1.6vw, 1.5rem)/1.2 var(--display);
  color: var(--text-3);
  transition: color .35s var(--ease);
}
.filter sup { font: 500 .62rem/1 var(--sans); margin-left: .3em; vertical-align: .9em; }
.filter:hover { color: var(--text-2); }
.filter.is-on { color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.4rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
  max-width: 1500px;
  margin: 0 auto;
}
.card { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; }
.card:nth-child(4n + 2), .card:nth-child(4n + 4) { margin-top: clamp(2rem, 5vw, 5rem); }
.js .card:nth-child(n) { margin-top: 0; }
.js .card[data-m4="1"], .js .card[data-m4="3"] { margin-top: clamp(2rem, 5vw, 5rem); }
.card.is-hidden { display: none; }
.card.is-show { animation: rise .7s var(--ease) both; }
.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--grain-d), var(--tint);
  border-radius: 2px 2px 46% 46% / 2px 2px 12% 12%;
  /* overflow+border-radius, GPU katmanına alınan (büyüyen) görselin köşesini kesmiyor;
     clip-path her durumda şekle göre keser: köşelerde beyaz fotoğraf zemini görünmez */
  clip-path: inset(0 round 2px 2px 46% 46% / 2px 2px 12% 12%);
  isolation: isolate;
  transition: background-color .5s var(--ease);
  cursor: none;
}
/* fotoğraf + renk zemini AYNI öğede karışır (background-blend-mode).
   Ayrı katmanlı mix-blend-mode, hover animasyonunda GPU katmanına ayrılınca
   kenarlarda beyaz fotoğraf zemini gösteriyordu; bu yöntem bozulamaz. */
.card__media .ph {
  position: absolute; inset: 0;
  background-color: var(--tint);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  transition: opacity .7s var(--ease), transform 1.1s var(--ease);
}
.card__media .alt { opacity: 0; transform: scale(1.04); }
.card__media:hover .ph, .card__media:focus-visible .ph { transform: scale(1.04); }
.card__media:hover .alt, .card__media:focus-visible .alt { opacity: 1; transform: none; }
.card__media:hover .ph:not(.alt):has(+ .alt) { opacity: 0; }
.card__name { margin-top: 1.2rem; font: 400 clamp(1.35rem, 1.7vw, 1.7rem)/1.12 var(--display); }
.card__name span { color: var(--text-2); }
.card__meta { margin-top: .45rem; font-size: .84rem; color: var(--text-2); }
.card__ings { margin-top: .6rem; font-size: .84rem; color: var(--text-3); line-height: 1.45; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 84px; height: 118px;
  margin: -78px 0 0 -42px;
  display: grid; place-items: end center;
  padding-bottom: 30px;
  font-size: .78rem; font-weight: 500;
  color: var(--ink);
  pointer-events: none;
  isolation: isolate;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(var(--s, 0));
  transition: transform .45s var(--ease);
}
.peek::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  -webkit-mask: var(--drop) 0 0 / 100% 100%;
  mask: var(--drop) 0 0 / 100% 100%;
}

/* ---------- İÇERİK SÖZLÜĞÜ --------------------------------------------- */
.icerik {
  position: relative;
  z-index: 10;
  padding: clamp(5rem, 10vw, 9rem) var(--gut);
  background:
    var(--grain-l),
    linear-gradient(242deg, rgba(255, 210, 200, .07) 0%, transparent 38%),
    linear-gradient(180deg, var(--ink), #2b0c16 50%, #1a070c);
}
.icerik__grid {
  display: grid;
  grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.cloud {
  font: 400 clamp(1.7rem, 3.4vw, 3.6rem)/1.28 var(--display);
  color: var(--text-3);
}
.cloud .unit { white-space: nowrap; }
.cloud button { display: inline; text-align: left; transition: color .35s var(--ease); }
.cloud button:hover { color: var(--text-2); }
.cloud button.is-on { color: var(--text); }
.cloud .sep {
  display: inline-block;
  width: .2em; height: .28em;
  margin: 0 .32em;
  vertical-align: .14em;
  background: var(--wine-lit);
  -webkit-mask: var(--drop) 0 0 / 100% 100%;
  mask: var(--drop) 0 0 / 100% 100%;
}
.lens {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: .9rem;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border-radius: 3px 3px 40% 40% / 3px 3px 9% 9%;
  background: linear-gradient(180deg, rgba(110, 31, 51, .34), rgba(74, 19, 34, .22));
  box-shadow: inset 0 1px 0 rgba(255, 228, 222, .09), inset 0 0 0 1px rgba(110, 31, 51, .5);
  padding-bottom: clamp(2.6rem, 4vw, 3.6rem);
}
.lens__name { font: 400 clamp(2rem, 3vw, 3rem)/1.02 var(--display); }
.lens__tr { font-size: .86rem; color: var(--text-2); margin-top: -.4rem; }
.lens__text { color: var(--text-2); max-width: 34ch; }
.lens__count { font-size: .8rem; color: var(--text-3); margin-top: .6rem; }
.lens__list { display: grid; gap: .55rem; }
.lens__list button {
  display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: center;
  text-align: left; width: 100%;
  font-size: .95rem;
  color: var(--text);
}
.lens__list .crop {
  width: 34px; height: 48px;
  -webkit-mask: var(--drop) 0 0 / 100% 100%;
  mask: var(--drop) 0 0 / 100% 100%;
  --fill: .78; --ay: 58%;
}
.lens__list button span { transition: transform .45s var(--ease), color .3s; }
.lens__list button:hover span { transform: translateX(4px); color: #fff; }
.lens.is-swap > * { animation: rise .6s var(--ease) both; }

/* ---------- FOOTER ------------------------------------------------------- */
.foot {
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: var(--grain-l), linear-gradient(180deg, #1a070c, #12050a);
  padding: clamp(4rem, 8vw, 6rem) var(--gut) 0;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2.5fr) minmax(0, 2.5fr) minmax(0, 2fr);
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.foot__about { font: 400 clamp(1.3rem, 1.8vw, 1.75rem)/1.3 var(--display); max-width: 22ch; }
.foot__h { font-size: .8rem; color: var(--text-3); margin-bottom: .9rem; }
.foot__col li + li { margin-top: .35rem; }
.foot__col a { color: var(--text-2); transition: color .3s; }
.foot__col a:hover { color: var(--text); }
.foot__legal { font-size: .8rem; color: var(--text-3); justify-self: end; }
.foot__mark {
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  width: min(88vw, 1500px);
  /* alt kenardan taşar: harflerin tabanı sayfanın dibinin biraz altında kalır
     (viewBox'ta taban çizgisinin altında %8,5 boşluk var) */
  margin-bottom: calc(min(88vw, 1500px) * -.094);
  user-select: none;
}
.foot__mark svg { display: block; width: 100%; height: auto; }

/* ---------- ÜRÜN DETAYI (alttan yükselen sıvı katman) ------------------ */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer[hidden] { display: none; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(14, 3, 7, .62);
  animation: fadein .45s var(--ease) both;
}
@keyframes fadein { from { opacity: 0; } }
.drawer__sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(90svh, 920px);
  background: var(--grain-l), var(--ink-2);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: clamp(1.4rem, 3vw, 2.6rem) var(--gut) clamp(1.4rem, 3vw, 2.6rem);
  animation: sheetup .7s var(--ease) both;
  outline: none;
}
@keyframes sheetup { from { transform: translateY(102%); } }
.drawer.is-closing .drawer__sheet { animation: sheetdown .45s var(--ease-io) both; }
.drawer.is-closing .drawer__scrim { animation: fadeout .45s var(--ease) both; }
@keyframes sheetdown { to { transform: translateY(104%); } }
@keyframes fadeout { to { opacity: 0; } }

.drawer__close {
  position: absolute;
  right: var(--gut);
  top: clamp(1rem, 2vw, 1.6rem);
  z-index: 2;
  font-size: .9rem;
  color: var(--text-2);
  padding: .4rem 0 .4rem 1.6rem;
  transition: color .3s;
}
.drawer__close::before, .drawer__close::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transition: transform .45s var(--ease);
}
.drawer__close::after { transform: rotate(-45deg); }
.drawer__close:hover { color: var(--text); }
.drawer__close:hover::before { transform: rotate(135deg); }
.drawer__close:hover::after { transform: rotate(45deg); }

.drawer__media { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; min-height: 0; }
.drawer__main {
  position: relative;
  min-height: 0;
  background: var(--grain-d), var(--tint, #f3e7e4);
  border-radius: 2px 2px 40% 40% / 2px 2px 10% 10%;
  clip-path: inset(0 round 2px 2px 40% 40% / 2px 2px 10% 10%);
  overflow: hidden;
  isolation: isolate;
}
.drawer__ph {
  position: absolute; inset: 0;
  background: center / contain no-repeat var(--tint, #f3e7e4);
  background-blend-mode: multiply;
}
.drawer__ph.is-in { animation: rise .6s var(--ease) both; }
.drawer__thumbs { display: flex; gap: .8rem; }
.drawer__thumbs button {
  width: 46px; height: 64px;
  -webkit-mask: var(--drop) 0 0 / 100% 100%;
  mask: var(--drop) 0 0 / 100% 100%;
  opacity: .5;
  transition: opacity .3s;
  --fill: .95;
}
.drawer__thumbs button.is-on, .drawer__thumbs button:hover { opacity: 1; }
.drawer__thumbs img { object-fit: cover; }
.drawer__info { display: grid; align-content: center; gap: 1.2rem; max-width: 36rem; overflow-y: auto; padding-right: .4rem; }
.drawer__kind { font-size: .86rem; color: var(--text-2); }
.drawer__name { font: 400 clamp(2.6rem, 5vw, 5rem)/.98 var(--display); }
.drawer__desc { font-size: 1.05rem; color: var(--text-2); max-width: 32em; }
.drawer__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .6rem; }
.drawer__facts dt { font-size: .78rem; color: var(--text-3); }
.drawer__facts dd { font: 400 1.2rem/1.2 var(--display); margin-top: .3rem; }
.drawer__fh { font-size: .78rem; color: var(--text-3); margin-top: .6rem; }
.formula--d { color: var(--text); }
.formula--d li::before { background: var(--dot, var(--text)); opacity: 1; }

/* ---------- RESPONSIVE --------------------------------------------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card:nth-child(4n + 2), .card:nth-child(4n + 4) { margin-top: 0; }
  .card:nth-child(3n + 2) { margin-top: clamp(2rem, 5vw, 4rem); }
  .js .card[data-m4] { margin-top: 0; }
  .js .card[data-m3="1"] { margin-top: clamp(2rem, 5vw, 4rem); }
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .foot__legal { justify-self: start; }
}

@media (max-width: 860px) {
  .nav { inset: 10px 0 auto; }
  .nav__bar { grid-template-columns: auto 1fr; gap: 1rem; padding: .5rem 1.1rem; }
  .nav.is-solid .nav__bar { width: 100%; }
  .nav__links { display: none; }
  .brand svg { height: 42px; }
  .nav__menu { display: block; justify-self: end; }


  .sheet__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding-top: 5.6rem;
  }
  .sheet__name { font-size: clamp(3rem, 17vw, 7rem); }
  .sheet__fig {
    grid-column: 1; grid-row: 3;
    height: 100%;
    max-height: 52svh;
    margin: -1rem 0 0;
    align-self: center;
  }
  .sheet__copy { grid-row: 4; gap: 1rem; margin-top: 0; align-content: end; }
  .sheet__copy > p { display: none; }
  .sheet__idx { top: 5.9rem; }

  .rituel__grid { grid-template-columns: 1fr; }
  .rituel__switch { position: static; display: flex; gap: 1.6rem; }
  .rituel__note { grid-column: 1; }

  .kol__head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(3n + 2) { margin-top: 0; }
  .card:nth-child(2n) { margin-top: 2.5rem; }
  .js .card[data-m4] { margin-top: 0; }
  .js .card[data-m2="1"] { margin-top: 2.5rem; }

  .icerik__grid { grid-template-columns: 1fr; }
  .lens { position: static; }

  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; }

  .drawer__sheet {
    grid-template-columns: 1fr;
    grid-template-rows: 42svh auto;
    overflow-y: auto;
    padding-top: 3.4rem;
  }
  .drawer__info { overflow: visible; }
  .drawer__facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .sheet__copy .formula { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .peek { display: none; }
  .card__media { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sheet__inner { transform: none; }
}

/* ---------- 404 ---------------------------------------------------------- */
.lost {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  padding: 8rem var(--gut) 4rem;
  text-align: center;
  background:
    var(--grain-l),
    linear-gradient(168deg, #2a0e16 0%, var(--ink) 50%, #170609 100%);
}
.lost__mark { width: 74px; color: #f4c7ff; margin-bottom: .6rem; }
.lost__mark svg { display: block; width: 100%; height: auto; }
.lost__title { font: 400 clamp(2.4rem, 6vw, 5rem)/1 var(--display); max-width: 14ch; }
.lost__text { color: var(--text-2); max-width: 34ch; }
.lost__back { --deep: #f3e7e4; --tint: var(--ink); justify-self: center; margin-top: .8rem; }
