/* =====================================================================
   PORTOFOLIU — stiluri
   ===================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --card: #151413;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1f0ea;
  --muted: #8f8a86;
  --accent: #fd6c05;
  --accent-2: #c24703;
  --accent-3: #ff3b30;
  --accent-ink: #0a0a0a;

  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--accent-ink); }

@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, label { cursor: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  transition: transform 1s var(--ease-in-out);
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.preloader__brand { font-size: clamp(20px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; }
.preloader__brand b { color: var(--accent); }
.preloader__mark { height: clamp(36px, 5vw, 56px); width: auto; }
.preloader__count { font-size: clamp(72px, 18vw, 240px); font-weight: 600; line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.preloader__bar { height: 2px; background: var(--line); margin-top: 24px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor, .cursor-dot { display: block; } }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); border-radius: 50%; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.is-label {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  background: var(--accent); border-color: var(--accent); mix-blend-mode: normal;
}
.cursor__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); opacity: 0; transition: opacity .2s; font-weight: 500; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Grain + progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,4%); }
  40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,7%); } 80% { transform: translate(6%,2%); }
}
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn__arrow { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { color: var(--accent-ink); }
.btn--small { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--big { padding: 20px 34px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(7,7,10,0.6); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.nav__mark { height: 30px; width: auto; display: block; }
.nav__logo b { color: var(--accent); font-weight: 700; }
.nav__links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,0.07); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--pad);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-in-out);
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu a { font-size: clamp(40px, 12vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.menu a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(48px, 6vw, 88px) var(--pad); position: relative; }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__tag { color: var(--muted); margin: 0 0 20px; }
.section__title { font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.section__title em { color: var(--accent); }
.section__sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; margin: 24px 0 0; }

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line__inner { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-in .line__inner, .line.is-in .line__inner { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 32px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(194,71,3,0.22), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(253,108,5,0.08), transparent 70%);
}
.hero__content { position: relative; z-index: 2; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(7,7,10,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(253,108,5,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(253,108,5,0); } 100% { box-shadow: 0 0 0 0 rgba(253,108,5,0); } }

.hero__title { font-size: clamp(44px, 11.5vw, 190px); line-height: .9; letter-spacing: -0.055em; font-weight: 600; margin: 0; }
.hero__title em { padding-right: .06em; }
.hero__title .line:nth-child(2) .line__inner { transition-delay: .08s; }
.hero__title .line:nth-child(3) .line__inner { transition-delay: .16s; }

.rotator { display: inline-block; position: relative; color: var(--accent); vertical-align: bottom; }
.rotator span { display: inline-block; }
.rotator .char { display: inline-block; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.rotator .char.out { transform: translateY(-100%) rotateX(80deg); opacity: 0; }
.rotator .char.in-start { transform: translateY(100%) rotateX(-80deg); opacity: 0; }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 440px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.scroll-hint__line { width: 1px; height: 28px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: drop 1.6s var(--ease-in-out) infinite; }
@keyframes drop { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; flex-shrink: 0; }
.marquee span { font-size: clamp(32px, 5vw, 72px); font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: transparent; -webkit-text-stroke: 1px var(--text); }
.marquee i { font-style: normal; color: var(--accent); font-size: clamp(20px, 3vw, 40px); }

/* ---------- Manifesto ---------- */
.manifesto__text { font-size: clamp(28px, 4.6vw, 68px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; margin: 0; max-width: 1300px; }
.manifesto__text .w { opacity: .12; transition: opacity .3s linear, color .3s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .w.hl { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  min-height: 420px; display: flex; flex-direction: column;
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color .4s, transform .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(253,108,5,0.14), transparent 45%);
}
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.service:hover::before, .service:hover::after { opacity: 1; }
.service__num { color: var(--muted); }
.service__icon { width: 56px; height: 56px; color: var(--accent); margin: 48px 0 auto; transition: transform .6s var(--ease); }
.service:hover .service__icon { transform: translateZ(40px) rotate(-8deg) scale(1.1); }
.service h3 { font-size: 28px; letter-spacing: -0.03em; margin: 32px 0 12px; font-weight: 600; line-height: 1.05; }
.service p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.service--hot { background: linear-gradient(160deg, #2b1405, var(--card) 60%); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- Configurator ---------- */
.config__wrap { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
@media (max-width: 960px) { .config__wrap { grid-template-columns: 1fr; } }
.config__stage {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 560px;
  background: radial-gradient(80% 80% at 50% 40%, #1b1a26, #09090d);
  border: 1px solid var(--line); touch-action: pan-y;
}
@media (max-width: 620px) { .config__stage { min-height: 400px; } }
.config__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.config__hud { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; color: var(--muted); pointer-events: none; }
.config__hud span:first-child { color: var(--accent-3); }
.config__hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--muted); pointer-events: none; }
.config__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: center; padding: 24px; }
.config__fallback.is-hidden { display: none; }

.config__panel { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.config__label { color: var(--muted); margin: 0 0 12px; }
.config__group .toggle { margin-top: -2px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg); border-radius: 14px; border: 1px solid var(--line); }
.seg button { padding: 10px 4px; border-radius: 10px; font-size: 13px; color: var(--muted); transition: background .3s, color .3s; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--text); color: var(--bg); font-weight: 600; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; background: var(--c); position: relative; transition: transform .3s var(--ease); }
.swatches button::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0; transform: scale(.8); transition: .3s var(--ease); }
.swatches button:hover { transform: scale(1.1); }
.swatches button.is-active::after { opacity: 1; transform: scale(1); }
.toggle { position: relative; display: inline-block; width: 52px; height: 30px; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; transition: background .3s; }
.toggle span::after { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: var(--muted); transition: transform .4s var(--ease), background .3s; }
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::after { transform: translateX(22px); background: var(--accent-ink); }
.config__price { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; border-top: 1px solid var(--line); }
.config__price span { color: var(--muted); }
.config__price strong { font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.filters sup { font-family: var(--mono); font-size: 10px; margin-left: 2px; }

.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 760px) { .work__grid { grid-template-columns: 1fr; } }
.work__empty { color: var(--muted); font-family: var(--mono); text-align: center; padding: 60px 0; }

