/* Biroul De IT — prima parte a demourilor: o scenă în spațiu.

   Partea de sus a demoului (poza pe tot ecranul cu text peste) e înlocuită de o
   compoziție în adâncime, făcută din pozele demoului: pe telefon scena stă
   deasupra textului, pe tabletă și laptop lângă el (la unele demouri în stânga,
   la altele în dreapta), iar acolo scena se înclină și după mouse.
   Piesele sunt comune (o poză ca o carte care se întoarce, o poză mai mică în
   față, o etichetă care plutește, un cuvânt uriaș conturat în fundal, scântei),
   dar fiecare demo are propria așezare și propriul decor:
   - Aura & Artifact: vitrina din mijloc, cu un inel auriu pe orbită;
   - Château de l'Héritage: via înclinată și sticla în picioare, cu soarele în spate;
   - Aurelian Yachts: panorama largă, peste valuri care vin spre tine;
   - The Breath: arcada luminoasă, cu cercuri care respiră;
   - Maison Avant: titlul întâi, ca într-o revistă, apoi portretul și liniile bordo;
   - L'ÉCLAT: farfuria uriașă care se rotește încet, ieșind din ecran;
   - Apex: mașina pe o podea cu grilă care curge spre tine;
   - Estate Marais: ușa în arcadă, cu alte arcade care se pierd în adâncime.
   Totul intră din adâncime la încărcare și se leagănă încet; la derulare
   straturile se depărtează (m-hero.js setează --mp, de la 0 la 1, și --tx/--ty
   după deget sau mouse). Doar transform, opacity și umbre: fără filtre GPU. */

.mh-old { display: none !important; }
@media (max-width: 767px) { html, body { overflow-x: clip; } }

