/* ==========================================================================
   BIA Nicoleta Druță — stiluri

   Identitatea pornește de la planșa tehnică:
   hârtie de calc, tuș de desen și roșul folosit pe planuri pentru
   construcția nouă. Culorile, fonturile și dimensiunile textului sunt
   definite O SINGURĂ DATĂ, mai jos, în :root. Schimbă-le doar acolo.
   ========================================================================== */

:root {
  /* Culori */
  --paper: #F0F2EE;        /* fundal: hârtie de calc */
  --paper-deep: #E3E7E1;   /* benzile alternative */
  --ink: #1C2740;          /* text: tuș de desen */
  --ink-soft: #485269;     /* text secundar */
  --line: rgba(28, 39, 64, 0.14);
  --line-strong: rgba(28, 39, 64, 0.3);
  --red: #C2362B;          /* accent: butoane, pași, starea activă */
  --red-deep: #9E2920;
  --on-red: #FFFFFF;

  /* Fonturi */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scala textului — se adaptează singură între telefon și monitor */
  --step--1: 0.875rem;
  --step-0: clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);
  --step-2: clamp(1.4375rem, 1.2rem + 1.1vw, 2rem);
  --step-3: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.4vw, 4.125rem);

  /* Spațiere */
  --gutter: clamp(1.25rem, 0.75rem + 2.4vw, 3rem);
  --section: clamp(3.75rem, 2.75rem + 4.2vw, 6.75rem);
  --container: 1240px;
  --header-h: 4.5rem;
  --cta-bar-h: 3.5rem;
  --radius: 6px;           /* butoane, câmpuri */
  --radius-lg: 12px;       /* carduri, planșe */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --umbra: 0 18px 40px -18px rgba(28, 39, 64, 0.28);
}

/* --------------------------------------------------------------------------
   Bază
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* loc pentru bara de contact de pe telefon */
  padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom, 0px));
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
}

/* --------------------------------------------------------------------------
   Butoane și linkuri
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.1s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* la trecerea mouse-ului, culoarea intră din stânga */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}

.btn .icon {
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .btn:hover::before {
    transform: scaleX(1);
  }

  .btn:hover .icon {
    transform: scale(1.12) rotate(-6deg);
  }
}

.btn-primary {
  background: var(--red);
  color: var(--on-red);
}

.btn-primary::before {
  background: var(--red-deep);
}

.btn-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

@media (hover: hover) {
  .btn-secondary:hover {
    color: var(--paper);
  }
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: color 0.2s var(--ease);
}

.textlink:hover {
  color: var(--red-deep);
}

