/* ============================================================
   SKROLL — fablevi.skroll.ro
   Light · neutrale calde (vibe Osmo) · accent indigo/violet
   WebGL aurora pastel · liquid glass alb
   ============================================================ */

:root {
  --bg: #f2f1ef;
  --bg-soft: #efeeec;
  --ink: #131313;
  --muted: #5f5e5c;
  --faint: #818180;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --accent: #6d28d9;
  --cyan: #0e7490;
  --line: rgba(19, 19, 19, .09);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 26px;
  --pad: clamp(20px, 5vw, 72px);
  --mx: 50%;
  --my: 50%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: rgba(19, 19, 19, .35) var(--bg-soft); }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 58, 237, .22); color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- straturi de fundal ---------- */

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 45%, rgba(242, 241, 239, .5) 100%),
    linear-gradient(180deg, rgba(242, 241, 239, .05), rgba(242, 241, 239, .3));
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(2%, -1%); }
  66% { transform: translate(-1%, 2%); }
  100% { transform: translate(1%, 1%); }
}

.glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- liquid glass (alb, pe fundal deschis) ---------- */

.glass {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(19, 19, 19, .08);
  background:
    radial-gradient(160px 160px at var(--mx) var(--my), rgba(255, 255, 255, .75), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .3) 55%, rgba(124, 58, 237, .05));
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow:
    0 18px 44px rgba(19, 19, 19, .07),
    0 2px 8px rgba(19, 19, 19, .04),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .25);
}

/* refracție lichidă — doar unde backdrop-filter: url() chiar funcționează */
@supports (backdrop-filter: url(#liquidGlass)) {
  .glass--refract {
    backdrop-filter: url(#liquidGlass) blur(11px) saturate(1.5);
    -webkit-backdrop-filter: url(#liquidGlass) blur(11px) saturate(1.5);
  }
}

/* muchie specular — inelul care "prinde" lumina, ușor violet pe light */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(220px 220px at var(--mx) var(--my), rgba(109, 40, 217, .35), transparent 65%);
  opacity: 0;
  transition: opacity .45s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1.5px;
}
.glass:hover::after { opacity: 1; }

/* ---------- cursor ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
  body { cursor: none; }
  a, button { cursor: none; }
  .cursor__dot {
    position: absolute;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--ink);
  }
  .cursor__ring {
    position: absolute;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 1.5px solid rgba(19, 19, 19, .35);
    display: grid;
    place-items: center;
    transition: width .3s ease, height .3s ease, margin .3s ease, background-color .3s ease, border-color .3s ease;
  }
  .cursor__ring span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .cursor--link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(124, 58, 237, .12); border-color: rgba(124, 58, 237, .6); }
  .cursor--view .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(242, 241, 239, .8); border-color: rgba(19, 19, 19, .55); }
  .cursor--view .cursor__ring span { opacity: 1; }
  .cursor--view .cursor__dot { opacity: 0; }
}

/* ---------- butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, background-color .3s ease, color .3s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 26px rgba(19, 19, 19, .22);
}
.btn--primary:hover {
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(109, 40, 217, .32);
}
.btn--ghost {
  border: 1px solid rgba(19, 19, 19, .22);
  color: var(--ink);
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .75); border-color: rgba(19, 19, 19, .4); }
.btn--small { padding: 11px 22px; font-size: 13.5px; }

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: .14em;
  color: var(--ink);
}
.preloader__logo sup { font-size: .35em; color: var(--accent); }
.preloader__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(1160px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .12em;
}
.nav__logo sup { font-size: .5em; color: var(--accent); }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .35s ease, translate .35s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(242, 241, 239, .86);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 10vw, 56px);
  line-height: 1.25;
  color: var(--ink);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
}
.menu.is-open .menu__links a { transform: translateY(0); opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .18s; }
.menu__meta { color: var(--faint); font-size: 13px; font-family: var(--font-mono); }

/* ---------- layout comun ---------- */

.section { padding: clamp(110px, 16vh, 190px) var(--pad); max-width: 1320px; margin: 0 auto; }

.section__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.section__label::before { content: "● "; font-size: 8px; vertical-align: 3px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: clamp(40px, 7vh, 80px);
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px var(--pad) 80px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 9.2vw, 122px);
  line-height: 1.0;
  letter-spacing: -.025em;
  max-width: 12ch;
  margin-bottom: 34px;
  color: var(--ink);
}

/* accent solid (nu gradient-clip — titlurile astea se animă per literă) */
.title-accent { color: var(--accent); }

.hero__sub {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-bottom: 44px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 72px; height: 1px;
  background: rgba(19, 19, 19, .14);
  overflow: hidden;
}
.hero__scroll-line i {
  display: block;
  width: 40%; height: 100%;
  background: var(--accent);
  animation: scrollhint 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scrollhint {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(255, 255, 255, .4);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 28px);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.marquee__track em { font-style: normal; color: var(--accent); padding: 0 18px; }

/* ---------- despre ---------- */

.about__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 54px);
  line-height: 1.22;
  letter-spacing: -.015em;
  max-width: 22ch;
  margin-bottom: clamp(44px, 7vh, 72px);
}
.about__text .w { opacity: .14; display: inline-block; }

