/* =====================================================================
   ALIB STUDIO — stylesheet, matched to rabbitstudio.ro reference
   ===================================================================== */

:root{
  --bg:#000000;
  --fg:#ffffff;
  --mute:#a8a8a8;
  --mute-2:#6e6e6e;
  --line: rgba(255,255,255,0.16);
  --amber:#d9a441;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:'Poppins', sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  position:relative;
}

::selection{ background:var(--fg); color:var(--bg); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(22px); }
  to{ opacity:1; transform:translateY(0); }
}
.hero .eyebrow{ animation:fadeUp .7s ease both; animation-delay:.05s; }
.hero .heading-block{ animation:fadeUp .8s ease both; animation-delay:.15s; }
.hero .hero-cta{ animation:fadeUp .8s ease both; animation-delay:.3s; }

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* individual stagger for repeated items inside a reveal block —
   the block itself fades in, and its items cascade in slightly after */
.reveal .frame, .reveal .diff-card, .reveal .numbered-item, .reveal .brand-item, .reveal .tag-list li, .reveal .points li{
  opacity:0; transform:translateY(16px);
  transition:opacity .5s ease, transform .5s ease;
}
.reveal.in-view .frame, .reveal.in-view .diff-card, .reveal.in-view .numbered-item, .reveal.in-view .brand-item, .reveal.in-view .tag-list li, .reveal.in-view .points li{
  opacity:1; transform:translateY(0);
}
.reveal.in-view :nth-child(1){ transition-delay:.04s; }
.reveal.in-view :nth-child(2){ transition-delay:.10s; }
.reveal.in-view :nth-child(3){ transition-delay:.16s; }
.reveal.in-view :nth-child(4){ transition-delay:.22s; }
.reveal.in-view :nth-child(5){ transition-delay:.28s; }
.reveal.in-view :nth-child(6){ transition-delay:.34s; }
.reveal.in-view :nth-child(7){ transition-delay:.40s; }
.reveal.in-view :nth-child(8){ transition-delay:.46s; }

/* non-home page hero — simple entrance on load, not scroll-triggered */
.page-hero .heading-block, .page-hero .plain-heading, .page-hero p{
  animation:fadeUp .7s ease both;
}
.page-hero p{ animation-delay:.12s; }

/* modal entrance */
.screening-room{ display:none; opacity:0; transition:opacity .2s ease; }
.screening-room.open{ display:flex; opacity:1; }
@keyframes modalPop{ from{ opacity:0; transform:scale(0.96); } to{ opacity:1; transform:scale(1); } }
.screening-room.open .screen-box{ animation:modalPop .25s cubic-bezier(.2,.7,.3,1); }

/* small interactive touches */
.logo-img{ transition:opacity .2s ease, transform .2s ease; }
a:has(.logo-img):hover .logo-img{ opacity:0.8; transform:scale(1.03); }
.frame .play{ transition:transform .25s ease, background .2s ease; }
.frame:hover .play{ transform:scale(1.12); }
.footer-socials a{ transition:transform .2s ease, border-color .2s ease, color .2s ease; }
.footer-socials a:hover{ transform:translateY(-3px); border-color:var(--fg); }
.filter-chip{ transition:all .2s ease, transform .15s ease; }
.filter-chip:active{ transform:scale(0.96); }
.btn-pill:active, .submit-btn:active, .nav-rental:active{ transform:scale(0.97); }
.form-field input:focus, .form-field textarea:focus{
  box-shadow:0 0 0 3px rgba(255,255,255,0.08);
}
.tag-list li{ transition:transform .2s ease, border-color .2s ease; }
.tag-list li:hover{ transform:translateY(-2px); border-color:var(--fg); }

@media (prefers-reduced-motion: reduce){
  .hero .eyebrow, .hero .heading-block, .hero .hero-cta{ animation:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
}
a{ color:inherit; }
img,video{ max-width:100%; display:block; }
button{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--fg); outline-offset:3px; }
p{ margin:0 0 1rem; color:var(--mute); font-weight:400; }