/* --------------------------------------------------------------------------
   Antet: fix sus. Pe ecrane mici, meniul se deschide din buton.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  column-gap: clamp(1rem, 0.2rem + 2.6vw, 3rem);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 750;
  font-size: 1.1875rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--ink);
}

.header-cta {
  min-height: 2.75rem;
  margin-left: auto;
  padding-inline: 1rem;
  white-space: nowrap;
}

.meniu-buton {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.meniu-linii,
.meniu-linii::before {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.meniu-linii {
  position: relative;
  transform: translateY(-3px);
}

.meniu-linii::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(6px);
}

.meniu-deschis .meniu-linii {
  transform: rotate(45deg);
}

.meniu-deschis .meniu-linii::before {
  transform: rotate(-90deg);
}

/* linia roșie de progres: cât din pagină ai parcurs */
.progres {
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@supports (animation-timeline: scroll()) {
  .progres {
    animation: progres linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progres {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 959px) {
  .meniu-buton {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cta {
    margin-left: 0;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper);
    box-shadow: var(--umbra);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }

  .meniu-deschis .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s;
  }

  .nav a {
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-stretch: 108%;
    font-size: 1.25rem;
    font-weight: 640;
    color: var(--ink);
  }

  .nav a:last-of-type {
    border-bottom: 0;
  }

  .nav a[aria-current="true"] {
    color: var(--red-deep);
  }

  .nav-linie {
    display: none;
  }
}

@media (max-width: 767px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1099px) {
  .header-cta .label-long {
    display: none;
  }
}

@media (min-width: 1100px) {
  .header-cta .label-short {
    display: none;
  }
}

/* ecrane mari: logo și meniu în stânga, butonul WhatsApp în dreapta */
@media (min-width: 960px) {
  .nav {
    position: relative;
    display: flex;
    align-self: stretch;
    gap: clamp(1rem, 0.2rem + 1.5vw, 1.875rem);
    font-size: 1rem;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
  }

  .nav-linie {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;
    height: 2px;
    background: var(--red);
    opacity: 0;
    transform-origin: 0 50%;
    transition: transform 0.4s var(--ease-out), opacity 0.2s var(--ease);
  }
}

/* --------------------------------------------------------------------------
   Hero: titlul pe toată lățimea; dedesubt, textul, apoi semnătura și butoanele
   -------------------------------------------------------------------------- */

/* jos e puțin spațiu: caruselul își aduce singur spațiul de sus */
.hero {
  padding-block: clamp(2rem, 1rem + 3.4vw, 4rem) 0.5rem;
}

.hero h1 {
  margin-bottom: clamp(2rem, 1.25rem + 2.2vw, 3.25rem);
  font-size: clamp(1.625rem, 1rem + 3.45vw, 3.75rem);
  font-stretch: 114%;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

.h1-line {
  display: block;
  font-weight: 780;
}

.h1-team {
  margin-top: 0.4em;
  font-size: max(0.74em, 1.5rem);
  font-stretch: 110%;
  font-weight: 480;
  line-height: 1.18;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.hero-grid {
  display: grid;
  gap: 1.5rem clamp(2.5rem, 1rem + 3.4vw, 4.5rem);
}

.hero-text {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  justify-items: start;
}

.hero-lead {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-sign {
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.4;
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-actions .btn {
  padding-inline: 1.0625rem;
}

@media (max-width: 479px) {
  .hero-actions {
    display: grid;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.2fr);
  }
}

/* Schița în creion și randarea, cu linie despărțitoare pe care o tragi.
   Întâi se desenează schița, apoi randarea o acoperă până la mijloc. */

@property --x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 46%;
}

.desen {
  margin: 0;
}

.desen-cutie {
  --x: 46%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.desen-cutie img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.desen-schita {
  position: absolute;
  inset: 0;
  background: var(--paper);
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.desen-schita svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* granulația hârtiei, ca liniile să arate trase cu creionul */
.desen-schita::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../granulatie.png) 0 0 / 160px;
}

.desen-schita path {
  fill: none;
  stroke: #34373D;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
}

.desen-schita .c-a { stroke-width: 2.6; stroke-opacity: 0.4; }
.desen-schita .c-m { stroke-width: 5.4; stroke-opacity: 0.95; }
.desen-schita .c-r { stroke-width: 3.6; stroke-opacity: 0.6; }
.desen-schita .c-d { stroke-width: 4.2; stroke-opacity: 0.8; }
.desen-schita .c-h { stroke-width: 3.4; stroke-opacity: 0.6; }

@media (max-width: 640px) {
  .desen-schita .c-a { stroke-width: 4; }
  .desen-schita .c-m { stroke-width: 7; }
  .desen-schita .c-r { stroke-width: 5; }
  .desen-schita .c-d { stroke-width: 6.4; }
  .desen-schita .c-h { stroke-width: 5; }
}

.desen-linie {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(var(--x));
}

.desen-linie::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 2px;
  background: var(--red);
}

.desen-linie > span {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}

.desen-linie .icon {
  width: 1rem;
  height: 1rem;
}

.desen-cutie:hover .desen-linie > span {
  transform: translate(-50%, -50%) scale(1.12);
}

@media (prefers-reduced-motion: no-preference) {
  .desen-cutie {
    animation: devine-randare 2.6s 2.9s cubic-bezier(0.65, 0, 0.2, 1) backwards;
  }

  .desen-linie {
    animation: apare-linia 0.3s 2.8s linear backwards;
  }

  .desen-schita path {
    animation: trage-linia 0.55s ease-out backwards;
  }

  .desen-cutie.manual,
  .manual .desen-linie,
  .manual .desen-schita path {
    animation: none;
  }

  .desen-cutie.asteapta {
    --x: 100%;
    animation: none;
  }

  .asteapta .desen-schita path,
  .asteapta .desen-linie {
    opacity: 0;
    animation: none;
  }
}

@keyframes devine-randare {
  from { --x: 100%; }
}

@keyframes apare-linia {
  from { opacity: 0; }
}

@keyframes trage-linia {
  from { stroke-dashoffset: 1; opacity: 0; }
  5% { opacity: 1; }
}

.desen-cutie input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.desen-cutie:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.desen figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.cu-sageata .icon {
  color: var(--red);
  transition: transform 0.3s var(--ease-out);
}

.cu-sageata:hover .icon {
  transform: translateX(0.375rem);
}

/* --------------------------------------------------------------------------
   Proiecte: caruselul mare. Poza și textul proiectului, dedesubt lista.
   -------------------------------------------------------------------------- */

.projects {
  padding-block: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem) clamp(0.5rem, 0rem + 2vw, 2rem);
}

.wrap--wide {
  max-width: 1520px;
}

.projects h2 {
  margin-bottom: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  font-size: var(--step-3);
}

.sheet {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

/* toate proiectele stau unul peste altul, în aceeași celulă:
   înălțimea nu sare când se schimbă textul */
.project-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.project {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}

.project.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s;
}

/* textele nu se suprapun în timpul tranziției */
.project:not(.is-active) .project-info {
  visibility: hidden;
}

.project-images {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-deep);
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.slide.is-active {
  opacity: 1;
}

/* dacă poza se taie puțin, se taie de jos: acoperișul rămâne întreg */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}

/* toată poza e un buton: deschide pozele mari */
.mareste {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.mareste:focus-visible {
  outline-offset: -4px;
}

.mareste span {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .mareste:hover span {
    background: var(--red);
    color: var(--on-red);
    transform: scale(1.1);
  }

  .project-images .slide {
    transition: opacity 0.9s var(--ease), transform 1.2s var(--ease-out);
  }

  .project-images:hover .slide {
    transform: scale(1.025);
  }
}

.sheet.is-playing .project.is-active .slide.is-active img {
  animation: drift 7s linear both;
}

@keyframes drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.03);
  }
}

