:root{
  --bg:#f4f1eb;
  --bg-soft:#fbf8f4;
  --card:rgba(255,255,255,.72);
  --card-strong:rgba(255,255,255,.9);
  --text:#1b1c20;
  --muted:#666a73;
  --line:rgba(27,28,32,.08);
  --accent:#ca5e89;
  --accent-2:#5c96b1;
  --dark:#171b23;
  --shadow:0 18px 55px rgba(24,30,45,.08);
  --shadow-strong:0 24px 70px rgba(24,30,45,.14);
  --radius:28px;
  --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f8f5f1 0%,#f2eee8 100%);
  line-height:1.55;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 10% 18%, rgba(92,150,177,.08), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(202,94,137,.08), transparent 26%);
  z-index:-1;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;-webkit-user-drag: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}
video{display:block;max-width:100%}
button,input,textarea{font:inherit}
.container{width:min(calc(100% - 32px),var(--max));margin:0 auto}
.section{padding:92px 0;position:relative;scroll-margin-top:118px}
.section-tight{padding-top:42px}
#home,#about,#portfolio,#services,#contact{scroll-margin-top:118px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:34px}
.section-title h2{margin:0;font-size:clamp(2rem,3.3vw,3.55rem);line-height:1.02;letter-spacing:-.05em}
.section-title p{margin:0;max-width:620px;color:var(--muted)}
.section-title-light h2,.section-title-light p{color:#fff}
.glass{background:var(--card);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.7);box-shadow:var(--shadow)}
.topbar{position:sticky;top:0;z-index:40;padding:14px 0;background:rgba(248,245,241,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.35)}
.nav-shell{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-radius:999px;background:rgba(255,255,255,.56);border:1px solid rgba(255,255,255,.85);box-shadow:0 12px 35px rgba(20,25,35,.06)}
.brand{display:inline-flex;align-items:center}
.brand img{height:48px;width:auto;filter:drop-shadow(0 10px 22px rgba(92,150,177,.18))}
.nav-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.nav-links a,.back-link,.lang-btn,.filter-btn,.btn,.entry-card,.service-card,.stat-card,.mini-card,.contact-item,.process-card{transition:.28s ease}
.nav-links a{padding:10px 15px;font-size:.98rem;color:var(--muted);border-radius:999px}

