/* =============================================
   Showcase — „Portofoliul nostru” (galerie 3D)
   Secțiunea #showcaseHscroll din showcase.html, construită pe motorul comun
   DepthCarousel (js/depth-carousel.js + css/depth-carousel.css — doar citire).
   Machetele din carduri sunt 100% CSS, dimensionate relativ la container (cqw / cqh),
   iar animațiile lor rulează doar pe slide-ul activ, cât timp secțiunea e pe ecran.
   ============================================= */

.sg {
  --sg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sg-w: min(86vw, 400px);
  --sg-pad: 10px;
  --sg-radius: 24px;
  position: relative;
  padding: clamp(4.5rem, 12vw, 7.5rem) 0 clamp(4rem, 10vw, 6.5rem);
  /* vecinii 3D ies din ecran: îi tăiem pe orizontală, fără scroll lateral */
  overflow: hidden;
}
@supports (overflow: clip) {
  .sg { overflow: visible; overflow-x: clip; }
}

/* lumină ambientală discretă în spatele „scenei” */
.sg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 32%;
  height: 60%;
  pointer-events: none;
  background:
    radial-gradient(45% 55% at 50% 50%, rgba(var(--nv-acc-rgb), 0.16), transparent 70%),
    radial-gradient(30% 40% at 62% 60%, rgba(var(--nv-acc2-rgb), 0.08), transparent 70%);
}

/* ---------- antet ---------- */
.sg-head {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}
.sg-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}
.sg-kicker::before,
.sg-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--nv-acc2-rgb), 0.7));
}
.sg-kicker::after { background: linear-gradient(90deg, rgba(var(--nv-acc2-rgb), 0.7), transparent); }
.sg-h2 {
  font: 700 clamp(1.9rem, 5.8vw, 3rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
}
.sg-sub {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  line-height: 1.6;
  text-wrap: balance;
}

/* ---------- scena ---------- */
.sg-stagewrap {
  position: relative;
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  text-shadow: none;
}
.sg-hint {
  display: flex;
  justify-content: center;
  min-height: 24px;
  margin-bottom: 16px;
  padding: 0 16px;
}
.sg-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sg-hint-touch { display: none; }
  .sg-hint-mouse { display: inline; }
}

/* pan-y păstrează derularea verticală; pinch-zoom rămâne disponibil peste galerie
   (un gest cu două degete trimite pointercancel, pe care motorul îl tratează) */
.sg-carousel .dc-stage { perspective: 1200px; touch-action: pan-y pinch-zoom; }
/* vecinii rămân aproape opaci (fără „fantome” la drag); estomparea o face stratul dim */
.sg [data-dc-dim] {
  background: linear-gradient(180deg, rgba(var(--nv-bg-rgb), 0.52), rgba(var(--nv-bg-rgb), 0.8));
}
@media (hover: hover) and (pointer: fine) {
  .sg-carousel.dc-ready .dc-stage { cursor: grab; }
  .sg-carousel.dc-ready.is-dragging .dc-stage { cursor: grabbing; }
}
/* inelul de focus stă pe cardul activ, nu pe toată lățimea ecranului */
.sg-carousel:focus-visible .dc-stage { outline: none; }
.sg-carousel:focus-visible .sg-card.is-active {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 6px;
}

/* ---------- card ---------- */
.sg-card {
  display: flex;
  flex-direction: column;
  width: var(--sg-w);
  padding: var(--sg-pad);
  border-radius: var(--sg-radius);
  background:
    linear-gradient(180deg, rgba(var(--nv-tx-rgb), 0.07), rgba(var(--nv-tx-rgb), 0.015) 38%, rgba(var(--nv-tx-rgb), 0.01)),
    var(--nv-card);
  border: 1px solid rgba(var(--nv-tx-rgb), 0.08);
  box-shadow: 0 40px 80px -40px rgba(var(--nv-bg-rgb), 0.95), 0 18px 40px -24px rgba(var(--nv-bg-rgb), 0.7);
  color: var(--text-primary);
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* strălucirea „vedetei” — animată doar prin opacity */
.sg-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(var(--nv-acc-rgb), 0.35),
    0 18px 50px -18px rgba(var(--nv-acc-rgb), 0.55),
    0 0 80px -34px rgba(var(--nv-acc2-rgb), 0.4);
  opacity: 0;
  transition: opacity 0.7s var(--sg-ease);
}
.sg-card.is-active::before { opacity: 1; }

.sg-visual {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3.2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--nv-bg);
  isolation: isolate;
}
.sg-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--nv-tx-rgb), 0.08);
  pointer-events: none;
}
.sg-chrome {
  flex: 0 0 auto;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--nv-raised);
  border-bottom: 1px solid rgba(var(--nv-tx-rgb), 0.06);
}
.sg-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--nv-acc-rgb), 0.75); flex: 0 0 auto; }
.sg-chrome i:nth-child(2) { background: rgba(var(--nv-tx-rgb), 0.18); }
.sg-chrome i:nth-child(3) { background: rgba(var(--nv-tx-rgb), 0.18); }
.sg-chrome span {
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(var(--nv-tx-rgb), 0.05);
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.02em;
  color: rgba(var(--nv-tx-rgb), 0.5);
  white-space: nowrap;
  transform: translateX(-18px);
}
.sg-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  container-type: size;
  font-family: var(--font-body);
  line-height: 1.2;
  color: var(--nv-tx);
}
.sg-screen i, .sg-screen em, .sg-screen u { font-style: normal; text-decoration: none; }

/* lumina care alunecă peste ecran la drag (parallax invers) */
.sg-glare {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 170%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 22%, rgba(var(--nv-tx-rgb), 0.06) 30%, rgba(var(--nv-tx-rgb), 0.11) 33%, transparent 42%);
}

/* ---------- text card ---------- */
.sg-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 8px 6px;
}
.sg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
}
.sg-num {
  font: 500 0.8rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.sg-cat {
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  white-space: nowrap;
}
.sg-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--nv-tx-rgb), 0.1);
  background: rgba(var(--nv-tx-rgb), 0.03);
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.sg-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2));
}
.sg-name {
  font: 700 clamp(1.35rem, 5.8vw, 1.6rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.sg-desc {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  list-style: none;
}
.sg-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--nv-tx-rgb), 0.04);
  border: 1px solid rgba(var(--nv-tx-rgb), 0.08);
  font: 500 0.75rem/1.1 var(--font-body);
  color: var(--nv-tx2);
  white-space: nowrap;
}
.sg-tags li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex: 0 0 auto;
}