@media all {

  .mh {
    --mh-bg: #0d0c0b; --mh-ink: #f6f0e3; --mh-muted: rgba(246, 240, 227, 0.74);
    --mh-acc: #d9b65a; --mh-line: rgba(217, 182, 90, 0.45); --mh-glow: rgba(217, 182, 90, 0.2);
    --mh-mat: #17140f; --mh-plate: #14110c; --mh-r: 6px; --mh-chip: rgba(20, 17, 12, 0.93);
    --mh-ghost: rgba(217, 182, 90, 0.28); --mh-orbit: rgba(217, 182, 90, 0.38);
    --mh-x: 0 1px 0 #8a6d2b, 0 2px 0 #6b531f, 0 3px 0 #4a3914, 0 16px 30px rgba(0, 0, 0, 0.55);
    --mh-btn: linear-gradient(135deg, #f7e6ac 0%, #d9b45a 42%, #a97f2c 100%); --mh-btn-ink: #1a1408;
    --mh-btn-glow: rgba(217, 182, 90, 0.45); --mh-btn-r: 0;
    --mh-serif: 'Playfair Display', Georgia, serif; --mh-sans: Montserrat, system-ui, sans-serif;
    --mh-hs: 46px; --mh-hw: 500;
    --mh-top: 72px; --mh-bot: 0px;
    display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate;
    box-sizing: border-box; min-height: 100vh; min-height: 100svh;
    padding: calc(var(--mh-top) + 4px) 0 calc(var(--mh-bot) + 30px);
    background: var(--mh-bg); color: var(--mh-ink);
  }
  .mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
  .mh::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(90% 55% at var(--glow-x, 72%) 32%, var(--mh-glow) 0%, transparent 62%),
      radial-gradient(70% 40% at 0% 100%, var(--mh-glow2, transparent) 0%, transparent 70%);
  }

  /* ---------- scena ---------- */
  .mh-world { position: relative; flex: 1 1 auto; min-height: 300px; max-height: 500px; perspective: 1000px; perspective-origin: 50% 38%; margin-bottom: -8px; touch-action: pan-y; }
  .mh-cam, .mh-sway { position: absolute; inset: 0; transform-style: preserve-3d; }
  .mh-cam {
    transform-origin: 50% 100%;
    transform: translateY(calc(var(--mp, 0) * -34px)) rotateX(calc(var(--mp, 0) * 20deg + var(--ty, 0) * -6deg)) rotateY(calc(var(--tx, 0) * 9deg));
    transition: transform 0.35s ease-out;
  }
  .mh-sway { animation: mh-sway 14s ease-in-out infinite alternate; }
  @keyframes mh-sway { 0% { transform: rotateY(-7deg) rotateX(3deg); } 100% { transform: rotateY(6deg) rotateX(-2deg); } }

  /* intrarea din adâncime (separată de așezare, ca transformările să nu se bată cap în cap) */
  .mh-e { position: absolute; inset: 0; transform-style: preserve-3d; animation: mh-in 1.5s cubic-bezier(0.16, 0.84, 0.24, 1) backwards; animation-delay: var(--in, 0s); }
  @keyframes mh-in {
    0% { opacity: 0; transform: translate3d(30px, 50px, -560px) rotateY(55deg) rotateX(-16deg); }
    35% { opacity: 1; }
    100% { opacity: 1; transform: none; }
  }

  /* poza principală: o carte cu două foi în spate, care se întoarce din când în când */
  .mh-p1 {
    position: absolute; top: var(--p1-t, 5%); left: var(--p1-l, auto); right: var(--p1-r, 7%);
    height: var(--p1-h, 80%); width: var(--p1-w, auto); aspect-ratio: var(--p1-ar, 4 / 5);
    translate: var(--p1-tr, 0 0); transform-style: preserve-3d;
    transform: translateZ(calc(var(--mp, 0) * -70px)) rotateY(var(--p1-ry, -17deg)) rotateX(var(--p1-rx, 4deg)) rotateZ(var(--p1-rz, 1.5deg));
  }
  .mh-p1 .mh-e::before, .mh-p1 .mh-e::after {
    content: ""; position: absolute; inset: 0; border: 1px solid var(--mh-line); border-radius: var(--mh-r); background: var(--mh-plate);
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.6); z-index: -1;
  }
  .mh-p1 .mh-e::before { transform: translate3d(var(--deck-x, -14px), 12px, -30px) rotateZ(var(--deck-r, -4deg)); }
  .mh-p1 .mh-e::after { transform: translate3d(calc(var(--deck-x, -14px) * 2), 24px, -60px) rotateZ(calc(var(--deck-r, -4deg) * 2)); opacity: 0.75; z-index: -2; }
  .mh-nodeck .mh-e::before, .mh-nodeck .mh-e::after { display: none; }
  .mh-card { position: absolute; inset: 0; transform-style: preserve-3d; animation: mh-flip 10s cubic-bezier(0.65, 0, 0.35, 1) 3.4s infinite; }
  @keyframes mh-flip { 0%, 42% { transform: rotateY(0deg); } 50%, 92% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
  .mh-face {
    position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: var(--mh-r);
    padding: var(--mh-matw, 6px); background: var(--mh-mat); border: 1px solid var(--mh-line);
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    box-shadow: 0 34px 56px -20px rgba(0, 0, 0, 0.7);
  }
  .mh-back { transform: rotateY(180deg); }
  .mh-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); border-radius: max(0px, calc(var(--mh-r) - 4px)); }
  /* o lumină trece din când în când peste poze */
  .mh-face::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.3) 50%, transparent 64%);
    transform: translateX(-130%); animation: mh-sheen 8s ease-in-out 2.2s infinite;
  }
  @keyframes mh-sheen { 0% { transform: translateX(-130%); } 14%, 100% { transform: translateX(130%); } }

  /* poza mică, în fața celei mari */
  .mh-p2 {
    position: absolute; left: var(--p2-l, 6%); right: var(--p2-r, auto); top: var(--p2-t, auto); bottom: var(--p2-b, 4%);
    height: var(--p2-h, 46%); aspect-ratio: var(--p2-ar, 3 / 4); transform-style: preserve-3d;
    transform: translate3d(0, calc(var(--mp, 0) * -60px), calc(var(--p2-z, 70px) + var(--mp, 0) * 180px)) rotateY(var(--p2-ry, 19deg)) rotateZ(var(--p2-rz, -5deg));
  }
  .mh-p2 .mh-e { --in: 0.35s; }
  .mh-p2 .mh-face { border-radius: var(--p2-r-shape, var(--mh-r)); }
  .mh-p2 .mh-face img { border-radius: var(--p2-r-img, max(0px, calc(var(--mh-r) - 4px))); }
  .mh-p2 .mh-face::after { animation-delay: 3.4s; }

  /* eticheta care plutește cel mai în față */
  .mh-chip {
    position: absolute; left: var(--c-l, 6%); right: var(--c-r, auto); top: var(--c-t, 9%); bottom: var(--c-b, auto);
    transform-style: preserve-3d;
    transform: translate3d(0, calc(var(--mp, 0) * -90px), calc(130px + var(--mp, 0) * 260px)) rotateY(var(--c-ry, 14deg));
  }
  .mh-chip .mh-e { position: relative; inset: auto; --in: 0.75s; }
  .mh-chip .mh-f {
    display: flex; flex-direction: column; gap: 5px; padding: 10px 13px 11px; border-radius: 12px;
    background: var(--mh-chip); border: 1px solid var(--mh-line); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.6);
    animation: mh-float 5s ease-in-out 1.8s infinite alternate;
  }
  .mh-chip b { font: 600 19px/1 var(--mh-serif); color: var(--mh-acc); letter-spacing: 0.01em; white-space: nowrap; }
  .mh-chip span { font: 600 9px/1.2 var(--mh-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mh-muted); white-space: nowrap; }
  @keyframes mh-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }

  /* cuvântul uriaș din fundal */
  .mh-ghost {
    position: absolute; left: var(--g-l, -8%); right: var(--g-r, auto); top: var(--g-t, -3%); pointer-events: none; transform-style: preserve-3d;
    transform: translate3d(calc(var(--mp, 0) * -70px), 0, -240px) rotateY(var(--g-ry, 30deg)) rotateZ(var(--g-rz, 0deg));
    transform-origin: var(--g-o, 50% 50%);
  }
  .mh-ghost span {
    display: block; white-space: nowrap; font: var(--g-w, 600) var(--g-s, 32vw)/0.84 var(--g-f, var(--mh-serif)); letter-spacing: -0.02em;
    color: transparent; -webkit-text-stroke: 1px var(--mh-ghost);
    animation: mh-ghost 2.2s ease 0.2s both, mh-drift 18s ease-in-out 2.4s infinite alternate;
  }
  @keyframes mh-ghost { from { opacity: 0; transform: translateX(-12%); } }
  @keyframes mh-drift { to { transform: translateX(-9%); } }

  /* scântei */
  .mh-sp { position: absolute; left: var(--x); top: var(--y); width: var(--s, 14px); height: var(--s, 14px); transform: translateZ(var(--z, 60px)); pointer-events: none; }
  .mh-sp::before, .mh-sp::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 1.5px; margin: -0.75px 0 0 -50%;
    background: linear-gradient(90deg, transparent, var(--mh-spark, #fff6dc), transparent); border-radius: 2px;
    animation: mh-tw 3.4s ease-in-out var(--d, 0s) infinite;
  }
  .mh-sp::after { transform: rotate(90deg); }
  @keyframes mh-tw { 0%, 100% { opacity: 0.1; scale: 0.4; } 50% { opacity: 1; scale: 1; } }

  /* ---------- decorurile ---------- */
  /* inel pe orbită, cu o cometă care trece prin spatele și prin fața pozei */
  .mh-orbit {
    position: absolute; left: var(--o-x, 60%); top: var(--o-y, 46%); width: var(--o-w, 112vw); aspect-ratio: 1;
    translate: -50% -50%; transform-style: preserve-3d; transform: rotateX(var(--o-rx, 74deg)) rotateZ(var(--o-rz, -16deg));
    border: 1px solid var(--mh-orbit); border-radius: 50%; pointer-events: none;
  }
  .mh-orbit i {
    position: absolute; inset: -1px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 78%, var(--mh-acc) 95%, #fff 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: mh-spin 7s linear infinite;
  }
  @keyframes mh-spin { to { transform: rotate(360deg); } }
  /* soare care răsare în spatele pozelor */
  .mh-sun {
    position: absolute; right: 2%; top: 4%; width: 74vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 214, 140, 0.6) 0%, rgba(233, 160, 70, 0.24) 36%, transparent 68%);
    transform: translateZ(-170px); animation: mh-rise 3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }
  @keyframes mh-rise { from { opacity: 0; translate: 0 70px; } }
  /* valuri care vin spre tine */
  .mh-sea { position: absolute; left: -40%; right: -40%; bottom: -6%; height: 70%; transform-origin: 50% 100%; transform: rotateX(80deg); overflow: hidden; pointer-events: none;
    -webkit-mask: linear-gradient(to top, #000 10%, transparent 85%); mask: linear-gradient(to top, #000 10%, transparent 85%); }
  .mh-sea i { position: absolute; left: 0; right: 0; top: -40px; bottom: 0; background: repeating-linear-gradient(180deg, transparent 0 32px, var(--mh-orbit) 32px 33px); animation: mh-wave 2.6s linear infinite; }
  @keyframes mh-wave { to { transform: translateY(33px); } }
  /* podea cu grilă, în mișcare, și dâre de lumină */
  .mh-grid { position: absolute; left: -60%; right: -60%; bottom: -6%; height: 70%; transform-origin: 50% 100%; transform: rotateX(78deg); overflow: hidden; pointer-events: none;
    -webkit-mask: linear-gradient(to top, #000 0%, transparent 80%); mask: linear-gradient(to top, #000 0%, transparent 80%); }
  .mh-grid i { position: absolute; inset: -46px 0 0; background-image: linear-gradient(var(--mh-orbit) 1px, transparent 1px), linear-gradient(90deg, var(--mh-orbit) 1px, transparent 1px); background-size: 46px 46px; animation: mh-grid 1.1s linear infinite; }
  @keyframes mh-grid { to { transform: translateY(46px); } }
  .mh-streak { position: absolute; left: 0; top: var(--y); width: 46vw; height: 1.5px; pointer-events: none; transform: translateZ(var(--z, 40px));
    background: linear-gradient(90deg, transparent, var(--mh-acc), #fff); border-radius: 2px; opacity: 0; animation: mh-streak 2.8s cubic-bezier(0.5, 0, 0.2, 1) var(--d, 0s) infinite; }
  @keyframes mh-streak { 0% { opacity: 0; translate: -60vw 0; } 15% { opacity: 1; } 60%, 100% { opacity: 0; translate: 120vw 0; } }
  /* cercuri care respiră */
  .mh-breath { position: absolute; left: var(--o-x, 50%); top: var(--o-y, 46%); width: 100vw; aspect-ratio: 1; translate: -50% -50%; transform: translateZ(-120px); pointer-events: none; }
  .mh-breath i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--mh-orbit); animation: mh-breathe 8s ease-in-out infinite; }
  .mh-breath i:nth-child(2) { inset: 14%; animation-delay: -2.6s; }
  .mh-breath i:nth-child(3) { inset: 28%; animation-delay: -5.2s; }
  @keyframes mh-breathe { 0%, 100% { scale: 0.86; opacity: 0.35; } 50% { scale: 1.06; opacity: 1; } }
  /* arcade care se pierd în adâncime, în spatele pozei */
  .mh-arches {
    position: absolute; top: var(--p1-t, 5%); left: var(--p1-l, auto); right: var(--p1-r, 7%); height: var(--p1-h, 80%); aspect-ratio: var(--p1-ar, 4 / 5);
    transform-style: preserve-3d; transform: rotateY(var(--p1-ry, -17deg)) rotateX(var(--p1-rx, 4deg)); pointer-events: none;
  }
  .mh-arches i { position: absolute; inset: 0; border: 1px solid var(--mh-orbit); border-radius: var(--mh-r); animation: mh-in 1.8s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
  .mh-arches i:nth-child(1) { translate: 26px -16px -120px; animation-delay: 0.5s; }
  .mh-arches i:nth-child(2) { translate: 52px -32px -240px; animation-delay: 0.65s; opacity: 0.7; }
  .mh-arches i:nth-child(3) { translate: 78px -48px -360px; animation-delay: 0.8s; opacity: 0.45; }
  /* linii verticale de croitorie */
  .mh-lines { position: absolute; inset: 0; transform: translateZ(-150px); pointer-events: none; }
  .mh-lines i { position: absolute; top: -10%; bottom: -10%; width: 1px; left: var(--lx); background: linear-gradient(transparent, var(--mh-orbit) 30%, var(--mh-orbit) 70%, transparent); animation: mh-line-in 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0.3s) both; transform-origin: 50% 0; }
  @keyframes mh-line-in { from { scale: 1 0; } }
  /* farfuria care se rotește încet */
  .mh-spin img { animation: mh-spin 60s linear infinite; }

  /* ---------- textul și butoanele ---------- */
  .mh-copy { position: relative; z-index: 2; padding: 0 22px; }
  .mh-eye { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 10.5px/1 var(--mh-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mh-acc); animation: mh-up 0.9s ease 0.35s both; }
  .mh-eye::before { content: ""; width: 26px; height: 1px; background: currentColor; }
  .mh-h { margin: 0 0 12px; font: var(--mh-hw) var(--mh-hs)/1.02 var(--mh-serif); letter-spacing: var(--mh-hl, -0.01em); color: var(--mh-ink); text-shadow: var(--mh-x); text-wrap: balance; }
  .mh-h > span { display: block; transform-origin: 50% 100%; animation: mh-line 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.5s + var(--i, 0) * 0.13s); }
  .mh-h em { font-style: italic; color: var(--mh-acc); }
  .mh-h .mh-a { color: var(--mh-acc); }
  @keyframes mh-line { from { opacity: 0; transform: perspective(520px) rotateX(-82deg) translateY(0.3em); } }
  .mh-sub { margin: 0 0 20px; max-width: 34ch; font: 400 14.5px/1.55 var(--mh-sans); color: var(--mh-muted); animation: mh-up 0.9s ease 0.85s both; }
  .mh-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; animation: mh-up 0.9s ease 1s both; }
  @keyframes mh-up { from { opacity: 0; transform: translateY(14px); } }
  .mh-btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px;
    background: var(--mh-btn); color: var(--mh-btn-ink); border-radius: var(--mh-btn-r);
    font: 700 11.5px/1 var(--mh-sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
    box-shadow: 0 16px 30px -12px var(--mh-btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  .mh-btn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%); animation: mh-sheen 6s ease-in-out 2.4s infinite;
  }
  .mh-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0 5px; color: var(--mh-ink); border-bottom: 1px solid var(--mh-acc); font: 600 11.5px/1 var(--mh-sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
  /* varianta centrată */
  .mh-mid .mh-copy { text-align: center; }
  .mh-mid .mh-eye, .mh-mid .mh-cta { justify-content: center; }
  .mh-mid .mh-eye::after { content: ""; width: 26px; height: 1px; background: currentColor; }
  .mh-mid .mh-sub { margin-left: auto; margin-right: auto; }

  /* cât timp scena nu e pe ecran, animațiile stau pe loc */
  .mh.mh-off *, .mh.mh-off *::before, .mh.mh-off *::after { animation-play-state: paused !important; }

  /* ===================== temele demourilor ===================== */

  /* Aura & Artifact — vitrina: inelul în mijloc, un inel auriu pe orbită în jurul lui */
  .mh--luxe {
    --mh-top: 95px; --mh-matw: 5px; --mh-r: 22px;
    --p1-l: 50%; --p1-r: auto; --p1-tr: -50% 0; --p1-t: 7%; --p1-h: 78%; --p1-ar: 3 / 4; --p1-ry: -6deg; --p1-rz: 0deg; --deck-x: 0px; --deck-r: 5deg;
    --o-x: 50%; --o-y: 50%; --o-w: 108vw; --o-rz: -10deg;
    --c-l: auto; --c-r: 4%; --c-t: auto; --c-b: 24%; --c-ry: -16deg;
    --g-s: 30vw; --g-t: 2%; --glow-x: 50%;
  }

  /* Château de l'Héritage — via înclinată spre dreapta, sticla în picioare, soarele în spate */
  .mh--wine {
    --mh-top: 91px; --mh-bg: #120c0c; --mh-glow: rgba(150, 40, 40, 0.28); --mh-glow2: rgba(233, 193, 118, 0.12);
    --mh-acc: #e9c176; --mh-line: rgba(233, 193, 118, 0.42); --mh-mat: #1c1313; --mh-plate: #1a0f0f; --mh-chip: rgba(26, 15, 15, 0.94);
    --mh-ghost: rgba(233, 193, 118, 0.32); --mh-orbit: rgba(233, 193, 118, 0.3);
    --mh-x: 0 1px 0 #7a2a22, 0 2px 0 #5f1f19, 0 3px 0 #451510, 0 16px 30px rgba(0, 0, 0, 0.6);
    --mh-btn: linear-gradient(135deg, #f8e3b4 0%, #e3b866 45%, #a8792f 100%);
    --mh-serif: 'Bodoni Moda', Georgia, serif; --mh-sans: Manrope, system-ui, sans-serif;
    --mh-r: 3px; --p1-l: 5%; --p1-r: auto; --p1-t: 10%; --p1-h: 66%; --p1-ar: 4 / 5; --p1-ry: 18deg; --p1-rz: -2deg; --deck-x: 14px; --deck-r: 4deg;
    --p2-l: auto; --p2-r: 7%; --p2-b: 9%; --p2-h: 80%; --p2-ar: 2 / 5; --p2-ry: -16deg; --p2-rz: 2deg; --p2-z: 90px;
    --c-l: 8%; --c-t: 56%; --c-b: auto; --c-ry: 12deg;
    --g-l: auto; --g-r: -4%; --g-t: -6%; --g-s: 36vw; --g-w: 500; --g-ry: -26deg; --glow-x: 80%;
  }
  .mh--wine .mh-p2 .mh-face { border-radius: 40px 40px 4px 4px; }
  .mh--wine .mh-p2 .mh-face img { border-radius: 36px 36px 2px 2px; }

  /* Aurelian Yachts — panorama largă peste valuri, portul în colț */
  .mh--yacht {
    --mh-top: 81px; --mh-bg: #04101f; --mh-glow: rgba(70, 140, 220, 0.24); --mh-glow2: rgba(233, 196, 106, 0.1);
    --mh-ink: #f4f6fa; --mh-muted: rgba(226, 234, 245, 0.76);
    --mh-acc: #ecc75a; --mh-line: rgba(236, 199, 90, 0.42); --mh-mat: #0a1a2e; --mh-plate: #071425; --mh-chip: rgba(6, 20, 37, 0.94);
    --mh-ghost: rgba(160, 200, 240, 0.28); --mh-orbit: rgba(140, 190, 240, 0.34);
    --mh-x: 0 1px 0 #2a4a6e, 0 2px 0 #1e3a5a, 0 3px 0 #132a45, 0 16px 30px rgba(0, 0, 0, 0.55);
    --mh-btn: linear-gradient(135deg, #fbe7a4 0%, #ecc75a 45%, #c79a2a 100%); --mh-btn-ink: #0b1a2c;
    --mh-serif: 'Bodoni Moda', Georgia, serif; --mh-sans: 'DM Sans', system-ui, sans-serif;
    --mh-r: 12px; --p1-l: 5%; --p1-r: auto; --p1-t: 17%; --p1-h: auto; --p1-w: 88%; --p1-ar: 16 / 11; --p1-ry: -8deg; --p1-rx: 12deg; --p1-rz: 0deg; --deck-x: 0px; --deck-r: 0deg;
    --p2-l: auto; --p2-r: 5%; --p2-t: 0; --p2-b: auto; --p2-h: 40%; --p2-ar: 4 / 5; --p2-ry: -18deg; --p2-rz: 5deg; --p2-z: 100px;
    --c-l: 6%; --c-t: 13%; --c-ry: 16deg;
    --g-t: auto; --g-s: 42vw; --g-w: 500; --glow-x: 40%;
  }
  .mh--yacht .mh-ghost { top: auto; bottom: 18%; }

  /* The Breath — arcada luminoasă în mijloc, cercuri care respiră, uleiurile într-un cerc */
  .mh--well {
    --mh-top: 100px; --mh-bg: #fbf3ec; --mh-glow: rgba(168, 153, 132, 0.34); --mh-glow2: rgba(220, 231, 199, 0.6);
    --mh-ink: #2a221a; --mh-muted: rgba(42, 34, 26, 0.74);
    --mh-acc: #7d6a4f; --mh-line: rgba(105, 93, 74, 0.28); --mh-mat: #fffaf5; --mh-plate: #efe4d8; --mh-chip: rgba(255, 250, 245, 0.96);
    --mh-ghost: rgba(105, 93, 74, 0.24); --mh-orbit: rgba(105, 93, 74, 0.26); --mh-spark: #fff;
    --mh-x: 0 1px 0 #d9cbb8, 0 2px 0 #cbb9a2, 0 14px 26px rgba(105, 93, 74, 0.22);
    --mh-btn: linear-gradient(135deg, #8a7a62 0%, #695d4a 55%, #54493a 100%); --mh-btn-ink: #fff8f0; --mh-btn-glow: rgba(105, 93, 74, 0.45); --mh-btn-r: 999px;
    --mh-serif: 'Playfair Display', Georgia, serif; --mh-sans: 'DM Sans', system-ui, sans-serif;
    --mh-r: 999px 999px 12px 12px; --p1-l: 50%; --p1-r: auto; --p1-tr: -50% 0; --p1-t: 3%; --p1-h: 86%; --p1-ar: 3 / 4; --p1-ry: -5deg; --p1-rz: 0deg; --deck-x: 0px; --deck-r: 0deg;
    --p2-l: 3%; --p2-b: 13%; --p2-h: 34%; --p2-ar: 1 / 1; --p2-r-shape: 50%; --p2-r-img: 50%; --p2-ry: 16deg; --p2-rz: 0deg; --p2-z: 100px;
    --c-l: auto; --c-r: 4%; --c-t: 12%; --c-ry: -14deg;
    --o-x: 50%; --o-y: 48%;
    --mh-hs: 38px; --g-s: 27vw; --g-w: 500; --g-t: auto; --glow-x: 50%;
  }
  .mh--well .mh-ghost { top: auto; bottom: 30%; }
  .mh--well .mh-face { box-shadow: 0 30px 50px -22px rgba(80, 60, 40, 0.45); }
  .mh--well .mh-chip .mh-f { box-shadow: 0 18px 34px -16px rgba(80, 60, 40, 0.4); }

  /* Maison Avant — titlul întâi, ca într-o revistă; portretul la dreapta, liniile bordo, numele pe verticală */
  .mh--avant {
    --mh-top: 69px; --mh-bg: #f4f3f1; --mh-glow: rgba(0, 0, 0, 0.06); --mh-glow2: rgba(120, 10, 10, 0.06);
    --mh-ink: #0d0d0d; --mh-muted: rgba(13, 13, 13, 0.72);
    --mh-acc: #7a0d10; --mh-line: rgba(0, 0, 0, 0.18); --mh-mat: #ffffff; --mh-plate: #e6e4e1; --mh-chip: #0d0d0d;
    --mh-ghost: rgba(0, 0, 0, 0.2); --mh-orbit: rgba(122, 13, 16, 0.5); --mh-spark: #7a0d10;
    --mh-x: 2px 2px 0 rgba(122, 13, 16, 0.85), 0 16px 28px rgba(0, 0, 0, 0.12);
    --mh-btn: #0d0d0d; --mh-btn-ink: #fff; --mh-btn-glow: rgba(0, 0, 0, 0.35);
    --mh-serif: 'Bodoni Moda', Georgia, serif; --mh-sans: 'Hanken Grotesk', system-ui, sans-serif;
    --mh-r: 0px; --mh-matw: 5px; --p1-t: 2%; --p1-r: 5%; --p1-h: 92%; --p1-ar: 2 / 3; --p1-ry: -14deg; --p1-rz: 0deg; --deck-x: -12px; --deck-r: -2deg;
    --p2-l: 6%; --p2-b: 6%; --p2-h: 44%; --p2-ar: 4 / 5; --p2-ry: 20deg; --p2-rz: -3deg;
    --c-l: 10%; --c-t: 8%; --c-ry: 16deg;
    --mh-hs: 52px; --mh-hw: 600; --mh-hl: -0.02em;
    --g-l: 2%; --g-t: auto; --g-s: 26vw; --g-w: 700; --g-ry: 0deg; --g-rz: -90deg; --g-o: 0 0; --glow-x: 80%;
  }
  .mh--avant .mh-ghost { top: auto; bottom: -2%; }
  .mh--avant .mh-copy { order: -1; padding-top: 10px; }
  .mh--avant .mh-world { margin: 4px 0 0; }
  .mh--avant .mh-sub { margin-bottom: 0; }
  .mh--avant .mh-cta { margin-top: 18px; padding: 0 22px; position: relative; z-index: 2; }
  .mh--avant .mh-chip b { color: #fff; }
  .mh--avant .mh-chip span { color: rgba(255, 255, 255, 0.72); }
  .mh--avant .mh-face { box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.35); }

  /* L'ÉCLAT — farfuria uriașă, rotundă, care se rotește încet și iese din ecran; meniul în față */
  .mh--eclat {
    --mh-top: 69px; --mh-bg: #0f0f0e; --mh-glow: rgba(242, 202, 80, 0.16);
    --mh-acc: #f2ca50; --mh-line: rgba(242, 202, 80, 0.45); --mh-mat: #1a1917; --mh-plate: #161513;
    --mh-ghost: rgba(242, 202, 80, 0.26); --mh-orbit: rgba(242, 202, 80, 0.4);
    --mh-x: 0 1px 0 #8f7425, 0 2px 0 #6c571b, 0 3px 0 #4a3b11, 0 16px 30px rgba(0, 0, 0, 0.6);
    --mh-btn: linear-gradient(135deg, #fbe7a6 0%, #f0c64e 45%, #b48a22 100%);
    --mh-serif: 'Bodoni Moda', Georgia, serif; --mh-sans: 'Hanken Grotesk', system-ui, sans-serif;
    --mh-r: 50%; --mh-matw: 9px; --p1-t: 2%; --p1-r: -26%; --p1-h: 96%; --p1-ar: 1 / 1; --p1-ry: -14deg; --p1-rz: 0deg;
    --o-x: 72%; --o-y: 50%; --o-w: 124vw; --o-rx: 72deg; --o-rz: -8deg;
    --p2-l: 6%; --p2-b: 6%; --p2-h: 44%; --p2-ar: 3 / 4; --p2-r-shape: 8px; --p2-r-img: 4px;
    --c-l: 6%; --c-t: 6%;
    --mh-hs: 40px; --g-s: 34vw; --g-w: 500; --g-t: auto; --glow-x: 80%;
  }
  .mh--eclat .mh-ghost { top: auto; bottom: 0; }

  /* Apex Automotive — mașina pe o podea cu grilă care curge, dâre de lumină */
  .mh--apex {
    --mh-top: 69px; --mh-bg: #08090b; --mh-glow: rgba(0, 122, 255, 0.26); --mh-glow2: rgba(0, 122, 255, 0.1);
    --mh-ink: #f2f4f7; --mh-muted: rgba(226, 230, 236, 0.74);
    --mh-acc: #2f8bff; --mh-line: rgba(80, 150, 255, 0.45); --mh-mat: #111418; --mh-plate: #0d1014; --mh-chip: rgba(10, 13, 17, 0.94);
    --mh-ghost: rgba(47, 139, 255, 0.42); --mh-orbit: rgba(47, 139, 255, 0.42); --mh-spark: #bfe0ff;
    --mh-x: 0 1px 0 #1d3f73, 0 2px 0 #163260, 0 3px 0 #0f244a, 0 16px 30px rgba(0, 0, 0, 0.6);
    --mh-btn: linear-gradient(135deg, #5aa6ff 0%, #007aff 50%, #0057c2 100%); --mh-btn-ink: #fff; --mh-btn-glow: rgba(0, 122, 255, 0.55);
    --mh-serif: Montserrat, system-ui, sans-serif; --mh-sans: Inter, system-ui, sans-serif;
    --mh-r: 8px; --p1-l: 2%; --p1-r: auto; --p1-t: 20%; --p1-h: auto; --p1-w: 90%; --p1-ar: 16 / 10; --p1-ry: 22deg; --p1-rx: 6deg; --p1-rz: 0deg; --deck-x: 16px; --deck-r: 0deg;
    --p2-l: auto; --p2-r: 4%; --p2-t: auto; --p2-b: 11%; --p2-h: 30%; --p2-ar: 4 / 3; --p2-ry: -22deg; --p2-rz: 0deg; --p2-z: 110px;
    --c-l: auto; --c-r: 5%; --c-t: 10%; --c-ry: -14deg;
    --mh-hs: 34px; --mh-hw: 800; --mh-hl: 0;
    --g-s: 36vw; --g-w: 800; --g-t: -2%; --g-f: Montserrat, system-ui, sans-serif; --glow-x: 30%;
  }
  .mh--apex .mh-h { text-transform: uppercase; }
  .mh--apex .mh-chip b { font-weight: 800; }

  /* Estate Marais — ușa în arcadă la stânga, arcade care se pierd în adâncime, restaurantul în față */
  .mh--marais {
    --mh-top: 85px; --mh-bot: 80px; --mh-bg: #06231a; --mh-glow: rgba(233, 193, 118, 0.2); --mh-glow2: rgba(20, 110, 75, 0.38);
    --mh-acc: #e3bd72; --mh-line: rgba(227, 189, 114, 0.45); --mh-mat: #0b2f23; --mh-plate: #08281d; --mh-chip: rgba(6, 35, 26, 0.95);
    --mh-ghost: rgba(227, 189, 114, 0.26); --mh-orbit: rgba(227, 189, 114, 0.42);
    --mh-x: 0 1px 0 #8a6a2c, 0 2px 0 #6a5021, 0 3px 0 #0a3a2a, 0 16px 30px rgba(0, 0, 0, 0.55);
    --mh-btn: linear-gradient(135deg, #f8e3b4 0%, #e3bd72 45%, #a87d33 100%); --mh-btn-ink: #0a2219;
    --mh-serif: 'Playfair Display', Georgia, serif; --mh-sans: 'DM Sans', system-ui, sans-serif;
    --mh-r: 999px 999px 6px 6px; --p1-l: 7%; --p1-r: auto; --p1-t: 6%; --p1-h: 84%; --p1-ar: 3 / 5; --p1-ry: 18deg; --p1-rz: 0deg;
    --p2-l: auto; --p2-r: 6%; --p2-b: 6%; --p2-h: 40%; --p2-ar: 4 / 5; --p2-ry: -18deg; --p2-rz: 3deg; --p2-z: 90px;
    --c-l: auto; --c-r: 5%; --c-t: 10%; --c-ry: -14deg;
    --mh-hs: 42px; --g-s: 30vw; --g-w: 500; --g-l: auto; --g-r: -6%; --g-ry: -28deg; --glow-x: 30%;
  }
  .mh--marais .mh-world { min-height: 250px; }
  .mh--marais .mh-sub { margin-bottom: 16px; }
  .mh--marais .mh-p1 .mh-e::before, .mh--marais .mh-p1 .mh-e::after { display: none; }

  /* Aurelian Yachts: formularul de căutare nu mai stă peste poză, ci sub scenă, ca un card */
  .mh-form { height: auto !important; min-height: 0 !important; display: block !important; padding: 28px 0 10px; background: #04101f; scroll-margin-top: 90px; }
  .mh-form > img, .mh-form > .hero-gradient, .mh-form > .relative { display: none !important; }
  .mh-form > .absolute { position: static !important; transform: none !important; width: auto !important; max-width: none !important; }
}

/* ===================== tabletă ținută vertical: scena deasupra, mai mare ===================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .mh { padding-top: calc(var(--mh-top-d, var(--mh-top)) + 12px); padding-bottom: 48px; --mh-bot: 0px; }
  .mh-world { min-height: 460px; max-height: 640px; }
  .mh-copy { padding: 0 56px; max-width: 760px; }
  .mh--avant .mh-cta { padding: 0 56px; }
  .mh-h { font-size: var(--mh-hs-t, 60px); }
  .mh-sub { font-size: 17px; max-width: 46ch; }
  .mh { --g-s: 24vw; --o-w: 90vw; }
  .mh-sun { width: 60vw; }
  .mh-breath { width: 80vw; }
  .mh--luxe { --mh-top-d: 107px; }
  .mh--wine { --mh-top-d: 89px; --p1-l: 12%; --p2-r: 14%; }
  .mh--yacht { --mh-top-d: 81px; }
  .mh--well { --mh-top-d: 100px; --mh-hs-t: 52px; }
  .mh--avant { --mh-top-d: 89px; --mh-hs-t: 72px; --p1-r: 10%; --p2-l: 12%; }
  .mh--eclat { --mh-top-d: 91px; --p1-r: -10%; }
  .mh--apex { --mh-top-d: 69px; --mh-hs-t: 52px; }
  .mh--marais { --mh-top-d: 91px; --p1-l: 14%; --p2-r: 12%; }
  .mh--marais .mh-world { min-height: 460px; }
  .mh-form { padding: 0 56px 40px; }
}

/* ===================== laptop și tabletă ținută orizontal: scena lângă text ===================== */
@media (min-width: 1024px) {
  .mh {
    display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center;
    column-gap: clamp(24px, 3vw, 64px); min-height: 100vh; min-height: 100svh;
    padding: calc(var(--mh-top-d, var(--mh-top)) + 24px) clamp(32px, 5vw, 96px) 56px;
  }
  .mh-world { order: 2; height: min(76vh, 760px); min-height: 500px; max-height: none; margin: 0; perspective: 1600px; perspective-origin: 50% 42%; }
  .mh-copy { order: 1; padding: 0; max-width: 580px; }
  .mh-rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
  .mh-rev .mh-world { order: 1; }
  .mh-rev .mh-copy { order: 2; justify-self: end; }
  .mh-h { font-size: var(--mh-hs-d, clamp(54px, 5vw, 84px)); margin-bottom: 20px; }
  .mh-eye { font-size: 12px; margin-bottom: 22px; }
  .mh-sub { font-size: 17px; line-height: 1.65; max-width: 42ch; margin-bottom: 34px; }
  .mh-btn { padding: 18px 28px; font-size: 12px; }
  .mh-link { font-size: 12px; }
  /* varianta centrată de pe telefon devine aliniată la stânga */
  .mh-mid .mh-copy { text-align: left; }
  .mh-mid .mh-eye, .mh-mid .mh-cta { justify-content: flex-start; }
  .mh-mid .mh-eye::after { display: none; }
  .mh-mid .mh-sub { margin-left: 0; }
  /* decorurile, pe măsura scenei mari */
  .mh { --g-s: 15vw; --o-w: 58vw; }
  .mh-sun { width: 44vw; }
  .mh-breath { width: 54vw; }
  .mh-streak { width: 26vw; }
  .mh-chip .mh-f { padding: 14px 18px 15px; border-radius: 14px; }
  .mh-chip b { font-size: 26px; }
  .mh-chip span { font-size: 10px; }
  .mh-sp { --s: 18px; }

  .mh--luxe { --mh-top-d: 107px; --p1-h: 80%; --o-w: 50vw; --g-s: 14vw; }
  .mh--wine { --mh-top-d: 89px; --g-s: 17vw; --p1-l: 6%; --p1-h: 70%; --p2-r: 8%; }
  .mh--yacht { --mh-top-d: 81px; --g-s: 18vw; --p1-t: 20%; --p1-w: 86%; --p2-h: 38%; --c-t: 10%; --mh-hs-d: clamp(54px, 5.2vw, 88px); }
  .mh--well { --mh-top-d: 100px; --g-s: 13vw; --o-x: 52%; --mh-hs-d: clamp(46px, 4.2vw, 70px); }
  .mh--avant { --mh-top-d: 89px; --g-s: 13vw; --mh-hs-d: clamp(68px, 6.6vw, 112px);
    grid-template-areas: "copy world" "cta world"; grid-template-rows: auto auto; }
  .mh--avant .mh-copy { grid-area: copy; align-self: end; padding-top: 0; }
  .mh--avant .mh-cta { grid-area: cta; align-self: start; padding: 0; margin-top: 30px; }
  .mh--avant .mh-world { grid-area: world; margin: 0; }
  .mh--eclat { --mh-top-d: 91px; --g-s: 16vw; --o-w: 62vw; --p1-r: -18%; --p1-h: 98%; }
  .mh--apex { --mh-top-d: 69px; --g-s: 17vw; --p1-t: 18%; --p1-w: 88%; --mh-hs-d: clamp(46px, 4.4vw, 74px); }
  .mh--marais { --mh-top-d: 91px; --mh-bot: 0px; --g-s: 14vw; --p1-l: 10%; --p1-h: 86%; }
  .mh--marais .mh-world { min-height: 500px; }

  .mh-form { padding: 0 clamp(32px, 5vw, 96px) 48px; margin-top: -24px; position: relative; z-index: 3; }
  .mh-form > .absolute { max-width: 1100px !important; margin: 0 auto; }
}