.nav-links a{
position: relative;
}
.nav-links a::after{
  content:"";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background:#252a35;
  transition: .3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover::after{
  width: 60%;
}

.nav-tools{display:flex;align-items:center;gap:10px}
.lang-switch{display:flex;align-items:center;gap:8px;padding:6px;border-radius:999px;background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.8)}
.lang-btn{border:none;background:transparent;padding:7px 10px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:var(--muted);border-radius:999px}
.lang-btn img{width:18px;height:18px;border-radius:50%;object-fit:cover}
.lang-btn:hover,.lang-btn.is-active{background:#252a35;color:#fff;box-shadow:0 10px 24px rgba(20,25,35,.12)}
.mobile-toggle{display:none;border:none;background:#fff;width:44px;height:44px;border-radius:50%;box-shadow:var(--shadow);cursor:pointer}
.hero{position:relative;min-height:92vh;display:grid;align-items:end;overflow:hidden;background:#0e1117;color:#fff}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,17,.28),rgba(10,12,17,.48) 55%,rgba(10,12,17,.74))}
.hero-pattern{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%, rgba(202,94,137,.22), transparent 28%),radial-gradient(circle at 78% 26%, rgba(92,150,177,.22), transparent 26%),linear-gradient(180deg,rgba(255,255,255,.03),transparent 55%)}
.hero-inner{position:relative;z-index:2;padding:130px 0 54px}
.hero-card{max-width:760px;padding:32px;border-radius:32px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.18);box-shadow:0 20px 70px rgba(0,0,0,.18)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:.84rem;letter-spacing:.18em;text-transform:uppercase;opacity:.84}
.hero h1{margin:18px 0 14px;font-size:clamp(2.3rem,5.4vw,5rem);line-height:1.02;letter-spacing:-.02em;white-space: pre-line}
.hero p{margin:0 0 24px;max-width:620px;font-size:1.05rem;color:rgba(255,255,255,.86)}

.video-toggle{
position:absolute;
right:40px;
bottom:50px;
width:54px;
height:54px;
border:none;
border-radius:50%;
background:rgba(255,255,255,.9);
cursor:pointer;
z-index:10;
display:flex;
align-items:center;
justify-content:center;
}

.cta-row{display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;font-weight:700;border:1px solid transparent;cursor:pointer;border-radius:999px;}
.btn-primary{background:#fff;color:#111419}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(255,255,255,.16)}
.btn-secondary{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.18)}
.btn-secondary:hover{transform:translateY(-2px);background:rgba(255,255,255,.18)}
.btn-dark{background:#252a35;color:#fff}
.btn-dark:hover{background:#11151d;transform:translateY(-2px)}
.about-grid,.experience-grid,.portfolio-grid,.services-grid,.contact-grid,.portfolio-layout,.mini-grid,.process-grid{display:grid;gap:24px}
.about-grid{grid-template-columns:.57fr 1.43fr;align-items:start}
.photo-stack{padding:18px;border-radius:32px;position:relative;overflow:hidden}
.photo-stack .frame{
  height: 100%;
  width: 100%;
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  position:relative}
.photo-stack .frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.photo-stack .frame::after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.42);border-radius:inherit}
.about-side{display:flex;flex-direction:column;gap:20px}
.title-above{margin:0 0 4px}
.logo-pasiune{width:min(430px,100%)}
.about-copy{padding:34px;border-radius:32px}
.about-heading{margin:0 0 16px;font-size:clamp(1.5rem,2.4vw,2.2rem);letter-spacing:-.04em}
.about-copy p{margin:0;color:var(--muted);font-size:.96rem;white-space: pre-line}
.about-copy .signature{width:112px;opacity:.92;margin-top:18px}
.mini-grid{grid-template-columns:repeat(3,1fr)}
.mini-card{padding:22px;border-radius:24px}
.mini-card h4{margin:0 0 10px;font-size:1.04rem}
.mini-card p{margin:0;color:var(--muted);font-size:.96rem;white-space: pre-line}
.mini-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-strong)}
.quote-band{position:relative;overflow:hidden;padding:118px 0;background:linear-gradient(135deg,#161b24,#1d2430);color:#fff}
.quote-parallax{position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(255,255,255,.04),transparent 40%),
  radial-gradient(circle at 18% 30%, rgba(92,150,177,.24), transparent 28%),
  radial-gradient(circle at 78% 48%, rgba(202,94,137,.2), transparent 28%);
  transform:scale(1.08);
}
.quote-band::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 110px),repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 110px);opacity:.45}
.quote-band .container{position:relative;z-index:2}
.quote-box{max-width:800px;padding:42px;border-radius:34px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.14)}
.quote-box h3{margin:0;font-size:clamp(2.05rem,4.1vw,4rem);line-height:1.04;letter-spacing:-.02em;white-space: pre-line}
.quote-sign{margin-top:18px;width:98px;opacity:.95}
.experience-title{margin-bottom:34px}
.experience-grid{grid-template-columns:repeat(4,1fr)}
.stat-card,.entry-card,.service-card,.contact-card,.filter-panel,.work-card,.process-card{border-radius:28px}
.stat-card{padding:26px 22px;min-height:18px;display:flex;flex-direction:column;justify-content:space-between;background:var(--card-strong);border:1px solid rgba(255,255,255,.75);box-shadow:var(--shadow)}
.stat-card .num{font-size:clamp(2rem,5vw,3.45rem);line-height:1;font-weight:800;letter-spacing:-.06em}
.stat-card h3{margin:12px 0 0;font-size:1.05rem; font-weight: 500; color: #2a2f38;}
.stat-card p{margin:8px 0 0;color:var(--muted)}
.stat-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-strong)}
.portfolio-grid{grid-template-columns:repeat(3,1fr)}
.entry-card{padding:18px;background:var(--card-strong);border:1px solid rgba(255,255,255,.75);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px}
.entry-card .thumb{aspect-ratio:16/10;border-radius:22px;background:linear-gradient(135deg,rgba(92,150,177,.18),rgba(202,94,137,.18));display:grid;place-items:center;overflow:hidden}
.entry-card .thumb img{width:100%;height:100%;object-fit:cover}
.thumb-fallback{font-weight:800;letter-spacing:.12em}
.entry-card strong{font-size:1.3rem;font-weight: 700;letter-spacing: 0.01em;}
.entry-card span{color:var(--muted)}
.entry-card:hover{transform:translateY(-6px);background:#252a35;color:#fff;box-shadow:var(--shadow-strong)}
.entry-card:hover span{color:rgba(255,255,255,.78)}
.services-grid{grid-template-columns:repeat(3,1fr)}
.services-grid-5{grid-template-columns:repeat(5,1fr)}
.service-card{padding:28px;background:var(--card-strong);border:1px solid rgba(255,255,255,.75);box-shadow:var(--shadow)}
.service-card h3{margin:0 0 10px;font-size:1.15rem}
.service-card p{margin:0;color:var(--muted)}
.service-card:hover{transform:translateY(-6px) rotateX(3deg);background:#252a35;color:#fff;box-shadow:var(--shadow-strong)}
.service-card:hover p{color:rgba(255,255,255,.78)}
.process-band{background:linear-gradient(140deg,#171c24,#202734);color:#fff;overflow:hidden}
.process-band::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 120px),repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 120px)}
.process-band .container{position:relative;z-index:1}
.process-grid{grid-template-columns:repeat(4,1fr)}
.process-card{padding:26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px)}
.process-card .step{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;margin-bottom:16px;background:rgba(255,255,255,.14);font-weight:800}
.process-card h3{margin:0 0 10px;font-size:1.08rem}
.process-card p{margin:0;color:rgba(255,255,255,.76);font-size:.96rem}
.process-card:hover{transform:translateY(-5px);background:rgba(255,255,255,.12)}
.contact-grid{grid-template-columns:1fr 1.1fr}
.contact-card{padding:30px;background:var(--card-strong);border:1px solid rgba(255,255,255,.75);box-shadow:var(--shadow)}
.contact-list{display:grid;gap:14px;margin-top:16px}
.contact-item{padding:16px 18px;border-radius:20px;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.8)}
.contact-item:hover{background:#252a35;color:#fff}
.contact-form{display:grid;gap:16px}
.contact-form label{display:grid;gap:8px;font-weight:600}
.contact-form span{font-size:.95rem}
.contact-form input,.contact-form textarea {
  width:100%;
  padding:15px 16px;
  border-radius:18px;
  border:1px solid rgba(27,28,32,.08);
  background:rgba(255,255,255,.82);
  outline:none;
  color:var(--text);
  font-weight: 400;
}
.contact-form input:focus,.contact-form textarea:focus{border-color:rgba(92,150,177,.5);box-shadow:0 0 0 4px rgba(92,150,177,.08)}
.footer{padding:26px 0 52px}
.footer-compact{padding-top:10px}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:0px;color:var(--muted);text-align:center}
.footer-brand{display:inline-flex;padding:10px;border-radius:18px}
.footer-brand img{height:52px;width:auto}
.footer-brand:hover{background:rgba(255,255,255,.7);box-shadow:var(--shadow)}