/* ===================== DISPLAY HEADLINES ===================== */
.heading-block{
  position:relative;
  text-align:center;
  margin:0 auto;
}
.heading-block .heading-main{
  font-family:'Archivo', sans-serif;
  font-weight:800;
  line-height:1.15;
  font-size:1em;
  margin:0;
  color:var(--fg);
  display:block;
}
.heading-block .tagline{
  display:block;
  font-family:'Poppins', sans-serif;
  font-weight:400;
  font-size:0.95rem;
  color:var(--mute);
  text-transform:none;
  margin-top:0.8rem;
  letter-spacing:0.02em;
}

/* ===================== NAV ===================== */
header{
  position:relative;
  z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:26px 5vw;
  gap:1.5rem;
}
.logo-img{ height:44px; width:auto; display:block; }
.nav-main{ display:flex; align-items:center; gap:2.6rem; }
nav ul{
  list-style:none; display:flex; gap:2.2rem; margin:0; padding:0;
  font-family:'Poppins', sans-serif; font-weight:600;
  font-size:0.9rem;
}
nav a{
  text-decoration:none; color:var(--mute); transition:color .2s ease;
  position:relative; padding-bottom:2px;
}
nav a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px;
  background:var(--fg); transition:width .25s ease;
}
nav a:hover::after, nav a.active::after{ width:100%; }
nav a:hover, nav a.active{ color:var(--fg); }

.nav-dropdown{ position:relative; }
.nav-dropdown-menu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(-6px);
  margin-top:1.2rem; background:rgba(10,10,10,0.96); border:1px solid var(--line);
  min-width:190px; padding:0.6rem 0; border-radius:8px;
  opacity:0; visibility:hidden; transition:opacity .22s ease, transform .22s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.nav-dropdown-menu a{
  display:block; padding:0.6rem 1.3rem; color:var(--mute); font-weight:400; font-size:0.86rem;
  transition:color .18s ease;
}
.nav-dropdown-menu a::after{ display:none; }
.nav-dropdown-menu a:hover{ color:var(--fg); }

.nav-rental{
  display:inline-flex; align-items:center; gap:0.4rem;
  border:1px solid var(--fg); background:var(--fg); color:var(--bg);
  padding:0.55rem 1.3rem; border-radius:999px;
  font-family:'Poppins', sans-serif; font-weight:600;
  font-size:0.82rem;
  text-decoration:none; white-space:nowrap;
  transition:border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease;
}
.nav-rental:hover{ background:transparent; color:var(--fg); }
.nav-rental:active{ transform:scale(0.97); }

.nav-toggle{ display:none; }

/* scroll-to-top */
.scroll-top{
  position:fixed; right:28px; bottom:28px; z-index:50;
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--line); background:rgba(10,10,10,0.7);
  color:var(--fg); display:flex; align-items:center; justify-content:center;
  cursor:pointer; text-decoration:none; font-size:1rem;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.scroll-top.visible{ opacity:1; pointer-events:auto; }

/* ===================== SECTION SHELL ===================== */
section{ padding:5.5rem 5vw; }
.section-head{ text-align:center; margin-bottom:3.5rem; }
.section-head .heading-block{ font-size:clamp(2.2rem, 5vw, 3.4rem); }

/* ===================== PAGE HERO (Portfolio / About / Contact) ===================== */
.page-hero{ padding:5rem 5vw 3rem; text-align:center; }
.page-hero .heading-block{ font-size:clamp(2rem, 5vw, 3.6rem); }
.page-hero .plain-heading{
  font-family:'Archivo', sans-serif; font-weight:800;
  font-size:clamp(1.8rem, 4.4vw, 3rem); color:var(--fg); margin:0;
}
.page-hero p{ max-width:56ch; margin:1.2rem auto 0; text-transform:none; }
.about-portrait-wrap{ max-width:640px; margin:2.4rem auto 0; }
.about-portrait{
  width:100%; aspect-ratio:16/9; object-fit:cover;
  border:1px solid var(--line); filter:grayscale(0.25);
}

