/* =========================================================
   Cabinet de Avocat Sergiu Mocanu
   Temă: negru · alb · auriu
   Tipografie: Cormorant Garamond (titluri) + Jost (text și interfață)
   Fonturi self-hosted (fără cereri către Google Fonts — conform GDPR)
   Licență fonturi: SIL Open Font License 1.1
   ========================================================= */

/* ---------------- Fonturi ---------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(cormorant-latin-ext.woff2) format('woff2-variations');
  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: 300 700; font-display: swap;
  src: url(cormorant-latin.woff2) format('woff2-variations');
  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: italic; font-weight: 300 700; font-display: swap;
  src: url(cormorant-latin-ext-italic.woff2) format('woff2-variations');
  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: 300 700; font-display: swap;
  src: url(cormorant-latin-italic.woff2) format('woff2-variations');
  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: 'Jost';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(jost-latin-ext.woff2) format('woff2-variations');
  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: 'Jost';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(jost-latin.woff2) format('woff2-variations');
  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;
}

/* ---------------- Variabile ---------------- */
:root {
  color-scheme: dark;

  /* Culori — negru, alb, auriu */
  --bg: #08080A;
  --bg-2: #0E0F12;
  --bg-3: #15161A;
  --text: #FFFFFF;
  --text-2: #C6C4BE;
  --muted: #8B8981;

  --gold: #D8B26A;
  --gold-2: #F3D89B;
  --gold-deep: #8A6B22;
  --gold-soft: rgba(216, 178, 106, .16);

  --line: rgba(255, 255, 255, .10);
  --line-gold: rgba(216, 178, 106, .28);
  --line-strong: rgba(255, 255, 255, .26);

  /* alias păstrat pentru compatibilitate */
  --accent: var(--gold);

  /* Fonturi */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Jost', system-ui, sans-serif;

  /* Scară tipografică */
  --fs-display: clamp(2.4rem, 1.2rem + 3.1vw, 4rem);
  --fs-h1: clamp(2.1rem, 1.1rem + 2.4vw, 3.4rem);
  --fs-h2: clamp(1.8rem, 1rem + 1.8vw, 2.7rem);
  --fs-h3: clamp(1.35rem, 1.1rem + .7vw, 1.7rem);
  --fs-lead: clamp(1.02rem, .96rem + .35vw, 1.18rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-mono: .72rem;

  /* Ritm */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Distanța de fade (fade in / fade out) */
  --fade: 14px;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text-2);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 300; line-height: 1.72;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: #000; padding: .6rem 1rem; font-size: var(--fs-small); }
.skip-link:focus { top: 1rem; }

/* ---------------- Tipografie ---------------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.01em; }
h1.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.012em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.008em; }
h3 { font-size: var(--fs-h3); line-height: 1.18; font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: 1.68; color: var(--text-2); font-weight: 300; }
.muted { color: var(--muted); }
.prose > * + * { margin-top: 1.25em; }
.prose { max-width: 64ch; }
em.accent { font-style: normal; color: var(--gold); }
strong { font-weight: 500; color: var(--text); }

.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-mono); font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; flex: none; opacity: .7; }
.mono {
  font-family: var(--font-body); font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}

.link {
  color: var(--text);
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: .12em; transition: color .25s var(--ease);
}
.link:hover { color: var(--gold); }
.link-arrow {
  font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  background: none; padding-bottom: .3em; border-bottom: 1px solid var(--line-gold); transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-arrow::after { content: '\2192'; display: inline-block; margin-left: .6em; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--gold-2); border-color: var(--gold); }
.link-arrow:hover::after { transform: translateX(.3em); }

/* Butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.35rem; padding: 0 1.75rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: 0; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .3s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-2) 70%, var(--gold));
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn > * { position: relative; }
.btn-primary { color: var(--gold); background: transparent; }
.btn-primary:hover { color: #0A0A0A; box-shadow: 0 14px 40px -22px rgba(216, 178, 106, .9); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-solid { background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-2) 72%, var(--gold)); color: #0A0A0A; border-color: transparent; }
.btn-solid:hover { box-shadow: 0 14px 40px -20px rgba(216, 178, 106, .95); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------------- Layout ---------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Antet de pagină (subpagini) */
.page-head { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head .crumbs { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); display: flex; gap: .6rem; }
.page-head .crumbs a { color: var(--muted); transition: color .25s; }
.page-head .crumbs a:hover { color: var(--gold); }
.page-head .crumbs span::before { content: '/'; margin-right: .6rem; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 1.5rem; max-width: 60ch; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem var(--gutter); align-items: end; position: relative; z-index: 1; }
.page-head-grid .mono { text-align: right; }
.page-head-aside { display: grid; gap: 1.5rem; justify-items: end; }
.page-head-aside .sphere { --size: 168px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 10, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-gold); background: rgba(8, 8, 10, .95); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }

/* Sigla SM + numele cabinetului (buton către prima pagină) */
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--text); }
.brand-mark { width: 46px; height: 46px; flex: none; object-fit: contain; transition: transform .5s var(--ease), filter .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 0 12px rgba(216, 178, 106, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-body); font-size: 1.02rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.brand-role { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: .35rem; display: flex; align-items: center; gap: .5rem; }
.brand-role::before, .brand-role::after { content: ''; height: 1px; width: .9rem; background: currentColor; opacity: .55; }

.nav { display: flex; gap: 2rem; justify-content: center; }
.nav a {
  font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2); padding: .55rem 0; position: relative; transition: color .25s;
}
.nav a:hover { color: var(--text); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.header-cta .btn { min-height: 2.9rem; padding-inline: 1.3rem; font-size: .68rem; }

.menu-toggle { display: none; width: 2.85rem; height: 2.85rem; border: 1px solid var(--line-gold); align-items: center; justify-content: center; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1px; background: var(--gold); transition: transform .3s var(--ease); }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; background: var(--bg); padding: 1.5rem var(--gutter) 2.5rem; flex-direction: column; justify-content: space-between; overflow: auto; }
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.1; color: var(--text); padding: .85rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu-foot { display: grid; gap: 1rem; padding-top: 2rem; }
.mobile-menu-foot .btn { width: 100%; }

/* =========================================================
   HERO — carusel cu slide-uri (fade in / fade out)
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 88vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 72% 32%);
  transform: scale(1.06);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* voal: negru la stânga (pentru text), transparent la dreapta (fotografia) */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,10,.97) 0%, rgba(8,8,10,.92) 34%, rgba(8,8,10,.55) 58%, rgba(8,8,10,.28) 78%, rgba(8,8,10,.55) 100%),
    linear-gradient(180deg, rgba(8,8,10,.85) 0%, rgba(8,8,10,.15) 26%, rgba(8,8,10,.2) 60%, rgba(8,8,10,.96) 100%);
}

.hero-body { position: relative; z-index: 2; padding-top: clamp(3rem, 9vw, 6rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero-copy { max-width: 40rem; position: relative; }
.hero-copy .eyebrow { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero h1, .hero h2.display { max-width: 17ch; font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.012em; }
.hero h1 .accent { display: block; color: var(--gold); }
.hero .lead { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 46ch; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(2rem, 4vw, 2.75rem); }

/* fiecare slide are propriul text; se schimbă cu fade in/out de 14px */
.hero-text { display: grid; }
.hero-text > .hero-copy { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; align-self: start; }
.hero-text > .hero-copy.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

/* indicatori */
.hero-dots { display: flex; gap: .75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero-dots button {
  width: 2.5rem; height: 2px; background: rgba(255,255,255,.22); position: relative; overflow: hidden;
  transition: background-color .3s var(--ease);
}
.hero-dots button::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-selected="true"]::after { animation: dotFill var(--slide-dur, 6500ms) linear forwards; }
.hero-dots button:hover { background: rgba(255,255,255,.4); }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* sigla SM, ca sferă rotativă, în colțul din dreapta-jos al hero-ului */
.hero .hero-emblem {
  position: absolute; right: 0; bottom: clamp(1.5rem, 4vw, 3rem); z-index: 2;
  pointer-events: none; display: block;
}
.hero .hero-emblem .sphere { --size: clamp(120px, 13vw, 190px); }
.hero .hero-emblem::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 260%; height: 260%;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(8, 8, 10, .82) 0%, rgba(8, 8, 10, .45) 42%, transparent 68%);
}

/* bara cu principii (jos, ca în original) */
.hero-bar {
  position: relative; z-index: 2; border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(8,8,10,.35), rgba(8,8,10,.85));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles { display: contents; }
.principles li {
  display: flex; align-items: center; justify-content: center; gap: .85rem;
  padding: 1.35rem 1rem; text-align: center;
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text);
}
.principles li + li { border-left: 1px solid var(--line); }
.principles svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--gold); }