.back-link {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 100%;
padding: 12px 18px;
border-radius: 999px; /* rounded complet */
background: rgba(255,255,255,.9);
backdrop-filter: blur(10px);
text-decoration: none;
color: #111;
font-weight: 600;
transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
justify-self: start;
text-align: left;
margin-left: 0;
box-sizing: border-box;
}
.back-link:hover {
transform: translateY(-1px);
background: #252a35;
color: #fff;
box-shadow: var(--shadow-strong);
}
.back-link::before {
  margin-right: 8px;
  font-size: 14px;
}

.portfolio-hero{padding:34px 0 8px}
.portfolio-section{padding-top:18px}

.portfolio-layout{
  grid-template-columns: 300px 1fr;
  align-items: start;
  gap: 24px;
}

.filter-panel{
  position: sticky;
  top: 170px;
  padding: 20px;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}

.filter-group + .filter-group{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.filter-title{margin:0 0 12px;font-size:.9rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.filter-list{display:flex;flex-direction:column;gap:8px}
.filter-btn{padding:9px 13px;border:none;background:rgba(255,255,255,.82);text-align:left;cursor:pointer;color:var(--text);border:1px solid rgba(27,28,32,.05);border-radius:15px}
.filter-btn:hover,.filter-btn.is-active{background:#252a35;color:#fff;border-color:#252a35;box-shadow:0 12px 24px rgba(20,25,35,.14)}

.works-grid{
display:grid;
grid-template-columns:repeat(12, 1fr);
gap:22px;
align-items:start;
}
.work-card{
width:100%;
margin:0;
}
/* 2 pe rând */
.work-card[data-format="horizontal"]{
grid-column:span 6;
}
/* 4 pe rând */
.work-card[data-format="vertical"]{
grid-column:span 3;
}
/* 3 pe rând */
.work-card[data-format="square"]{
grid-column:span 4;
}
.works-grid.is-all .work-card{
  grid-column:span 6 !important;
}

.filter-panel,
.works-grid{
  min-height: 0;
  scrollbar-gutter: stable;
}

.work-card{overflow:hidden;background:var(--card-strong);border:1px solid rgba(255,255,255,.75);box-shadow:var(--shadow)}

.work-media{position:relative;overflow:hidden;border-radius: 18px;background:linear-gradient(135deg,rgba(92,150,177,.14),rgba(202,94,137,.14));cursor:pointer;isolation: isolate;}
.works-grid.is-all .work-media{
  aspect-ratio: 16 / 9 !important;
}
.work-card[data-format="horizontal"]
.work-media{
  aspect-ratio: 16 / 9;
}
.work-card[data-format="vertical"]
.work-media{
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-card[data-format="vertical"] .thumb-main {
  position: relative;
  z-index: 3;
  border-radius: 22px;
  overflow: hidden;
}

.work-card[data-format="vertical"] .thumb-side {
  position: absolute;
  z-index: 1;
  transform: scale(0.75);
  opacity: 0.4;
  filter: blur(2px);
  pointer-events: none;
}

.work-card[data-format="vertical"] .thumb-left {
  left: 6%;
}

.work-card[data-format="vertical"] .thumb-right {
  right: 6%;
}

.work-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease,filter .45s ease}

/* === ALL FORMATS UNIFIED (16:9) === */
.works-grid.is-all .work-card .work-media{
aspect-ratio:16/9 !important;
background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.55),transparent 60%), linear-gradient(180deg, #f3f1ec,#e7e3dc);
box-shadow: inset 0 0 30px rgba(0,0,0,0.04);
}

.works-grid.is-all .work-card .work-media::before,
.works-grid.is-all .work-card .work-media::after{
content:none;
}

.works-grid.is-all .work-card .work-media img{
position:relative;
z-index:2;
}

/* vertical și square centrate în ramă 16:9 */
.works-grid.is-all .work-card[data-format="vertical"] img,
.works-grid.is-all .work-card[data-format="square"] img{
object-fit:contain;
width:100%;
height:100%;
padding:12px;
}

/* orizontal rămâne full */
.works-grid.is-all .work-card[data-format="horizontal"] img{
object-fit:cover;
padding:0;
}

.works-grid.is-all .work-media{
  border-radius: 18px;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-strong)}

.work-media:hover img{
  transform: scale(1.05);
  filter: brightness(.82);
}

.work-body{padding:18px}
.work-topline{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.pill{padding:6px 10px;border-radius:999px;background:rgba(27,28,32,.05);font-size:.86rem;color:var(--muted)}
.work-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.work-subtitle{
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.9;
  margin-top: 3px;
  line-height: 1.2;
  max-width: 95%;
}
.hidden{display:none !important}
.modal{position:fixed;inset:0;display:none;place-items:center;padding:18px;background:rgba(10,12,18,.64);z-index:60}
.modal.is-open{display:grid}
.modal-card{width:min(100%,1020px);background:#0f131b;border-radius:30px;overflow:hidden;box-shadow:0 25px 80px rgba(0,0,0,.35)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.modal-close{
  border:none;
  backdrop-filter: blur(6px);
  background:rgba(255,255,255,.1);
  color:#fff;
  border-radius:999px;
  cursor:pointer;
  margin-left: auto;
}
.modal-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 1);
  color: #111;
}

