/* Homepage-ul (design/homepage/f-linia.html): bannerul cu piesa recomandată și panourile care se deschid la hover. */
h1 { font-weight: 500; font-size: clamp(40px, 5.6vw, 92px); line-height: 1; letter-spacing: -.035em; }

.ph { position: relative; overflow: hidden; background: rgba(26, 24, 21, .1); }

/* Antetul stă peste banner și apare după deschiderea lui */
.hero .tt-head { position: absolute; inset: 0 0 auto 0; z-index: 10; height: auto; padding: 24px var(--gutter); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 0; animation: up 1s var(--ease) .6s forwards; }

/* Bannerul mare: prima piesă, pe toată lățimea */
.hero { position: relative; height: 92svh; min-height: 560px; overflow: hidden; clip-path: inset(0 0 100% 0); animation: open 1.3s var(--ease) .1s forwards; }
@keyframes open { to { clip-path: inset(0 0 0 0); } }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transform: scale(1.12); animation: settle 1.8s var(--ease) .1s forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(237, 233, 225, .55), rgba(237, 233, 225, 0)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(237, 233, 225, .8), rgba(237, 233, 225, 0) 32%); }
.hero .over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(24px, 4vh, 48px) var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 24px; opacity: 0; transform: translateY(16px); animation: up 1s var(--ease) .8s forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
.hero .over .label { margin-bottom: 16px; display: block; }
.hero .piece { text-align: right; }
.hero .piece h3 { font-weight: 500; font-size: 22px; }
.hero .piece .sub { font-size: 14px; opacity: .8; margin: 4px 0 16px; }

/* Rânduri de câte două piese; în fiecare rând, cea de sub cursor se deschide.
   Rândurile se adaugă pe măsură ce derulezi, cât timp mai sunt piese. */
.panels { display: flex; gap: 8px; height: min(62svh, 720px); padding: 0 var(--gutter); margin-top: 8px; }
.panels.enter { opacity: 0; transform: translateY(40px); }
.panels.in { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s var(--ease); }
.loader { display: flex; justify-content: center; gap: 7px; padding: 48px 0; }
.loader i { width: 9px; height: 9px; border-radius: 50%; animation: blink 1.2s ease-in-out infinite; }
.loader i:nth-child(1) { background: var(--ink); }
.loader i:nth-child(2) { background: var(--camel); animation-delay: .15s; }
.loader i:nth-child(3) { background: var(--olive); animation-delay: .3s; }
.loader.done { display: none; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.more { display: flex; justify-content: center; padding: 56px 0 0; }
.more[hidden] { display: none; }

.pp { --g: 1; flex: var(--g) 1 0; min-width: 0; position: relative; overflow: hidden; border-radius: 4px; transition: flex-grow .9s var(--ease); cursor: pointer; outline: none; background: rgba(26, 24, 21, .1); }
.pp.active { --g: 3.4; }
.pp .shots { position: absolute; inset: -3%; transition: transform .2s linear; }
.pp .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s var(--ease); }
.pp .shots img.back { opacity: 0; }
.pp.active:hover .shots img.back { opacity: 1; }
.pp:not(.active) .shots img { transform: scale(1.06); }
.pp::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(26, 24, 21, .55), rgba(26, 24, 21, 0) 38%); opacity: 0; transition: opacity .5s; }
.pp.on-dark::after, .pp.active::after { opacity: 1; }
.pp.on-light::after { background: linear-gradient(to top, rgba(237, 233, 225, .75), rgba(237, 233, 225, 0) 38%); }
/* Panourile închise: eticheta verticală mereu deschisă, pe o umbră discretă, indiferent de culoarea hainei */
.pp.pp:not(.active)::after { opacity: 1; background: linear-gradient(to top, rgba(26, 24, 21, .62), rgba(26, 24, 21, 0) 55%); }
.pp:not(.active) .vert, .pp:not(.active) .num { color: var(--greige); }
.pp .vert { position: absolute; left: 20px; bottom: 22px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 22px; font-weight: 500; letter-spacing: -.01em; transition: opacity .4s; z-index: 2; }
.pp.active .vert { opacity: 0; }
.pp .num { position: absolute; left: 20px; top: 20px; z-index: 2; }
.pp .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 16px; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s var(--ease); }
.pp.active .meta { opacity: 1; transform: none; transition-delay: .35s; }
.pp h3 { font-weight: 500; font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -.025em; line-height: 1; }
.pp .sub { margin-top: 10px; font-size: 14px; opacity: .7; }
.pp.on-dark .btn { background: var(--greige); color: var(--ink); }
.pp.on-dark .vert, .pp.on-dark .num, .pp.on-dark .meta { color: var(--greige); }

@media (max-width: 860px) {
  .hero .tt-head { display: flex; align-items: center; gap: 12px; }
  .hero { height: 86svh; }
  .hero > img { object-position: 50% 0%; }
  .hero::after { background: linear-gradient(to top, rgba(237, 233, 225, .95) 0%, rgba(237, 233, 225, .85) 34%, rgba(237, 233, 225, 0) 62%); }
  .hero .over { flex-direction: column; align-items: flex-start; }
  .hero .piece { text-align: left; }
  .panels { flex-direction: column; height: auto; }
  .pp, .pp.active { flex: none; height: 74svh; }
  .pp .vert { writing-mode: horizontal-tb; transform: none; left: 20px; top: auto; bottom: 18px; }
}
