/* =====================================================================
   Exemplu pachet PREMIUM — Pervaz Studio, arhitectură și design interior (Cluj-Napoca)
   Fonturi găzduite local (SIL Open Font License 1.1): Cormorant Garamond (titluri) + Manrope (text).
   Stil: cel mai rafinat. Întuneric cald, auriu șampanie, tipografie mare
   și aerisită, profunzime subtilă (straturi, lumini, paralaxă ușoară).
   Animații fine, doar transform + opacity.
   ===================================================================== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0E0D0C;
  --bg-2: #141210;
  --surface: #1A1714;
  --surface-2: #221E1A;
  --ink: #F3EEE7;
  --muted: #AAA196;
  --faint: #A0978B;   /* ≥ 5:1 pe fundalurile închise (era 4,1–4,8:1) */
  --line: rgba(243, 238, 231, 0.1);
  --line-2: rgba(243, 238, 231, 0.2);
  --gold: #C9A77C;
  --gold-2: #E3C9A0;
  --gold-soft: rgba(201, 167, 124, 0.14);
  --lux: cubic-bezier(0.22, 1, 0.36, 1);
  --head: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

@media (min-width: 900px) {
  :root { --header-h: 88px; }
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.75 var(--body);
}

a {
  color: var(--gold-2);
}

::selection {
  background: var(--gold);
  color: #14110E;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

html.dialog-open {
  overflow: hidden;
}

/* ---------- Butoane (umplere care alunecă la hover) ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  overflow: hidden;
  font: 500 0.95rem/1.1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--lux);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform 0.55s var(--lux);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.35s var(--lux);
}

.btn-gold {
  color: #15110D;
  background: var(--gold);
  border: 0;
}

.btn-gold::before {
  background: var(--gold-2);
}

.btn-line {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-2);
}

.btn-line::before {
  background: rgba(243, 238, 231, 0.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover::before {
    transform: none;
  }

  .btn:not([disabled]):hover svg {
    transform: translateX(4px);
  }
}

/* Ecrane înguste: textul lung al unui buton trece pe două rânduri, nu iese din casetă */
@media (max-width: 479px) {
  .btn {
    padding-top: 14px;
    padding-bottom: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
}

.link-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 28px;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.45s var(--lux);
}

.link-line svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform 0.35s var(--lux);
}

@media (hover: hover) and (pointer: fine) {
  .link-line:hover::after {
    transform: scaleX(0.35);
  }

  .link-line:hover svg {
    transform: translateX(4px);
  }
}

/* ---------- Antet fix, transparent peste hero ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 12, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header.is-scrolled::before,
.site-header.nav-open::before {
  opacity: 1;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  display: block;
  font: 500 1.02rem/1.1 var(--head);
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 24px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--lux);
}

.nav-toggle-bars::before {
  top: 0;
  width: 24px;
}

.nav-toggle-bars::after {
  bottom: 0;
  width: 16px;
}

.nav-open .nav-toggle-bars::before {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  width: 24px;
  transform: translateY(-4.25px) rotate(-45deg);
}

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px clamp(20px, 5vw, 48px) 26px;
  background: rgba(20, 18, 16, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.4s var(--lux), visibility 0s linear 0.4s;
}

.nav-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.4s var(--lux), visibility 0s;
}

html:not(.js) .nav-panel {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
}

html:not(.js) .nav-toggle {
  display: none;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 56px;
  padding-top: 14px;
  border-bottom: 1px solid var(--line);
  font: 300 1.5rem/1.2 var(--head);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-list a span {
  font: 500 0.7rem/1 var(--body);
  letter-spacing: 0.16em;
  color: var(--gold);
}

.nav-list a[aria-current="page"] {
  color: var(--gold-2);
}

.nav-cta {
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list {
    display: flex;
    gap: 30px;
  }

  .nav-list a {
    position: relative;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    font: 400 0.92rem/1 var(--body);
    letter-spacing: 0.02em;
  }

  .nav-list a span {
    display: none;
  }

  .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--lux);
  }

  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-cta {
    width: auto;
    margin: 0;
    min-height: 46px;
    padding: 0 22px;
    font-size: 0.88rem;
  }
}

/* ---------- Tipografie ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font: 500 0.75rem/1.3 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.display {
  font-size: clamp(3rem, 9.4vw, 5.9rem);
  line-height: 0.98;
}

.display .gold,
.h2 .gold {
  color: var(--gold-2);
}

.h2 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.04;
}

.lead {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: clamp(1.04rem, 2.3vw, 1.16rem);
  line-height: 1.8;
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}

.section-head .lead {
  margin-top: 18px;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  max-width: none;
}

.section-head--row > div {
  max-width: 720px;
}

.example-tag {
  color: var(--gold-2);
  border-color: rgba(227, 201, 160, 0.55);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 36px) 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -20%;
  top: -30%;
  width: 90%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(201, 167, 124, 0.16), rgba(201, 167, 124, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--demo-h));
    padding-bottom: 72px;
  }

  .hero > .wrap {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

/* Titlul intră rând cu rând (spațiu suplimentar pentru diacritice: Ă, Î, ș, ț) */
.line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0 0.16em;
  margin: -0.14em 0 -0.16em;
}

.line > span {
  display: inline-block;
}

.js .line > span {
  transform: translate3d(0, 108%, 0);
  animation: lineUp 1.15s var(--lux) forwards;
  animation-delay: calc(0.15s + var(--i, 0) * 0.13s);
}

@keyframes lineUp {
  to { transform: none; }
}

.js .hero-fade {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: fadeUp 1s var(--lux) forwards;
  animation-delay: calc(0.55s + var(--i, 0) * 0.12s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 60px 90px -50px rgba(0, 0, 0, 0.95);
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(243, 238, 231, 0.1);
  pointer-events: none;
}

.js .hero-art .layer {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  animation: fadeUp 1.4s var(--lux) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.16s);
}