.modal-frame{
aspect-ratio:16/9;
background:transparent;
width:100%;
line-height: 0;
overflow: hidden;
}
.modal-frame iframe{
display: block;
width:100%;
height:100%;
border:0;
}
.modal-card.is-horizontal{
width:min(100%,1020px);
}
.modal-card.is-horizontal .modal-frame{
aspect-ratio:16/9;
}
.modal-card.is-vertical{
width:min(100%,420px);
}
.modal-card.is-vertical .modal-frame{
aspect-ratio:9/16;
max-height: 78vh;
}
.modal-card.is-square{
width:min(100%,720px);
}
.modal-card.is-square .modal-frame{
aspect-ratio:1/1;
background: transparent;
}

@media (max-width:1220px){
  .services-grid-5,.process-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1100px){
  .about-grid,.contact-grid,.portfolio-layout{grid-template-columns:1fr}
  .mini-grid,.experience-grid,.portfolio-grid,.services-grid{grid-template-columns:repeat(2,1fr)}
  .works-grid{grid-template-columns: repeat(6, 1fr);}
  .work-card[data-format="horizontal"]{
    grid-column: span 6;
  }
  .work-card[data-format="vertical"]{
    grid-column: span 3;
  }
  .work-card[data-format="square"]{
    grid-column: span 3;
  }

  .filter-panel{position:relative;top:0}
  .portfolio-layout{
    height: auto;
    overflow: visible;
  }
  .filter-panel,
  .works-grid{
    height: auto;
    overflow: visible;
  }
  .filter-panel{
    position: relative;
    top: 0;
  }
  .portfolio-hero-3col{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .format-inline{
    order: 3;
  }
  .portfolio-page-title{
    order: 2;
  }
  .portfolio-hero-graphic{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .portfolio-hero-graphic .portfolio-page-title{
    justify-self: start;
  }
}
@media (max-width:820px){
  .mobile-toggle{display:grid;place-items:center}
  .nav-links{display:none;position:absolute;left:16px;right:16px;top:76px;padding:14px;border-radius:24px;background:rgba(255,255,255,.97);box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.8)}
  .nav-links.is-open{display:flex;flex-direction:column;align-items:stretch}
  .nav-links a{width:100%}
  .nav-shell{border-radius:30px;align-items:flex-start}
  .hero{min-height:82vh}
  .hero-card{padding:22px}
  .mini-grid,.experience-grid,.portfolio-grid,.services-grid,.process-grid{grid-template-columns:1fr}
  .works-grid{
    grid-template-columns: 1fr;
  }
  .work-card[data-format="horizontal"], .work-card[data-format="vertical"], .work-card[data-format="square"]{
    grid-column: span 1;
  }
}

.signature-text{display:inline-block;margin-top:18px;font-family:"Caveat",cursive;font-size:2rem;line-height:1;color:#243040;letter-spacing:.02em}
.signature-light{color:#fff;text-shadow:0 6px 18px rgba(0,0,0,.22)}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:transparent}

.about-grid{
  align-items: stretch;
}
.photo-stack{
  height: 100%;
}

.entry-card {
position:relative;
overflow:hidden;
}

.entry-card::before {
content:"";
position:absolute;
inset:0;
background:linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,.45));
opacity:0;
transition:.4s ease;
z-index: 1;
}

.entry-card .thumb img {
transition:transform .5s ease, filter .5s ease;
}

.entry-card:hover .thumb img {
  transform:scale(1.08);
  filter:brightness(.75);
}

.entry-card:hover::before {
  opacity:1;
}

.entry-card strong,
.entry-card span {
  position:relative;
  z-index:2;
}

.entry-card:hover {
  transform: translateY(-8px)
  scale(1.01);
  box-shadow:0 30px 80px rgba(0,0,0,.18);
}

.reveal {
  opacity: 0;
  transform:translateY(60px) scale(.98);
  filter: blur(3px);
  transition:all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.entry-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, .15), 0 0 0 1px rgba(92, 150, 177, .25);
}