.project { position: relative; display: block; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.project:nth-child(4n+2), .project:nth-child(4n+3) { }
@media (min-width: 761px) { .project:nth-child(even) { margin-top: 90px; } }
.project.is-hidden { display: none; }
.project.is-entering { opacity: 0; transform: translateY(40px) scale(.97); }
.project__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.project:hover .project__media { border-radius: calc(var(--radius) * 1.8); }
.project__media img, .project__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), filter .6s; }
.project:hover .project__media img, .project:hover .project__cover { transform: scale(1.06); }
.project__cover { display: grid; place-items: center; overflow: hidden; }
.project__cover-title { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 54px); font-weight: 600; letter-spacing: -0.04em; text-align: center; padding: 24px; line-height: .95; mix-blend-mode: overlay; color: #fff; }
.project__badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(7,7,10,.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line-2); }
.project__live { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.project:hover .project__live { transform: scale(1) rotate(0); }
.project__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 4px 0; }
.project__title { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; font-weight: 600; margin: 0 0 6px; line-height: 1.1; }
.project__tags { color: var(--muted); font-size: 14px; margin: 0; }
.project__year { color: var(--muted); padding-top: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 0; padding-bottom: 0; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: clamp(32px, 5vw, 64px) 0; border-right: 1px solid var(--line); padding-left: clamp(0px, 2vw, 24px); }
.stat:last-child { border-right: 0; }
@media (max-width: 760px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .stat { padding-left: 12px; } }
.stat__num { font-size: clamp(48px, 7vw, 110px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num sup { color: var(--accent); font-size: .45em; vertical-align: top; margin-left: 4px; }
.stat__label { color: var(--muted); margin-top: 12px; }

/* ---------- Process (horizontal) ---------- */
.process { position: relative; height: 300vh; }
.process__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 80px 0 40px; }
.process__head { padding: 0 var(--pad); margin-bottom: clamp(32px, 5vw, 60px); }
.process__track { display: flex; gap: 20px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.step {
  width: min(78vw, 520px); min-height: min(52vh, 420px); flex-shrink: 0;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.step:nth-child(2) { background: linear-gradient(150deg, #2a1608, var(--card)); }
.step:nth-child(3) { background: var(--accent); color: var(--accent-ink); }
.step:nth-child(3) p { color: rgba(0,0,0,.7); }
.step:nth-child(4) { background: linear-gradient(150deg, #1f1f1f, var(--card)); }
.step__num { position: absolute; top: clamp(16px, 2vw, 28px); right: clamp(20px, 3vw, 36px); font-size: clamp(90px, 14vw, 200px); font-weight: 700; letter-spacing: -0.06em; line-height: 1; opacity: .12; }
.step h3 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.04em; margin: 0 0 14px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; max-width: 380px; font-size: 16px; }
.process__bar { margin: 40px var(--pad) 0; height: 2px; background: var(--line); }
.process__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Contact ---------- */
.contact__title { font-size: clamp(48px, 10vw, 160px); line-height: .92; letter-spacing: -0.055em; font-weight: 600; margin: 0 0 clamp(48px, 7vw, 100px); }
.contact__title em { color: var(--accent); }
.contact__title .line:nth-child(2) .line__inner { transition-delay: .08s; }
.contact__title .line:nth-child(3) .line__inner { transition-delay: .16s; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 100px); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 20px; padding: 26px 0 12px; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field span { position: absolute; left: 0; top: 26px; color: var(--muted); font-size: 20px; pointer-events: none; transition: all .35s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 0; font-size: 12px; font-family: var(--mono); text-transform: uppercase; color: var(--accent); }
.field.is-error input { border-color: var(--accent-3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -16px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: all .3s var(--ease); }
.pills label:hover span { border-color: var(--text); }
.pills input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { align-self: flex-start; }
.form__note { color: var(--accent); min-height: 1em; margin: -10px 0 0; }

.contact__info { display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.contact__info p { margin: 0; }
.contact__mail { font-size: clamp(24px, 3vw, 40px); color: var(--text); letter-spacing: -0.03em; font-weight: 500; word-break: break-all; position: relative; display: inline-block; align-self: flex-start; margin-bottom: 16px; }
.contact__mail::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.socials { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--line); }
.socials a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 18px; transition: padding .4s var(--ease), color .3s; }
.socials a:hover { padding-left: 14px; color: var(--accent); }
.socials a i { font-style: normal; transition: transform .4s var(--ease); }
.socials a:hover i { transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--pad) 28px; overflow: hidden; }
.footer__big { font-size: clamp(64px, 21vw, 360px); font-weight: 700; letter-spacing: -0.07em; line-height: .8; text-align: center; padding-top: 40px; background: linear-gradient(180deg, var(--text) 30%, transparent 105%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.footer__big b { -webkit-text-fill-color: var(--accent); color: var(--accent); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.footer__row a:hover { color: var(--accent); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; pointer-events: none; visibility: hidden; }
.modal.is-open { pointer-events: auto; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,4,6,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(1000px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px);
  display: grid; grid-template-columns: 1.2fr 1fr;
  transform: translateY(40px) scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
@media (max-width: 760px) { .modal__panel { grid-template-columns: 1fr; } }
.modal__media { position: relative; min-height: 300px; background: var(--card); overflow: hidden; }
.modal__media img, .modal__media .project__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.modal__cat { color: var(--accent); margin: 0; }
.modal__body h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 0; line-height: 1.05; font-weight: 600; }
.modal__body > p { color: var(--muted); margin: 0; }
.modal__meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.modal__meta dt { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding-top: 2px; }
.modal__meta dd { margin: 0; }
.modal__body .btn { align-self: flex-start; margin-top: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(7,7,10,.7); border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s; }
.modal__close:hover { transform: rotate(90deg); background: var(--accent); color: var(--accent-ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal-up, .line__inner { opacity: 1; transform: none; }
  .process { height: auto; }
  .process__sticky { position: relative; height: auto; }
  .process__track { width: auto; flex-direction: column; }
  .step { width: 100%; }
}

/* Imaginea reală a proiectului stă deasupra copertei de rezervă */
.project__media img, .modal__media img { z-index: 1; }

/* Reclame video */
.project__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.2s var(--ease); }
.project:hover .project__media video { transform: scale(1.06); }
.modal__media .modal__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; }
@media (max-width: 760px) { .modal__media:has(.modal__video) { min-height: 60vh; } }

#contactPhone a { color: var(--text); line-height: 2; transition: color .3s; }
#contactPhone a:hover { color: var(--accent); }

/* Mai multe adrese de email, una sub alta */
.contact__mail { font-size: clamp(20px, 2.4vw, 32px); margin-bottom: 4px; }
.contact__mail:last-of-type { margin-bottom: 16px; }

/* Sloganul OScode în footer */
.footer__tagline { text-align: center; color: var(--muted); letter-spacing: .35em; margin-top: 18px; font-size: 12px; }

/* Date legale (PFA) */
.legal-line { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 18px 0 0; max-width: 560px; }
.legal-line--footer { max-width: none; text-align: center; font-size: 12px; margin: 16px 0 0; }
.footer__links { display: inline-flex; gap: 22px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--accent); }

/* ---------- Pagini legale ---------- */
body.legal-page, body.legal-page a, body.legal-page button { cursor: auto; }
body.legal-page a { cursor: pointer; }
.legal-nav { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,10,10,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10; }
.legal-nav .back { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal-nav .back:hover { color: var(--accent); }
.legal { max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--pad) 80px; }
.legal h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.045em; line-height: .95; margin: 0 0 14px; font-weight: 600; }
.legal h1 em { color: var(--accent); }
.legal .updated { color: var(--muted); margin: 0 0 48px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 12px; font-weight: 600; }
.legal p, .legal li { color: #cfcac5; font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .idcard { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 24px; background: var(--card); margin: 12px 0 0; }
.legal .idcard dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.legal .idcard dt { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding-top: 3px; }
.legal .idcard dd { margin: 0; color: var(--text); }
@media (max-width: 520px) { .legal .idcard dl { grid-template-columns: 1fr; gap: 2px 0; } .legal .idcard dd { margin-bottom: 10px; } }
.legal-missing { color: #ff3b30; background: rgba(255,59,48,.1); padding: 0 6px; border-radius: 4px; }
.legal-footer { border-top: 1px solid var(--line); padding: 24px var(--pad); color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.legal-footer a:hover { color: var(--accent); }