/* ---------------- Sferă rotativă cu sigla SM ---------------- */
.sphere {
  position: relative; width: var(--size, 200px); height: var(--size, 200px);
  border-radius: 50%; overflow: hidden; flex: none; perspective: 520px;
  background:
    radial-gradient(circle at 32% 28%, #6b5320 0%, #3a2c10 42%, #17120680 72%, #0b0b0d 100%);
  box-shadow: 0 0 0 1px rgba(216,178,106,.22), 0 30px 80px -40px rgba(216,178,106,.55), inset 0 0 60px rgba(0,0,0,.75);
}
.sphere::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,244,214,.42) 0%, rgba(255,244,214,.10) 26%, transparent 48%),
    radial-gradient(circle at 72% 82%, rgba(0,0,0,.72) 0%, transparent 58%);
}
.sphere-face { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; z-index: 2; }
.sphere-face img { width: 62%; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.sphere-glow { position: absolute; inset: -34%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(216,178,106,.22), transparent 62%); pointer-events: none; }
.sphere-wrap { position: relative; display: inline-flex; }

/* ---------------- Mișcare ---------------- */
@media (prefers-reduced-motion: no-preference) {
  /* tranziție între pagini */
  .js body { opacity: 0; }
  .js.is-ready body { opacity: 1; transition: opacity .55s var(--ease); }
  .js.is-leaving body { opacity: 0; transition: opacity .22s ease; }

  /* HERO: fade in / fade out cu 14px (fotografii + text) */
  .hero-slide { transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease); }
  .hero-slide img { transition: transform 7.5s linear, filter 1.1s var(--ease); transform: scale(1.1) translateY(var(--fade)); filter: blur(2px); }
  .hero-slide.is-active img { transform: scale(1.02) translateY(0); filter: blur(0); }

  .hero-text > .hero-copy { transform: translateY(var(--fade)); transition: opacity .8s var(--ease), transform .8s var(--ease), visibility .8s var(--ease); }
  .hero-text > .hero-copy.is-active { transform: translateY(0); }
  .hero-text > .hero-copy.is-out { transform: translateY(calc(-1 * var(--fade))); }

  /* intrarea în hero */
  .js .hero [data-stagger] { animation: rise .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }

  /* apariție la scroll, cu focalizare */
  .js .reveal { opacity: 0; transform: translateY(var(--fade)); filter: blur(5px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
  .js .reveal[data-delay="1"] { transition-delay: .1s; }
  .js .reveal[data-delay="2"] { transition-delay: .2s; }
  .js .reveal[data-delay="3"] { transition-delay: .3s; }

  /* copii eșalonați */
  .js .areas.reveal .area, .js .reveal .areas .area, .js .areas-index.reveal a, .js .steps.reveal li, .js .facts.reveal > div { opacity: 0; }
  .js .areas.reveal.is-in .area, .js .reveal.is-in .areas .area, .js .areas-index.reveal.is-in a, .js .steps.reveal.is-in li, .js .facts.reveal.is-in > div {
    animation: rise .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 80ms);
  }
  .js :is(.area, .areas-index a, .steps li, .facts > div):nth-child(2) { --n: 1; }
  .js :is(.area, .areas-index a, .steps li, .facts > div):nth-child(3) { --n: 2; }
  .js :is(.area, .areas-index a, .facts > div):nth-child(4) { --n: 3; }
  .js :is(.area, .areas-index a):nth-child(5) { --n: 4; }
  .js :is(.area, .areas-index a):nth-child(6) { --n: 5; }
  .js .areas-index a:nth-child(7) { --n: 6; }
  .js .areas-index a:nth-child(8) { --n: 7; }
  .js .areas-index a:nth-child(9) { --n: 8; }

  /* meniul mobil */
  .mobile-menu.is-open nav a { animation: rise .5s var(--ease) both; }
  .mobile-menu.is-open nav a:nth-child(2) { animation-delay: 50ms; }
  .mobile-menu.is-open nav a:nth-child(3) { animation-delay: 100ms; }
  .mobile-menu.is-open nav a:nth-child(4) { animation-delay: 150ms; }
  .mobile-menu.is-open nav a:nth-child(5) { animation-delay: 200ms; }
  .mobile-menu.is-open .mobile-menu-foot { animation: rise .6s var(--ease) both .25s; }

  /* fotografii: zoom discret la hover */
  .about-media img, .gallery img, .process-media img, .contact-media img { transition: transform 1.1s var(--ease); }
  .about-media .primary:hover img, .about-media .secondary:hover img, .gallery figure:hover img, .process-media:hover img, .contact-media:hover img { transform: scale(1.03); }

  /* sfera se rotește */
  .sphere-face { animation: spin 18s linear infinite; }
  .sphere-glow { animation: pulse 6s ease-in-out infinite; }
  .sphere:hover .sphere-face { animation-duration: 7s; }

  /* butoane */
  .btn:hover { transform: translateY(-1px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(var(--fade)); } to { opacity: 1; transform: none; } }
@keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------------- Acasă: blocuri ---------------- */
.home-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem var(--gutter); align-items: start; }
.home-block .eyebrow { padding-top: .6rem; }
.home-block h2 { margin-bottom: 1.75rem; }
.home-block .prose { max-width: 62ch; }
.home-block .more { margin-top: 2rem; }