.portfolio-sticky-wrap{
position:sticky;
top:92px;
z-index:35;
padding:14px 0 10px;
background:linear-gradient(180deg, rgba(248,245,241,.96) 100%, rgba(248,245,241,.92) 100%, rgba(248,245,241,0) 100%);
backdrop-filter:blur(8px);
}

.portfolio-hero-sticky{
display:flex;
align-items:center;
justify-content:space-between;
gap:18px;
}

.portfolio-hero-3col{
display:grid;
grid-template-columns:300px 1fr auto;
align-items:center;
gap:24px;
}

.portfolio-hero-photo {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 20px;
}
.portfolio-hero-photo .portfolio-page-title {
  justify-self: end;
}

.format-inline{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
justify-content:flex-start;
}
.format-inline .filter-btn{
padding:10px 16px;
border-radius:999px;
white-space:nowrap;
}

.portfolio-page-title{
margin:0;
font-size:clamp(2.2rem,4.6vw,4rem);
line-height:1;
letter-spacing:-.05em;
font-weight:800;
}

.portfolio-section{
  padding-top: 8px;
}

.portfolio-hero-graphic{
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 24px;
}

.portfolio-hero-graphic .portfolio-page-title{
  justify-self: end;
}

/* PORTOFOLIU FOTO */
.photo-grid {
  columns: 2;
  column-gap: 28px;
}
.photo-item {
  position: relative;
  width: 100%;
  display: inline-block;
  margin: 0 0 28px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
}
.photo-item .category-label {
  right: 16px;
  bottom: 14px;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  transition: transform .45s ease, filter .45s ease, box-shadow .45s ease;
}
.photo-item:hover img {
  transform: scale(1.025);
  filter: brightness(.94);
  box-shadow: 0 24px 60px rgba(24,30,45,.16);
}
@media (max-width: 768px) {
  .photo-grid {
  columns: 1;
}
.photo-item {
  margin-bottom: 22px;
}
.photo-preview-strip {
  gap: 7px;
}
.work-card[data-format="vertical"] .thumb-side {
  transform: scale(0.68);
  opacity: 0.45;
  filter: blur(3px);
}
.work-card[data-format="vertical"] .thumb-left {
  left: 6%;
}
.work-card[data-format="vertical"] .thumb-right {
  right: 6%;
}
}

.photo-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 10, 14, .88);
  backdrop-filter: blur(18px);
  flex-direction: column;
  gap: 16px;
}
.photo-preview-top {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.photo-preview-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  max-width: min(92vw, 860px);
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  z-index: 2;
  -webkit-mask-image:
  linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
}
.photo-preview-strip::-webkit-scrollbar {
  display: none;
}
.photo-preview-thumb {
  width: 72px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: .35;
  background: transparent;
  transform: scale(.86);
  transition: opacity .25s ease, transform .25s ease, outline .25s ease, box-shadow .25s ease;
}
.photo-preview-thumb img{
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.photo-preview-thumb.is-active {
  opacity: 1;
  transform: scale(1.08);
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: 3px;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  z-index: 3;
}
.photo-preview-thumb.is-near {
  opacity: .75;
  transform: scale(.96);
}
.photo-preview-thumb:hover {
  opacity: 1;
  transform: scale(1);
}

.photo-counter {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.161);
  color: #ffffff;
  font-weight: 700;
}
.photo-preview.active {
display: flex;
}