.project-info {
  display: grid;
  gap: 1rem clamp(2rem, 1rem + 2vw, 3.5rem);
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-top: 1px solid var(--line-strong);
}

.project-info h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
  font-stretch: 108%;
  line-height: 1.16;
}

.project-meta {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--red-deep);
}

.project-body {
  display: grid;
  gap: 1rem;
  align-content: start;
  font-size: 1rem;
  line-height: 1.6;
}

.project-credit {
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* butoanele de pe poză */
.stage-controls {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: stretch;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.stage-butoane {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  background: #FFFFFF;
  pointer-events: auto;
}

/* câte poze are proiectul și cât mai e până la următoarea */
.segmente {
  display: flex;
  flex: 1;
  gap: 0.375rem;
  align-self: flex-end;
  max-width: 26rem;
  margin: 0 auto 1.25rem 0.25rem;
  padding-right: 1.5rem;
}

.segmente i {
  position: relative;
  flex: 1;
  max-width: 3.5rem;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(28, 39, 64, 0.22);
}

.segmente i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.segmente .e-plin::before,
.segmente .e-acum::before {
  transform: scaleX(1);
}

.is-playing .segmente .e-acum::before {
  animation: progres 6s linear both;
}

.tb-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.tb-btn:hover {
  background: var(--paper-deep);
}

.tb-btn:focus-visible {
  outline-offset: -3px;
}

.tb-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.tb-play {
  border-left: 1px solid var(--line);
}

/* lista proiectelor: pe telefon derulează în lateral, pe ecran mare se văd toate */
.project-picker {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 37vw);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 1.25rem;
  gap: 1px;
  border-top: 1px solid var(--line-strong);
  background: var(--line);
}

.project-picker li {
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .project-picker {
    grid-auto-columns: minmax(10.5rem, 28vw);
  }
}

@media (min-width: 1024px) {
  .project-picker {
    grid-auto-columns: minmax(0, 1fr);
    overflow: visible;
  }
}

.project-picker button {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0.75rem 0.75rem 1rem;
  border: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.pick-poza {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.pick-poza img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease);
}

.project-picker button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}

.project-picker button[aria-current="true"]::before {
  transform: scaleX(1);
}

.project-picker button[aria-current="true"] {
  background: var(--paper);
}

@media (hover: hover) {
  .project-picker button:hover {
    background: var(--paper);
  }

  .project-picker button:hover::before {
    transform: scaleX(1);
  }

  .project-picker button:hover .pick-poza img {
    transform: scale(1.08);
  }
}