.areas-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.areas-index a { background: var(--bg); padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; transition: background-color .35s var(--ease); position: relative; }
.areas-index a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.areas-index a:hover { background: var(--bg-2); }
.areas-index a:hover::before { transform: scaleY(1); }
.areas-index a:hover .name { color: var(--gold); }
.areas-index .name { font-family: var(--font-display); font-size: 1.45rem; color: var(--text); line-height: 1.15; transition: color .25s, transform .35s var(--ease); }
.areas-index a:hover .name { transform: translateX(4px); }
.areas-index .tags { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }

.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.facts dd { color: var(--text); font-weight: 300; font-size: var(--fs-small); }

/* Bandă CTA */
.cta-band { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line); }
.cta-band .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2rem var(--gutter); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.cta-band h2 { max-width: 16ch; }
.cta-band .lead { margin-top: 1rem; max-width: 42ch; }
.cta-band .actions { display: grid; gap: 1.25rem; justify-items: start; }
.cta-band .phone { font-family: var(--font-display); font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem); color: var(--gold); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .25s; }
.cta-band .phone:hover { color: var(--gold-2); }
.cta-band .sphere-wrap { justify-self: center; }

/* ---------------- Despre ---------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-media { position: relative; padding-right: 18%; padding-bottom: 14%; }
.about-media .primary { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.about-media .primary img, .about-media .secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-media .secondary { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); border: 8px solid var(--bg); }
.about-media figcaption { position: absolute; left: 0; bottom: 0; max-width: 60%; font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-right: 1rem; line-height: 1.8; }
.about-copy .facts { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.quote { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem var(--gutter); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.9rem); line-height: 1.24; color: var(--text); letter-spacing: -.01em; max-width: 26ch; text-wrap: balance; }
.quote cite { display: block; margin-top: 1.5rem; font-style: normal; }

.office-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.office-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); }
.gallery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.gallery figure { overflow: hidden; background: var(--bg-3); min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g1 { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
.g2 { grid-area: 1 / 2 / 3 / 3; }
.g3 { grid-area: 2 / 1; aspect-ratio: 4 / 3; }

/* ---------------- Arii de practică ---------------- */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { background: var(--bg); padding: clamp(1.6rem, 2.5vw, 2.5rem); display: flex; flex-direction: column; gap: .95rem; transition: background-color .35s var(--ease); scroll-margin-top: calc(var(--header-h) + 1.5rem); position: relative; }
.area::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.area:hover { background: var(--bg-2); }
.area:hover::before { transform: scaleX(1); }
.area h3 { transition: color .3s var(--ease); }
.area:hover h3 { color: var(--gold); }
.area .tags { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); line-height: 1.9; opacity: .8; }
.area .tags span, .areas-index .tags span { display: inline; }
.area .tags span:not(:last-child)::after, .areas-index .tags span:not(:last-child)::after { content: '\00B7'; margin-left: .55em; }
.area p { font-size: var(--fs-small); color: var(--text-2); line-height: 1.7; }
.areas-sub { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.areas-sub .eyebrow { margin-bottom: 1.25rem; }

/* ---------------- Cum lucrăm ---------------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.process-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-media figcaption { margin-top: 1rem; font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.steps li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); padding-top: .1rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(1.55rem, 1.2rem + 1vw, 2.2rem); margin-bottom: .7rem; }
.steps p { color: var(--text-2); max-width: 54ch; }
.steps p + p { margin-top: .75rem; }
.process-note { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: var(--fs-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.process-note a { color: var(--gold); border-bottom: 1px solid var(--line-gold); transition: color .25s, border-color .25s; }
.process-note a:hover { color: var(--gold-2); border-color: var(--gold); }

/* Fotografie „topită” în fundal — margini estompate (fade in/out 14px) */
.photo-blend { position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
/* fade-ul se aplică pe două elemente (câte o singură mască pe fiecare),
   ca să funcționeze identic în toate browserele */
.photo-blend figure {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.photo-blend img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%;
  aspect-ratio: 21 / 9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
/* voalul stă între fotografie și text (textul rămâne deasupra) */
.photo-blend figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top right, rgba(8, 8, 10, .94) 0%, rgba(8, 8, 10, .5) 27%, transparent 54%),
    linear-gradient(90deg, var(--bg) 0%, transparent 9%, transparent 91%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 9%, transparent 56%, rgba(8, 8, 10, .9) 94%, var(--bg) 100%);
}
.photo-blend figcaption {
  position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: clamp(1rem, 3vw, 2.25rem); z-index: 2;
  font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 2px 18px rgba(0,0,0,.9); max-width: 34ch; line-height: 1.9;
}
.photo-blend figcaption span { color: var(--gold); display: block; margin-bottom: .35rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list dt { font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.contact-list dd { color: var(--text); }
.contact-list dd small { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: .4rem; line-height: 1.6; }
.contact-list dd .link { font-size: var(--fs-small); }
.contact-list dd a.big { font-family: var(--font-display); font-size: 2.15rem; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; background-size: 0 1px; color: var(--gold); }
.contact-list dd a.big:hover { background-size: 100% 1px; color: var(--gold-2); }
.contact-media { margin-top: clamp(2rem, 4vw, 3rem); aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Rețele sociale */
.socials { display: flex; gap: .75rem; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .95rem;
  flex: none; white-space: nowrap;
  border: 1px solid var(--line); color: var(--text-2);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.social svg { width: 1.05rem; height: 1.05rem; flex: none; }
.social:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.form-panel { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.75rem); }
.form-panel h2 { font-size: 1.9rem; margin-bottom: .5rem; }
.form-panel > p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 1.75rem; max-width: 48ch; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: .7rem 0; border-radius: 0; color: var(--text);
  transition: border-color .25s var(--ease); -webkit-appearance: none; appearance: none;
}
.field select { 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 1l5 5 5-5' fill='none' stroke='%23D8B26A' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .1rem center; padding-right: 1.5rem; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .3); }
.consent { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.consent input { margin: .35rem 0 0; width: 1rem; height: 1rem; accent-color: var(--gold); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.form-status { font-size: var(--fs-small); color: var(--muted); }
.form-status.is-ok { color: var(--gold); }
.form-status.is-err { color: #E08A8A; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hartă */
.map {
  margin-top: clamp(3rem, 6vw, 5rem); position: relative; background: var(--bg-2); border: 1px solid var(--line);
  aspect-ratio: 21 / 8; min-height: 320px; display: grid; place-items: center; overflow: hidden;
  background-image: radial-gradient(rgba(216, 178, 106, .16) 1px, transparent 1px); background-size: 22px 22px;
}
.map-inner { text-align: center; display: grid; gap: 1.1rem; justify-items: center; padding: 2rem; max-width: 36rem; }
.map-inner .display { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.25; }
.map-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.map-actions .btn { min-height: 2.9rem; padding-inline: 1.3rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) grayscale(.4) contrast(.92) sepia(.12); transition: filter .4s var(--ease); }
.map:hover iframe { filter: invert(.92) hue-rotate(180deg) grayscale(.15) contrast(.95); }
.map.is-loaded .map-inner { display: none; }
.map-note { margin-top: .9rem; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line-gold); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2.5rem var(--gutter); }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand .brand-name { font-size: 1.05rem; }
.footer-grid p { font-size: var(--fs-small); color: var(--muted); max-width: 38ch; }
.footer-col h4 { font-size: var(--fs-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .55rem; font-size: var(--fs-small); }
.footer-col a { color: var(--text-2); transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-socials { margin-top: 1.75rem; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .nav { gap: 1.35rem; }
  .brand-name { font-size: .92rem; letter-spacing: .16em; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { min-height: 92vh; }
  .hero-veil { background:
    linear-gradient(180deg, rgba(8,8,10,.74) 0%, rgba(8,8,10,.62) 26%, rgba(8,8,10,.86) 62%, rgba(8,8,10,.98) 100%); }
  .hero-slide img { object-position: 62% 22%; }
  .hero h1 { max-width: 16ch; }
  .hero .hero-emblem { position: static; margin-top: 2.25rem; display: inline-flex; }
  .hero .hero-emblem .sphere { --size: 104px; }
  .hero .hero-emblem::before { display: none; }
  .home-block, .quote, .page-head-grid { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .sphere-wrap { justify-self: start; }
  .page-head-grid .mono { text-align: left; }
  .page-head-aside { justify-items: start; }
  .about-grid, .contact-grid, .process-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .process-media { max-width: 480px; }
  .areas, .areas-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: .82rem; }
  .brand-role { font-size: .52rem; }
  .hero-bar .container { grid-template-columns: 1fr; }
  .principles li { justify-content: flex-start; padding: .85rem 0; }
  .principles li + li { border-left: 0; border-top: 1px solid var(--line); }
  .areas, .areas-index { grid-template-columns: 1fr; }
  .about-media { padding-right: 0; padding-bottom: 0; }
  .about-media .secondary { display: none; }
  .about-media figcaption { position: static; max-width: none; margin-top: .75rem; }
  .facts > div, .contact-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .g1, .g3 { grid-area: auto; }
  .g2 { grid-area: auto; aspect-ratio: 3 / 4; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: auto; min-height: 340px; }
  .cta-band .actions { justify-items: stretch; }
  .photo-blend img { aspect-ratio: 4 / 3; }
  .sphere { --size: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-slide { transition: opacity .01ms; }
}
@media print {
  .site-header, .mobile-menu, .form-panel, .map, .hero-actions, .cta-band, .hero-dots, .sphere-wrap { display: none !important; }
  body { background: #fff; color: #000; }
}