.preview-image-wrap img.slide-out-left {
  opacity: 0;
  transform: translateX(-48px);
}
.preview-image-wrap img.slide-out-right {
  opacity: 0;
  transform: translateX(48px);
}
.preview-image-wrap img.slide-in-left {
  opacity: 0;
  transform: translateX(-48px);
}
.preview-image-wrap img.slide-in-right {
  opacity: 0;
  transform: translateX(48px);
}

.photo-close,
.photo-nav {
  border: none;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.photo-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  /* padding: 10px 16px; */
  font-size: 1rem;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.161);
  transition: all .2s ease;
}

.photo-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 1);
  color: #111;
}

.photo-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 52px;
height: 52px;
border-radius: 999px;
border: none;
cursor: pointer;
background: rgba(255, 255, 255, 0.194);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
}
.photo-nav:hover {
transform: translateY(-50%) scale(1.08);
background: rgba(255,255,255,1);
}

.photo-prev {
left: 32px;
}
.photo-next {
right: 32px;
}

.photo-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease;
}

.photo-nav:hover svg {
  stroke: #111;
}

.photo-prev svg {
  margin-left: -2px;
  margin-right: -2px;
}

/* DESIGN GRAFIC PREVIEW */
.graph-preview .photo-preview-top {
left: auto;
right: 24px;
justify-content: flex-end;
}
.graph-preview .photo-preview-top .photo-counter {
display: none;
}
.graph-preview > .photo-counter {
order: 4;
margin-top: -6px;
}

.video-preview-title {
  visibility: hidden;
}

.video-preview-top {
  display: flex;
  align-items: center;
}

.video-preview-top .photo-close {
  margin-left: auto;
}

.close-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.close-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.close-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-close,
.photo-close {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.close-icon {
transition: transform .25s ease;
}
/* HOVER */
.modal-close:hover,
.photo-close:hover {
transform: scale(1.06);
}
/* X rotate subtil */
.modal-close:hover .close-icon,
.photo-close:hover .close-icon {
transform: rotate(90deg);
}

.format-btn {
display: inline-flex;
align-items: center;
gap: 8px;
}
.format-icon {
width: 18px;
height: 18px;
display: block;
stroke: currentColor;
fill: none;
stroke-width: 1.8;
transition: transform .25s ease;
}
.format-btn:hover .format-icon,
.format-btn.is-active .format-icon {
transform: scale(1.08);
}

.category-label {
position: absolute;
right: 16px;
bottom: 14px;
z-index: 30;
color: #fff;
font-size: 0.95rem;
font-weight: 400;
line-height: 1.2;
text-align: right;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
pointer-events: none;
}

.preview-image-wrap img {
  position: relative;
  display: inline-flex;
  max-width: 92vw;
  max-height: 76vh;
}
.preview-image-wrap img {
  max-width: 92vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 24px;
  opacity: 1;
  transform: translateX(0);
  transition: transform .32s ease, opacity .32s ease;
}
.preview-category-label {
  position: fixed;
  right: 42px;
  bottom: 34px;
  z-index: 120;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: right;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) 0 0 30px rgba(0, 0, 0, 0.18);
  transition: opacity .28s ease, transform .28s ease;
}
.preview-category-label.is-changing {
  opacity: 0;
  transform: translateY(6px);
}


@media (max-width: 820px) {
.nav-shell {
align-items: center;
gap: 8px;
padding: 10px 12px;
}
.brand img {
  height: 42px;
}
.mobile-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.nav-tools {
transform: none;
flex: 0 0 auto;
}
.lang-switch {
  gap: 3px;
  padding: 4px;
}
.lang-btn {
  padding: 7px 8px;
  gap: 5px;
  font-size: .92rem;
  line-height: 1;
  white-space: nowrap;
}
.lang-btn img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.portfolio-sticky-wrap {
top: 82px;
}
.portfolio-hero-3col,
.portfolio-hero-photo,
.portfolio-hero-graphic {
grid-template-columns: 1fr;
gap: 12px;
}
.portfolio-page-title {
justify-self: start !important;
font-size: clamp(2rem, 12vw, 3rem);
}
.format-inline {
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 4px;
}
.format-inline .filter-btn {
flex: 0 0 auto;
}
.filter-list {
max-height: 220px;
overflow-y: auto;
}
.photo-preview {
padding: 24px 14px;
}
.photo-prev {
left: 12px;
}
.photo-next {
right: 12px;
}
.preview-image-wrap img {
max-width: 94vw;
max-height: 68vh;
}
.preview-category-label {
right: 18px;
bottom: 22px;
font-size: 1.35rem;
}
.modal {
padding: 12px;
}
.modal-card.is-vertical {
width: min(78vw, 360px);
}
.modal-card.is-vertical .modal-frame {
  aspect-ratio: 9 / 16;
  max-height: 72vh;
  background: #000;
}

/* HERO MOBIL - imagine statică */
.hero{
min-height: 100svh;
background:
linear-gradient(
180deg,
rgba(10,12,17,.35),
rgba(10,12,17,.58)
),
url("../images/Radumob.webp") center center / cover no-repeat;
}
.hero video{
display:none;
}
.video-toggle{
  display:none;
}
.hero-overlay{
background:linear-gradient(
180deg,
rgba(10,12,17,.18),
rgba(10,12,17,.52) 55%,
rgba(10,12,17,.78)
);
}
.hero-inner{
padding:120px 0 42px;
}
.hero-card{
padding:24px;
border-radius:28px;
}
.hero h1{
font-size:clamp(2.1rem,10vw,3.6rem);
}
.hero p{
font-size:1rem;
}
}