/* ---------- controale ---------- */
.sg-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
}
.sg .dc-dot { width: 44px; }
/* inel de focus lizibil și pe punctele inactive (bara lor e comprimată cu scaleX) */
.sg .dc-dot:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: -8px;
  border-radius: 12px;
}
.sg-arrow {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(var(--nv-tx-rgb), 0.04);
  border: 1px solid rgba(var(--nv-tx-rgb), 0.12);
  transition: transform 0.25s var(--sg-ease), background-color 0.25s ease, border-color 0.25s ease;
}
.sg-arrow svg { width: 18px; height: 18px; }
.sg-arrow:active { transform: scale(0.92); }
.sg-arrow:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .sg-arrow:hover { background: rgba(var(--nv-acc-rgb), 0.18); border-color: rgba(var(--nv-acc-rgb), 0.55); }
}
@media (min-width: 384px) {
  .sg-arrow { display: inline-flex; }
}
.sg-counter {
  display: block;
  margin-top: 2px;
  text-align: center;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.sg-counter span { color: var(--text-secondary); }
.sg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- cursor „Trage” (doar desktop, cursorul custom al paginii) ---------- */
.cursor-drag {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}
.custom-cursor.is-drag .cursor-drag { visibility: visible; transition-delay: 0s; }
.cursor-drag span {
  position: absolute;
  left: -38px;
  top: -38px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  font: 700 0.7rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nv-tx);
  background: radial-gradient(circle at 50% 30%, rgba(var(--nv-acc-rgb), 0.55), rgba(var(--nv-bg-rgb), 0.9) 70%);
  border: 1px solid rgba(var(--nv-acc-hi-rgb), 0.75);
  box-shadow: 0 0 0 4px rgba(var(--nv-acc-rgb), 0.14), 0 14px 34px -10px rgba(var(--nv-bg-rgb), 0.7);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s var(--sg-ease), transform 0.45s var(--sg-ease);
}
.cursor-drag span::before,
.cursor-drag span::after { content: '‹'; font: 500 0.95rem/1 var(--font-body); color: var(--accent-secondary); }
.cursor-drag span::after { content: '›'; }
.custom-cursor.is-drag .cursor-drag span { opacity: 1; transform: scale(1); }
.custom-cursor.is-drag.is-grabbing .cursor-drag span { transform: scale(0.82); }
.custom-cursor.is-drag .cursor-ring { opacity: 0 !important; }

/* ---------- breakpoints ---------- */
@media (max-width: 374px) {
  .sg-info { padding: 14px 6px 4px; }
  .sg-meta { gap: 8px; }
  .sg-cat { letter-spacing: 0.1em; }
  .sg-desc { font-size: 0.875rem; line-height: 1.5; }
  .sg-tags { gap: 5px; padding-top: 12px; }
  .sg-tags li { gap: 5px; padding: 5px 8px; }
  .sg-badge { padding: 4px 8px; gap: 5px; }
}
/* telefoane foarte înguste: etichetele „ce include” devin o grilă 2×2 (textul se poate
   rupe pe două rânduri), ca toate cardurile să aibă aceeași structură și înălțime */
@media (max-width: 359px) {
  .sg-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .sg-tags li { min-width: 0; padding: 6px 8px; border-radius: 10px; line-height: 1.2; white-space: normal; }
}
/* telefoane scunde (portret): ecranul machetei devine puțin mai plat,
   ca tot cardul + punctele să încapă sub meniul fix */
@media (max-width: 767px) and (max-height: 700px) and (orientation: portrait) {
  .sg-visual { aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) {
  .sg { --sg-w: min(70vw, 560px); --sg-pad: 12px; }
  .sg-visual { aspect-ratio: 16 / 10.4; }
  .sg-chrome { height: 30px; }
  .sg-chrome span { font-size: 12px; }
  .sg-info { padding: 20px 12px 8px; }
  .sg-name { font-size: 1.75rem; }
  .sg-carousel .dc-stage { perspective: 1500px; }
}
@media (min-width: 1024px) {
  .sg { --sg-w: clamp(560px, 46vw, 720px); --sg-pad: 12px; }
  .sg-visual { aspect-ratio: 16 / 9.6; }
  .sg-info { padding: 20px 14px 10px; }
  .sg-name { font-size: 1.9rem; }
  .sg-desc { max-width: 60ch; font-size: 0.95rem; }
  .sg-tags { padding-top: 16px; }
  .sg-carousel .dc-stage { perspective: 1800px; }
}
/* desktop cu ecran scund (ex. 1280×720): lățimea cardului e limitată și de înălțime,
   ca vedeta + controalele să încapă întregi sub meniul fix */
@supports (height: 100svh) {
  @media (min-width: 1024px) {
    .sg { --sg-w: clamp(520px, min(46vw, (100svh - 270px) * 1.2), 720px); }
  }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .sg-info { padding: 16px 14px 6px; }
  .sg-tags { padding-top: 12px; }
  .sg-ui { margin-top: 12px; }
}

/* telefoane în landscape și ferestre foarte joase: card pe două coloane
   (machetă | text), cu înălțimea legată de ecran — cardul se vede întreg */
@media (orientation: landscape) and (max-height: 560px) {
  .sg {
    --sg-w: min(calc(100vw - 144px), 720px);
    --sg-h: 270px;
    --sg-pad: 10px;
    padding: 3.5rem 0 3rem;
  }
  .sg-stagewrap { margin-top: 1.5rem; }
  .sg-hint { margin-bottom: 12px; }
  .sg-card { flex-direction: row; height: var(--sg-h); }
  .sg-visual { flex: 0 0 54%; height: 100%; aspect-ratio: auto; }
  .sg-chrome { height: 24px; }
  .sg-chrome span { font-size: 11px; }
  .sg-info { min-width: 0; overflow: hidden; padding: 6px 6px 2px 16px; }
  .sg-meta { margin-bottom: 8px; }
  .sg-name { font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
  .sg-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 6px;
    max-width: none;
    font-size: 0.875rem;
    line-height: 1.45;
  }
  .sg-tags { padding-top: 10px; }
  .sg-ui { margin-top: 8px; }
}
@supports (height: 100svh) {
  @media (orientation: landscape) and (max-height: 560px) {
    .sg { --sg-h: clamp(210px, calc(100svh - 100px), 360px); }
  }
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 740px) {
  .sg-tags li:nth-child(n+3) { display: none; }
  .sg-num { display: none; } /* numărul e și în contorul de sub carusel */
  .sg-cat { letter-spacing: 0.1em; }
}

/* =============================================
   Machete (mini-UI) — toate dimensiunile relative la ecran (cqw / cqh)
   ============================================= */

/* animațiile rulează doar pe slide-ul activ, cu secțiunea pe ecran */
.sg-card:not(.is-active) .sg-screen *,
.sg-card:not(.is-active) .sg-screen *::before,
.sg-card:not(.is-active) .sg-screen *::after,
.sg:not(.is-live) .sg-screen *,
.sg:not(.is-live) .sg-screen *::before,
.sg:not(.is-live) .sg-screen *::after { animation-play-state: paused !important; }

@keyframes sgPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes sgBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes sgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4cqw); } }
@keyframes sgSpin { to { transform: rotate(360deg); } }