/* ===================== HOME HERO ===================== */
.hero{
  position:relative;
  min-height:88vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:6rem 5vw; overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:-1;
  background-size:cover; background-position:center;
  filter:brightness(0.55);
}
.hero .heading-block{ font-size:clamp(2.4rem, 6.4vw, 4.6rem); }
.hero .heading-block .heading-main{ max-width:20ch; margin:0 auto; }
.hero .eyebrow{
  font-family:'Poppins', sans-serif; font-weight:300; font-size:0.85rem;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--mute); margin-bottom:1.2rem; display:block;
}
.hero-cta{ margin-top:2.4rem; display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

.btn-pill{
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.9rem 2rem; border-radius:999px;
  font-family:'Poppins', sans-serif; font-weight:400; font-size:0.9rem;
  text-decoration:none; cursor:pointer; border:1px solid var(--line); color:var(--fg);
  transition:all .2s ease; background:transparent;
}
.btn-pill:hover{ border-color:var(--fg); background:rgba(255,255,255,0.06); }
.btn-pill.filled{ background:var(--fg); color:#000; border-color:var(--fg); }
.btn-pill.filled:hover{ background:transparent; color:var(--fg); }

/* ===================== INTRO / TEXT BLOCK ===================== */
.intro{ max-width:70ch; margin:0 auto; text-align:center; }
.intro p{ font-size:1.05rem; }

/* ===================== BRAND STRIP ===================== */
.brands{ padding:3rem 5vw; text-align:center; }
.brand-strip{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:2.4rem 3rem; margin-top:1.5rem; }
.brand-item{ display:flex; align-items:center; text-decoration:none; opacity:0.55; filter:grayscale(1); transition:opacity .2s ease, filter .2s ease; }
.brand-item:hover{ opacity:1; filter:grayscale(0); }
.brand-item img{ height:28px; width:auto; max-width:130px; object-fit:contain; }
.brand-word{ font-family:'Poppins', sans-serif; font-weight:500; font-size:0.9rem; letter-spacing:0.03em; text-transform:uppercase; color:var(--fg); white-space:nowrap; }

/* ===================== WHAT WE DO (simple text + tags) ===================== */
.what-we-do{ max-width:760px; margin:0 auto; text-align:center; }
.what-we-do p{ font-size:1.1rem; color:var(--mute); }
.tag-list{
  list-style:none; margin:2rem 0 0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:0.8rem;
}
.tag-list li{
  border:1px solid var(--line); padding:0.6rem 1.4rem;
  font-family:'Poppins', sans-serif; font-weight:600; font-size:0.85rem;
  color:var(--fg); border-radius:999px;
}

/* ===================== TEASER PORTFOLIO GRID (home) ===================== */
.teaser-head{ text-align:center; margin-bottom:2.4rem; }
.teaser-head .heading-block{ font-size:clamp(1.8rem, 4vw, 2.6rem); }
.teaser-head a{
  display:inline-block; margin-top:0.8rem;
  font-family:'Poppins', sans-serif; font-weight:600; font-size:0.85rem;
  text-decoration:none; color:var(--fg); border-bottom:1px solid var(--fg); padding-bottom:2px;
  transition:opacity .2s ease, border-color .2s ease;
}
.teaser-head a:hover{ opacity:0.7; }

.why-block{ max-width:760px; margin:0 auto; text-align:center; }
.why-block .heading-block{ font-size:clamp(1.8rem, 4vw, 2.6rem); }
.why-block .points{ list-style:none; margin:2rem 0 0; padding:0; display:inline-block; text-align:left; }
.why-block .points li{ padding:0.9rem 0; border-bottom:1px solid var(--line); color:var(--mute); display:flex; gap:0.9rem; }
.why-block .points li::before{ content:'—'; color:var(--fg); }

/* ===================== FILTERS ===================== */
.filters{ display:flex; gap:0.7rem; flex-wrap:wrap; justify-content:center; margin-bottom:3rem; }
.filter-chip{
  background:transparent; border:1px solid var(--line); color:var(--mute);
  padding:0.55rem 1.3rem; border-radius:4px;
  font-family:'Poppins', sans-serif; font-weight:400; font-size:0.74rem; letter-spacing:0.06em; text-transform:uppercase;
  cursor:pointer; transition:all .2s ease;
}
.filter-chip:hover{ border-color:var(--fg); color:var(--fg); }
.filter-chip.active{ background:var(--fg); border-color:var(--fg); color:#000; }

/* ===================== PORTFOLIO GRID — edge to edge ===================== */
.grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:2px; }
.grid.teaser{ grid-template-columns:repeat(3, 1fr); max-width:1100px; margin:0 auto; }
.frame{ position:relative; cursor:pointer; overflow:hidden; aspect-ratio:16/11; background:#000; }
.frame img{ width:100%; height:100%; object-fit:cover; opacity:0.82; transition:transform .5s ease, opacity .3s ease; }
.frame:hover img{ transform:scale(1.04); opacity:1; }
.frame:hover .frame-title{ transform:translateY(-3px); }
.frame-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding:1.2rem; background:linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
}
.frame-badge{ font-family:'Poppins', sans-serif; font-weight:400; font-size:0.68rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--mute); margin-bottom:0.3rem; }
.frame-title{ font-family:'Archivo', sans-serif; font-weight:800; font-size:1.15rem; color:var(--fg); letter-spacing:-0.01em; transition:transform .3s ease; }
.frame-cat{ font-family:'Poppins', sans-serif; font-size:0.76rem; color:var(--mute); margin-top:0.25rem; }
.frame .play{
  position:absolute; top:14px; right:14px;
  width:34px; height:34px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.6);
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.4);
}
.frame .play svg{ width:12px; height:12px; }