.hero-caption {
  position: absolute;
  left: 18px;
  top: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(26, 23, 20, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.hero-caption strong {
  display: block;
  font: 400 0.95rem/1.2 var(--head);
  color: var(--ink);
}

.hero-caption i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}

.scroll-cue {
  display: none;
}

@media (min-width: 1000px) {
  .scroll-cue {
    position: absolute;
    left: clamp(20px, 5vw, 48px);
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    font: 500 0.68rem/1 var(--body);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .scroll-cue span {
    position: relative;
    width: 56px;
    height: 1px;
    overflow: hidden;
    background: var(--line-2);
  }

  .scroll-cue span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-100%);
    animation: cue 2.6s var(--lux) infinite;
  }

  @keyframes cue {
    60%, 100% { transform: translateX(100%); }
  }
}

/* ---------- Secțiuni ---------- */
.section {
  position: relative;
  padding: clamp(84px, 11vw, 144px) 0;
}

.section--raised {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Manifest */
.statement {
  max-width: 1040px;
  margin: 0;
  font: 300 clamp(1.7rem, 4.4vw, 3rem)/1.22 var(--head);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.statement em {
  font-style: normal;
  color: var(--gold-2);
}

.principles {
  display: grid;
  gap: 1px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 760px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principles li {
  padding: 34px 30px 36px;
  background: var(--bg);
}

.section--raised .principles li {
  background: var(--bg-2);
}

.principles b {
  display: block;
  margin-bottom: 26px;
  font: 500 0.75rem/1 var(--body);
  letter-spacing: 0.2em;
  color: var(--gold);
}

.principles h3 {
  font-size: 1.6rem;
  line-height: 1.15;
}

.principles p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Proiecte */
.projects {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .projects {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1000px) {
  .projects--featured {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }

  .projects--featured .project:first-child {
    grid-row: span 2;
  }

  .projects--featured .project:first-child .project-media {
    aspect-ratio: 4 / 4.2;
  }
}

.projects--grid {
  row-gap: 44px;
}

@media (min-width: 1000px) {
  .projects--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project {
  transition: opacity 0.35s ease, transform 0.45s var(--lux);
}

.project.is-out {
  opacity: 0;
  transform: scale(0.97);
}

.project-link,
.project-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 70px -46px rgba(0, 0, 0, 0.95);
}

.project-media svg {
  width: 100%;
  height: 100%;
  transition: transform 1.1s var(--lux);
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(243, 238, 231, 0.08);
  pointer-events: none;
}

.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px 0;
}

.project-cat {
  display: block;
  font: 500 0.75rem/1.2 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-title {
  display: block;
  margin-top: 8px;
  font: 300 1.6rem/1.15 var(--head);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.project-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--gold-2);
  transition: transform 0.45s var(--lux);
}

.project-arrow svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .project-link:hover .project-media svg,
  .project-open:hover .project-media svg {
    transform: scale(1.045);
  }

  .project-link:hover .project-arrow,
  .project-open:hover .project-arrow {
    transform: rotate(-45deg);
  }
}

.project-link:focus-visible,
.project-open:focus-visible {
  outline: none;
}

.project-link:focus-visible .project-media,
.project-open:focus-visible .project-media {
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
}

/* Filtre portofoliu */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 44px;
}

.filter {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: 400 0.92rem/1 var(--body);
  cursor: pointer;
  transition: transform 0.3s var(--lux);
}

.filter[aria-pressed="true"] {
  color: #15110D;
  background: var(--gold);
  border-color: var(--gold);
}

.filter:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .filter[aria-pressed="false"]:hover {
    color: var(--ink);
    border-color: var(--gold);
  }
}

.filter-count {
  margin: -24px 0 36px;
  font-size: 0.88rem;
  color: var(--faint);
}

/* Servicii (editorial) */
.services {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .services li:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 48px;
  }

  .services li:nth-child(even) {
    padding-left: 48px;
  }
}

.services li {
  position: relative;
  padding: 38px 0 40px;
  border-bottom: 1px solid var(--line);
}

.services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 64px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--lux);
}

.services li.is-in::before {
  transform: scaleX(1);
}

@media (min-width: 860px) {
  .services li:nth-child(even)::before {
    left: 48px;
  }
}

.services b {
  display: block;
  margin-bottom: 20px;
  font: 500 0.75rem/1 var(--body);
  letter-spacing: 0.2em;
  color: var(--gold);
}

.services h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.15;
}

.services p {
  margin: 12px 0 0;
  max-width: 44ch;
  color: var(--muted);
}

.services ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.services ul li {
  padding: 0 0 0 22px;
  border: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.services ul li::before {
  top: 0.85em;
  left: 0;
  width: 10px;
  transform: none;
}

@media (min-width: 860px) {
  .services ul li:nth-child(odd),
  .services ul li:nth-child(even) {
    padding: 0 0 0 22px;
    border: 0;
  }

  .services ul li:nth-child(even)::before {
    left: 0;
  }
}

/* Proces (linia se desenează când apare) */
.timeline {
  position: relative;
  display: grid;
  gap: 38px;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 167, 124, 0.1));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--lux);
}

.timeline.is-in::before {
  transform: none;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
}

.timeline b {
  display: block;
  font: 500 0.72rem/1 var(--body);
  letter-spacing: 0.2em;
  color: var(--gold);
}

.timeline h3 {
  margin-top: 12px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.timeline p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding: 34px 0 0;
  }

  .timeline::before {
    left: 0;
    right: 0;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(201, 167, 124, 0.1));
    transform: scaleX(0);
    transform-origin: left;
  }

  .timeline li::before {
    left: 0;
    top: -34px;
  }
}

/* Bandă programare */
.booking-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 32px;
  background: linear-gradient(135deg, #1D1915 0%, #151210 60%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.booking-teaser::before {
  content: '';
  position: absolute;
  right: -15%;
  bottom: -60%;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(201, 167, 124, 0.2), rgba(201, 167, 124, 0) 70%);
  pointer-events: none;
}

@media (min-width: 960px) {
  .booking-teaser {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 64px;
  }
}