.project-picker button:active .pick-poza img {
  transform: scale(1.03);
}

.project-picker button:focus-visible {
  outline-offset: -4px;
}

.pick-name {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 640;
  font-size: 0.9375rem;
}

.pick-loc {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.projects-note {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* pe telefon proiectul se schimbă doar la cererea vizitatorului, deci înălțimea poate urma textul */
@media (max-width: 767px) {
  .project:not(.is-active) {
    display: none;
  }

  .segmente {
    display: none;
  }

  .stage-butoane {
    flex: 1;
    border-radius: 0;
  }

  /* butoanele stau pe un rând sub poză, ca să nu o acopere */
  .project-images {
    margin-bottom: 2.75rem;
  }

  .stage-controls {
    padding: 0;
    transform: translateY(2.75rem);
  }

  .stage-controls .tb-btn,
  .stage-controls .tb-count {
    border-radius: 0;
  }

  .stage-controls .tb-btn {
    min-width: 3.25rem;
  }

  .stage-controls .tb-count {
    flex: 1;
  }
}

/* tabletă și laptop mic: textul sub poză, pe două coloane */
@media (min-width: 768px) {
  .project-info {
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  }
}

@media (min-width: 1024px) {
  .project-images,
  .stage-controls {
    aspect-ratio: 16 / 9;
  }
}

/* ecran mare: poza întreagă în stânga, textul în dreapta, ca un cartuș de planșă */
@media (min-width: 1360px) {
  .project {
    grid-template-columns: minmax(0, 1fr) 23.5rem;
    grid-template-rows: 1fr;
  }

  .project-images {
    /* lățimea fixă: un text lung înalță poza, dar nu o împinge peste text */
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 100%;
  }

  .project-info {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .project-info h3 {
    font-size: 1.5rem;
  }

  .project-body {
    font-size: 0.9688rem;
    line-height: 1.55;
  }

  .stage-controls {
    aspect-ratio: auto;
    align-self: end;
    margin-right: 23.5rem;
  }
}

@media (min-width: 1360px) and (max-width: 1439px) {
  .project-info {
    padding: 1.25rem;
  }

  .project-body {
    gap: 0.75rem;
    font-size: 0.9063rem;
    line-height: 1.5;
  }

  .project-credit {
    padding-top: 0.75rem;
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Secțiuni
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section);
}

.section--deep {
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
  text-wrap: balance;
}

.section-head--wide {
  max-width: 58rem;
}

/* Îndemnul de la finalul unei secțiuni */
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  padding: 1.25rem clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.ask p {
  text-wrap: balance;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 479px) {
  .ask .btn {
    width: 100%;
  }
}

/* Numărul pasului: bula de ax de pe planuri. Ultimul pas e roșu. */

.step-marker {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

.step-marker--goal {
  border-color: var(--red);
  background: var(--red);
  color: var(--on-red);
}

/* Autorizare: pașii în dreapta; în stânga, o planșă pe care se desenează pasul curent */

.parcurs {
  display: grid;
  gap: 1.5rem clamp(2rem, 1rem + 3vw, 4rem);
}

.parcurs-plansa {
  display: none;
}

.parcurs-desen,
.pas-desen {
  background-color: #F8F9F6;
  background-image:
    linear-gradient(rgba(28, 39, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 39, 64, 0.045) 1px, transparent 1px);
  background-size: 14px 14px;
}

.sketch {
  display: block;
  width: 100%;
  padding: 0.5rem;
}

.parcurs-lista {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.pas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1.125rem;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  transition: border-color 0.3s var(--ease), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.pas-desen {
  grid-column: 1 / -1;
  margin: -1.125rem -1.125rem 1.125rem;
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.pas-desen .sketch {
  max-height: 11rem;
}

.pas .step-marker {
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pas h3 {
  font-size: clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);
  font-stretch: 104%;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.pas p {
  margin-top: 0.375rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pas-text {
  align-self: center;
}

/* telefon: numărul și schița pe același rând, textul dedesubt */
@media (max-width: 639px) {
  .pas {
    align-items: center;
  }

  .pas-desen {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 9.5rem;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .pas .step-marker {
    grid-column: 1;
    grid-row: 1;
  }

  .pas-text {
    grid-column: 1 / -1;
    margin-top: 0.875rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .parcurs-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pas {
    grid-template-rows: auto 1fr;
  }

  .pas-text {
    align-self: start;
  }
}

@media (min-width: 1024px) {
  .parcurs {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .parcurs-plansa {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: block;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
  }

  .parcurs-desen .sketch {
    padding: 2rem;
  }

  .parcurs-index {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.375rem;
    padding: 1rem;
    border-top: 1px solid var(--line);
  }

  .parcurs-index i {
    height: 4px;
    border-radius: 2px;
    background: var(--paper-deep);
    transition: background-color 0.4s var(--ease);
  }

  .parcurs-index .e-facut {
    background: var(--red);
  }

  .pas-desen {
    display: none;
  }

  .pas.e-activ {
    border-color: var(--ink);
    box-shadow: var(--umbra);
    transform: translateX(0.5rem);
  }

  .pas.e-activ .step-marker {
    border-color: var(--red);
    background: var(--red);
    color: var(--on-red);
  }

  .step-marker--goal {
    border-color: var(--red);
  }
}

/* liniile se trag pe rând când se schimbă pasul */
@media (prefers-reduced-motion: no-preference) {
  .parcurs-desen .se-trage {
    stroke-dasharray: 1;
    animation: trage 1.1s var(--ease-out) both;
  }

  .parcurs-desen .k-dash,
  .parcurs-desen [class^="f-"] {
    animation: se-vede 0.8s 0.45s var(--ease) both;
  }
}

@keyframes trage {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes se-vede {
  from {
    opacity: 0;
  }
}

/* liniile schițelor */
.k,
.k-thin,
.k-heavy {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.k-thin { stroke-width: 0.75; }
.k-heavy { stroke-width: 3; }
.k-dash { stroke-dasharray: 5 4; }
.k-red { stroke: var(--red); }
.k-paper { fill: #F8F9F6; }
.f-red { fill: var(--red); }
.f-wall { fill: var(--paper-deep); }
.f-ink { fill: var(--ink); }

/* Regularizare: traseu în două puncte */

.traseu {
  position: relative;
  display: grid;
  gap: 1rem;
}

.traseu-pas {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s var(--ease);
}

/* linia dintre puncte */
.traseu-pas + .traseu-pas::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(1.25rem + 1.375rem - 1px);
  width: 2px;
  height: 1rem;
  background: var(--ink);
}

.traseu-pas h3 {
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  font-stretch: 106%;
  line-height: 1.2;
}

.traseu-pas p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (min-width: 860px) {
  .traseu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .traseu-pas {
    padding: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .traseu-pas + .traseu-pas::before {
    bottom: auto;
    top: calc(1.75rem + 1.375rem - 1px);
    left: auto;
    right: 100%;
    width: 2.5rem;
    height: 2px;
  }
}

/* Despre */

.about-grid {
  display: grid;
  gap: 2rem 4rem;
}

.about-grid h2 {
  font-size: var(--step-3);
}

.about-body {
  display: grid;
  gap: 1.25rem;
}

.about-body > p {
  max-width: 62ch;
}

.about-body > p:first-child {
  font-size: var(--step-1);
  line-height: 1.5;
}

.facts-title {
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1.25rem;
  font-size: var(--step-1);
  font-stretch: 108%;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: baseline; /* titlul și primul rând de text pe aceeași linie */
  }
}

.mozaic {
  display: grid;
  gap: 1rem;
}

.mozaic > li {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.mozaic h4 {
  margin: 0 0 0.375rem;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
}

.mozaic p {
  color: var(--ink-soft);
}

.mozaic-cadru {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.mozaic-cadru img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

@media (hover: hover) {
  .mozaic-poza:hover img {
    transform: scale(1.05);
  }
}

.mozaic-text,
.mozaic-cifra {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.mozaic .cifra {
  display: grid;
  gap: 0.125rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-stretch: 108%;
  font-size: var(--step-1);
  font-weight: 640;
}

.cifra strong {
  font-size: clamp(3rem, 2rem + 4vw, 4.75rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mozaic-cifra {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .mozaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mozaic-poza {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .mozaic {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr 1fr;
  }

  .mozaic-poza {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .mozaic-cifra {
    justify-content: center;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 3rem 4.5rem;
}

.channels {
  border-top: 1px solid var(--line-strong);
}

.channels li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
}

.channel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  min-width: 0;
  padding-block: 0.75rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.35s var(--ease-out);
}

.copiaza {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copiaza:hover {
  border-color: var(--ink);
  background: #FFFFFF;
  color: var(--ink);
}

.copiaza.e-gata {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.copiaza [role="status"] {
  position: absolute;
  bottom: calc(100% + 0.375rem);
  right: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.form-butoane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 479px) {
  .form-butoane,
  .form-butoane .btn {
    width: 100%;
  }
}

@media (hover: hover) {
  .channel:hover {
    color: var(--red-deep);
    padding-left: 0.5rem;
  }
}

.channel .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--red);
}

.channel-label {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.channel-value {
  display: block;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-grid .section-head {
  margin-bottom: 2rem;
}

.contact-note {
  margin-top: 1.5rem;
  max-width: 40ch;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.form h3 {
  font-size: var(--step-2);
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field-hint {
  margin: -0.125rem 0 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s var(--ease);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-soft);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: var(--red);
  border-width: 2px;
}

.field-error {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--red-deep);
}

.form-foot {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.form-note,
.form-privacy {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--ink);
  background: var(--paper-deep);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Subsol
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-inner,
.subsol-jos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.subsol {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.subsol .brand-name {
  margin-bottom: 0.375rem;
  color: var(--ink);
}

.subsol nav,
.subsol-contact {
  display: grid;
  align-content: start;
  justify-items: start;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.site-footer a:hover {
  color: var(--red-deep);
  text-decoration-color: var(--red);
}

.subsol a {
  min-height: 2.25rem;
}

.subsol-jos {
  padding-top: 1rem;
}

.subsol-jos::before {
  content: "";
  flex: 0 0 100%;
  border-top: 1px solid var(--line);
}

.inapoi-sus .icon {
  transition: transform 0.3s var(--ease-out);
}

.inapoi-sus:hover .icon {
  transform: translateY(-0.25rem);
}

@media (min-width: 640px) {
  .subsol {
    grid-template-columns: 2fr 1fr 1.4fr;
  }
}

/* --------------------------------------------------------------------------
   Bara de contact de pe telefon
   -------------------------------------------------------------------------- */

.cta-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--cta-bar-h);
  font-weight: 600;
  text-decoration: none;
}

.cta-bar .cta-wa {
  background: var(--red);
  color: var(--on-red);
}

.cta-bar .cta-tel {
  color: var(--paper);
}

.cta-bar.is-hidden {
  transform: translateY(100%);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .cta-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Pagini simple (confidențialitate, 404)
   -------------------------------------------------------------------------- */

body.simple {
  padding-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
}

.page {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section);
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: var(--step-3);
  margin-bottom: 1rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose .meta {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Efecte comune
   -------------------------------------------------------------------------- */

/* lumina care urmărește mouse-ul pe carduri */
.lumina {
  position: relative;
}

.lumina::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(16rem circle at var(--lx, 50%) var(--ly, 50%), rgba(194, 54, 43, 0.1), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

@media (hover: hover) {
  .lumina:hover::after {
    opacity: 1;
  }

  .traseu-pas:hover {
    border-color: var(--ink);
    box-shadow: var(--umbra);
    transform: translateY(-0.375rem);
  }
}

/* apariția la derulare (clasele le pune codul, doar sub marginea ecranului) */
.de-aparut {
  opacity: 0;
  transform: translateY(1.75rem);
}

.de-aparut.a-aparut {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}

/* Pozele mari, pe tot ecranul */
.galerie {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
}

.galerie[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: se-vede 0.3s var(--ease);
}

.galerie-scena {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(0.5rem, 1.5vw, 1.5rem);
  cursor: zoom-out;
}

.galerie-scena img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  border-radius: var(--radius);
  cursor: default;
  animation: se-vede 0.45s var(--ease);
}

.galerie-bara {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(0.75rem, 2vw, 1.5rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.galerie-bara p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  line-height: 1.35;
}

.galerie-bara p span {
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.galerie-bara > div {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
}

.galerie .tb-btn {
  border-radius: var(--radius);
  background: rgba(240, 242, 238, 0.12);
  color: var(--paper);
}

.galerie .tb-btn:hover {
  background: var(--red);
}

.galerie :focus-visible {
  outline-color: var(--paper);
}

/* --------------------------------------------------------------------------
   Mișcare redusă: fără animații pentru cine le-a dezactivat
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