.mobile-filter-wrap {
display: none;
}


@media (max-width: 820px) {
.portfolio-sticky-wrap {
top: 72px;
padding: 0 0 4px;
}
.portfolio-hero-sticky,
.portfolio-hero-3col,
.portfolio-hero-photo,
.portfolio-hero-graphic {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
}
.portfolio-hero-3col .format-inline {
display: none;
}


.back-link {
width: 46px;
height: 46px;
padding: 0;
border-radius: 50%;
font-size: 0;
display: inline-flex;
align-items: center;
justify-content: center;
}
.back-link::before {
content: "";
width: 0;
height: 0;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
border-right: 11px solid currentColor;
margin-left: -2px;
}
.portfolio-page-title {
margin: 0;
font-size: clamp(2rem, 12vw, 3rem);
text-align: right;
}
.filter-panel {
display: none;
}
.mobile-filter-wrap {
display: block;
position: sticky;
top: 168px;
z-index: 34;
width: min(calc(100% - 32px), var(--max));
margin: 6px auto 18px;
}
.mobile-filter-open {
width: 100%;
border: none;
border-radius: 999px;
padding: 16px 22px;
background: #252a35;
color: #fff;
font-weight: 800;
box-shadow: var(--shadow);
}
.mobile-filter-modal {
display: none;
position: fixed;
inset: 0;
z-index: 120;
background: rgba(10, 12, 18, .55);
padding: 170px 16px 18px;
}
.mobile-filter-modal.is-open {
display: flex;
align-items: flex-start;
justify-content: center;
}
.mobile-filter-sheet {
width: 100%;
max-height: calc(100svh - 190px);
overflow-y: auto;
padding: 22px;
border-radius: 30px;
background: #fff;
box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.mobile-filter-head {
position: sticky;
top: -8px;
z-index: 5;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin: -22px -22px 22px;
padding: 22px;
background: rgba(255,255,255,.94);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(27,28,32,.06);
}
.mobile-filter-head h3 {
margin: 0;
font-size: 1.5rem;
}

.mobile-filter-block {
margin-bottom: 24px;
}
.mobile-filter-block h4 {
margin: 0 0 12px;
font-size: .9rem;
letter-spacing: .16em;
text-transform: uppercase;
color: var(--muted);
}
.mobile-filter-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.mobile-filter-list .filter-btn {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
justify-content: flex-start;
border-radius: 18px;
background: #fff;
color: #1b1c20;
border: 1px solid rgba(27,28,32,.1);
box-shadow: none;
padding: 15px 16px;
}

.mobile-filter-list .filter-btn.is-active {
background: #252a35;
color: #fff;
}

.mobile-filter-list .filter-btn::before {
content: "";
display: block;
width: 18px;
height: 18px;
min-width: 18px;
border-radius: 50%;
border: 2px solid rgba(27,28,32,.28);
background: transparent;
margin: 0;
flex: 0 0 18px;
}
.mobile-filter-list .filter-btn.is-active::before {
border-color: #fff;
box-shadow: inset 0 0 0 4px #252a35;
background: #fff;
}

.mobile-filter-apply {
border: none;
border-radius: 999px;
padding: 11px 18px;
background: #252a35;
color: #fff;
font-weight: 800;
white-space: nowrap;
flex: 0 0 auto;
}

.section, #home, #about, #portfolio, #services, #contact {
  scroll-margin-top: 18px;
}

.photo-nav {
  display: none !important;
}
}

.about-main-card{
display: contents;
}