.bt-preview {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  background: rgba(14, 13, 12, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}

.bt-preview p {
  margin: 0 0 14px;
  font: 500 0.7rem/1.3 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.bt-days,
.bt-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-days {
  margin-bottom: 22px;
}

.bt-days span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  font: 300 1.2rem/1.1 var(--head);
  color: var(--ink);
}

.bt-days small {
  display: block;
  font: 500 0.66rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.bt-slots span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.88rem;
}

@media (max-width: 479px) {
  .bt-preview {
    padding: 20px;
  }

  .bt-days {
    gap: 6px;
  }

  .bt-days span {
    width: 48px;
    height: 58px;
    font-size: 1.1rem;
  }

  .bt-slots span {
    padding: 9px 13px;
  }
}

.bt-days .is-on,
.bt-slots .is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: #15110D;
}

.bt-days .is-on small {
  color: rgba(21, 17, 13, 0.7);
}

/* ---------- Pagini interioare ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 44px) 0 72px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 70%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(201, 167, 124, 0.13), rgba(201, 167, 124, 0) 70%);
  pointer-events: none;
}

@media (min-width: 1000px) {
  .page-hero {
    padding: calc(var(--header-h) + 80px) 0 104px;
  }
}

.crumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--faint);
}

.crumbs li + li::before {
  content: '—';
  margin-right: 10px;
  color: var(--line-2);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
  color: var(--muted);
  text-decoration: none;
}

.page-hero .display {
  position: relative;
  max-width: 14em;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

.page-hero .lead {
  position: relative;
}

/* Despre: schiță → randare */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.art-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 50px 80px -50px rgba(0, 0, 0, 0.95);
}

.art-panel svg {
  width: 100%;
  height: auto;
}

/* Comparație schiță / randare (glisor accesibil de la tastatură) */
.compare {
  --pos: 50%;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 50px 80px -50px rgba(0, 0, 0, 0.95);
}

.compare svg {
  width: 100%;
  height: auto;
}

.compare-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: var(--gold);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(14, 13, 12, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  pointer-events: none;
}

.compare-handle svg {
  width: 22px;
  height: 22px;
}

.compare input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 56px;
  margin: -28px 0 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.compare input[type="range"]:focus-visible ~ .compare-handle {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 13, 12, 0.78);
  border: 1px solid var(--line);
  font: 500 0.66rem/1.2 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}

.compare-tag--left {
  left: 16px;
}

.compare-tag--right {
  right: 16px;
}

.compare-hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.team {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.member svg {
  width: 100%;
  height: auto;
  border-radius: 200px 200px 18px 18px;
  background: var(--surface);
}

@media (max-width: 759px) {
  .member {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 20px;
    align-items: center;
  }

  .member svg {
    grid-row: span 2;
    border-radius: 80px 80px 12px 12px;
  }

  .member h3 {
    align-self: end;
    margin-top: 0;
  }

  .member p {
    align-self: start;
  }
}

.member h3 {
  margin-top: 20px;
  font-size: 1.35rem;
}

.member p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.check-lines {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-lines li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-lines svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--gold);
}

/* ---------- Contact: programare + formular ---------- */
.contact-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1040px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }
}

.panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
}

.panel > p {
  margin: 10px 0 0;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 24px;
}

