/* iamlilithai — pearl glass */
:root {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .46  0 0 0 0 .5  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --pearl: #ECEBE8;
  --mist: #DEDFE1;
  --silver: #B9BCC2;
  --graphite: #232427;
  --soft-ink: #5E6067;
  --lilac: #B8AAE6;
  --white: #FBFBFA;

  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, sans-serif;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --pad: clamp(18px, 3.2vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  background:
    radial-gradient(120% 70% at 50% 0%, #F7F7F5 0%, var(--pearl) 55%, var(--mist) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.satin { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.satin i { position: absolute; border-radius: 50%; filter: blur(60px); }
.satin i:nth-child(1) { width: 46vw; height: 30vw; left: -8vw; top: -6vw; background: #ffffff; }
.satin i:nth-child(2) { width: 38vw; height: 26vw; right: -6vw; top: 4vw; background: #cfd1d6; opacity: .7; }
.satin i:nth-child(3) { width: 50vw; height: 22vw; left: 22vw; top: 30vw; background: #d9dadf; opacity: .6; }
.satin i:nth-child(4) { width: 30vw; height: 30vw; left: 4vw; top: 52vw; background: #ffffff; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; border-radius: 999px; }

/* ---------- 3D frosted glass ---------- */
.glass-el {
  --mx: -200px; --my: -200px;   /* cursor position inside the element */
  --near: 0;                    /* 0..1 how close the cursor is */
  --rx: 0deg; --ry: 0deg;       /* tilt */
  position: relative; isolation: isolate;
  border-radius: 999px;
  background:
    radial-gradient(150px circle at var(--mx) var(--my), rgb(255 255 255 / calc(var(--near) * .95)), rgb(255 255 255 / 0) 72%),
    var(--grain),
    linear-gradient(180deg, rgb(255 255 255 / .42) 0%, rgb(248 248 250 / .22) 55%, rgb(255 255 255 / .32) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow:
    inset 0 0 0 1px rgb(132 138 160 / .28),               /* glass edge line */
    inset 0 2px 1px -0.5px #fff,                          /* top rim */
    inset 0 -2px 1.5px -0.5px rgb(255 255 255 / .9),      /* bottom rim */
    inset 0 0 0 2px rgb(255 255 255 / .35),               /* inner edge glow */
    inset 2px 0 3px -1px rgb(255 255 255 / .7),           /* left edge light */
    inset -3px 0 6px -3px rgb(90 94 120 / .22),           /* right edge refraction */
    inset 0 10px 14px -10px rgb(255 255 255 / .55),       /* upper bevel */
    inset 0 -16px 20px -12px rgb(90 94 120 / .26),        /* lower bevel */
    0 3px 0 -1px rgb(255 255 255 / .9),                   /* slab thickness: lit edge */
    0 5px 0 -1px rgb(168 172 192 / .42),                  /* slab thickness: side */
    0 12px 16px -8px rgb(60 62 82 / .22),
    0 30px 44px -20px rgb(60 62 82 / .38);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  backface-visibility: hidden;
  transition: transform .7s var(--spring), box-shadow .35s var(--ease-out);
}
.glass-el.is-hover { transition: transform .18s linear, box-shadow .35s var(--ease-out); }
/* Chrome/Edge: real frosted distortion of what's behind the glass */
.frost .glass-el {
  -webkit-backdrop-filter: url(#frost) blur(14px) saturate(1.3);
  backdrop-filter: url(#frost) blur(14px) saturate(1.3);
}

/* curved gloss arc */
.glass-el::before {
  content: ""; position: absolute; inset: 1px; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 30% -20%, rgb(255 255 255 / .75), rgb(255 255 255 / 0) 60%);
  opacity: .8;
  -webkit-mask: linear-gradient(180deg, #000 0 50%, transparent 72%);
          mask: linear-gradient(180deg, #000 0 50%, transparent 72%);
}
/* white rim light that follows the cursor */
.glass-el::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: radial-gradient(90px circle at var(--mx) var(--my), #fff 0%, rgb(255 255 255 / .6) 30%, rgb(255 255 255 / 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--near);
  filter: drop-shadow(0 0 4px #fff);
}
.glass-el > * { position: relative; z-index: 1; }

/* pressed: sinks into the page */
.glass-el.is-pressed {
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(3px) scale(.965);
  transition-duration: .12s;
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 0 0 1px rgb(255 255 255 / .55),
    inset 0 8px 14px -6px rgb(104 108 138 / .28),
    inset 0 -8px 12px -8px rgb(255 255 255 / .8),
    0 1px 0 0 rgb(255 255 255 / .9),
    0 2px 0 0 rgb(168 172 192 / .35),
    0 6px 10px -6px rgb(60 62 82 / .3);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border: 0; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  font: 500 15px/1 var(--sans); letter-spacing: -.005em; color: var(--graphite);
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn:focus-visible { outline: 2px solid var(--graphite); outline-offset: 5px; }

/* ---------- big text running behind the frosted bar ---------- */
.marquee {
  --mq-center: 48px;               /* vertical centre of the glass bar */
  position: fixed; left: 0; right: 0; z-index: 19; pointer-events: none;
  top: calc(var(--mq-center) - .5em - .08em);
  font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 120px); line-height: 1;
  letter-spacing: -.03em; color: rgb(35 36 39 / .17); white-space: nowrap; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-run { display: flex; align-items: center; gap: .35em; padding-right: .35em; }
.marquee i { font-style: normal; font-size: .35em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* text running behind any group of glass buttons */
[data-behind] { position: relative; isolation: isolate; }
[data-behind] > :not(.behind) { position: relative; z-index: 1; }
.behind {
  position: absolute; z-index: 0; top: 50%; left: -14px; right: -14px;
  transform: translateY(-52%);
  overflow: hidden; pointer-events: none;
  font-family: var(--serif); font-weight: 300; font-size: 86px; line-height: 1.05;
  letter-spacing: -.03em; color: rgb(35 36 39 / .16); white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.product-foot > .behind { left: 38%; right: -10px; font-size: 72px; }
.behind-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.behind-track span { padding-right: .4em; }
.product:nth-child(2) .behind-track { animation-duration: 40s; animation-direction: reverse; }
.product:nth-child(3) .behind-track { animation-duration: 37s; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 16px var(--pad) auto; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2vw, 28px);
}
.brand { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -.01em; }
.topbar .brand { display: inline-flex; align-items: center; height: 64px; padding: 0 24px; }
@media (max-width: 900px) { .topbar .brand { height: 48px; padding: 0 18px; font-size: 23px; } }

.nav { display: flex; gap: 2px; padding: 6px; border-radius: 30px; }
.nav-link {
  position: relative; z-index: 3;
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 12px; border-radius: 22px;
  font-size: 14.5px; font-weight: 500; color: var(--soft-ink); white-space: nowrap;
  transition: color .35s, transform .5s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.nav-link svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.is-active, .nav-link:hover { color: var(--graphite); }
.nav-link.is-pressed { transform: scale(.93); }

/* the raised glass pill under the active tab, with a white lamp on top */
.nav-pill {
  position: absolute; z-index: 1; top: 6px; left: 0; height: 52px; width: 0; border-radius: 22px;
  background: var(--grain), linear-gradient(180deg, rgb(255 255 255 / .8), rgb(250 250 252 / .55));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgb(132 138 160 / .22),
    inset 0 1.5px 1px #fff,
    inset 0 0 0 2px rgb(255 255 255 / .5),
    inset 0 -10px 14px -10px rgb(104 108 138 / .3),
    0 2px 0 -1px #fff,
    0 3px 0 -1px rgb(168 172 192 / .4),
    0 10px 16px -8px rgb(60 62 82 / .32);
  transition: transform .65s var(--spring), width .65s var(--spring);
}
.nav-pill::before { /* lamp */
  content: ""; position: absolute; top: -6px; left: 50%; width: 34px; height: 4px; margin-left: -17px;
  border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #fff, #eceef3);
  box-shadow: 0 0 0 .5px rgb(150 154 176 / .45), 0 0 8px 1px #fff, 0 0 18px 4px rgb(255 255 255 / .95), 0 2px 6px rgb(104 108 138 / .3);
}
.nav-pill::after { /* beam */
  content: ""; position: absolute; top: -4px; left: 50%; width: 70%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 100%);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  filter: blur(3px);
}

.topbar-actions { justify-self: end; height: 64px; display: flex; gap: 12px; align-items: center; }

/* language: glass segmented switch with a sliding glass knob */
.lang { display: flex; padding: 5px; }
.lang-btn {
  position: relative; z-index: 3;
  width: 46px; height: 38px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .02em; color: var(--soft-ink);
  transition: color .3s;
}
.lang-btn.is-active { color: var(--graphite); }
.lang-knob {
  position: absolute; z-index: 1; top: 5px; left: 5px; width: 46px; height: 38px; border-radius: 999px;
  background: var(--grain), linear-gradient(180deg, rgb(255 255 255 / .85), rgb(250 250 252 / .55));
  box-shadow: inset 0 0 0 1px rgb(132 138 160 / .22), inset 0 1.5px 1px #fff, inset 0 -8px 12px -8px rgb(104 108 138 / .32), 0 2px 0 -1px #fff, 0 3px 0 -1px rgb(168 172 192 / .4), 0 8px 12px -6px rgb(60 62 82 / .3);
  transition: transform .6s var(--spring);
}
.lang[data-on="1"] .lang-knob { transform: translateX(46px); }

/* ---------- hero: Lilith fills the first screen ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-stage { position: absolute; inset: 96px 0 40px; }
#creature { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.creature-shadow {
  position: absolute; left: 50%; top: 74%;
  width: 260px; height: 34px; margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40,40,60,.22), transparent);
  filter: blur(6px);
  transform: scale(var(--shadow, 1));
  pointer-events: none;
}
.lilith-toast {
  position: absolute; left: 50%; bottom: 78px; translate: -50% 10px; z-index: 4;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--graphite);
  background: var(--grain), linear-gradient(180deg, rgb(255 255 255 / .8), rgb(250 250 252 / .6));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(132 138 160 / .22), 0 10px 20px -10px rgb(60 62 82 / .35);
  opacity: 0; transition: opacity .35s, translate .5s var(--spring); pointer-events: none;
}
.lilith-toast.show { opacity: 1; translate: -50% 0; }

/* ---------- intro (after the first screen) ---------- */
.intro {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
  padding: clamp(60px, 10vh, 120px) var(--pad) clamp(40px, 6vh, 80px);
}
.hero-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3;
  margin: 0; font-size: 13px; color: var(--soft-ink); white-space: nowrap; pointer-events: none;
  opacity: 0; animation: fadeIn 1s 1.2s var(--ease-out) forwards;
}
.hero-copy { position: relative; }
.hero-title {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 6.4vw, 112px);
  line-height: .92; letter-spacing: -.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero-title .line > span {
  display: inline-block; transform: translateY(105%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }

.hero-side {
  justify-self: end;
  max-width: 360px; position: relative;
  opacity: 0; animation: fadeIn 1s .7s var(--ease-out) forwards;
}
.hero-side p { margin: 0 0 20px; color: var(--soft-ink); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 0; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- products ---------- */
.products { padding: clamp(80px, 12vh, 140px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2, .placeholder h2 {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em;
}
.section-head p { margin: 0; max-width: 420px; color: var(--soft-ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.product { display: flex; flex-direction: column; gap: 22px; }
.product-pod {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 46% 46% 36px 36px / 34% 34% 36px 36px;
  background:
    radial-gradient(80% 60% at 50% 30%, #fff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #F3F3F1, #E2E3E5);
  box-shadow: inset 0 1px 0 #fff, inset 0 -20px 40px rgba(30,32,40,.05);
  display: grid; place-items: center;
  overflow: hidden;
}
.tag {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--white);
  background: rgba(35,36,39,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pod-icon {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--graphite);
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.35));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 10px rgba(255,255,255,.25),
    0 0 0 1px rgba(255,255,255,.7),
    0 30px 50px -24px rgba(30,32,40,.4);
  transition: transform .7s var(--spring);
}
.pod-icon::before {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(35,36,39,.18);
}
.pod-icon svg { width: 34%; height: 34%; position: relative; }
.product:hover .pod-icon { transform: translateY(-6px) rotate(-4deg); }

.product-body h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.05; letter-spacing: -.015em; }
.product-body p { margin: 0 0 18px; color: var(--soft-ink); font-size: 15px; max-width: 38ch; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.price { font-weight: 500; }

/* ---------- placeholders & footer ---------- */
.placeholder { padding: 80px var(--pad); border-top: 1px solid rgba(35,36,39,.08); }
.placeholder p { color: var(--soft-ink); }

.footer { padding: 60px var(--pad) 28px; border-top: 1px solid rgba(35,36,39,.08); }
.footer-main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer-main p { margin: 0; color: var(--soft-ink); flex: 1; min-width: 220px; }
.footer-links { display: flex; gap: 10px; padding: 14px 18px; }
.footer-legal { margin-top: 40px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--soft-ink); }
.footer-legal a:hover { color: var(--graphite); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; row-gap: 10px; inset: 12px 12px auto; }
  .topbar-actions { height: auto; }
  .btn-write { display: none; }
  .nav { grid-column: 1 / -1; grid-row: 2; }
  .nav-link { height: 46px; padding: 0 4px; font-size: 13px; border-radius: 20px; }
  .nav-pill { height: 46px; border-radius: 20px; }
  .marquee { --mq-center: 92px; }
  .hero-stage { inset: 150px 0 50px; }
  .intro { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; }
  .hero-hint { white-space: normal; width: 86%; text-align: center; }
  .product-grid { grid-template-columns: 1fr; max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