@media (max-width:820px){
.about-main-card{
display:grid;
gap:18px;
padding:18px;
border-radius:32px;
background:var(--card);
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
border:1px solid rgba(255,255,255,.7);
box-shadow:var(--shadow);
}
.about-main-card .photo-stack,
.about-main-card .about-copy{
padding:0;
background:transparent;
border:none;
box-shadow:none;
backdrop-filter:none;
-webkit-backdrop-filter:none;
}

.about-main-card .photo-stack, .about-main-card .frame, .about-main-card .frame img {
  border-radius: 22px;
  overflow: hidden;
}

.modal.is-mobile-fullscreen{
padding:0;
background:#000;
}
.modal.is-mobile-fullscreen .modal-card{
width:100vw;
height:100vh;
max-width:none;
border-radius:0;
}
.modal.is-mobile-fullscreen .modal-head{
display:none;
}
.modal.is-mobile-fullscreen .modal-frame{
width:100vw;
height:100vh;
aspect-ratio:auto;
}
.modal.is-mobile-fullscreen iframe{
width:100%;
height:100%;
}

.modal.is-mobile-fullscreen .modal-card,
.modal.is-mobile-fullscreen .modal-card.is-vertical,
.modal.is-mobile-fullscreen .modal-card.is-horizontal,
.modal.is-mobile-fullscreen .modal-card.is-square{
width:100vw !important;
height:100vh !important;
max-width:none !important;
border-radius:0 !important;
}
.modal.is-mobile-fullscreen .modal-frame,
.modal.is-mobile-fullscreen .modal-card.is-vertical .modal-frame,
.modal.is-mobile-fullscreen .modal-card.is-horizontal .modal-frame,
.modal.is-mobile-fullscreen .modal-card.is-square .modal-frame{
width:100vw !important;
height:100vh !important;
max-height:none !important;
aspect-ratio:auto !important;
}
.modal.is-mobile-fullscreen iframe{
width:100vw !important;
height:100vh !important;
}

.topbar{
padding:10px 0;
}
.nav-shell{
display:grid;
grid-template-columns:auto auto 1fr;
align-items:center;
gap:8px;
padding:10px 12px;
border-radius:32px;
}
.brand img{
height:44px;
}
.mobile-toggle{
width:42px;
height:42px;
margin-left:4px;
}
.nav-tools{
justify-self:end;
}
.lang-switch{
gap:4px;
padding:5px;
}
.lang-btn{
padding:6px 8px;
gap:5px;
font-size:.92rem;
}
.lang-btn img{
width:12px;
height:12px;
}

.mobile-filter-list {
  gap: 8px;
}

.mobile-filter-list .filter-btn {
  padding: 10px 10px;
  min-height: 34px;
  border-radius: 13px;
  font-size: .88rem;
}
}


/* DESKTOP: scroll separat, fără deformarea gridului */
@media (min-width: 1101px) {
.portfolio-section {
padding-top: 26px; /* mai mult aer sub bara cu Video/Foto */
}
.filter-panel {
position: sticky;
top: 235px;
max-height: calc(100vh - 260px);
overflow-y: auto;
overscroll-behavior: contain;
}
.works-grid, .photo-grid {
  overflow: visible;
  max-height: none;
}
}


.form-success {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(40, 167, 69, 0.12);
  color: #1f7a3a;
  font-weight: 600;
  text-align: center;
}
.form-error {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(220, 53, 69, 0.12);
  color: #b42332;
  font-weight: 600;
  text-align: center;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.82) inset !important;
-webkit-text-fill-color: #1b1c20 !important;
caret-color: #1b1c20;
}

.footer-credit {
  font-size: 0.88rem;
  opacity: 0.65;
  margin-top: 0;
  letter-spacing: 0.3px;
  white-space: pre-line;
}

@media (max-width: 767px) {
  .footer-credit br{
    display: block;
  }
}

@media (min-width: 768px) {
  .footer-credit br{
    display: none;
  }
}


/* cookie banner */
.cookie-banner{
position:fixed;
bottom:20px;
right:20px;
max-width:420px;
padding:16px 18px;
background:rgba(255,255,255,.96);
backdrop-filter:blur(8px);
border-radius:12px;
box-shadow:0 8px 24px rgba(0,0,0,.15);
z-index:9999;
display:none;
}
.cookie-text{
font-size:14px;
line-height:1.5;
color:#333;
margin-bottom:12px;
}
.cookie-text a{
  color:#0066cc;
  text-decoration: underline;
  font-weight: 600;
}
.cookie-buttons{
display:flex;
gap:10px;
}
.cookie-buttons button{
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
font-weight:600;
}
#accept-cookies{
background:#111;
color:#fff;
}
#decline-cookies{
background:#eaeaea;
color:#111;
}
@media (max-width:768px){
.cookie-banner{
left:15px;
right:15px;
bottom:15px;
max-width:none;
}
}

.website-field{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  display: none !important;
}

.message-counter{
  display:block;
  text-align:right;
  margin-top:6px;
  font-size:0.85rem;
  color:#777;
  font-weight:500;
}