@media (min-width: 1040px) {
  .panel--sticky {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

.bk-step {
  margin-top: 30px;
}

.bk-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 500 0.78rem/1.3 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.bk-label span {
  color: var(--gold);
}

.bk-types {
  display: grid;
  gap: 10px;
}

@media (min-width: 600px) {
  .bk-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bk-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.bk-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bk-choice > span {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(14, 13, 12, 0.5);
}

.bk-choice strong {
  display: block;
  font: 400 1.02rem/1.25 var(--head);
  color: var(--ink);
}

.bk-choice small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--faint);
}

.bk-choice input:checked + span {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.bk-choice input:focus-visible + span {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.bk-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}

.bk-day > span {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 72px;
  padding: 8px 4px;
  text-align: center;
}

.bk-day b {
  font: 300 1.35rem/1 var(--head);
  color: var(--ink);
}

.bk-day small {
  margin: 0;
  font: 500 0.75rem/1 var(--body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bk-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bk-slot > span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.bk-slot input:disabled + span {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.bk-empty {
  margin: 0;
  font-size: 0.92rem;
  color: var(--faint);
}

.bk-summary {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .bk-summary {
    grid-template-columns: 1fr auto;
  }
}

.bk-summary p {
  margin: 0;
  color: var(--muted);
}

.bk-summary strong {
  font-weight: 500;
  color: var(--ink);
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.field .opt {
  color: var(--faint);
  font-weight: 400;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(14, 13, 12, 0.6);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9A77C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.field select option {
  background: #1A1714;
  color: var(--ink);
}

.field ::placeholder {
  color: var(--faint);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field.has-error input:not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea {
  border-color: #E08A6F;
}

.field-error {
  color: #F0A58E;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.check-field input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.check-field label {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--muted);
}

.form-actions {
  margin-top: 26px;
}

@media (max-width: 639px) {
  .form-actions .btn,
  .bk-summary .btn {
    width: 100%;
  }
}

.form-demo-note {
  color: var(--faint);
}

.form-status.is-ok {
  background: var(--gold-soft);
  border: 1px solid rgba(201, 167, 124, 0.35);
  color: var(--gold-2);
}

.form-status.is-ok strong {
  color: var(--ink);
}

.form-status.is-error {
  background: rgba(224, 138, 111, 0.12);
  border: 1px solid rgba(224, 138, 111, 0.35);
  color: #F0A58E;
}

.info-list {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.info-list strong {
  display: block;
  font: 500 0.75rem/1.3 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.info-list span {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.map-art {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-art svg {
  width: 100%;
  height: auto;
}

.map-caption {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- Fereastra de proiect ---------- */
.project-dialog {
  width: min(1040px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: var(--bg-2);
  color: var(--ink);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition: opacity 0.35s ease, transform 0.5s var(--lux);
}

.project-dialog.is-open {
  opacity: 1;
  transform: none;
}

.project-dialog::backdrop {
  background: rgba(8, 7, 6, 0.78);
}

.pd-inner {
  display: grid;
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 900px) {
  .pd-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.pd-media svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.pd-body {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
}

.pd-body h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.pd-body > p {
  margin: 16px 0 0;
  color: var(--muted);
}

.pd-body h3 {
  margin-top: 28px;
  font: 500 0.72rem/1.3 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.pd-body ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pd-body li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pd-body li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 1px;
  margin-top: 0.9em;
  background: var(--gold);
}

.pd-body .example-tag {
  margin-top: 30px;
}

.pd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(14, 13, 12, 0.8);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.35s var(--lux);
}

.pd-close svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .pd-close:hover {
    transform: rotate(90deg);
  }
}

/* ---------- Subsol ---------- */
.site-footer {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0 36px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 56px;
  }
}

.footer-word {
  margin: 0;
  font: 300 clamp(2.2rem, 6vw, 4rem)/1 var(--head);
  letter-spacing: -0.04em;
  color: var(--ink);
}

.footer-word span {
  color: var(--gold-2);
}

.footer-note {
  margin: 18px 0 0;
  max-width: 36ch;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 16px;
  font: 500 0.75rem/1.3 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links span {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}

.footer-links a:hover {
  color: var(--gold-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* Bara demo, într-o temă întunecată: un contur fin, ca să rămână distinctă */
.demo-bar {
  border-top-color: rgba(139, 92, 246, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .js .line > span,
  .js .hero-fade,
  .js .hero-art .layer {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   PREMIUM — strat de mișcare: tot ce are BUSINESS, mai rafinat,
   plus 3D (CSS 3D transforms) și momentele speciale:
     1. macheta camerei din hero se pliază din plan la intrare;
     2. lumina din „Filozofia studioului" urmărește cursorul;
     3. imaginile proiectelor intră cinematic (mască + translate);
     4. „Cum lucrăm": planul de pe teren se ridică în volum odată cu derularea;
     + butoane magnetice pe desktop.
   Mecanica: ../assets/motion.css + motion.js și premium-3d.js.
   Doar transform + opacity. Pe telefon: 3D mai ușor, fără tilt.
   ===================================================================== */
:root {
  --progress: linear-gradient(90deg, rgba(201, 167, 124, 0.25), #C9A77C 45%, #F3DDB6);
}

.scroll-progress {
  height: 2px;
}

/* ---------- Apariții la derulare: mai lente, mai ample ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal {
    transform: translate3d(0, 40px, 0);
    transition-duration: 1.2s, 1.2s;
    transition-timing-function: var(--lux), var(--lux);
  }
}

.is-split .wi {
  transition-duration: 1.2s;
  transition-timing-function: var(--lux);
}

/* ---------- Meniu pe telefon: fundal opac (textul din spate nu mai transpare),
   legăturile intră pe rând ---------- */
@media (max-width: 899px) {
  .nav-panel {
    background: #141210;
  }

  .motion .nav-list li,
  .motion .nav-cta {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
    transition: opacity 0.35s ease, transform 0.55s var(--lux);
  }

  .motion .nav-open .nav-list li,
  .motion .nav-open .nav-cta {
    opacity: 1;
    transform: none;
  }

  .motion .nav-open .nav-list li:nth-child(2) { transition-delay: 0.05s; }
  .motion .nav-open .nav-list li:nth-child(3) { transition-delay: 0.1s; }
  .motion .nav-open .nav-list li:nth-child(4) { transition-delay: 0.15s; }
  .motion .nav-open .nav-cta { transition-delay: 0.2s; }
}

/* ---------- Hero: lumina caldă respiră încet ---------- */
.hero::before,
.page-hero::before {
  animation: warmDrift 18s ease-in-out infinite alternate;
}

@keyframes warmDrift {
  to { transform: translate3d(-8%, 6%, 0) scale(1.12); }
}

/* ---------- Hero 3D: macheta unei camere, construită din fețe CSS 3D ----------
   Peretele cu arcadă (cu grosime), peisajul din spatele lui, pardoseala și pereții
   laterali sunt fețe 3D reale. La intrare, macheta se pliază din plan (--fold 0 → 1);
   apoi răspunde la mouse (desktop), la glisare (telefon) și la derulare.
   premium-3d.js scrie doar variabilele --rx, --ry, --ex, --fold. */
.hero-3d {
  --depth: 112px;                       /* adâncimea camerei */
  --persp: 1000;
  max-width: min(86%, 440px);           /* fețele din față ies din cadru prin perspectivă: lăsăm loc */
  perspective: calc(var(--persp) * 1px);
  perspective-origin: 50% 30%;
  touch-action: pan-y;                  /* derularea verticală rămâne a browserului */
}

@media (min-width: 600px) {
  .hero-3d { --depth: 150px; max-width: 480px; }
}

@media (min-width: 1000px) {
  .hero-3d { --depth: 176px; --persp: 1200; max-width: 500px; }
}

/* Textul din hero rămâne deasupra machetei (la intrare, pereții trec prin spatele lui) */
.hero-grid > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-3d::after {
  display: none;
}

.hero-3d svg {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.js .hero-3d {
  animation: h3dIn 1.3s var(--lux) 0.1s both;
}

@keyframes h3dIn {
  from { opacity: 0; }
}

.h3d-stage {
  position: relative;
  aspect-ratio: 5 / 6;
  transform-style: preserve-3d;
  transform-origin: 50% 62% calc(var(--depth) * 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
  --rx: -9deg;
  --ry: -12deg;
  --ex: 1;
  --fold: 1;
}

/* Starea de pornire a intrării (JS o animează). Dacă JS nu pornește, după 3 s
   rezerva de mai jos așază macheta, ca ilustrația să nu rămână desfăcută. */
.js .h3d-stage {
  --rx: 24deg;
  --ry: -34deg;
  --ex: 2.4;
  --fold: 0.2;
}

.js .h3d-stage:not(.is-live) {
  animation: h3dFallback 0s linear 3s forwards;
}

@keyframes h3dFallback {
  to { --rx: -9deg; --ry: -12deg; --ex: 1; --fold: 1; }
}

/* Straturile plane (peisaj, perete, felii, legendă): scala compensează perspectiva,
   ca la repaus compoziția să arate exact ca ilustrația 2D */
.hero-art .h3d-layer,
.h3d-float {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--z) * var(--ex) * 1px)) scale(calc(1 - var(--z) * var(--ex) / var(--persp)));
}

.hero-art .h3d-layer {
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
}

.hero-art .h3d-wall {
  filter: none;
}

.h3d-float {
  pointer-events: none;
}

/* Pardoseala: se rotește în jurul muchiei de lângă perete (linia 520 din 600) */
.h3d-floor {
  position: absolute;
  left: 0;
  top: 86.667%;
  width: 100%;
  height: var(--depth);
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transform: rotateX(calc(90deg * var(--fold)));
  opacity: clamp(0, calc((var(--fold) - 0.2) * 2), 1);
  background:
    radial-gradient(ellipse 12% 9% at 22% 34%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)),
    radial-gradient(ellipse 14% 10% at 78% 62%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)),
    repeating-linear-gradient(90deg, rgba(243, 238, 231, 0.05) 0 1px, rgba(243, 238, 231, 0) 1px 10%),
    linear-gradient(#2E251D, #17130F);
  box-shadow: inset 0 -1px 0 rgba(201, 167, 124, 0.5);
}

/* Lumina apusului intră prin arcadă și se întinde pe pardoseală */
.h3d-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(246, 219, 170, 0.5), rgba(243, 214, 164, 0.16) 50%, rgba(243, 214, 164, 0) 96%);
  clip-path: polygon(25.6% 0, 74.4% 0, 93% 100%, 7% 100%);
  animation: beamBreath 7s ease-in-out infinite alternate;
}

@keyframes beamBreath {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

/* Soclul machetei: fața din față, sub muchia pardoselii */
.h3d-lip {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: calc(var(--depth) * 0.2);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  background: linear-gradient(#2A221B, #110E0C);
  box-shadow: inset 0 1px 0 rgba(201, 167, 124, 0.55);
}

/* Pereții laterali: desfăcuți lângă perete (--fold 0), se ridică spre privitor */
.h3d-side {
  position: absolute;
  top: 0;
  width: var(--depth);
  height: 86.667%;
  opacity: clamp(0, calc((var(--fold) - 0.2) * 2), 1);
}

.h3d-side--l {
  right: 100%;
  transform-origin: 100% 50%;
  transform: rotateY(calc(90deg * var(--fold)));
  background:
    radial-gradient(ellipse 90% 45% at 100% 96%, rgba(236, 196, 138, 0.2), rgba(236, 196, 138, 0)),
    linear-gradient(90deg, #100D0B, #231C16);
  box-shadow: inset 1px 0 0 rgba(201, 167, 124, 0.45), inset 0 1px 0 rgba(201, 167, 124, 0.2);
}

.h3d-side--r {
  left: 100%;
  transform-origin: 0 50%;
  transform: rotateY(calc(-90deg * var(--fold)));
  background:
    radial-gradient(ellipse 90% 45% at 0% 96%, rgba(236, 196, 138, 0.2), rgba(236, 196, 138, 0)),
    linear-gradient(90deg, #231C16, #100D0B);
  box-shadow: inset -1px 0 0 rgba(201, 167, 124, 0.45), inset 0 1px 0 rgba(201, 167, 124, 0.2);
}

/* Obiectele stau în picioare pe pardoseală, la o fracțiune din adâncimea camerei */
.hero-art .h3d-prop {
  position: absolute;
  bottom: 13.333%;
  height: auto;
  transform-origin: 50% 100%;
  transform: translateZ(calc(var(--depth) * var(--pz) * var(--fold)));
  opacity: clamp(0, calc((var(--fold) - 0.2) * 2.5), 1);
  backface-visibility: hidden;
}

.hero-art .h3d-plant {
  left: 13%;
  width: 17%;
}

.hero-art .h3d-plinth {
  left: 68%;
  width: 20%;
}

.h3d-shadow {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -6%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.h3d-shadow::after {
  content: '';
  position: absolute;
  inset: -40% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 167, 124, 0.14), rgba(201, 167, 124, 0));
}

/* Telefon: fără feliile de grosime (mai puține straturi pentru placa video) */
@media (max-width: 899px) {
  .hero-art .h3d-slice {
    display: none;
  }

  .hero-3d .hero-caption {
    left: 12px;
    top: 12px;
  }
}

/* Telefon: eticheta plutitoare ar acoperi arcada — rămâne doar pe ecrane mai mari */
@media (max-width: 599px) {
  .hero-3d .h3d-float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h3d-stage,
  .js .h3d-stage {
    --rx: -9deg;
    --ry: -12deg;
    --ex: 1;
    --fold: 1;
  }

  .h3d-beam {
    animation: none;
  }
}

/* ---------- Carduri de proiect: tilt + reflex pe desktop ---------- */
.project-media {
  transition: transform 0.7s var(--lux);
}

.project-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(243, 221, 182, 0.2), rgba(243, 221, 182, 0) 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-media.is-tilting::before {
  opacity: 1;
}

@media (hover: none) {
  .project-link:active .project-media,
  .project-open:active .project-media {
    transform: scale(0.985);
    transition-duration: 0.2s;
  }
}

/* ---------- Momentul 2: lumina care urmărește cursorul ---------- */
.spot-zone {
  overflow: hidden;
}

.spot-zone > .wrap {
  position: relative;
}

.spot {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 206, 150, 0.26), rgba(240, 206, 150, 0.08) 55%, rgba(240, 206, 150, 0));
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  will-change: transform;
}

.spot-zone.is-lit .spot {
  opacity: 1;
}

/* Textul stă puțin în umbră și se aprinde sub lumină */
.motion .spot-zone .statement {
  color: rgba(243, 238, 231, 0.7);
}

@media (max-width: 899px) {
  .spot {
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    mix-blend-mode: normal;
    background: radial-gradient(closest-side, rgba(240, 206, 150, 0.16), rgba(240, 206, 150, 0.05) 55%, rgba(240, 206, 150, 0));
  }

  .motion .spot-zone .statement {
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spot {
    display: none;
  }

  .motion .spot-zone .statement {
    color: var(--ink);
  }
}

/* ---------- Cifre animate (marcate „Exemplu de conținut") ---------- */
.stats {
  margin: 56px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  margin: 0;
  padding: 24px 16px 22px;
  background: var(--bg-2);
}

.stat-num {
  display: block;
  font: 300 clamp(2.1rem, 7vw, 3.6rem)/1 var(--head);
  letter-spacing: -0.04em;
  color: var(--gold-2);
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.stats-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 16px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--faint);
}

@media (min-width: 760px) {
  .stat {
    padding: 34px 30px 30px;
  }
}

/* ---------- Secțiunea 3D „Cum lucrăm", condusă de derulare ---------- */
.s3-grid {
  display: grid;
  gap: 6px;
}

.s3-stage {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  padding-top: 4px;
  padding-bottom: 12px;
  background: var(--bg);
}

.s3-stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 30px;
  background: linear-gradient(var(--bg), rgba(14, 13, 12, 0));
  pointer-events: none;
}

.s3-view {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 62%, #241E18, #141210 72%);
  perspective: 1100px;
  perspective-origin: 50% 30%;
  --s3-scale: 0.68;
}

.s3-world {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  transform-style: preserve-3d;
  transform:
    scale(calc(var(--s3-scale) * (0.8 + var(--p, 0) * 0.3)))
    rotateX(calc(58deg - var(--p, 0) * 10deg))
    rotateZ(calc(-56deg + var(--p, 0) * 74deg));
}

.s3-ground,
.s3-plot,
.s3-dims {
  position: absolute;
}

.s3-ground {
  inset: 0;
  border-radius: 6px;
  background:
    linear-gradient(rgba(201, 167, 124, 0.13) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(201, 167, 124, 0.13) 1px, transparent 1px) 0 0 / 34px 34px,
    #1B1815;
  box-shadow: 0 0 0 1px rgba(201, 167, 124, 0.3);
}

.s3-plot {
  left: 66px;
  top: 84px;
  width: 248px;
  height: 172px;
  border: 1.5px dashed rgba(227, 201, 160, 0.75);
  border-radius: 4px;
  opacity: 0.3;
  transform: translateZ(1px);
  transition: opacity 0.8s ease;
}

.s3-dims {
  inset: 0;
  opacity: 0;
  transform: translateZ(1px);
  transition: opacity 0.8s ease;
}

.s3-dims i {
  position: absolute;
  border: 0 dashed rgba(227, 201, 160, 0.9);
}

.s3-dims .dx {
  left: 80px;
  top: 262px;
  width: 180px;
  border-top-width: 1px;
}

.s3-dims .dy {
  left: 276px;
  top: 130px;
  height: 110px;
  border-left-width: 1px;
}

.s3-dims .dx::before,
.s3-dims .dx::after,
.s3-dims .dy::before,
.s3-dims .dy::after {
  content: '';
  position: absolute;
  background: rgba(227, 201, 160, 0.9);
}

.s3-dims .dx::before,
.s3-dims .dx::after {
  top: -6px;
  width: 1px;
  height: 11px;
}

.s3-dims .dx::before { left: 0; }
.s3-dims .dx::after { right: 0; }

.s3-dims .dy::before,
.s3-dims .dy::after {
  left: -6px;
  width: 11px;
  height: 1px;
}

.s3-dims .dy::before { top: 0; }
.s3-dims .dy::after { bottom: 0; }

/* Reperul de pe teren (etapa 1): două planuri încrucișate, se vede din orice unghi */
.s3-pin,
.s3-tree {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.s3-pin {
  left: 190px;
  top: 170px;
  animation: pinBob 2.4s ease-in-out infinite alternate;
}

@keyframes pinBob {
  to { transform: translateZ(14px); }
}

.s3-pin i,
.s3-tree i {
  position: absolute;
  bottom: 0;
  transform-origin: 50% 100%;
  transition: opacity 0.7s ease;
}

.s3-pin i {
  left: -14px;
  width: 28px;
  height: 84px;
  background:
    radial-gradient(circle at 50% 12px, #F3DDB6 0 8px, rgba(243, 221, 182, 0) 9px),
    linear-gradient(90deg, transparent 13px, #C9A77C 13px 15px, transparent 15px);
  opacity: 0;
  transform: rotateX(-90deg);
}

.s3-tree {
  left: 40px;
  top: 282px;
}

.s3-tree i {
  left: -24px;
  width: 48px;
  height: 86px;
  background:
    radial-gradient(ellipse 22px 28px at 50% 30px, #6F806F 0 96%, rgba(111, 128, 111, 0) 100%),
    linear-gradient(90deg, transparent 23px, #4A3A2D 23px 25px, transparent 25px);
  transform: rotateX(-90deg);
}

.s3-tree i + i {
  transform: rotateZ(90deg) rotateX(-90deg);
}

/* Volumele: cutii CSS 3D (5 fețe). Planul desenat pe teren se ridică în volum
   odată cu derularea: --ra / --rb (0 → 1) sunt calculate din progresul --p al secțiunii
   (scaleZ pe cutie, doar transform). Fără JS, --p lipsește → casa apare construită. */
.s3 {
  --ra: clamp(0.02, (var(--p, 1) - 0.16) * 6, 1);
  --rb: clamp(0.02, (var(--p, 1) - 0.26) * 7, 1);
}

.s3-box {
  position: absolute;
  transform-style: preserve-3d;
  transform-origin: 50% 50% 0;
  transform: translateZ(calc(var(--lift, 0px) * var(--ra))) scale3d(1, 1, var(--r, 1));
}

.s3-a {
  --r: var(--ra);
}

.s3-a {
  left: 80px;
  top: 130px;
  width: 180px;
  height: 110px;
  --h: 70px;
}

.s3-b {
  left: 130px;
  top: 96px;
  width: 170px;
  height: 96px;
  --h: 52px;
  --lift: 70px;
  --r: var(--rb);
}

.f {
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.6s ease;
}

.f::before,
.f::after {
  content: '';
  position: absolute;
  inset: 0;
  transition: opacity 0.9s var(--lux);
}

.f::before {
  background: var(--fill);
}

.f::after {
  border: 1px solid rgba(227, 201, 160, 0.9);
  opacity: 0.16;
}

.f-top {
  width: 100%;
  height: 100%;
  transform: translateZ(var(--h));
  --fill: linear-gradient(135deg, #EADFCB, #CDBBA0);
}

.f-back {
  width: 100%;
  height: var(--h);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  --fill: #6E5B4A;
}

.f-front {
  width: 100%;
  height: var(--h);
  top: calc(100% - var(--h));
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
  --fill: linear-gradient(#BDA78A, #9D8569);
}

.f-left {
  width: var(--h);
  height: 100%;
  transform-origin: 0 50%;
  transform: rotateY(-90deg);
  --fill: #7C6855;
}

.f-right {
  width: var(--h);
  height: 100%;
  left: calc(100% - var(--h));
  transform-origin: 100% 50%;
  transform: rotateY(90deg);
  --fill: linear-gradient(90deg, #8E7862, #6F5C4B);
}

/* Ferestre luminate (etapa 4) */
.win {
  position: absolute;
  z-index: 1;
  border-radius: 2px;
  background: linear-gradient(#FCE6B8, #E3AA68);
  box-shadow: 0 0 16px rgba(240, 190, 120, 0.75);
  transition: opacity 0.9s var(--lux) 0.35s;
}

.w1 { left: 16px; top: 16px; width: 32px; height: 36px; }
.w2 { left: 62px; top: 16px; width: 32px; height: 36px; }
.w3 { left: 112px; top: 14px; width: 50px; height: 56px; }
.w4 { left: 14px; top: 28px; width: 40px; height: 54px; }
.w5 { left: 18px; top: 12px; width: 134px; height: 24px; }
.w6 { left: 12px; top: 18px; width: 26px; height: 60px; }

/* Etapele (motion.js pune data-active pe secțiune; fără JS se vede casa finalizată).
   Etapa 1: planul, desenat cu linie pe teren, începe să se ridice în volum. */
.s3[data-active="0"] .f::before {
  opacity: 0;
}

.s3[data-active="0"] .f::after {
  opacity: 0.85;
}

.s3[data-active="0"] .s3-pin i {
  opacity: 1;
}

.s3[data-active="0"] .s3-plot {
  opacity: 1;
}

.s3[data-active="1"] .f::before {
  opacity: 0;
}

.s3[data-active="2"] .f::before {
  opacity: 0.34;
}

.s3[data-active="1"] .f::after,
.s3[data-active="2"] .f::after {
  opacity: 1;
}

.s3[data-active="2"] .s3-dims {
  opacity: 1;
}

.s3[data-active="0"] .win,
.s3[data-active="1"] .win,
.s3[data-active="2"] .win,
.s3[data-active="0"] .s3-tree i,
.s3[data-active="1"] .s3-tree i,
.s3[data-active="2"] .s3-tree i {
  opacity: 0;
}

/* Legenda de sub machetă */
.s3-caption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 0;
  font: 500 0.72rem/1.3 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.s3-num {
  flex: none;
}

.s3-num b {
  font-weight: 500;
  color: var(--gold-2);
}

.s3-names {
  display: grid;
  min-width: 0;
}

.s3-names span {
  grid-area: 1 / 1;
  color: var(--muted);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.5s ease, transform 0.7s var(--lux);
}

.s3-names span.is-active {
  opacity: 1;
  transform: none;
}

/* Pașii */
.s3-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.s3-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44vh;
  padding: 20px 0;
  opacity: 0.8;
  transition: opacity 0.7s ease;
}

.s3-step:last-child {
  min-height: 36vh;
}

.s3-step.is-active,
html:not(.js) .s3-step {
  opacity: 1;
}

.s3-step b {
  display: block;
  font: 500 0.72rem/1 var(--body);
  letter-spacing: 0.22em;
  color: var(--gold);
}

.s3-step h3 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.08;
}

.s3-step p {
  margin: 14px 0 0;
  max-width: 28em;
  color: var(--muted);
}

/* Ecrane joase (telefon culcat): macheta nu mai stă fixă */
@media (max-height: 560px) {
  .s3-stage {
    position: relative;
    top: auto;
  }

  .s3-step {
    min-height: 0;
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .s3-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }

  .s3-stage {
    order: 2;
    top: max(calc(var(--header-h) + 24px), calc(50vh - 290px));
    padding: 0;
    background: none;
  }

  .s3-stage::after {
    display: none;
  }

  .s3-view {
    height: min(540px, calc(100vh - var(--header-h) - 150px));
    border-radius: 28px;
    --s3-scale: 1.12;
  }

  .s3-caption {
    margin-top: 18px;
  }

  .s3-step {
    min-height: 54vh;
    padding: 0;
  }

  .s3-step:last-child {
    min-height: 50vh;
  }
}

@media (min-width: 900px) and (max-height: 700px) {
  .s3-view {
    --s3-scale: 0.9;
  }
}

/* Tabletă: macheta puțin mai mare */
@media (min-width: 600px) and (max-width: 899px) and (min-height: 700px) {
  .s3-view {
    height: 330px;
    --s3-scale: 0.88;
  }
}

@media (min-width: 900px) and (max-height: 560px) {
  .s3-step,
  .s3-step:last-child {
    min-height: 0;
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s3-pin {
    animation: none;
  }

  /* fără mișcare legată de derulare: macheta stă nemișcată, volumele sunt ridicate */
  .s3 {
    --ra: 1;
    --rb: 1;
  }

  .s3-world {
    transform: scale(calc(var(--s3-scale) * 0.95)) rotateX(53deg) rotateZ(-19deg);
  }
}

/* ---------- Momentul 3: imaginile proiectelor intră cinematic ----------
   Fereastra imaginii urcă, iar ilustrația din ea coboară și se așază (mască = overflow
   al cadrului + translate/scale). Animație cu „backwards”: după intrare, cardul rămâne
   liber pentru înclinarea de pe desktop. */
@media (prefers-reduced-motion: no-preference) {
  .motion .project.reveal.is-in .project-media {
    animation: mediaRise 1.5s var(--lux) backwards;
    animation-delay: calc(var(--d, 0) * 110ms);
  }

  .motion .project.reveal.is-in .project-media svg {
    animation: mediaSettle 1.9s var(--lux) backwards;
    animation-delay: calc(var(--d, 0) * 110ms);
  }
}

@keyframes mediaRise {
  from { transform: translate3d(0, 16%, 0); }
}

@keyframes mediaSettle {
  from { transform: translate3d(0, -13%, 0) scale(1.24); }
}

/* ---------- Butoane magnetice (doar mouse; premium.js le mută spre cursor) ---------- */
.pointer-fine .btn.is-magnetic {
  transition: transform 0.22s var(--lux);
}

.pointer-fine .btn.is-magnetic .btn-in {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  transition: transform 0.22s var(--lux);
}

/* ---------- Detalii ---------- */
.crumbs a {
  min-width: 44px;
}

/* =====================================================================
   Pervaz Studio — detalii de site real
   ===================================================================== */
:root {
  --ck-bg: #1A1714;
  --ck-fg: var(--ink);
  --ck-muted: var(--muted);
  --ck-line: var(--line-2);
  --ck-accent: var(--gold);
  --ck-accent-fg: #14110E;
  --ck-soft: rgba(243, 238, 231, 0.05);
  --ck-off: rgba(243, 238, 231, 0.22);
  --ck-radius: 22px;
  --ck-btn-radius: 999px;
  --ck-font: var(--body);
  --open-color: #9FD9B4;
  --open-ring: rgba(159, 217, 180, 0.18);
  --closing-color: #F2C77E;
  --closing-ring: rgba(242, 199, 126, 0.18);
  --closed-color: #F0A99A;
  --closed-ring: rgba(240, 169, 154, 0.16);
}

/* limba salvată e EN: pagina apare direct tradusă (premium-i18n.js scoate clasa imediat) */
html.i18n-wait body {
  visibility: hidden;
}

/* ---------- Tipografie Cormorant: accentele aurii în italic ---------- */
.display .gold,
.h2 .gold {
  font-style: italic;
}

.statement {
  font-weight: 500;
  font-size: clamp(1.95rem, 4.9vw, 3.35rem);
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.statement em {
  font-style: italic;
}

.project-title {
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.005em;
}

.stat-num,
.footer-word {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.principles h3,
.services h3,
.s3-step h3,
.member h3 {
  font-weight: 600;
  letter-spacing: 0;
}

.brand-name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.display--sm {
  font-size: clamp(2.5rem, 7vw, 4.4rem);
}

.scroll-cue b {
  font-weight: inherit;
}

/* ---------- Comutatorul de limbă RO / EN ---------- */
.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(243, 238, 231, 0.03);
}

.lang-switch button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.74rem/1 var(--body);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #14110E;
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.lang-switch--head {
  margin-left: auto;
}

.lang-switch--menu {
  display: flex;
  width: max-content;
  margin-top: 18px;
}

.lang-switch--menu button {
  min-width: 64px;
  min-height: 44px;
}

@media (max-width: 380px) {
  .lang-switch--head button {
    min-width: 34px;
    padding: 0 7px;
  }
}

@media (min-width: 900px) {
  .lang-switch--head {
    order: 3;
    margin-left: 18px;
  }

  .header-inner .nav {
    order: 2;
    margin-left: auto;
  }

  .lang-switch--menu {
    display: none;
  }
}

/* ---------- Fotografii: proiecte, fereastra de proiect, comparație, echipă ---------- */
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--lux);
}

@media (hover: hover) and (pointer: fine) {
  .project-link:hover .project-media img,
  .project-open:hover .project-media img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .project.reveal.is-in .project-media img {
    animation: mediaSettle 1.9s var(--lux) backwards;
    animation-delay: calc(var(--d, 0) * 110ms);
  }
}

.pd-media {
  background: var(--surface);
}

.pd-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 900px) {
  .pd-media img {
    aspect-ratio: auto;
  }
}

.pd-meta {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.compare img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.compare-top img {
  height: 100%;
}

.member img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px 18px 18px;
  background: var(--surface);
}

.member .member-role {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 759px) {
  .member {
    grid-template-columns: 112px 1fr;
    align-items: center;
  }

  .member img {
    grid-row: span 3;
    border-radius: 80px 80px 12px 12px;
  }

  .member .member-role {
    align-self: start;
    margin: 0;
  }

  .member p:last-child {
    grid-column: 2;
  }
}

/* ---------- Proiecte: text lateral, prețuri de servicii ---------- */
.section-aside {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.svc-price {
  display: inline-block;
  margin: 18px 0 0 !important;
  padding: 6px 14px;
  border: 1px solid rgba(201, 167, 124, 0.4);
  border-radius: 999px;
  color: var(--gold-2) !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */
.info-list .open-status {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.92rem;
}

.info-list .open-status span,
.info-list .chip-btn span,
.info-list .ext {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.info-list .info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.86rem/1 var(--body);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.chip-btn svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.chip-btn:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.map-art text {
  font-family: var(--body);
}

.ext {
  text-decoration-color: rgba(201, 167, 124, 0.55);
}

/* ---------- Subsol ---------- */
.site-footer .social-links button {
  border-color: var(--line-2);
  color: var(--ink);
  letter-spacing: 0.04em;
}

.site-footer .social-links button:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.site-footer .open-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.footer-links .ext {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.98rem;
  text-decoration: none;
}

.footer-links .ext:hover {
  color: var(--gold-2);
}

.footer-bottom {
  align-items: center;
}

.footer-bottom a,
.footer-legal button {
  color: var(--muted);
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--gold-2);
}

/* ---------- Pagini scurte: legal, 404 ---------- */
.legal {
  max-width: 800px;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
}

.legal p {
  color: var(--muted);
}

.legal-note {
  margin: 0 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 167, 124, 0.3);
  color: var(--gold-2);
  font-size: 0.94rem;
}

.nf {
  text-align: center;
}

.nf-code {
  margin: 0;
  font: 500 clamp(5rem, 18vw, 9rem)/1 var(--head);
  font-style: italic;
  color: var(--gold-2);
}

.nf .lead {
  margin-left: auto;
  margin-right: auto;
}

.nf .hero-actions {
  justify-content: center;
}

.brand-sub {
  white-space: nowrap;
}

@media (max-width: 479px) {
  .header-inner .brand-sub {
    display: none;
  }
}

.stat-num,
.footer-word,
.nf-code {
  font-variant-numeric: lining-nums;
}