.about__chips { display: flex; gap: 16px; flex-wrap: wrap; }
.chip {
  padding: 18px 26px;
  border-radius: 18px;
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.chip strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--ink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- servicii ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.service {
  padding: clamp(30px, 4vw, 52px);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  transform-style: preserve-3d;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .18em;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.01em;
  margin: 18px 0 16px;
}
.service p { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.service ul { display: grid; gap: 12px; }
.service li {
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}
.service li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 3px;
}

/* ---------- proces ---------- */

.process { position: relative; }
.process__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 90px 0;
}
.process__head { padding: 0 var(--pad); max-width: 1320px; margin: 0 auto; width: 100%; }
.process__head .section__title { margin-bottom: clamp(30px, 6vh, 60px); }
.process__track {
  display: flex;
  gap: clamp(18px, 2.5vw, 30px);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.step {
  width: clamp(280px, 34vw, 460px);
  padding: clamp(28px, 3vw, 44px);
  flex-shrink: 0;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  background: linear-gradient(140deg, var(--ink) 20%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 22px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: 15px; }

/* ---------- lucrări ---------- */

.work__list { display: grid; gap: clamp(50px, 9vh, 110px); }

.project { display: block; }
.project__cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 8 / 5;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(19, 19, 19, .1);
}
.project__art { position: absolute; inset: -8% 0; will-change: transform; }
.project__art svg { width: 100%; height: 100%; display: block; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.project:hover .project__art svg { transform: scale(1.045); }

.project__ghost {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 150px;
  letter-spacing: .02em;
  fill: rgba(255, 255, 255, .16);
}

.project__open {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.project:hover .project__open { opacity: 1; transform: translateY(0); }

.project__meta {
  display: grid;
  grid-template-columns: minmax(140px, 260px) 1fr auto;
  gap: 10px 34px;
  align-items: baseline;
  padding: 26px 6px 0;
}
.project__meta h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.01em;
}
.project__meta p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.project__tags {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* ---------- contact ---------- */

.contact { text-align: center; }
.contact .section__label { text-align: center; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 16ch;
  margin: 0 auto clamp(44px, 8vh, 80px);
  color: var(--ink);
}
.contact__card {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px);
  display: grid;
  gap: 28px;
  justify-items: center;
}
.contact__card > p { color: var(--muted); max-width: 40ch; }
.contact__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.contact__loc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px var(--pad) 36px;
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
}
.footer a { color: var(--ink); }

/* ---------- stări inițiale pt animații (JS le rezolvă) ---------- */

.js [data-hero-fade],
.js [data-reveal] { opacity: 0; }
.no-js [data-hero-fade],
.no-js [data-reveal] { opacity: 1; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 18px; }
  .nav__links { display: none; }
  .nav .btn--small { display: none; }
  .nav__burger { display: flex; }

  .project__meta { grid-template-columns: 1fr; gap: 8px; }
  .project__ghost { font-size: 110px; }

  .process__pin { min-height: 0; }
  .process__track {
    width: auto;
    flex-direction: column;
    padding: 0 var(--pad);
    max-width: 1320px;
    margin: 0 auto;
  }
  .step { width: 100%; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll-line i { animation: none; }
  [data-hero-fade], [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