/* ===================== ABOUT: SERVICES NUMBERED ===================== */
.numbered-list{ max-width:760px; margin:2.5rem auto 0; }
.numbered-item{ display:grid; grid-template-columns:3.4rem 1fr; gap:1.4rem; padding:1.8rem 0; border-bottom:1px solid var(--line); }
.numbered-item .num{ font-family:'Archivo', sans-serif; font-weight:800; font-size:1.1rem; color:var(--mute); }
.numbered-item h3{ font-family:'Poppins', sans-serif; font-weight:700; font-size:1.15rem; color:var(--fg); margin:0 0 0.5rem; }
.numbered-item p{ margin:0; }

/* ===================== DIFFERENTIATORS ===================== */
.diff-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); max-width:1000px; margin:0 auto; }
.diff-card{ padding:2rem; background:#000; text-align:center; }
.diff-card .eyebrow{ display:block; font-family:'Poppins', sans-serif; font-weight:300; font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--mute); margin-bottom:0.9rem; }
.diff-card h3{ font-family:'Poppins', sans-serif; font-weight:700; font-size:1.05rem; color:var(--fg); margin:0 0 0.7rem; }
.diff-card p{ font-size:0.9rem; margin:0; }

/* ===================== CONTACT ===================== */
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:4rem; max-width:1100px; margin:0 auto; align-items:start; }
.contact-card{ background:rgba(255,255,255,0.04); border-radius:8px; padding:0.5rem 1.6rem; }
.contact-row{ display:flex; align-items:flex-start; gap:0.9rem; padding:1.1rem 0; border-bottom:1px solid var(--line); font-size:0.92rem; color:var(--fg); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .ic{ width:16px; margin-top:2px; color:var(--mute); flex-shrink:0; }

.form-field{ margin-bottom:2.1rem; }
.form-field label{ display:block; font-family:'Poppins', sans-serif; font-weight:300; font-size:0.85rem; color:var(--mute); margin-bottom:0.6rem; }
.form-field input, .form-field textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--line); color:var(--fg);
  padding:0.5rem 0; font-family:'Poppins', sans-serif; font-size:0.95rem; resize:vertical; border-radius:0;
}
.form-field input:focus, .form-field textarea:focus{ border-color:var(--fg); outline:none; }
.form-field.honey{ position:absolute; left:-9999px; opacity:0; height:0; }
.form-status{ font-family:'Poppins', sans-serif; font-size:0.85rem; margin-top:1.2rem; min-height:1.2em; }
.form-status.ok{ color:var(--fg); }
.form-status.err{ color:#d9776a; }
.submit-btn{
  background:var(--fg); color:var(--amber); border:none; border-radius:999px;
  padding:0.85rem 2.2rem; font-family:'Poppins', sans-serif; font-weight:500; font-size:0.9rem;
  cursor:pointer; transition:opacity .2s ease;
}
.submit-btn:hover{ opacity:0.85; }

/* ===================== FOOTER ===================== */
footer{
  padding:5rem 5vw 3.5rem;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:2.5rem;
  text-align:center;
}
footer h4{ font-family:'Poppins', sans-serif; font-weight:700; font-size:0.95rem; color:var(--fg); margin:0 0 1.2rem; }
.footer-socials{ display:flex; gap:1rem; justify-content:center; }
.footer-socials a{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; text-decoration:none; color:var(--fg);
  font-size:0.85rem;
}
.footer-links{ display:flex; flex-direction:column; gap:0.6rem; font-family:'Poppins', sans-serif; font-weight:300; font-size:0.88rem; }
.footer-links a{ text-decoration:none; color:var(--mute); transition:color .2s ease; }
.footer-links a:hover{ color:var(--fg); }
.footer-links a.link-accent{ color:var(--fg); font-weight:700; }
.footer-links a.link-accent:hover{ opacity:0.7; }
.footer-bottom{
  grid-column:1 / -1; margin-top:1.5rem; padding-top:2rem; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; color:var(--mute-2);
  font-family:'Poppins', sans-serif; font-size:0.78rem;
}

/* ===================== SCREENING ROOM (MODAL) ===================== */
.screening-room{
  position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center;
  padding:4vh 4vw; background:rgba(0,0,0,0.95);
}
.screening-room.open{ display:flex; }
.screen-box{ width:min(920px, 100%); background:#000; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.screen-header{
  display:flex; justify-content:space-between; align-items:center; padding:0.9rem 1.2rem;
  border-bottom:1px solid var(--line); font-family:'Poppins', sans-serif; font-size:0.78rem; color:var(--mute);
}
.screen-close{
  background:none; border:1px solid var(--line); color:var(--fg); width:28px; height:28px;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; line-height:1; transition:border-color .2s ease;
}
.screen-close:hover{ border-color:var(--fg); }
.screen-media{ aspect-ratio:16/9; width:100%; background:#000; display:flex; align-items:center; justify-content:center; overflow:auto; }
.screen-media video, .screen-media iframe{ width:100%; height:100%; border:0; }
.screen-media.instagram-wrap{ overflow-y:auto; background:#0a0a0a; }
.screen-caption{ padding:0.9rem 1.2rem; font-size:0.88rem; color:var(--mute); }
.screen-caption strong{ color:var(--fg); font-family:'Archivo', sans-serif; font-weight:800; font-size:1rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px){
  .nav-main{
    position:fixed; inset:0; height:100vh; width:100%;
    background:var(--bg); flex-direction:column; justify-content:center; align-items:center;
    gap:0; padding:2.5rem; transform:translateX(100%); transition:transform .3s ease;
    z-index:31; overflow-y:auto;
  }
  .nav-main.open{ transform:translateX(0); }
  .nav-main nav{ width:100%; max-width:360px; }
  .nav-main nav ul{ flex-direction:column; gap:1.8rem; align-items:center; text-align:center; width:100%; }
  .nav-main nav ul li{ width:100%; }
  .nav-dropdown{ display:flex; flex-direction:column; align-items:center; }
  .nav-dropdown-menu{ position:static; transform:none; opacity:1; visibility:visible; display:none; border:0; background:transparent; margin-top:1rem; padding-left:0; text-align:center; }
  .nav-dropdown.mobile-open .nav-dropdown-menu{ display:block; }
  .nav-dropdown-menu a{ padding:0.7rem 0; font-size:0.95rem; }
  .nav-rental{ margin-top:2.4rem; }
  .nav-toggle{
    display:flex; position:relative; z-index:32; background:none; border:1px solid var(--line); color:var(--fg);
    width:38px; height:38px; border-radius:50%; align-items:center; justify-content:center; cursor:pointer;
  }
  .contact-grid, .grid.teaser{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:repeat(2, 1fr); }
  footer{ grid-template-columns:1fr; text-align:center; }
  section{ padding:4rem 6vw; }
  .numbered-item{ grid-template-columns:2.2rem 1fr; }
}

@media (max-width: 480px){
  .grid{ grid-template-columns:1fr; }
  .hero{ padding:3rem 6vw 2.5rem; }
  .hero-meta{ flex-direction:column; gap:1.2rem; }
  .page-hero{ padding:3.5rem 6vw 2rem; }
  section{ padding:3rem 6vw; }
  .numbered-item{ grid-template-columns:1fr; gap:0.5rem; }
  .numbered-item .num{ font-size:0.95rem; }
  .diff-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:0.4rem; text-align:center; }
  .btn-pill, .submit-btn{ width:100%; justify-content:center; }
  .hero-cta{ flex-direction:column; width:100%; }
  .hero-cta .btn-pill{ width:100%; text-align:center; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .frame img{ transition:none; }
}