/* ---------- 01 AutoVault 3D ---------- */
.s-auto {
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(var(--nv-acc-rgb), 0.45), transparent 70%),
    radial-gradient(50% 45% at 90% 0%, rgba(var(--nv-acc2-rgb), 0.16), transparent 70%),
    linear-gradient(180deg, #0b0b13 0%, #140f22 100%);
}
.au-nav {
  position: absolute;
  top: 4.4cqw;
  left: 5cqw;
  right: 5cqw;
  display: flex;
  align-items: center;
  gap: 3cqw;
}
.au-nav b { font: 700 3.2cqw/1 var(--font-display); letter-spacing: 0.14em; }
.au-nav b i { color: var(--nv-acc2); }
.au-nav span { width: 7cqw; height: 0.9cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.22); }
.au-nav span:first-of-type { margin-left: auto; }
.au-nav em {
  padding: 0.6em 1.2em;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2));
  font: 600 max(2.2cqw, 7px)/1 var(--font-body);
}
.au-copy { position: absolute; left: 5cqw; top: 13cqw; }
.au-copy small {
  display: block;
  margin-bottom: 1.6cqw;
  font: 600 max(2cqw, 7px)/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nv-acc2);
}
.au-copy .sg-h { font: 700 5.6cqw/1.02 var(--font-display); letter-spacing: -0.02em; }
.au-copy .sg-h span { color: rgba(255, 255, 255, 0.5); }
.au-floor {
  position: absolute;
  left: 8cqw;
  right: 8cqw;
  bottom: 5cqw;
  height: 15cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--nv-acc-rgb), 0.6), rgba(var(--nv-acc-rgb), 0.16) 60%, transparent 100%);
}
.au-ring {
  position: absolute;
  left: 16cqw;
  right: 16cqw;
  bottom: 7.6cqw;
  height: 9.5cqw;
  border-radius: 50%;
  border: 1px solid rgba(var(--nv-acc2-rgb), 0.55);
  box-shadow: 0 0 3cqw rgba(var(--nv-acc2-rgb), 0.25), inset 0 0 3cqw rgba(var(--nv-acc2-rgb), 0.2);
  animation: sgPulse 3.2s ease-in-out infinite;
}
.au-carwrap { position: absolute; left: 0; right: 0; bottom: 9cqw; height: 25cqw; }
/* lățimea mașinii e limitată și de înălțimea ecranului, ca să nu urce peste titlu pe ecrane late */
.au-car { position: absolute; left: 50%; bottom: 0; width: min(70cqw, 125cqh); margin-left: calc(min(70cqw, 125cqh) / -2); overflow: visible; }
.au-paint { fill: url(#sgAutoPaint); }
.au-sheen { animation: auSheen 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
@keyframes auSheen { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(600px); } }
.au-hud {
  position: absolute;
  left: 5cqw;
  bottom: 4.4cqw;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  font: 500 max(2cqw, 7px)/1 var(--font-body);
  color: rgba(255, 255, 255, 0.72);
}
.au-hud b {
  display: grid;
  place-items: center;
  width: max(7cqw, 24px);
  height: max(7cqw, 24px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font: 700 max(1.9cqw, 7px)/1 var(--font-display);
  color: var(--nv-tx);
}
.au-swatches { position: absolute; right: 5cqw; bottom: 5.6cqw; display: flex; gap: 1.8cqw; }
.au-swatches i { width: 4cqw; height: 4cqw; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.au-swatches i:nth-child(1) { background: linear-gradient(135deg, var(--nv-acc-hi), var(--nv-acc-lo)); box-shadow: 0 0 0 0.5cqw #120e1e, 0 0 0 0.9cqw #fff; }
.au-swatches i:nth-child(2) { background: linear-gradient(135deg, var(--nv-acc2-hi), var(--nv-acc2-lo)); }
.au-swatches i:nth-child(3) { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.au-swatches i:nth-child(4) { background: linear-gradient(135deg, #374151, #030712); }

/* ---------- 02 FlowStack ---------- */
/* atenție: unitățile cq* nu se folosesc pe .sg-screen însuși (s-ar raporta la viewport) */
.s-flow {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(var(--nv-acc-rgb), 0.24), transparent 70%),
    linear-gradient(180deg, #f8f7ff, #eceffa);
  color: var(--nv-raised);
}
.fl-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin: 4cqw 5cqw 0;
}
.fl-nav b { display: flex; align-items: center; gap: 1.2cqw; font: 700 3cqw/1 var(--font-display); letter-spacing: -0.01em; }
.fl-nav b i { width: 3.6cqw; height: 3.6cqw; border-radius: 1cqw; background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)); }
.fl-nav span { width: 6cqw; height: 0.9cqw; border-radius: 1cqw; background: rgba(23, 19, 46, 0.18); }
.fl-nav span:first-of-type { margin-left: auto; }
.fl-nav em { padding: 0.65em 1.2em; border-radius: 99px; background: var(--nv-raised); color: var(--nv-tx); font: 600 max(2cqw, 7px)/1 var(--font-body); }
.fl-hero {
  margin-top: calc(2cqw + 2.5cqh);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.42em 1.05em 0.42em 0.42em;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0.4cqw 1.6cqw rgba(76, 29, 149, 0.14);
  font: 500 max(1.9cqw, 7px)/1 var(--font-body);
  color: #4c3d8f;
}
.fl-pill i { padding: 0.37em 0.74em; border-radius: 99px; background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)); color: var(--nv-tx); font-weight: 600; }
.fl-hero .sg-h { margin-top: 2.2cqw; font: 700 5.4cqw/1.03 var(--font-display); letter-spacing: -0.03em; }
.fl-hero .sg-h span {
  background: linear-gradient(90deg, var(--nv-acc-lo), var(--nv-acc2-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fl-cta { margin-top: 2.6cqw; display: flex; gap: 1.6cqw; }
.fl-cta em,
.fl-cta u { padding: 0.72em 1.43em; border-radius: 99px; font: 600 max(2.1cqw, 7px)/1 var(--font-body); }
.fl-cta em { background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc-lo)); color: var(--nv-tx); box-shadow: 0 1.2cqw 3cqw -1cqw rgba(var(--nv-acc-lo-rgb), 0.6); }
.fl-cta u { background: #fff; color: var(--nv-raised); box-shadow: inset 0 0 0 1px rgba(23, 19, 46, 0.12); }
.fl-appwrap { position: relative; flex: 1 1 auto; min-height: 12cqw; margin: calc(2cqw + 2.5cqh) 8cqw -3cqw; }
.fl-app {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: 2cqw 2cqw 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 19, 46, 0.07), 0 -1cqw 6cqw -1cqw rgba(76, 29, 149, 0.28);
}
.fl-side { flex: 0 0 9cqw; background: #f4f3fb; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; padding-top: 2.4cqw; }
.fl-side i { width: 3.2cqw; height: 3.2cqw; border-radius: 0.9cqw; background: rgba(23, 19, 46, 0.1); }
.fl-side i:first-child { background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)); }
.fl-main { flex: 1; min-width: 0; padding: 2.4cqw; display: flex; flex-direction: column; gap: 2cqw; }
.fl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.fl-cards span {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  padding: 1.6cqw;
  border-radius: 1.2cqw;
  background: #f7f6fd;
  box-shadow: inset 0 0 0 1px rgba(23, 19, 46, 0.06);
}
.fl-cards b { width: 60%; height: 1cqw; border-radius: 1cqw; background: rgba(23, 19, 46, 0.28); }
.fl-cards em {
  height: 0.9cqw;
  border-radius: 1cqw;
  background: linear-gradient(90deg, var(--nv-acc), var(--nv-acc2));
  transform-origin: left center;
  transform: scaleX(var(--w));
  animation: flGrow 3.4s var(--sg-ease) infinite alternate;
}
.fl-cards span:nth-child(2) em { animation-delay: -1.1s; }
.fl-cards span:nth-child(3) em { animation-delay: -2.2s; }
@keyframes flGrow { from { transform: scaleX(calc(var(--w) * 0.35)); } to { transform: scaleX(var(--w)); } }
.fl-graph { flex: 1; min-height: 0; width: 100%; }
.fl-graph .fl-area { fill: url(#sgFlowFill); }
.fl-graph .fl-line { fill: none; stroke: var(--nv-acc-lo); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* ---------- 03 NeuralCraft Analytics ---------- */
.s-dash { display: flex; background: linear-gradient(160deg, #0e1325 0%, #0a0d19 100%); }
.da-side {
  flex: 0 0 10cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4cqw;
  padding-top: 3cqw;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.da-side b { width: 4.6cqw; height: 4.6cqw; margin-bottom: 1cqw; border-radius: 1.2cqw; background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)); }
.da-side i { width: 3.4cqw; height: 3.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.1); }
.da-side i:nth-of-type(1) { background: rgba(var(--nv-acc2-rgb), 0.22); box-shadow: inset 0 0 0 1px rgba(var(--nv-acc2-rgb), 0.6); }
.da-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2.4cqw; padding: 3cqw 3.6cqw; }
.da-top { display: flex; align-items: center; gap: 2cqw; }
.da-top small { display: block; margin-bottom: 0.9cqw; font: 500 max(1.8cqw, 7px)/1 var(--font-body); color: rgba(255, 255, 255, 0.5); }
.da-top .sg-h { font: 700 3.6cqw/1 var(--font-display); letter-spacing: -0.01em; }
.da-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.05em;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font: 600 max(1.7cqw, 7px)/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.da-live i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #4ade80; animation: sgBlink 1.6s ease-in-out infinite; }
.da-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; }
.da-kpis div {
  padding: 1.8cqw 2cqw;
  border-radius: 1.4cqw;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.da-kpis small { display: block; font: 500 max(1.7cqw, 7px)/1 var(--font-body); color: rgba(255, 255, 255, 0.55); }
.da-kpis b { display: block; margin-top: 1.2cqw; font: 700 3.6cqw/1 var(--font-display); }
.da-kpis div:nth-child(2) b { color: var(--nv-acc2-hi); }
.da-kpis div:nth-child(3) b { color: var(--nv-acc-pale); }
.da-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.8cqw; }
.da-chart,
.da-bars {
  position: relative;
  overflow: hidden;
  border-radius: 1.4cqw;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.da-chart > span,
.da-bars > span { position: absolute; top: 1.8cqw; left: 2cqw; font: 600 max(1.8cqw, 7px)/1 var(--font-body); color: rgba(255, 255, 255, 0.75); }
.da-plot { position: absolute; left: 0; right: 0; bottom: 0; top: 5.6cqw; }
.da-plot svg { width: 100%; height: 100%; display: block; }
.da-plot .da-area { fill: url(#sgDashFill); }
.da-plot .da-line { fill: none; stroke: var(--nv-acc2); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.da-plot .da-prev { fill: none; stroke: rgba(var(--nv-acc-rgb), 0.7); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.da-dot {
  position: absolute;
  right: 12%;
  top: 22%;
  width: 2.2cqw;
  height: 2.2cqw;
  margin: -1.1cqw 0 0 -1.1cqw;
  border-radius: 50%;
  background: var(--nv-acc2);
  box-shadow: 0 0 0 0.8cqw rgba(var(--nv-acc2-rgb), 0.2), 0 0 3cqw rgba(var(--nv-acc2-rgb), 0.8);
  animation: sgPulse 1.8s ease-in-out infinite;
}
.da-bars { display: flex; align-items: flex-end; gap: 1.2cqw; padding: 6cqw 2cqw 2cqw; }
.da-bars i {
  flex: 1;
  height: 100%;
  border-radius: 0.8cqw 0.8cqw 0.3cqw 0.3cqw;
  background: linear-gradient(180deg, var(--nv-acc2), var(--nv-acc));
  transform-origin: 50% 100%;
  transform: scaleY(var(--h));
  animation: daBar 2.6s var(--sg-ease) infinite alternate;
}
.da-bars i:nth-of-type(2n) { animation-delay: -0.9s; }
.da-bars i:nth-of-type(3n) { animation-delay: -1.7s; }
@keyframes daBar { from { transform: scaleY(calc(var(--h) * 0.5)); } to { transform: scaleY(var(--h)); } }

/* ---------- 04 LuminaForm Store ---------- */
.s-lumina {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f5f0e8, #ebe2d4);
  color: #2a241d;
}
.lu-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 2.6cqw; margin: 3.6cqw 5cqw 0; }
.lu-nav span { width: 6cqw; height: 0.8cqw; border-radius: 1cqw; background: rgba(42, 36, 29, 0.22); }
.lu-nav b { margin: 0 auto; font: 700 2.8cqw/1 var(--font-display); letter-spacing: 0.32em; }
.lu-nav em { display: inline-flex; align-items: center; gap: 0.45em; font: 600 max(2cqw, 7px)/1 var(--font-body); }
.lu-nav em i {
  display: grid;
  place-items: center;
  width: max(3cqw, 11px);
  height: max(3cqw, 11px);
  border-radius: 50%;
  background: #b4613a;
  color: var(--nv-tx);
  font: 600 max(1.7cqw, 7px)/1 var(--font-body);
  animation: luBump 3.4s var(--sg-ease) infinite;
}
@keyframes luBump { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.35); } 86% { transform: scale(0.95); } }
.lu-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin: 3cqh 5cqw 0; }
.lu-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lu-copy small { font: 600 max(1.8cqw, 7px)/1 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: #b4613a; }
.lu-copy .sg-h { margin-top: 1.6cqw; font: 500 5.4cqw/1.02 var(--font-display); letter-spacing: -0.03em; }
.lu-copy .sg-h span { color: #8a7a66; }
.lu-copy em { margin-top: 2.6cqw; padding: 0.75em 1.4em; border-radius: 99px; background: #2a241d; color: #f5f0e8; font: 600 max(2cqw, 7px)/1 var(--font-body); white-space: nowrap; }
.lu-scene { position: relative; }
.lu-arch {
  position: absolute;
  left: 8%;
  right: 4%;
  top: 0;
  bottom: 0;
  border-radius: 99cqw 99cqw 1.2cqw 1.2cqw;
  background: linear-gradient(180deg, #e3d6c3, #d3c2a9);
}
.lu-glow {
  position: absolute;
  left: 4%;
  top: 6%;
  width: 26cqw;
  height: 20cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 150, 0.85), rgba(255, 214, 150, 0));
  animation: sgPulse 4.2s ease-in-out infinite;
}
.lu-lamp { position: absolute; left: 20%; top: 10%; bottom: 0; width: 11cqw; }
.lu-lamp b { position: absolute; top: 0; left: 0; right: 0; height: 5.4cqw; border-radius: 11cqw 11cqw 0.4cqw 0.4cqw; background: #b4613a; }
.lu-lamp i { position: absolute; top: 5.4cqw; bottom: 0; left: 50%; width: 0.6cqw; margin-left: -0.3cqw; background: #2a241d; }
.lu-lamp i::after { content: ''; position: absolute; bottom: 0; left: -2cqw; width: 4.6cqw; height: 0.8cqw; border-radius: 1cqw; background: #2a241d; }
.lu-chair { position: absolute; right: 12%; bottom: 0; width: 20cqw; height: 17cqw; }
.lu-chair b { position: absolute; left: 1cqw; bottom: 5.5cqw; width: 14cqw; height: 11cqw; border-radius: 6cqw 6cqw 2cqw 2cqw; background: #a08d74; }
.lu-chair i { position: absolute; left: 0; right: 0; bottom: 3cqw; height: 4.6cqw; border-radius: 2.4cqw; background: #bba88f; }
.lu-chair u { position: absolute; left: 2.2cqw; right: 2.2cqw; bottom: 0; height: 3.2cqw; border-left: 0.7cqw solid #2a241d; border-right: 0.7cqw solid #2a241d; }
.lu-price {
  position: absolute;
  right: 2%;
  top: 14%;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 0.78em 1em;
  border-radius: 1.4cqw;
  background: #fffaf3;
  box-shadow: 0 1.4cqw 3cqw -1cqw rgba(42, 36, 29, 0.3);
  font: 600 max(1.8cqw, 7px)/1 var(--font-body);
  white-space: nowrap;
  animation: sgFloat 4.6s ease-in-out infinite;
}
.lu-price em { padding: 0.5em 0.8em; border-radius: 99px; background: #b4613a; color: var(--nv-tx); font-size: max(1.65cqw, 7px); text-align: center; }
.lu-grid { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; margin: 3cqh 5cqw 4cqw; }
.lu-grid div { display: flex; flex-direction: column; gap: 1cqw; }
.lu-grid i { height: 17cqh; border-radius: 1.4cqw; position: relative; overflow: hidden; }
.lu-grid i::after { content: ''; position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); }
.lu-grid div:nth-child(1) i { background: #e2d3bd; }
.lu-grid div:nth-child(1) i::after { width: 50%; height: 30%; border-radius: 1cqw 1cqw 0 0; background: #8a6a4a; }
.lu-grid div:nth-child(2) i { background: #d9dccf; }
.lu-grid div:nth-child(2) i::after { width: 26%; height: 55%; border-radius: 99px 99px 0.6cqw 0.6cqw; background: #5f6b57; }
.lu-grid div:nth-child(3) i { background: #efe2d0; }
.lu-grid div:nth-child(3) i::after { width: 32%; height: 42%; border-radius: 40% 40% 30% 30%; background: #c47a52; }
.lu-grid div:nth-child(4) i { background: #d7cdc0; }
.lu-grid div:nth-child(4) i::after { width: 70%; height: 16%; border-radius: 0.6cqw; background: #3c342b; }
.lu-grid span { width: 72%; height: 0.9cqw; border-radius: 1cqw; background: rgba(42, 36, 29, 0.28); }
.lu-grid b { width: 38%; height: 0.9cqw; border-radius: 1cqw; background: #b4613a; }

/* ---------- 05 CosmosVR Platform ---------- */
.s-cosmos {
  background:
    radial-gradient(55% 70% at 74% 48%, rgba(var(--nv-acc-rgb), 0.38), transparent 70%),
    radial-gradient(40% 45% at 12% 100%, rgba(var(--nv-acc2-rgb), 0.18), transparent 70%),
    #05050c;
}
.co-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(1px 1px at 38% 64%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(1.5px 1.5px at 62% 30%, rgba(var(--nv-acc-pale-rgb), 0.9), transparent 70%),
    radial-gradient(1px 1px at 82% 76%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(1px 1px at 24% 88%, rgba(var(--nv-acc2-hi-rgb), 0.8), transparent 70%),
    radial-gradient(1px 1px at 92% 12%, rgba(255, 255, 255, 0.7), transparent 70%);
  background-size: 34cqw 26cqw;
}
.co-stars.co-tw {
  background-position: 11cqw 7cqw;
  background-size: 41cqw 31cqw;
  animation: sgPulse 3.6s ease-in-out infinite;
}
.co-planet { position: absolute; right: 7cqw; top: 50%; width: 32cqw; height: 32cqw; margin-top: -13cqw; }
.co-float { position: absolute; inset: 0; animation: sgFloat 6s ease-in-out infinite; }
.co-float b {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--nv-acc-pale) 0%, var(--nv-acc-hi) 18%, var(--nv-acc-lo) 42%, #3b1480 70%, #140733 92%);
  box-shadow: inset -4cqw -3cqw 6cqw rgba(0, 0, 0, 0.55), 0 0 8cqw rgba(var(--nv-acc-rgb), 0.5);
}
.co-float b::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-16deg, transparent 0 2.6cqw, rgba(255, 255, 255, 0.07) 2.6cqw 3.6cqw, transparent 3.6cqw 5.4cqw);
}
.co-ring {
  position: absolute;
  left: -26%;
  right: -26%;
  top: 39%;
  height: 22%;
  border-radius: 50%;
  border: 0.9cqw solid rgba(var(--nv-acc2-hi-rgb), 0.6);
  transform: rotate(-16deg);
}
.co-ring.co-front { z-index: 2; clip-path: inset(50% 0 0 0); }
.co-nav {
  position: absolute;
  top: 4cqw;
  left: 5cqw;
  right: 5cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3cqw;
}
.co-nav b { font: 700 3cqw/1 var(--font-display); letter-spacing: 0.14em; }
.co-nav b i { color: var(--nv-acc-hi); }
.co-nav span { width: 6cqw; height: 0.9cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.25); }
.co-nav span:first-of-type { margin-left: auto; }
.co-nav em { display: grid; place-items: center; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: linear-gradient(135deg, var(--nv-acc-hi), var(--nv-acc2)); }
.co-panel {
  position: absolute;
  left: 5cqw;
  top: calc(10cqw + 3cqh);
  z-index: 3;
  width: 38cqw;
  padding: 2.4cqw;
  border-radius: 2cqw;
  background: rgba(16, 14, 32, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2cqw 5cqw -2cqw rgba(0, 0, 0, 0.6);
}
.co-panel small { display: block; font: 600 max(1.7cqw, 7px)/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--nv-acc2); }
.co-panel .sg-h { margin-top: 1.2cqw; font: 700 3.8cqw/1.05 var(--font-display); letter-spacing: -0.01em; }
.co-panel ul { margin-top: 2cqw; display: flex; flex-direction: column; gap: 1.1cqw; list-style: none; }
.co-panel li { display: flex; align-items: center; gap: 1.4cqw; padding: 0.9cqw; border-radius: 1.1cqw; background: rgba(255, 255, 255, 0.05); }
.co-panel li i { flex: 0 0 5.4cqw; height: 3.2cqw; border-radius: 0.7cqw; background: linear-gradient(135deg, #312e81, var(--nv-acc2-lo)); }
.co-panel li:nth-child(2) i { background: linear-gradient(135deg, var(--nv-acc-lo), #be185d); }
.co-panel li:nth-child(3) i { background: linear-gradient(135deg, #0f172a, var(--nv-acc-lo)); }
.co-panel li span { flex: 1; height: 0.9cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.28); }
.co-panel li:first-child { background: rgba(var(--nv-acc-rgb), 0.24); box-shadow: inset 0 0 0 1px rgba(var(--nv-acc-hi-rgb), 0.6); }
.co-panel em {
  display: block;
  margin-top: 2cqw;
  padding: 0.78em;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2));
  font: 600 max(1.9cqw, 7px)/1 var(--font-body);
  text-align: center;
}
.co-hud { position: absolute; right: 5cqw; top: calc(10cqw + 3cqh); z-index: 3; display: flex; gap: 1.2cqw; }
.co-hud span {
  padding: 0.6em 0.95em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font: 700 max(1.7cqw, 7px)/1 var(--font-display);
  letter-spacing: 0.08em;
}
.co-toast {
  position: absolute;
  right: 5cqw;
  bottom: 4.4cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.68em 1.05em 0.68em 0.68em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font: 600 max(1.9cqw, 7px)/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 1.6cqw 4cqw -1cqw rgba(0, 0, 0, 0.6);
  animation: coToast 5.2s var(--sg-ease) infinite;
}
.co-toast i { display: grid; place-items: center; width: max(3.4cqw, 12px); height: max(3.4cqw, 12px); border-radius: 50%; background: #22c55e; color: var(--nv-tx); font: 600 max(1.8cqw, 7px)/1 var(--font-body); }
@keyframes coToast {
  0%, 14% { opacity: 0; transform: translateY(2cqw); }
  22%, 72% { opacity: 1; transform: translateY(0); }
  82%, 100% { opacity: 0; transform: translateY(-1cqw); }
}

/* ---------- 06 GreenEnergy ---------- */
.s-green { display: grid; grid-template-columns: 38% 1fr; background: #0c1f17; }
.gr-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3cqh;
  padding: 3.6cqw 3.4cqw;
  background: #eef3e6;
  color: #0f2e22;
}
.gr-brand small { font: 600 max(1.6cqw, 7px)/1.25 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: #4d7c0f; }
.gr-logo { display: flex; align-items: center; gap: 1.4cqw; }
.gr-logo i { position: relative; flex: 0 0 6cqw; height: 6cqw; border-radius: 50%; background: conic-gradient(from 200deg, #15803d, #84cc16, #15803d); }
.gr-logo i::after { content: ''; position: absolute; inset: 1.5cqw; border-radius: 0 100% 0 100%; background: #eef3e6; }
.gr-logo b { font: 700 2.9cqw/1 var(--font-display); letter-spacing: -0.02em; }
.gr-logo b span { color: #15803d; }
.gr-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.gr-palette i { aspect-ratio: 1; border-radius: 1cqw; }
.gr-palette i:nth-child(1) { background: #0f3d2e; }
.gr-palette i:nth-child(2) { background: #15803d; }
.gr-palette i:nth-child(3) { background: #84cc16; }
.gr-palette i:nth-child(4) { background: #facc15; }
.gr-type { display: flex; align-items: flex-end; gap: 2cqw; }
.gr-type b { font: 700 8.6cqw/0.85 var(--font-display); letter-spacing: -0.04em; }
.gr-type span { flex: 1; display: flex; flex-direction: column; gap: 1cqw; padding-bottom: 0.6cqw; }
.gr-type span i { height: 0.9cqw; border-radius: 1cqw; background: rgba(15, 46, 34, 0.3); }
.gr-type span i:last-child { width: 64%; }
.gr-site { position: relative; overflow: hidden; background: linear-gradient(180deg, #0f3d2e 0%, #14532d 55%, #166534 100%); }
.gr-sun { position: absolute; right: 16cqw; top: 20%; width: 12cqw; height: 12cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 204, 21, 0.55), rgba(250, 204, 21, 0)); animation: sgPulse 5s ease-in-out infinite; }
.gr-nav { position: absolute; top: 3.6cqw; left: 3.6cqw; right: 3.6cqw; z-index: 2; display: flex; align-items: center; gap: 2cqw; }
.gr-nav i { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: conic-gradient(from 200deg, #22c55e, #bef264, #22c55e); }
.gr-nav span { width: 5cqw; height: 0.8cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.3); }
.gr-nav span:first-of-type { margin-left: auto; }
.gr-nav em { padding: 0.65em 1.2em; border-radius: 99px; background: #bef264; color: #0f2e22; font: 600 max(1.7cqw, 7px)/1 var(--font-body); }
.gr-copy { position: absolute; left: 3.6cqw; top: calc(9cqw + 4cqh); z-index: 2; }
.gr-copy small { display: block; margin-bottom: 1.2cqw; font: 600 max(1.6cqw, 7px)/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #bef264; }
.gr-copy .sg-h { font: 700 4cqw/1.04 var(--font-display); letter-spacing: -0.02em; }
.gr-copy em { display: inline-block; margin-top: 2.2cqw; padding: 0.72em 1.33em; border-radius: 99px; background: #fff; color: #0f2e22; font: 600 max(1.8cqw, 7px)/1 var(--font-body); white-space: nowrap; }
.gr-farm { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; }
.gr-turbine { position: absolute; bottom: 0; width: 0; }
.gr-turbine b { position: absolute; bottom: 0; left: -0.5cqw; width: 1cqw; border-radius: 0.5cqw 0.5cqw 0 0; background: linear-gradient(90deg, #f1f5ec, #bfd0b8); }
.gr-rotor { position: absolute; left: 0; width: 0; height: 0; animation: sgSpin 7s linear infinite; }
.gr-rotor i { position: absolute; left: -0.7cqw; bottom: 0; width: 1.4cqw; border-radius: 1cqw 1cqw 0.3cqw 0.3cqw; background: #f7faf4; transform-origin: 50% 100%; }
.gr-rotor i:nth-child(2) { transform: rotate(120deg); }
.gr-rotor i:nth-child(3) { transform: rotate(240deg); }
.gr-rotor::after { content: ''; position: absolute; left: -1.1cqw; top: -1.1cqw; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #fff; }
.gr-t1 { right: 10cqw; }
.gr-t1 b { height: 50cqh; }
.gr-t1 .gr-rotor { bottom: 50cqh; }
.gr-t1 .gr-rotor i { height: 11cqw; }
.gr-t2 { right: 27cqw; }
.gr-t2 b { height: 30cqh; }
.gr-t2 .gr-rotor { bottom: 30cqh; animation-duration: 5.4s; }
.gr-t2 .gr-rotor i { height: 7cqw; }
.gr-hill { position: absolute; left: -12%; right: -12%; bottom: -9cqw; height: 18cqw; border-radius: 50% 50% 0 0; background: #15803d; }
.gr-hill.gr-hill2 { left: 30%; right: -40%; bottom: -11cqw; background: #166534; }

/* ecrane de machetă mici (telefoane): etichetele au un minim de 7px,
   așa că spațierea literelor se strânge ca să încapă pe un rând */
@container (max-width: 380px) {
  .au-copy small, .lu-copy small, .co-panel small, .gr-copy small { letter-spacing: 0.1em; }
  .gr-brand small { letter-spacing: 0.04em; }
  .da-live { letter-spacing: 0.08em; }
  .gr-brand { gap: 2.4cqh; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-screen *, .sg-screen *::before, .sg-screen *::after { animation: none !important; }
  .sg-card::before, .cursor-drag span { transition: none; }
}

/* =============================================
   GALERIA CONCEPTELOR (#galerie) — filtre pe nișe + clipuri
   Filtrele: js/showcase.js (initConceptFilters). Clipurile: js/concepte.js.
   PC: clipul pornește la trecerea mouse-ului; telefon: când cardul intră în ecran (unul singur).
   Doar variabilele temei (--nv-*): pe Halloween se schimbă singure.
   ============================================= */
.scg {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 9vw, 6.5rem);
}
.scg-head {
  max-width: 700px;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
}
.scg-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0 0 .9rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nv-acc-hi);
}
.scg-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--nv-tx);
  text-wrap: balance;
}
.scg-lead {
  margin: 0;
  color: var(--nv-tx2);
  font-size: 1rem;
  line-height: 1.7;
}
/* avertismentul „fictive”: o singură dată, discret */
.scg-note { display: block; margin-top: .35rem; color: var(--nv-tx3); font-size: .8125rem; }
.scg-lead-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .scg-lead-mouse { display: inline; }
  .scg-lead-touch { display: none; }
}

/* ---------- filtre ---------- */
.scg-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.scg-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem 0 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--nv-tx-rgb), .12);
  background: rgba(var(--nv-card-rgb), .72);
  color: var(--nv-tx2);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.scg-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--nv-tx-rgb), .07);
  color: var(--nv-tx3);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  transition: background-color .35s ease, color .35s ease;
}
.scg-chip[aria-pressed="true"] {
  background: var(--nv-btn);
  border-color: var(--nv-acc);
  color: var(--nv-on-acc);
  font-weight: 600;
}
.scg-chip[aria-pressed="true"] .scg-count { background: rgba(var(--nv-bg-rgb), .18); color: var(--nv-on-acc); }
.scg-chip:focus-visible { outline: 2px solid var(--nv-acc-hi); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .scg-chip:not([aria-pressed="true"]):hover { border-color: rgba(var(--nv-acc-rgb), .45); color: var(--nv-tx); transform: translateY(-1px); }
}

/* ---------- galeria de dispozitive (stilul dispozitivelor: css/concepte.css) ----------
   Ritm editorial pe 12 coloane: mare (8) + mic (4), alternând pe rânduri:
   laptop mare cu telefon / telefon / laptop mare / laptop mic. Dispozitivele unui rând stau pe aceeași
   „podea”, textele pe aceeași linie. La filtrare, cardurile rămase stau centrate. */
.scg-grid {
  list-style: none;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem) 0 0;
  max-width: 1240px;
  --scg-gap: clamp(1.5rem, 3.4vw, 3.25rem);
  /* 12 coloane; rândurile incomplete (după filtrare) sunt centrate din js/concepte.js (NovaClipuri.layout) */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--scg-gap);
  row-gap: clamp(3.5rem, 7vw, 6.5rem);
  /* la filtrare, JS-ul animă înălțimea (fără salt al conținutului de dedesubt) și taie temporar marginea */
  overflow-clip-margin: 60px;
}
.scg-card[hidden] { display: none; }

/* fiecare card ocupă două rânduri ale grilei (subgrid): dispozitivele unui rând stau pe aceeași podea,
   textele încep pe aceeași linie, oricât de lungi ar fi */
.scg-card {
  position: relative;
  min-width: 0;
  grid-column: span 8;
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.scg-card--s { grid-column: span 4; }
@supports not (grid-template-rows: subgrid) {
  .scg-card { display: flex; flex-direction: column; }
  .scg-dev { flex: 1; }
}

.scg-dev {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.scg-dev-in {
  position: relative;
  width: 100%;
  transform-origin: 50% 70%;
}
.scg-card--phone .scg-dev-in { width: min(100%, 250px); }
@supports (height: 100svh) {
  /* laptopuri scunde: telefonul încape cu totul pe ecran */
  .scg-card--phone .scg-dev-in { width: min(100%, 250px, calc((100svh - 250px) / 2.06)); }
}
.scg-card--s.scg-card--laptop .scg-dev-in { width: 100%; }

/* laptop mare + telefonul aceluiași site, așezat în fața colțului din dreapta */
.scg-card--combo .scg-dev-in { padding-right: 9%; }
.scg-card--combo .scg-combo-phone {
  position: absolute;
  right: 0;
  bottom: -1.5%;
  z-index: 2;
  width: 21%;
}
.scg-card--combo .scg-combo-phone .nd-floor { opacity: .9; }

/* textul de sub dispozitiv */
.scg-cap {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 36rem;
  margin: 0 auto;
  padding-top: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
}
.scg-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem .9rem;
  margin: 0 0 .6rem;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scg-nisa { color: var(--nv-acc-hi); font-weight: 600; }
.scg-pack { color: var(--nv-tx3); }
.scg-pack b { color: var(--nv-tx2); font-weight: 600; }
.scg-kind {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--nv-tx-rgb), .14);
  color: var(--nv-tx2);
  letter-spacing: .1em;
}
.scg-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--nv-tx);
}
.scg-card--l .scg-name { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.scg-sub { margin: .3rem 0 .55rem; color: var(--nv-tx2); font-size: .9375rem; }
.scg-desc { margin: 0 0 .4rem; color: var(--nv-tx3); font-size: .9rem; line-height: 1.6; max-width: 30rem; }
.scg-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: var(--nv-acc-hi);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 8px;
}
.scg-link svg { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
/* tot cardul (dispozitiv + text) duce la exemplu; butonul clipului rămâne deasupra */
.scg-link::after { content: ''; position: absolute; inset: 0; z-index: 5; }
.scg-card .nd-play { z-index: 8; }
.scg-link:focus-visible { outline: 2px solid var(--nv-acc-hi); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .scg-card:hover .scg-link svg { transform: translateX(4px); }
}

/* intrarea: eșalonată, o singură dată (clasele le pune js/concepte.js doar dacă mișcarea e permisă) */
.scg-card.scg-pre { opacity: 0; transform: translate3d(0, 56px, 0) scale(.96); }
.scg-card.scg-in {
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms), transform 1.15s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}

/* ---------- tabletă: mare = rând întreg, mic = jumătate ---------- */
@media (max-width: 1023px) {
  .scg-card { grid-column: span 12; }
  .scg-card--s { grid-column: span 6; }
  .scg-card--l .scg-dev-in { max-width: 680px; }
}
/* ---------- telefon: o coloană; clipul pornește când cardul ajunge în mijlocul ecranului ---------- */
@media (max-width: 639px) {
  /* imediat după hero: titlul galeriei, filtrele și primul proiect încap în ~1,2 ecrane */
  .scg { padding-top: 2.75rem; }
  .scg-head { margin-bottom: 1.1rem; }
  .scg-kicker { margin-bottom: .6rem; }
  .scg-title { margin-bottom: .6rem; font-size: 1.7rem; }
  .scg-lead { font-size: .95rem; line-height: 1.6; }
  .scg-filters { margin-bottom: 1.25rem; }
  .scg-grid { row-gap: 3.75rem; padding-top: .5rem; }
  .scg-card, .scg-card--s { grid-column: span 12; }
  .scg-card--phone .scg-dev-in { width: min(62vw, 250px); }
  .scg-cap { padding-top: 1.6rem; }
  .scg-desc { font-size: .875rem; }
  /* filtrele: un singur rând glisabil, fără să lărgească pagina */
  .scg-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    /* estompare lată la dreapta: se vede că lista continuă; spațiul de la capăt lasă ultimul filtru întreg */
    padding: 4px 64px 8px clamp(1rem, 4vw, 2rem);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 72px), rgba(0, 0, 0, .35) calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 72px), rgba(0, 0, 0, .35) calc(100% - 30px), transparent 100%);
  }
  .scg-filters::-webkit-scrollbar { display: none; }
  .scg-chip { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scg-grid, .scg-chip, .scg-link svg { transition: none; }
  .scg-card.scg-pre { opacity: 1; transform: none; }
}

/* Halloween: filtrul ales „arde” ușor, ca un felinar */
html[data-sezon="halloween"] .scg-chip[aria-pressed="true"] {
  box-shadow: 0 0 0 1px rgba(var(--nv-acc-hi-rgb), .35), 0 8px 26px -10px rgba(var(--nv-acc-rgb), .7);
}

/* =============================================================
   Runda 6 · un singur ansamblu (laptop + telefon); nișele schimbă ce rulează în aceleași dispozitive
   ============================================================= */
.scg-grid.is-stage { display: block; max-width: 1100px; padding-top: clamp(.5rem, 2vw, 1.5rem); }
.scg-grid.is-stage .scg-card { display: block; width: 100%; grid-column: auto; grid-row: auto; }
.scg-card--stage .scg-dev { display: block; }
.scg-card--stage .scg-dev-in { max-width: 880px; margin-inline: auto; }
.scg-card--stage .scg-combo-phone { width: 23%; bottom: -3%; }
.scg-card--stage .scg-combo-phone.is-crop .nd-poster,
.scg-card--stage .scg-combo-phone.is-crop .nd-video { object-fit: cover; }
.scg-card--stage .scg-cap { padding-top: clamp(1.4rem, 3vw, 2.2rem); }
.scg-card--stage .scg-name { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.scg-card--stage { touch-action: pan-y; }
@media (max-width: 639px) {
  .scg-card--stage .scg-dev-in { max-width: 100%; padding-right: 11%; }
  .scg-card--stage .scg-combo-phone { width: 28%; }
}
.scg-chip[aria-pressed="true"] { box-shadow: 0 0 0 1px rgba(var(--nv-acc-rgb), .7), 0 10px 26px -12px rgba(var(--nv-acc-rgb), .7); }

/* =============================================================
   Runda 6 · POARTA NOVA Origins (js/showcase.js · initOriginsGate)
   obiect de sezon se aprinde → flacăra devine scânteie → scânteia desenează poarta → poarta se deschide → buton.
   Fără JS / reduced motion: imaginea finală + butonul. Cu JS: .og--js + variabila --p (0…1) din derulare.
   ============================================================= */
.og { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 6rem) 20px clamp(3rem, 7vw, 5rem); }
.og-pin { display: flex; flex-direction: column; align-items: center; gap: clamp(.9rem, 2.2vh, 1.6rem); text-align: center; }
.og-copy { max-width: 36rem; }
.og-kicker { font: 600 .74rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--nv-acc-hi); margin-bottom: .6rem; }
.og-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.12; margin-bottom: .6rem; text-shadow: 0 0 30px rgba(var(--nv-bg-rgb), .9); }
.og-sub { color: var(--nv-tx2, var(--text-secondary)); font-size: clamp(.95rem, 1.5vw, 1.05rem); line-height: 1.6; }

.og-scene { position: relative; width: min(74vw, 340px); aspect-ratio: 4 / 5; flex: none; }
.og-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.og-door { fill: #101311; }
.og-door--l { transform: translate(-142px, 0); }
.og-door--r { transform: translate(142px, 0); }
.og-world { opacity: 1; }
.og-arch-ghost { fill: none; stroke: rgba(var(--nv-acc-rgb), .16); stroke-width: 2; stroke-linecap: round; }
.og-base { fill: none; stroke: var(--nv-acc-hi); stroke-width: 2; stroke-linecap: round; opacity: .55; filter: drop-shadow(0 0 5px rgba(var(--nv-glow-rgb), .8)); }
.og-arch { fill: none; stroke: var(--nv-acc-hi); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(var(--nv-glow-rgb), .85)); }
.og-sparks, .og-spark-glow, .og-spark { opacity: 0; }
.og-spark { fill: #fff; }
.og-lantern { position: absolute; left: 50%; bottom: 3%; width: 46%; transform: translate3d(-50%, 0, 0); pointer-events: none; opacity: 0; }
.og-lantern img { display: block; width: 100%; height: auto; }
.og-lantern__on { position: absolute; inset: 0; opacity: 1; }

/* butonul: o lumină curge pe contur (doar transform) */
.og-btn {
  position: relative; display: inline-block; overflow: hidden; isolation: isolate; border-radius: 999px; padding: 2px;
  text-decoration: none; color: var(--nv-tx); font: 700 clamp(1.02rem, 2.4vw, 1.2rem)/1.2 var(--font-body);
  box-shadow: 0 14px 44px -14px rgba(var(--nv-glow-rgb), .95), 0 0 0 1px rgba(var(--nv-acc-rgb), .35);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
.og-btn:hover { transform: translate3d(0, -2px, 0) scale(1.02); box-shadow: 0 18px 54px -12px rgba(var(--nv-glow-rgb), 1), 0 0 0 1px rgba(var(--nv-acc-hi-rgb), .6); }
.og-btn:focus-visible { outline: 2px solid var(--nv-acc-hi); outline-offset: 4px; }
.og-btn__ring {
  position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; z-index: -1;
  margin: -110% 0 0 -110%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--nv-acc-rgb), .25) 0 38%, var(--nv-acc) 52%, #fff 62%, var(--nv-acc-hi) 68%, rgba(var(--nv-acc-rgb), .25) 82% 100%);
}
.og-btn__in {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap;
  padding: 1.05rem 1.9rem 1.05rem 1.5rem; border-radius: 999px;
  background: linear-gradient(rgba(var(--nv-raised-rgb), .97), rgba(var(--nv-bg-rgb), .97));
}
.og-btn__in .nvo-ico { width: 24px; height: 28px; }
.og-btn__ar { display: inline-block; transition: transform .3s ease; }
.og-btn:hover .og-btn__ar { transform: translate3d(4px, 0, 0); }
@media (prefers-reduced-motion: no-preference) {
  .og-btn__ring { animation: ogRing 3.4s linear infinite; }
  .og-btn.is-ready { animation: ogBtnPulse 3.6s ease-in-out infinite; }
}
@keyframes ogRing { to { transform: rotate(360deg); } }
@keyframes ogBtnPulse { 0%, 100% { box-shadow: 0 14px 44px -14px rgba(var(--nv-glow-rgb), .8), 0 0 0 1px rgba(var(--nv-acc-rgb), .3); } 50% { box-shadow: 0 16px 58px -10px rgba(var(--nv-glow-rgb), 1), 0 0 0 1px rgba(var(--nv-acc-hi-rgb), .55); } }

/* ----- derulare: starea inițială e „poartă închisă”; JS pune --p și clasele de etapă ----- */
@media (prefers-reduced-motion: no-preference) {
  .og--js { height: 250vh; height: 250svh; padding: 0; }
  .og--js .og-pin {
    position: sticky; top: 0; height: 100vh; height: 100svh; justify-content: center; padding: 76px 20px 24px; box-sizing: border-box;
  }
  .og--js .og-door--l { transform: translate(calc(var(--og-open, 0) * -142px), 0); }
  .og--js .og-door--r { transform: translate(calc(var(--og-open, 0) * 142px), 0); }
  .og--js .og-world { opacity: calc(.15 + var(--og-open, 0) * .85); transform: scale(calc(1.14 - var(--og-open, 0) * .14)); transform-origin: 200px 300px; }
  .og--js .og-arch--l { stroke-dashoffset: calc(1 - var(--og-draw, 0)); }
  .og--js .og-arch--r { stroke-dashoffset: calc(1 - var(--og-draw, 0)); }
  .og--js .og-base { opacity: calc(var(--og-open, 0) * .55); }
  .og--js .og-arch-ghost { opacity: calc(var(--og-ghost, 0)); }
  .og--js .og-sparks, .og--js .og-spark-glow, .og--js .og-spark { opacity: 1; }
  .og--js .og-lantern { opacity: var(--og-lan, 0); }
  .og--js .og-lantern__on { opacity: var(--og-lit, 0); }
  .og--js .og-btn { opacity: var(--og-btn, 0); transform: translate3d(0, calc((1 - var(--og-btn, 0)) * 18px), 0) scale(calc(.94 + var(--og-btn, 0) * .06)); pointer-events: none; }
  .og--js .og-btn.is-ready { pointer-events: auto; }
  .og--js .og-btn.is-ready:hover { transform: translate3d(0, -2px, 0) scale(1.02); }
}
@media (max-width: 767.98px) {
  .og-scene { width: min(70vw, 300px); }
  .og-btn { width: min(100%, 22rem); text-align: center; }
  .og-btn__in { padding: 1rem 1.2rem 1rem 1rem; }
}
/* og-pin-wide: laptop — textul și butonul în stânga, poarta mare în dreapta */
@media (min-width: 1024px) {
  .og-pin { display: grid; grid-template-columns: minmax(0, 26rem) auto; grid-template-rows: 1fr auto 1fr; column-gap: clamp(3rem, 8vw, 8rem); row-gap: 1.6rem; justify-content: center; align-items: center; text-align: left; max-width: 1080px; margin: 0 auto; }
  .og-copy { grid-column: 1; grid-row: 2; align-self: end; }
  .og-btn { grid-column: 1; grid-row: 3; justify-self: start; align-self: start; }
  .og-scene { grid-column: 2; grid-row: 1 / span 3; width: min(calc((100vh - 170px) * .8), 420px); width: min(calc((100svh - 170px) * .8), 420px); }
}

/* „Vezi portofoliul”: spre pagina /proiecte */
.sg-proiecte {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem; min-height: 44px; padding: 0 1.2rem;
  border-radius: 999px; border: 1px solid rgba(var(--nv-acc-rgb), .55); color: var(--nv-tx); font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: background-color .3s ease, border-color .3s ease;
}
.sg-proiecte svg { width: 16px; height: 16px; flex: none; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.sg-proiecte:hover { background: rgba(var(--nv-acc-rgb), .12); border-color: var(--nv-acc); }
.sg-proiecte:hover svg { transform: translateX(3px); }
.sg-proiecte:focus-visible { outline: 2px solid var(--nv-acc-hi); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .sg-proiecte, .sg-proiecte svg { transition: none; } }
