/* David Niculae Photo — v2 (morphing lightbox + white mode fix + romb badges) */

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

:root{
  --bg:#0d0f12;
  --panel:rgba(255,255,255,.04);
  --panel2:rgba(255,255,255,.065);
  --stroke:rgba(255,255,255,.11);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --muted2:rgba(255,255,255,.42);
  --accent:rgba(222,204,170,.95);
  --accent2:rgba(222,204,170,.35);
  --shadow:0 30px 80px rgba(0,0,0,.55);
  --radius:16px;

  /* Timing */
  --t-instant:150ms;
  --t-fast:320ms;
  --t-normal:520ms;
  --t-slow:750ms;
  --t-cinematic:1000ms;
  --t-hover:380ms;     /* hover transitions — smooth */
  --t-release:480ms;   /* release transitions — even smoother */
  --max:1160px;
  --pad:clamp(16px,4vw,44px);
  --serif:ui-serif, "Times New Roman", Georgia, serif;
  --sans:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ease-out:cubic-bezier(.2,.8,.2,1);
  --ease-soft:cubic-bezier(.25,.85,.25,1);
  --ease-modal:cubic-bezier(.32,.72,0,1);

  /* Lightbox animation duration — change per variant */
  --modal-dur: 620ms;
}

/* ─── LIGHT THEME ──────────────────────────────────────── */
body[data-theme="light"]{
  --bg:#f6f2ea;
  --panel:rgba(0,0,0,.03);
  --panel2:rgba(0,0,0,.05);
  --stroke:rgba(0,0,0,.10);
  --text:rgba(16,17,20,.92);
  --muted:rgba(16,17,20,.64);
  --muted2:rgba(16,17,20,.46);
  --accent:rgba(148,120,82,.98);
  --accent2:rgba(148,120,82,.28);
  --shadow:0 22px 60px rgba(0,0,0,.14);
}
body[data-theme="light"]{
  background:
    radial-gradient(1100px 760px at 18% -10%, rgba(148,120,82,.16), transparent 62%),
    radial-gradient(900px 700px at 84% 0%, rgba(0,0,0,.05), transparent 60%),
    var(--bg);
}
body[data-theme="light"] .brand--sig img{
  filter: invert(1) brightness(.25) contrast(1.05);
  opacity:.96;
}
body[data-theme="light"] .brand--sig{
  border-color: transparent;
  background: transparent;
}
body[data-theme="light"] .brand--sig:hover{
  background: rgba(255,255,255,.90);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
body[data-theme="light"] .header{
  background: linear-gradient(to bottom, rgba(246,242,234,.95), rgba(246,242,234,.75));
  border-bottom:1px solid rgba(0,0,0,.06);
}
body[data-theme="light"] .navlinks a:hover{
  background: rgba(0,0,0,.05);
  color:var(--text);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
body[data-theme="light"] .navlinks a{
  border-color: rgba(0,0,0,.08);
  background: rgba(255,255,255,.45);
  color: var(--muted);
}
body[data-theme="light"] .navlinks a.active{
  color:var(--text);
  background: rgba(148,120,82,.14);
  border: 1px solid rgba(148,120,82,.30);
}
body[data-theme="light"] .btn, body[data-theme="light"] button.btn{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  color: var(--text);
}
body[data-theme="light"] .btn:hover{
  background: rgba(255,255,255,.82);
  border-color: rgba(0,0,0,.14);
}
body[data-theme="light"] .btn.primary{
  border-color: rgba(148,120,82,.38);
  background: linear-gradient(180deg, rgba(148,120,82,.14), rgba(255,255,255,.65));
}
body[data-theme="light"] .pill{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  color: rgba(16,17,20,.62);
}
body[data-theme="light"] .pill.on{
  color: var(--text);
  border-color: rgba(148,120,82,.36);
  background: rgba(148,120,82,.14);
}
body[data-theme="light"] .panel{
  border:1px solid rgba(0,0,0,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.58));
}
body[data-theme="light"] .card{
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
}
body[data-theme="light"] .card:hover{
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
  border-color: rgba(148,120,82,.22);
}
body[data-theme="light"] .hero-scene{
  border:1px solid rgba(0,0,0,.12);
  background: #f0ece4;
  box-shadow: 0 28px 80px rgba(0,0,0,.18);
}
body[data-theme="light"] .photo-bg{
  filter: blur(28px) saturate(.8) brightness(.80);
}
body[data-theme="light"] .frame{
  border:1px solid rgba(0,0,0,.10);
}
body[data-theme="light"] .hero-badge{
  background: rgba(255,255,255,.55);
  border-color: rgba(0,0,0,.10);
}
body[data-theme="light"] .dot{ box-shadow: 0 0 0 4px rgba(148,120,82,.18); }
body[data-theme="light"] input, body[data-theme="light"] textarea{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  color: var(--text);
}
body[data-theme="light"] input::placeholder, body[data-theme="light"] textarea::placeholder{ color: rgba(16,17,20,.42); }
body[data-theme="light"] footer{ border-top: 1px solid rgba(0,0,0,.06); }

/* Light mode footer */
body[data-theme="light"] .footer-city{
  color: rgba(16,17,20,.42);
}

/* Light intro */
body[data-theme="light"] .intro{
  background:
    radial-gradient(1100px 800px at 30% 20%, rgba(148,120,82,.14), transparent 60%),
    rgba(246,242,234,.96);
}
body[data-theme="light"] .intro__panel{
  border-color: rgba(0,0,0,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.60));
}
body[data-theme="light"] .intro__skip{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  color: var(--text);
}
body[data-theme="light"] .meter{ background: rgba(0,0,0,.06); }
body[data-theme="light"] .meter i{
  background: linear-gradient(90deg, var(--accent), rgba(0,0,0,.18));
}
/* Light mode aperture — dark spokes so it's visible on white bg */
body[data-theme="light"] .aperture{
  background:
    repeating-conic-gradient(from 0deg,
      rgba(100,75,40,.75) 0 12deg, rgba(0,0,0,.05) 12deg 24deg);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
body[data-theme="light"] .aperture::before{
  background:
    radial-gradient(circle at 50% 50%, rgba(240,235,225,.80) 0 36%, transparent 62%),
    radial-gradient(circle at 30% 30%, rgba(148,120,82,.25), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
body[data-theme="light"] .aperture::after{
  background: conic-gradient(from 90deg, rgba(148,120,82,.22), rgba(0,0,0,0) 25%, rgba(148,120,82,.18) 50%, rgba(0,0,0,0) 75%, rgba(148,120,82,.22));
}

/* ─── RESET & BASE ────────────────────────────────────── */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(222,204,170,.12), transparent 60%),
              radial-gradient(900px 700px at 80% 0%, rgba(255,255,255,.06), transparent 60%),
              var(--bg);
  font-family:var(--sans);
  line-height:1.45;
  overflow-x:hidden;
}
.bg{
  position:fixed; inset:0;
  z-index:-3;
  overflow:hidden;
  pointer-events:none;
}
.bg__layer{
  position:absolute; inset:-12%;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.bg__layer--a{
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(222,204,170,.14), transparent 62%),
    radial-gradient(900px 650px at 82% 18%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(700px 480px at 60% 88%, rgba(222,204,170,.08), transparent 62%);
}
.bg__layer--b{
  background:
    radial-gradient(700px 520px at 20% 70%, rgba(222,204,170,.09), transparent 60%),
    radial-gradient(820px 560px at 88% 78%, rgba(255,255,255,.04), transparent 64%);
  opacity:.9;
  filter: blur(10px);
}
.bg__layer--c{
  background:
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.32)),
    radial-gradient(900px 700px at 50% -10%, rgba(255,255,255,.035), transparent 60%);
  opacity:.85;
}
[data-theme="light"] .bg__layer--a{
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(148,120,82,.18), transparent 62%),
    radial-gradient(900px 650px at 82% 18%, rgba(0,0,0,.035), transparent 60%),
    radial-gradient(700px 480px at 60% 88%, rgba(148,120,82,.10), transparent 62%);
}
[data-theme="light"] .bg__layer--b{
  background:
    radial-gradient(700px 520px at 20% 70%, rgba(148,120,82,.10), transparent 60%),
    radial-gradient(820px 560px at 88% 78%, rgba(0,0,0,.02), transparent 64%);
}
body[data-theme="light"] .bg__layer--c{
  background:
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.10)),
    radial-gradient(900px 700px at 50% -10%, rgba(0,0,0,.03), transparent 60%);
  opacity:.65;
}
.bg__noise{
  position:absolute; inset:0;
  background-image: url("../assets/images/noise.svg");
  opacity:.22;
  mix-blend-mode: overlay;
}
[data-theme="light"] .bg__noise{ opacity:.14; mix-blend-mode:multiply; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(var(--max), calc(100% - 2*var(--pad)));
  margin:0 auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; border-radius:12px;
  background:rgba(0,0,0,.7); border:1px solid var(--stroke);
  z-index:9999;
}
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:url("../assets/images/noise.svg");
  opacity:.07;
  mix-blend-mode:overlay;
  pointer-events:none;
  z-index:0;
}
body::after{
  content:"";
  position:fixed; inset:-10%;
  background: radial-gradient(circle at 50% 30%, transparent 0 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85) 100%);
  pointer-events:none;
  z-index:0;
}
main, header, footer{ position:relative; z-index:1; }

/* ─── HEADER ──────────────────────────────────────────── */
.header{
  position:fixed; top:0; left:0; right:0; z-index:30;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(13,15,18,.80), rgba(13,15,18,.45));
  border-bottom:1px solid rgba(255,255,255,.06);
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.header--hidden{
  transform: translateY(-100%);
}
main{ padding-top: 72px; }
.nav{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:14px 0;
  column-gap: 28px;
}
.nav > .brand{justify-self:start;}
.nav > .navlinks{justify-self:center;}
.nav > .actions{justify-self:end;}

.brand--sig{
  display:inline-flex;
  align-items:center;
  justify-content: center;
  padding:6px 18px;
  border-radius: 14px;
  border:1px solid transparent;
  background: transparent;
  min-width: 220px;
  transition:
    transform var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out);
}
.brand--sig:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.brand--sig:active{ transform: translateY(0) scale(.98); transition-duration: var(--t-instant); }
.brand--sig img{
  height: 50px;
  width: auto;
  max-width: 210px;
  display:block;
  object-fit: contain;
}

.navlinks{
  display:flex; gap:8px; align-items:center;
  flex:1; justify-content:center;
}
/* All navlinks look like buttons */
.navlinks a{
  font-size:14px;
  color:var(--muted);
  padding:9px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  transition:
    background var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out);
}
.navlinks a:hover{
  background: rgba(255,255,255,.06);
  color:var(--text);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.navlinks a:active{ transform: translateY(0) scale(.98); transition-duration: var(--t-instant); }
.navlinks a.active{
  color:var(--text);
  background: rgba(222,204,170,.12);
  border: 1px solid rgba(222,204,170,.28);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.actions{ display:flex; gap:10px; align-items:center; }

/* ─── LANGUAGE TOGGLE ─────────────────────────────────── */
.lang-toggle{
  display:flex; gap:6px; align-items:center;
}
.lang-btn{
  display:flex; flex-direction:column; align-items:center;
  gap:3px;
  font-size:11px;
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  cursor:pointer;
  line-height:1;
  transition:
    transform var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out);
  position: relative; overflow: hidden;
}
.lang-btn::before{
  content:""; position:absolute; inset:-2px;
  background: linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.16) 46%, transparent 60% 100%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform var(--t-slow) var(--ease-out);
}
.lang-btn:hover::before{ transform: translateX(140%) skewX(-18deg); }
.lang-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  color: var(--text);
}
.lang-btn:active{ transform: translateY(0) scale(.985); transition-duration: var(--t-instant); }
.lang-btn.on{
  color:var(--text);
  border-color: rgba(222,204,170,.35);
  background: rgba(222,204,170,.10);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.lang-flag{
  font-size:15px;
  line-height:1;
  display:block;
  order: 2;
}
.lang-code{
  font-size:10px;
  letter-spacing:.08em;
  font-weight:700;
  order: 1;
}
/* Light mode lang toggle */
body[data-theme="light"] .lang-btn{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  color: var(--muted);
}
body[data-theme="light"] .lang-btn.on{
  border-color: rgba(148,120,82,.36);
  background: rgba(148,120,82,.14);
  color: var(--text);
}
body[data-theme="light"] .lang-btn:hover{
  background: rgba(255,255,255,.82);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
body[data-theme="light"] .lang-btn::before{
  background: linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.55) 44%, rgba(148,120,82,.12) 52%, transparent 60% 100%);
}
.btn, button.btn{
  appearance:none; border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  cursor:pointer;
  transition:
    transform var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out);
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.btn:active{ transform: translateY(0) scale(.985); transition-duration: var(--t-instant); }
.btn.primary{
  border-color: rgba(222,204,170,.35);
  background: linear-gradient(180deg, rgba(222,204,170,.18), rgba(255,255,255,.02));
}
.btn.primary:hover{
  border-color: rgba(222,204,170,.58);
  background: linear-gradient(180deg, rgba(222,204,170,.26), rgba(255,255,255,.04));
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(222,204,170,.12);
}

.theme-toggle{
  display:flex; gap:8px; align-items:center;
}
.pill{
  font-size:12px;
  padding:9px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  cursor:pointer;
}
.pill.on{
  color:var(--text);
  border-color: rgba(222,204,170,.35);
  background: rgba(222,204,170,.10);
}

/* ─── THEME SWITCH — stilizat ca lang-btn ─────────────── */
.theme-switch{
  appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 9px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  cursor:pointer;
  transition:
    transform var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out);
}
.theme-switch:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.16);
  color:var(--text);
  box-shadow:0 8px 28px rgba(0,0,0,.35);
}
.theme-switch:active{ transform:translateY(0) scale(.985); transition-duration:var(--t-instant); }
body[data-theme="light"] .theme-switch{
  border-color:rgba(0,0,0,.10);
  background:rgba(255,255,255,.55);
  color:var(--muted);
}
body[data-theme="light"] .theme-switch:hover{
  background:rgba(255,255,255,.82);
  border-color:rgba(0,0,0,.18);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

/* ─── LANG TOGGLE — doar flag ────────────────────────── */
.lang-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 9px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  cursor:pointer;
  transition:
    transform var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out);
}
.lang-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 8px 28px rgba(0,0,0,.35);
}
.lang-btn:active{ transform:translateY(0) scale(.985); transition-duration:var(--t-instant); }
.lang-btn.on{
  border-color:rgba(222,204,170,.35);
  background:rgba(222,204,170,.10);
  box-shadow:0 4px 14px rgba(0,0,0,.22);
}
.lang-flag{ font-size:18px; line-height:1; display:block; }
/* ascunde text RO/EN dacă rămâne în DOM */
.lang-code{ display:none; }

/* ─── MOBILE MENU — buton Rezervă ───────────────────── */
.mobile-menu__rezerva{
  display:block;
  text-align:center;
  margin-top:4px;
  padding:12px;
}

.mobile-menu{display:none;}
.burger{ display:none; }

@media (max-width: 820px){
  .navlinks{ display:none; }
  .burger{ display:inline-flex; }
  .mobile-menu{
    display:none;
    padding:12px 0 18px;
  }
  .mobile-menu.on{ display:block; }
  .mobile-menu a{
    display:block;
    padding:12px 12px;
    border-radius:14px;
    color:var(--muted);
    border:1px solid rgba(255,255,255,.07);
    background:rgba(255,255,255,.02);
    margin-bottom:10px;
  }
  .mobile-menu a:hover{ color:var(--text); border-color:rgba(255,255,255,.14); }

  /* Nav layout: switch from 3-col grid to flex row */
  .nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:10px 0;
  }
  .nav > .brand{ justify-self:unset; }
  .nav > .actions{ justify-self:unset; }
  .brand--sig{ min-width:unset; padding:6px 12px; }
  .brand--sig img{ height:40px; }
}

/* ─── 600px: nascunde theme toggle White/Dark ─────────── */
@media (max-width: 600px){
  .theme-toggle{ display:none; }
  .actions{ gap:8px; }
}

/* ─── 480px: comprimă lang toggle, burger, rezervă ─────── */
@media (max-width: 480px){
  /* Ascunde emoji flag din lang buttons — păstrează doar codul */
  .lang-flag{ display:none; }
  .lang-btn{ padding:7px 8px; font-size:10px; }

  /* Burger mai compact */
  .burger{ padding:8px 10px; font-size:12px; }

  /* Rezervă btn mai compact */
  .actions .btn.primary{ padding:8px 10px; font-size:12px; }

  /* Hero title mai mic pe telefoane înguste */
  .hero h2{ font-size: clamp(28px, 8vw, 40px); }
  .hero p{ font-size:15px; }

  /* Sticky CTA mai compact */
  .sticky-cta{ padding:8px; gap:8px; bottom:8px; left:8px; right:8px; }
  .sticky-cta .btn{ font-size:13px; padding:10px 12px; }
}

/* ─── INTRO LOADER ────────────────────────────────────── */
.intro{
  position:fixed; inset:0;
  background: radial-gradient(1100px 800px at 30% 20%, rgba(222,204,170,.14), transparent 60%),
              radial-gradient(900px 700px at 70% 0%, rgba(255,255,255,.06), transparent 60%),
              rgba(13,15,18,.96);
  display:grid;
  place-items:center;
  z-index:999;
  transition: opacity .85s var(--ease-out), clip-path .95s var(--ease-out);
  clip-path: circle(140% at 50% 50%);
}
.intro__panel{
  width:min(560px, calc(100% - 2*var(--pad)));
  padding:28px 26px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}
.intro__panel::before{
  content:"";
  position:absolute; inset:-20%;
  background:
    radial-gradient(circle at 20% 10%, rgba(222,204,170,.14), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(120deg, transparent 0 30%, rgba(222,204,170,.10) 40%, transparent 55% 100%);
  filter: blur(4px);
  opacity:.9;
  animation: leak 3.6s var(--ease-soft) infinite;
}
@keyframes leak{
  0%,100%{ transform: translate3d(0,0,0) rotate(0deg); }
  50%{ transform: translate3d(-12px, 6px,0) rotate(2deg); }
}
.intro__top{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; position:relative;
}
.intro__brand{ display:flex; flex-direction:column; gap:4px; }
.intro__brand strong{ font-family:var(--serif); font-size:20px; letter-spacing:.02em; }
.intro__brand span{ font-size:12px; color:var(--muted2); letter-spacing:.24em; text-transform:uppercase; }
.intro__skip{
  position:relative; z-index:2;
  font-size:12px; padding:9px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.15);
  color:var(--muted);
  cursor:pointer;
}
.intro__skip:hover{ color:var(--text); border-color:rgba(255,255,255,.18); }
.intro__mid{ display:flex; gap:18px; align-items:center; margin:18px 0 14px; position:relative; }
.aperture{
  width:86px; height:86px; border-radius:50%;
  background: repeating-conic-gradient(from 0deg,
    rgba(222,204,170,.55) 0 12deg, rgba(222,204,170,.05) 12deg 24deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 34%, #000 35% 100%);
  mask: radial-gradient(circle at 50% 50%, transparent 0 34%, #000 35% 100%);
  animation: spin 1.8s linear infinite;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 10px rgba(255,255,255,.02);
}
.aperture::before{
  content:"";
  position:absolute; inset:8px; border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.50) 0 36%, transparent 62%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.10), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.aperture::after{
  content:""; position:absolute; inset:-6px; border-radius:50%;
  background: conic-gradient(from 90deg, rgba(255,255,255,.12), rgba(255,255,255,0) 25%, rgba(255,255,255,.10) 50%, rgba(255,255,255,0) 75%, rgba(255,255,255,.12));
  opacity:.6; filter: blur(.2px);
  animation: spin 3.6s linear infinite reverse;
}
@keyframes spin{ to{ transform: rotate(360deg);} }
.intro__copy{ display:flex; flex-direction:column; gap:6px; }
.intro__copy h1{ margin:0; font-size:16px; letter-spacing:.02em; }
.intro__copy p{ margin:0; color:var(--muted); font-size:13px; }
.meter{
  height:10px; border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.meter > i{
  display:block; height:100%; width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(222,204,170,.0), rgba(222,204,170,.55), rgba(255,255,255,.18));
}
.intro__bottom{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:12px; color:var(--muted2); font-size:12px; position:relative;
}
kbd{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  padding:3px 6px; border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18); color: var(--muted);
}
.intro--done{
  opacity:0;
  clip-path: circle(0% at 50% 50%);
  pointer-events:none;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero{ padding: clamp(28px, 5vw, 60px) 0 26px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(16px, 3vw, 30px);
  align-items: start;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }
.hero-grid .scene{ align-self: stretch; }
.h-eyebrow{
  display:inline-flex; gap:10px; align-items:center;
  color:var(--muted); font-size:12px;
  letter-spacing:.22em; text-transform:uppercase;
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(222,204,170,.16);
}
.hero h2{
  font-family:var(--serif);
  font-weight:600; line-height:1.1;
  font-size: clamp(40px, 5vw, 68px);
  margin:14px 0 12px;
}
.hero p{ color: var(--muted); font-size: 18px; margin:0 0 18px; max-width: 56ch; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-ctas .btn{ padding:12px 14px; font-size:14px; }

/* Hero 3D scene */
.scene{ perspective: 1200px; perspective-origin: 50% 40%; }
.hero-scene{
  position:relative;
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.14);
  background: #0a0b0e;
  overflow:hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  /* Portrait aspect ratio — 2:3 */
  aspect-ratio: 2 / 3;
  max-height: 500px;
  transform-style: preserve-3d;
  cursor: pointer;
  transition:
    box-shadow var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out);
}
.hero-scene:hover{
  box-shadow: 0 50px 120px rgba(0,0,0,.72), 0 0 0 1px rgba(222,204,170,.18);
  border-color: rgba(222,204,170,.26);
  transform: translateY(-4px) scale(1.008);
}

/* Corner glare overlays */
.hero-glare{
  position:absolute; pointer-events:none; z-index:4;
  border-radius: 50%;
  filter: blur(40px);
}
.hero-glare--tl{
  width:220px; height:220px;
  top:-60px; left:-40px;
  background: radial-gradient(circle, rgba(222,204,170,.12), transparent 70%);
}
.hero-glare--br{
  width:180px; height:180px;
  bottom:-40px; right:-30px;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
}

/* Hover overlay — full hero scene */
.hero-scene__hover{
  position:absolute; inset:0; z-index:6;
  display:grid; place-items:center;
  background: rgba(0,0,0,.28);
  opacity:0;
  transition: opacity var(--t-hover) var(--ease-out);
  border-radius: 24px;
  pointer-events:none;
}
.hero-scene:hover .hero-scene__hover{ opacity:1; }
.hero-scene__hover span{
  font-size:13px; letter-spacing:.14em;
  color: rgba(255,255,255,.95);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
}

/* Portrait frame — fills the entire scene */
.frame.photo{
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0,0,0) rotateX(calc(var(--h_rx,0deg)*.5)) rotateY(calc(var(--h_ry,0deg)*.5));
  transition: transform var(--t-hover) var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Blurred bg fill */
.photo-bg{
  position:absolute; inset:-12px;
  background: url("../assets/images/portrait-hero.jpg") center center / cover;
  filter: blur(28px) saturate(.7) brightness(.55);
  transform: scale(1.06);
  z-index:0;
}

/* Portrait image — contain so full image visible */
.frame.photo img{
  position: absolute; inset:0; z-index:1;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center 12%;
  transition: transform var(--t-hover) var(--ease-out), filter var(--t-hover) var(--ease-out);
  filter: contrast(1.06) brightness(1.02);
}
.hero-scene:hover .frame.photo img{
  transform: scale(1.035);
  filter: contrast(1.10) brightness(1.04);
}

/* Remove old generic frame styles from applying to photo */
.frame{
  position:absolute; inset:0;
  border-radius: 24px;
  overflow:hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.frame.overlay{
  pointer-events:none; opacity:.85; mix-blend-mode: overlay;
}
body[data-theme="light"] .frame.overlay{ mix-blend-mode: multiply; opacity:.75; }

.hero-badge{
  position:absolute; left:16px; bottom:16px;
  display:flex; gap:12px; align-items:center;
  padding:10px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.06) 50%, rgba(0,0,0,.28) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  z-index: 5;
  transform: translateZ(0);
}
.hero-badge strong{ font-size:13px; }
.hero-badge span{ font-size:12px; color:var(--muted); }
body[data-theme="light"] .hero-badge{
  border-color: rgba(0,0,0,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 50%, rgba(240,236,228,.60) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.90);
}

/* ─── CORNER SIGNATURE IN HERO FRAME (bottom-right) ──── */
.hero-frame-sig{
  position: absolute;
  bottom: 72px;
  right: 14px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-frame-sig img{
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: brightness(10) opacity(.60);
  mix-blend-mode: screen;
  transition: opacity var(--t-hover) var(--ease-out);
}
body[data-theme="light"] .hero-frame-sig img{
  filter: brightness(10) opacity(.55);
  mix-blend-mode: screen;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section{ padding: 56px 0; }
.section h3{
  margin:0 0 8px; font-size: 18px;
  letter-spacing:.08em; text-transform:uppercase;
  color: var(--muted);
}
.section .lead{
  font-family:var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  margin:0 0 18px; line-height:1.15;
}
.panel{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* ─── PORTFOLIO GRID ──────────────────────────────────── */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 950px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid{ grid-template-columns: 1fr; } }

.card{
  position:relative;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow:hidden;
  cursor:pointer;
  transform-style:preserve-3d;
  will-change: transform;
  transition:
    transform var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out);
}
.card img{
  width:100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform var(--t-hover) var(--ease-out), filter var(--t-hover) var(--ease-out);
  filter: contrast(1.02);
  border-radius: 20px;
}
/* Enhanced hover zoom */
.card:hover img{
  transform: scale(1.06);
  filter: contrast(1.07) saturate(1.06);
}
.card:hover{
  transform: translateY(-5px);
  box-shadow: 0 32px 90px rgba(0,0,0,.5);
  border-color: rgba(222,204,170,.22);
}

/* Card opening/selected state for animation */
.card.is-opening{
  z-index: 5;
  box-shadow: 0 0 0 2px var(--accent2), 0 32px 90px rgba(0,0,0,.6) !important;
}
.card.is-opening img{ transform: scale(1.04) !important; }

/* Card meta — styled like btn primary */
.card .meta{
  position:absolute; inset:auto 12px 12px 12px;
  padding:9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(222,204,170,.28);
  background: linear-gradient(180deg, rgba(222,204,170,.14), rgba(0,0,0,.30));
  backdrop-filter: blur(10px);
  transform: translateZ(24px);
  transition: border-color var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out);
}
.card:hover .meta{
  border-color: rgba(222,204,170,.42);
  background: linear-gradient(180deg, rgba(222,204,170,.22), rgba(0,0,0,.35));
}
.meta strong{ display:block; font-size:13px; color: rgba(255,255,255,.95); }
.meta span{ display:block; font-size:12px; color: rgba(222,204,170,.80); margin-top:3px; }

/* Light mode card meta */
body[data-theme="light"] .card .meta{
  border-color: rgba(148,120,82,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.55));
}
body[data-theme="light"] .card:hover .meta{
  border-color: rgba(148,120,82,.45);
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.65));
}
body[data-theme="light"] .meta strong{ color: var(--text); }
body[data-theme="light"] .meta span{ color: var(--accent); }

/* ─── PACKAGES ────────────────────────────────────────── */
.pack-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 950px){ .pack-grid{ grid-template-columns: 1fr; } }
.pack{
  padding:22px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out);
}
/* Content grows to fill available space, pushing btn to bottom */
.pack-body{
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pack:hover{
  transform: translateY(-10px);
  box-shadow: 0 38px 100px rgba(0,0,0,.48);
  border-color: rgba(222,204,170,.26);
}
[data-theme="light"] .pack:hover{
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.14);
  border-color: rgba(148,120,82,.26);
}
.pack h4{ margin:0; font-family: var(--serif); font-size: 20px; }
.price{ margin:10px 0 8px; color:var(--accent); font-weight:600; letter-spacing:.04em; }
.ul{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.ul li{ margin: 6px 0; }
.pack-note{ font-size:12px; color: var(--muted2); font-style: italic; }

/* ─── ABOUT ───────────────────────────────────────────── */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:stretch;
}
@media (max-width: 900px){ .about-grid{ grid-template-columns:1fr; } }
.about-img{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow:hidden;
}
.about-img img{ width:100%; height:100%; object-fit:cover; }
.about-copy{ padding: 18px; }
.about-copy p{ margin: 10px 0; color: var(--muted); }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }
.form{ padding: 28px 30px; }
label{
  display:block;
  font-size: 16px; /* 35% bigger: was 12px */
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
  letter-spacing: .01em;
}
label:first-child{ margin-top: 0; }
input, textarea{
  width:100%;
  padding: 14px 16px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(222,204,170,.45);
  box-shadow: 0 0 0 4px rgba(222,204,170,.10);
}
.success{
  display:none;
  margin-top:14px;
  padding: 14px 16px;
  border-radius: 14px;
  border:1px solid rgba(222,204,170,.35);
  background: rgba(222,204,170,.10);
  color: var(--text);
  font-size: 14px;
}

/* ─── CONTACT SIDE PANEL ──────────────────────────────── */
.side{
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  box-sizing: border-box;
  gap: 4px;
}
.side-item{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex: 1;
}
.side-item:first-child{ padding-top: 6px; }
.side-item:last-child{ padding-bottom: 6px; border-bottom: none; }

/* ─── ICON ─── */
.side-icon{
  width: 62px; height: 62px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}

/* ─── TEXT ─── */
.side-content{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-label{
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}
.side-value{
  display: block;
  font-size: 16px;
  color: var(--muted);
}

/* Light mode overrides */
body[data-theme="light"] .side-item{
  border-bottom-color: rgba(0,0,0,.07);
}
body[data-theme="light"] .side-icon{
  border-color: rgba(0,0,0,.14);
  background: rgba(255,255,255,.75);
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
body[data-theme="light"] label{ color: var(--text); }
body[data-theme="light"] input, body[data-theme="light"] textarea{
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.65);
  color: var(--text);
}
body[data-theme="light"] input::placeholder, body[data-theme="light"] textarea::placeholder{
  color: rgba(16,17,20,.42);
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer{
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted2);
  font-size: 12px;
}
.footer-city{ color: var(--muted2); }

/* ─── SCROLL3D ────────────────────────────────────────── */
.scroll3d{
  --rx:0deg; --ry:0deg; --tz:0px; --ty:0px; --op:1;
  transform: translate3d(0,var(--ty),var(--tz)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  opacity: var(--op);
  will-change: transform, opacity;
}
.scroll3d .panel{ position:relative; }
.scroll3d .panel::before{
  content:""; position:absolute; inset:-1px;
  border-radius: inherit; pointer-events:none;
  background: radial-gradient(600px 220px at 30% 0%, rgba(222,204,170,.12), transparent 60%),
              radial-gradient(560px 240px at 80% 40%, rgba(255,255,255,.08), transparent 60%);
  opacity: var(--shine, .35);
  transition: opacity .25s var(--ease-out);
}

/* ─── TILT CARDS ──────────────────────────────────────── */
.tilt{
  --mx:0deg; --my:0deg;
  transform: rotateX(var(--my)) rotateY(var(--mx));
  transition: transform .18s linear;
}
.tilt.is-tilting{ transition: transform 0s; }

/* ─── STICKY CTA ──────────────────────────────────────── */
.sticky-cta{ display:none; }
@media (max-width: 720px){
  .sticky-cta{
    position:fixed; left:12px; right:12px; bottom:12px;
    display:flex; gap:10px;
    z-index:40;
    padding:10px;
    border-radius: 18px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(13,15,18,.62);
    backdrop-filter: blur(10px);
  }
  .sticky-cta .btn{ flex:1; justify-content:center; }
}

/* ═══════════════════════════════════════════════════════
   LIGHTBOX MODAL — Morphing expand animation
   Multi-step: backdrop → frame morph → content reveal
   ═══════════════════════════════════════════════════════ */

.modal{
  position:fixed; inset:0;
  z-index:60;
  pointer-events:none;
}
.modal.on{ pointer-events:auto; }

/* Step 1: Backdrop fades in */
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(13,15,18,0);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  transition:
    background calc(var(--modal-dur) * .7) var(--ease-out),
    backdrop-filter calc(var(--modal-dur) * .7) var(--ease-out),
    -webkit-backdrop-filter calc(var(--modal-dur) * .7) var(--ease-out);
}
.modal.on .modal__backdrop{
  background: rgba(13,15,18,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
[data-theme="light"] .modal.on .modal__backdrop{
  background: rgba(246,242,234,.75);
}

/* Step 2+3: Morphing frame (positioned by JS) */
.modal__frame{
  position:fixed;
  overflow:hidden;
  border-radius: 20px; /* start radius — JS overrides */
  border:1px solid rgba(255,255,255,.12);
  background: var(--bg);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  opacity: 0; /* hidden until JS shows it */
  pointer-events: none;
  /* GPU transitions for smooth morph */
  will-change: transform, border-radius, box-shadow, opacity;
  transition:
    transform var(--modal-dur) var(--ease-modal),
    border-radius var(--modal-dur) var(--ease-modal),
    box-shadow var(--modal-dur) var(--ease-modal);
}
.modal.on .modal__frame{
  pointer-events: auto;
}
[data-theme="light"] .modal__frame{
  border-color: rgba(0,0,0,.10);
  background: #f6f2ea;
}
[data-theme="dark"] .modal__frame{
  background: #0d0f12;
}

.modal__frame.is-open{
  box-shadow: 0 50px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}

/* Image wrapper fills the frame */
.modal__img-wrap{
  position:absolute; inset:0;
  overflow:hidden;
}
.modal__img-wrap img{
  width:100%; height:100%;
  object-fit: contain;
  object-position: center center;
  opacity:0;
  transform: scale(.96);
  transition:
    opacity calc(var(--modal-dur) * .55) ease,
    transform calc(var(--modal-dur) * .55) var(--ease-out);
  transition-delay: calc(var(--modal-dur) * .45);
  border-radius: 0; /* frame clips anyway */
}
.modal__frame.is-open .modal__img-wrap img{
  opacity:1;
  transform: scale(1);
}

/* Close button */
.modal__close{
  position:absolute; top:14px; right:14px; z-index:10;
  width:38px; height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  color:rgba(255,255,255,.92);
  font-size:16px;
  cursor:pointer;
  display:grid; place-items:center;
  opacity:0;
  transform: scale(.7);
  transition:
    opacity 200ms ease,
    transform 200ms var(--ease-out),
    background 150ms ease;
  transition-delay: calc(var(--modal-dur) * .55);
}
[data-theme="light"] .modal__close{
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  color: rgba(16,17,20,.82);
}
.modal__frame.is-open .modal__close{
  opacity:1;
  transform: scale(1);
}
.modal__close:hover{ background: rgba(0,0,0,.65); }

/* Meta info bar at bottom */
.modal__info{
  position:absolute; bottom:0; left:0; right:0;
  padding:22px 22px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.72) 60%);
  display:flex; flex-direction:column; gap:4px;
  opacity:0;
  transform: translateY(10px);
  transition:
    opacity 250ms ease,
    transform 300ms var(--ease-out);
  transition-delay: calc(var(--modal-dur) * .6);
}
[data-theme="light"] .modal__info{
  background: linear-gradient(transparent, rgba(200,190,175,.85) 60%);
}
.modal__frame.is-open .modal__info{
  opacity:1;
  transform: translateY(0);
}
.modal__info strong{ display:block; font-size:16px; color:#fff; font-family:var(--serif); }
.modal__info span{ display:block; font-size:13px; color:rgba(255,255,255,.65); }

/* Keyboard hint */
.modal__hint{
  position:absolute; bottom:14px; right:14px;
  font-size:11px; color:rgba(255,255,255,.38);
  opacity:0;
  transition: opacity 200ms ease;
  transition-delay: calc(var(--modal-dur) * .8);
  pointer-events:none;
}
.modal__frame.is-open .modal__hint{ opacity:1; }

/* Watermark for hero photo in modal */
.modal__watermark{
  position:absolute;
  bottom: 70px; right: 16px;
  z-index: 10;
  pointer-events:none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 250ms ease,
    transform 280ms var(--ease-out);
  transition-delay: calc(var(--modal-dur) * .65);
}
.modal__watermark img{
  height: 28px;
  width: auto;
  display:block;
  filter: brightness(10) opacity(.55);
  mix-blend-mode: screen;
}
.modal--hero .modal__watermark{
  /* shown only for hero photo */
}
[data-theme="light"] .modal__watermark img{
  filter: brightness(0) opacity(.30);
  mix-blend-mode: multiply;
}
.modal__frame.is-open .modal__watermark{
  opacity:1;
  transform: translateY(0);
}
/* Hide watermark for non-hero photos (controlled by JS) */
.modal__frame:not(.has-watermark) .modal__watermark{
  display:none;
}
.pack-tag {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.pack-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 14px;
  line-height: 1.5;
}
/* Wrapper that grows to push CTA to bottom */
.pack-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pack-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 11px 14px;
  font-size: 14px;
}
.pack--custom { border-color: rgba(222,204,170,.22); }
.calc { margin-top: 4px; }
.calc-label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 7px; }
.calc-label em { font-style: normal; color: var(--accent); }
.calc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Calc type pills get full btn-like treatment */
.calc-btns .pill {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 14px;
}
.calc-btns .pill.on {
  border-color: rgba(222,204,170,.50);
  background: linear-gradient(180deg, rgba(222,204,170,.20), rgba(255,255,255,.04));
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
[data-theme="light"] .calc-btns .pill.on {
  border-color: rgba(148,120,82,.45);
  background: linear-gradient(180deg, rgba(148,120,82,.18), rgba(255,255,255,.60));
  box-shadow: 0 4px 14px rgba(148,120,82,.20);
}
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  outline: none; cursor: pointer;
  border: none; padding: 0;
  accent-color: var(--accent);
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(222,204,170,.18);
  cursor: pointer;
}
.calc-total {
  margin-top: 16px; padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(222,204,170,.22);
  background: rgba(222,204,170,.06);
  color: var(--muted); font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.calc-total strong { color: var(--accent); font-size: 20px; font-family: var(--serif); }

/* ─── CUSTOM CURSOR — Arrow style ────────────────────── */
/* Custom cursor DISABLED — using native OS cursor */
body:not(.no-custom-cursor) *{ cursor: auto; }

.cursor{ position:fixed; inset:0; pointer-events:none; z-index:9999; }

/* The arrow cursor SVG element */
.cursor__arrow{
  position:fixed;
  width: 22px; height: 26px;
  transform: translate3d(-999px,-999px,0);
  pointer-events: none;
  /* Arrow shape via clip-path */
  clip-path: polygon(0% 0%, 0% 85%, 22% 65%, 36% 95%, 48% 90%, 34% 60%, 60% 60%);
  background: linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(222,204,170,.90) 55%, rgba(180,155,115,.80) 100%);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)) drop-shadow(0 0 1px rgba(0,0,0,.80));
  transition: transform 0ms linear;
  will-change: transform;
}
/* Arrow outline via pseudo for depth */
.cursor__arrow::before{
  content:"";
  position:absolute; inset: -1px;
  clip-path: polygon(0% 0%, 0% 85%, 22% 65%, 36% 95%, 48% 90%, 34% 60%, 60% 60%);
  background: rgba(0,0,0,.65);
  z-index: -1;
  filter: blur(.5px);
}

/* Light mode arrow */
[data-theme="light"] .cursor__arrow{
  background: linear-gradient(160deg, rgba(50,35,20,.92) 0%, rgba(148,120,82,.85) 55%, rgba(200,170,120,.75) 100%);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.30)) drop-shadow(0 0 1px rgba(0,0,0,.50));
}
[data-theme="light"] .cursor__arrow::before{
  background: rgba(255,255,255,.60);
}

/* Hover grow state — applied via JS */
.cursor__arrow.is-hovering{
  background: linear-gradient(160deg, rgba(255,255,255,1) 0%, rgba(222,204,170,1) 55%, rgba(200,170,120,.90) 100%);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)) drop-shadow(0 0 2px rgba(222,204,170,.50));
  transform-origin: 0 0;
}
[data-theme="light"] .cursor__arrow.is-hovering{
  background: linear-gradient(160deg, rgba(40,25,10,.98) 0%, rgba(100,75,45,.90) 55%, rgba(148,120,82,.85) 100%);
}

/* Click state */
.cursor__arrow.is-clicking{
  filter: drop-shadow(0 0 6px rgba(222,204,170,.65));
  opacity: .80;
}

@media (hover:none), (pointer:coarse){
  body:not(.no-custom-cursor) *{ cursor: auto !important; }
  .cursor{ display:none; }
}

/* ─── MICRO-INTERACTIONS ──────────────────────────────── */
.btn{
  position:relative; overflow:hidden;
  transition:
    transform var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out);
  will-change: transform;
}
.btn::before{
  content:""; position:absolute; inset:-2px;
  background: linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.18) 46%, transparent 60% 100%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform var(--t-slow) var(--ease-out);
  opacity:.8;
}
.btn:hover::before{ transform: translateX(140%) skewX(-18deg); }
.btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.btn:active{ transform: translateY(0) scale(.985); transition-duration: var(--t-instant); }

/* Pills also get shine + lift on hover */
.pill{
  position: relative; overflow: hidden;
  transition:
    transform var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out);
}
.pill::before{
  content:""; position:absolute; inset:-2px;
  background: linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.16) 46%, transparent 60% 100%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform var(--t-slow) var(--ease-out);
  opacity:.7;
}
.pill:hover::before{ transform: translateX(140%) skewX(-18deg); }
.pill:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.pill:active{ transform: scale(.98); transition-duration: var(--t-instant); }

/* White mode — stronger shine so it's visible */
body[data-theme="light"] .btn::before{
  background: linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.55) 44%, rgba(148,120,82,.18) 52%, transparent 60% 100%);
  opacity:1;
}
body[data-theme="light"] .pill::before{
  background: linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.60) 44%, rgba(148,120,82,.12) 52%, transparent 60% 100%);
  opacity:1;
}
body[data-theme="light"] .btn:hover{
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
body[data-theme="light"] .btn.primary:hover{
  box-shadow: 0 14px 40px rgba(148,120,82,.28), 0 0 0 2px rgba(148,120,82,.18);
}

/* ─── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .intro{ display:none !important; }
  .scroll3d, .tilt{ transform:none !important; opacity:1 !important; }
  .modal__frame, .modal__backdrop, .modal__img-wrap img, .modal__close, .modal__info{
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   STILURI / STYLE ALBUMS SECTION
   ═══════════════════════════════════════════════════════ */

.stiluri-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px){ .stiluri-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px){ .stiluri-grid{ grid-template-columns: 1fr; } }

.stil-card{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out);
}
.stil-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 32px 90px rgba(0,0,0,.50);
  border-color: rgba(222,204,170,.22);
}
[data-theme="light"] .stil-card{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
}
[data-theme="light"] .stil-card:hover{
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
  border-color: rgba(148,120,82,.22);
}

.stil-card__inner{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ─── Hero photo area ──── */
.stil-card__hero{
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0a0b0e;
}
[data-theme="light"] .stil-card__hero{
  /* Warm cream-to-sand gradient — matches light theme palette */
  background: linear-gradient(145deg, #e8e2d8 0%, #d4cec4 50%, #c8c0b4 100%);
}
.stil-card__hero-img{
  position: absolute;
  left: 0; top: 0;
  width: 75%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
  transition: transform var(--t-hover) var(--ease-out);
}
.stil-card:hover .stil-card__hero-img{
  transform: scale(1.04);
}

/* ─── Collage strip (right 25%) ──── */
.stil-card__collage{
  position: absolute;
  right: 0; top: 0;
  width: 28%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 3px 3px 0;
  mask: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 20%, rgba(0,0,0,.82) 50%, #000 100%);
  -webkit-mask: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 20%, rgba(0,0,0,.82) 50%, #000 100%);
}
.stil-card__col-item{
  flex: 1;
  overflow: hidden;
  border-radius: 5px;
}
.stil-card__col-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: .80;
  transition: opacity var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out);
}
/* Light mode collage: softer tones, slight sepia to match palette */
[data-theme="light"] .stil-card__col-item img{
  opacity: .70;
  filter: sepia(.25) brightness(.95);
}
.stil-card:hover .stil-card__col-item img{
  opacity: 1;
  transform: scale(1.06);
}
[data-theme="light"] .stil-card:hover .stil-card__col-item img{
  opacity: .90;
  filter: sepia(.15) brightness(1);
}

/* ─── Hover overlay ──── */
.stil-card__overlay{
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  background: rgba(0,0,0,.22);
  opacity: 0;
  transition: opacity var(--t-hover) var(--ease-out);
}
[data-theme="light"] .stil-card__overlay{
  background: rgba(30,20,10,.18);
}
.stil-card:hover .stil-card__overlay{ opacity: 1; }
.stil-card__overlay span{
  font-size: 12px; letter-spacing: .14em;
  color: rgba(255,255,255,.95);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
}

/* ─── Gallery CTA card ──── */
.stil-card__hero--gallery{
  background: #0a0b0e;
}
[data-theme="light"] .stil-card__hero--gallery{
  background: linear-gradient(145deg, #e8e2d8 0%, #d4cec4 50%, #c8c0b4 100%);
}
.stil-card__gallery-grid{
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.stil-card__gallery-grid div{
  overflow: hidden;
}
.stil-card__gallery-grid img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-hover) var(--ease-out);
}
[data-theme="light"] .stil-card__gallery-grid img{
  opacity: .78;
  filter: sepia(.20) brightness(.95);
}
.stil-card--gallery:hover .stil-card__gallery-grid img{
  transform: scale(1.06);
}
[data-theme="light"] .stil-card--gallery:hover .stil-card__gallery-grid img{
  opacity: .95;
  filter: sepia(.10) brightness(1);
}
.stil-card--gallery{
  border-color: rgba(222,204,170,.22);
}
[data-theme="light"] .stil-card--gallery{
  border-color: rgba(148,120,82,.22);
}

/* ─── Info caption ──── */
.stil-card__info{
  padding: 14px 16px 16px;
  background: var(--panel);
  flex: 1;
}
.stil-card__name{
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}
.stil-card__desc{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   ALBUM MODAL — Full gallery lightbox with prev/next
   ═══════════════════════════════════════════════════════ */

.album-modal{
  position: fixed; inset: 0;
  z-index: 70;
  pointer-events: none;
}
.album-modal.on{ pointer-events: auto; }

.album-modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(13,15,18,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    background 500ms var(--ease-out),
    backdrop-filter 500ms var(--ease-out),
    -webkit-backdrop-filter 500ms var(--ease-out);
}
.album-modal.on .album-modal__backdrop{
  background: rgba(13,15,18,.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
[data-theme="light"] .album-modal.on .album-modal__backdrop{
  background: rgba(240,236,228,.82);
}

.album-modal__frame{
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: min(92vw, 860px);
  max-height: 92vh;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--bg);
  box-shadow: 0 50px 130px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0;
  transition:
    opacity 380ms var(--ease-out),
    transform 420ms var(--ease-modal);
  pointer-events: none;
}

.album-modal__content{
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.album-modal__hero-wrap{
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15);
  overflow: hidden;
}
#albumHeroImg{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 240ms ease, transform 300ms var(--ease-out);
  border-radius: 4px;
}
.album-modal.on .album-modal__frame{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
[data-theme="light"] .album-modal__frame{
  border-color: rgba(0,0,0,.10);
  background: #f6f2ea;
  box-shadow: 0 40px 100px rgba(0,0,0,.18);
}

.album-modal__close{
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.92);
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  transition:
    background 150ms ease,
    transform var(--t-hover) var(--ease-out);
}
.album-modal__close:hover{ background: rgba(0,0,0,.70); transform: scale(1.08); }
[data-theme="light"] .album-modal__close{
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  color: rgba(16,17,20,.82);
}

.album-modal__content{ flex: 1; position: relative; overflow: hidden; min-height: 0; }

.album-modal__hero-wrap{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 68vh;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15);
}
#albumHeroImg{
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 240ms ease, transform 300ms var(--ease-out);
  border-radius: 4px;
}
#albumHeroImg.is-switching{
  opacity: 0;
  transform: scale(.97);
}

/* ─── Prev / Next arrows ──── */
.album-modal__arrow{
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  display: grid; place-items: center;
  transition:
    background var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out);
}
.album-modal__arrow--prev{ left: 14px; }
.album-modal__arrow--next{ right: 14px; }
.album-modal__arrow:hover{
  background: rgba(0,0,0,.72);
  border-color: rgba(222,204,170,.42);
  transform: translateY(-50%) scale(1.08);
}
.album-modal__arrow:active{
  transform: translateY(-50%) scale(.96);
  transition-duration: var(--t-instant);
}
[data-theme="light"] .album-modal__arrow{
  border-color: rgba(0,0,0,.14);
  background: rgba(255,255,255,.72);
  color: rgba(16,17,20,.82);
}
[data-theme="light"] .album-modal__arrow:hover{
  background: rgba(255,255,255,.95);
  border-color: rgba(148,120,82,.42);
}

/* ─── Watermark in modal ──── */
.album-modal__watermark{
  position: absolute; bottom: 14px; right: 14px; z-index: 6;
  pointer-events: none;
}
.album-modal__watermark img{
  height: 26px; width: auto; display: block;
  filter: brightness(10) opacity(.45);
  mix-blend-mode: screen;
}
[data-theme="light"] .album-modal__watermark img{
  filter: brightness(10) opacity(.40);
  mix-blend-mode: screen;
}

/* ─── Footer bar ──── */
.album-modal__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  gap: 16px;
  flex-shrink: 0;
}
[data-theme="light"] .album-modal__footer{
  border-top-color: rgba(0,0,0,.07);
}
.album-modal__info{
  display: flex; flex-direction: column; gap: 3px;
}
.album-modal__info strong{
  font-family: var(--serif); font-size: 15px; color: var(--text);
}
.album-modal__info span{
  font-size: 12px; color: var(--muted);
}

/* ─── Dots pagination ──── */
.album-modal__dots{
  display: flex; gap: 6px; align-items: center;
}
.album-dot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  border: none; padding: 0;
  cursor: pointer;
  transition:
    background var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out),
    width var(--t-hover) var(--ease-out);
}
.album-dot.on{
  background: var(--accent);
  width: 18px;
}
[data-theme="light"] .album-dot{ background: rgba(0,0,0,.22); }
[data-theme="light"] .album-dot.on{ background: var(--accent); }

/* ═══════════════════════════════════════════════════════
   AMBIENT AUDIO PLAYER — floating bottom-left
   ═══════════════════════════════════════════════════════ */

.ambient-player{
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: auto;
}

/* Main toggle button */
.ambient-btn{
  position: relative;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(222,204,170,.28);
  background: rgba(16,18,22,.65);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: rgba(222,204,170,.80);
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition:
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out);
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.18);
}
.ambient-btn:hover{
  background: rgba(24,26,32,.80);
  border-color: rgba(222,204,170,.50);
  box-shadow: 0 8px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(222,204,170,.12);
  transform: translateY(-2px);
}
.ambient-btn:active{
  transform: scale(.95);
  transition-duration: var(--t-instant);
}
/* Playing state */
.ambient-btn.is-playing{
  border-color: rgba(222,204,170,.45);
  background: rgba(222,204,170,.08);
  box-shadow: 0 4px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(222,204,170,.16), 0 0 18px rgba(222,204,170,.08);
}

/* Light mode */
[data-theme="light"] .ambient-btn{
  background: rgba(255,255,255,.78);
  border-color: rgba(148,120,82,.28);
  color: rgba(100,75,40,.82);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
[data-theme="light"] .ambient-btn:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(148,120,82,.50);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
}
[data-theme="light"] .ambient-btn.is-playing{
  background: rgba(148,120,82,.10);
  border-color: rgba(148,120,82,.42);
  box-shadow: 0 4px 20px rgba(148,120,82,.14);
}

/* ─── Sound wave bars (playing state) ───────────────── */
.ambient-bars{
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  opacity: 0;
  transform: scale(.7);
  transition:
    opacity var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out);
  position: absolute;
}
.ambient-btn.is-playing .ambient-bars{
  opacity: 1;
  transform: scale(1);
}

.ambient-bar{
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: currentColor;
  animation: barPulse 1.4s ease-in-out infinite;
  transform-origin: bottom;
}
.ambient-bar:nth-child(1){ height: 6px;  animation-delay: 0s;    }
.ambient-bar:nth-child(2){ height: 12px; animation-delay: .18s;  }
.ambient-bar:nth-child(3){ height: 16px; animation-delay: .08s;  }
.ambient-bar:nth-child(4){ height: 10px; animation-delay: .30s;  }
.ambient-bar:nth-child(5){ height: 5px;  animation-delay: .14s;  }

@keyframes barPulse{
  0%, 100%{ transform: scaleY(1); opacity: .85; }
  50%{ transform: scaleY(.35); opacity: .45; }
}
/* Pause bars when paused (freeze animation) */
.ambient-btn.is-paused .ambient-bar{
  animation-play-state: paused;
  opacity: .45;
}

/* ─── Mute icon (visible when stopped) ─────────────── */
.ambient-icon-mute{
  position: absolute;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out);
}
.ambient-btn.is-playing .ambient-icon-mute{
  opacity: 0;
  transform: scale(.5);
}

/* ─── Volume slider panel ───────────────────────────── */
.ambient-volume-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 8px;
  height: 42px;
  border-radius: 0 999px 999px 0;
  border: 1px solid rgba(222,204,170,.22);
  border-left: none;
  background: rgba(14,16,20,.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-left: -8px;
  padding-left: 16px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-width 360ms var(--ease-out),
    opacity 300ms var(--ease-out);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.ambient-player:hover .ambient-volume-wrap,
.ambient-player:focus-within .ambient-volume-wrap{
  max-width: 160px;
  opacity: 1;
  pointer-events: auto;
}
[data-theme="light"] .ambient-volume-wrap{
  background: rgba(255,255,255,.75);
  border-color: rgba(148,120,82,.20);
  backdrop-filter: blur(12px);
}

.ambient-label{
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(222,204,170,.60);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="light"] .ambient-label{
  color: rgba(100,75,40,.55);
}

/* Custom range slider */
.ambient-volume{
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 99px;
  background: rgba(222,204,170,.20);
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.ambient-volume::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid rgba(255,255,255,.30);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform 150ms ease;
}
.ambient-volume::-webkit-slider-thumb:hover{ transform: scale(1.25); }
.ambient-volume::-moz-range-thumb{
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid rgba(255,255,255,.30);
  cursor: pointer;
}
[data-theme="light"] .ambient-volume{
  background: rgba(148,120,82,.20);
}

/* ─── Mobile: smaller, no volume wrap on touch ─────── */
@media (hover: none), (pointer: coarse){
  .ambient-player{ left: 14px; bottom: 80px; }
  .ambient-volume-wrap{ display: none; }
}


/* ═══════════════════════════════════════════════════════
   SOUND PLAYER — floating bottom-left (v4)
   ═══════════════════════════════════════════════════════ */

.sound-player{
  position: fixed;
  left: 32px;
  bottom: 28px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* left-align column items */
  gap: 8px;
}

/* ─── Row: button + info badge ───────────────────────── */
.sound-row{
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;   /* contain the popup z-stacking */
}

/* ─── Main circular button (74px) ───────────────────── */
.sound-btn{
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1.5px solid rgba(222,204,170,.32);
  background: rgba(14,16,20,.74);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  color: rgba(222,204,170,.80);
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition:
    border-color var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out);
  box-shadow:
    0 5px 24px rgba(0,0,0,.42),
    0 0 0 1px rgba(0,0,0,.20),
    0 0 0 6px rgba(14,16,20,.26);
}
.sound-btn:hover{
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(222,204,170,.58);
  background: rgba(22,24,30,.84);
  box-shadow: 0 12px 36px rgba(0,0,0,.52), 0 0 0 7px rgba(14,16,20,.18);
  color: rgba(222,204,170,1);
}
.sound-btn:active{ transform: scale(.96); transition-duration: var(--t-instant); }
.sound-btn.is-playing{
  border-color: rgba(222,204,170,.58);
  background: rgba(222,204,170,.09);
  box-shadow:
    0 5px 28px rgba(0,0,0,.40),
    0 0 0 1px rgba(222,204,170,.15),
    0 0 20px rgba(222,204,170,.10),
    0 0 0 6px rgba(222,204,170,.06);
  color: rgba(222,204,170,1);
}
[data-theme="light"] .sound-btn{
  background: rgba(255,255,255,.84);
  border-color: rgba(148,120,82,.32);
  color: rgba(90,65,35,.82);
  box-shadow: 0 5px 20px rgba(0,0,0,.13), 0 0 0 6px rgba(255,255,255,.20);
}
[data-theme="light"] .sound-btn:hover{
  background: rgba(255,255,255,.97);
  border-color: rgba(148,120,82,.58);
  color: rgba(90,65,35,1);
  box-shadow: 0 10px 30px rgba(0,0,0,.17), 0 0 0 7px rgba(255,255,255,.16);
}
[data-theme="light"] .sound-btn.is-playing{
  background: rgba(148,120,82,.10);
  border-color: rgba(148,120,82,.52);
  color: rgba(90,65,35,1);
  box-shadow: 0 5px 22px rgba(148,120,82,.20), 0 0 0 6px rgba(148,120,82,.07);
}

/* ─── Bars (playing) ────────────────────────────────── */
.sound-bars{
  position: absolute;
  display: flex; align-items: flex-end; gap: 3px;
  height: 22px;
  opacity: 0; transform: scaleY(.3); transform-origin: bottom;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.sound-btn.is-playing .sound-bars{ opacity: 1; transform: scaleY(1); }
.sound-bar{
  display: block; width: 3.5px; border-radius: 2px;
  background: currentColor; transform-origin: bottom;
  animation: soundBarPulse 1.35s ease-in-out infinite;
}
.sound-bar:nth-child(1){ height:  8px; animation-delay: 0s;   }
.sound-bar:nth-child(2){ height: 16px; animation-delay: .22s; }
.sound-bar:nth-child(3){ height: 22px; animation-delay: .10s; }
.sound-bar:nth-child(4){ height: 13px; animation-delay: .32s; }
.sound-bar:nth-child(5){ height:  7px; animation-delay: .16s; }
@keyframes soundBarPulse{
  0%, 100%{ transform: scaleY(1);   opacity: .95; }
  50%     { transform: scaleY(.22); opacity: .35; }
}
.sound-btn.is-paused .sound-bar{ animation-play-state: paused; opacity: .32; }

/* ─── Off icon ──────────────────────────────────────── */
.sound-icon-off{
  position: absolute; opacity: 1; transform: scale(1);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.sound-btn.is-playing .sound-icon-off{ opacity: 0; transform: scale(.3); }

/* ─── Info badge — to the right of button ───────────── */
.sound-info{
  position: relative;
  display: flex; align-items: center;
  padding: 4px;
  /* transparent area so hover bridge works */
}
.sound-info__icon{
  display: flex; align-items: center; justify-content: center;
  width: 29px; height: 29px;          /* 20% bigger: was 24px */
  border-radius: 50%;
  border: 1.5px solid rgba(222,204,170,.38);
  background: rgba(14,16,20,.65);
  backdrop-filter: blur(10px);
  color: rgba(222,204,170,.72);
  font-size: 14px; font-weight: 700; font-style: italic;
  cursor: default; user-select: none;
  transition:
    border-color 280ms var(--ease-out),
    color 280ms var(--ease-out),
    background 280ms var(--ease-out),
    transform 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
  position: relative; z-index: 2;
}
.sound-info:hover .sound-info__icon{
  border-color: rgba(222,204,170,.72);
  color: rgba(222,204,170,1);
  background: rgba(22,26,32,.88);
  transform: scale(1.10);
  box-shadow: 0 0 0 4px rgba(222,204,170,.08);
}
[data-theme="light"] .sound-info__icon{
  border-color: rgba(100,75,40,.32);
  background: rgba(255,255,255,.78);
  color: rgba(100,75,40,.75);
}
[data-theme="light"] .sound-info:hover .sound-info__icon{
  border-color: rgba(100,75,40,.65); color: rgba(100,75,40,1);
}

/* Tooltip — slides out to the RIGHT with parallax */
.sound-info__popup{
  position: absolute;
  /* anchor to the left edge of the icon, expand rightward */
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-14px);
  width: 210px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(222,204,170,.22);
  background: rgba(12,14,18,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255,255,255,.90);
  font-size: 12px; line-height: 1.58;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  white-space: normal;
  box-shadow:
    0 10px 32px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.04);
  /* Parallax slide-in: fade + translate from left */
  transition:
    opacity 320ms var(--ease-out),
    transform 350ms cubic-bezier(.22,.9,.36,1);
  z-index: 90;
}
/* Arrow pointing LEFT back to the "!" icon */
.sound-info__popup::before{
  content:""; position:absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid rgba(12,14,18,.92);
}
/* Ghost border on arrow */
.sound-info__popup::after{
  content:""; position:absolute;
  right: calc(100% + 1px);
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid rgba(222,204,170,.18);
  z-index:-1;
}
.sound-info:hover .sound-info__popup{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
[data-theme="light"] .sound-info__popup{
  background: rgba(255,255,255,.96);
  border-color: rgba(0,0,0,.10);
  color: rgba(16,16,16,.88);
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
}
[data-theme="light"] .sound-info__popup::before{
  border-right-color: rgba(255,255,255,.96);
}
[data-theme="light"] .sound-info__popup::after{
  border-right-color: rgba(0,0,0,.10);
}

/* ─── Volume wrap — above the button row ─────────────── */
.sound-volume-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0 12px;      /* horizontal padding removed — width is fixed */
  border-radius: 16px;
  border: 1px solid rgba(222,204,170,.20);
  background: rgba(12,14,18,.86);
  backdrop-filter: blur(18px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
  /* Match button width EXACTLY so slider is perfectly centered over it */
  width: 74px;
  flex-shrink: 0;
  align-self: flex-start;
}
/* Show on hover over sound-player OR while dragging */
.sound-player:hover .sound-volume-wrap,
.sound-player:focus-within .sound-volume-wrap,
.sound-player.vol-active .sound-volume-wrap{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
[data-theme="light"] .sound-volume-wrap{
  background: rgba(255,255,255,.92);
  border-color: rgba(148,120,82,.20);
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
}

/* ─── Vertical track ────────────────────────────────── */
.sound-volume-track{
  position: relative;
  width: 6px;
  height: 110px;
  cursor: pointer;
}
/* bg track */
.sound-volume-track::before{
  content:""; position:absolute;
  inset: 0; border-radius: 3px;
  background: rgba(255,255,255,.12);
}
[data-theme="light"] .sound-volume-track::before{
  background: rgba(0,0,0,.14);
}
/* fill from bottom */
.sound-volume-fill{
  position: absolute;
  left:0; bottom:0; right:0;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent), rgba(222,204,170,.48));
  pointer-events: none;
  /* height set by JS */
}
[data-theme="light"] .sound-volume-fill{
  background: linear-gradient(to top, var(--accent), rgba(148,120,82,.42));
}
/* thumb dot — centered on fill top */
.sound-volume-thumb{
  position: absolute;
  left: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid rgba(255,255,255,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.50);
  transform: translate(-50%, 50%);  /* center on fill's top edge */
  pointer-events: none;
  transition: transform 100ms ease;
  /* bottom set by JS to match fill height */
}
.sound-player.vol-active .sound-volume-thumb,
.sound-player:hover .sound-volume-thumb{
  transform: translate(-50%, 50%) scale(1.2);
}

/* Invisible overlay input — rotated horizontal-to-vertical */
.sound-volume-range{
  position: absolute;
  left: 50%; top: 50%;
  /* rotate horizontal range to vertical */
  width: 110px; height: 28px;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  opacity: 0;
  cursor: pointer;
  z-index: 4;
  margin: 0; padding: 0;
  -webkit-appearance: none;
}

/* Pct label */
.sound-vol-pct{
  font-size: 11px; letter-spacing: .05em;
  color: rgba(222,204,170,.68); text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
}
[data-theme="light"] .sound-vol-pct{ color: rgba(100,75,40,.68); }

/* Mobile */
@media (hover: none), (pointer: coarse){
  .sound-volume-wrap{ display: none; }
  .sound-player{ left: 18px; bottom: 82px; }
  .sound-btn{ width: 58px; height: 58px; }
  /* On mobile with coarse pointer, keep popup above to ensure visibility */
  .sound-info__popup{
    width: 180px;
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
  }
  .sound-info:hover .sound-info__popup{
    transform: translateX(-50%) translateY(0);
  }
  .sound-info__popup::before{ display: none; }
  .sound-info__popup::after{ display: none; }
}

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top{
  position:fixed;
  bottom:28px;
  right:28px;
  z-index:900;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--panel2);
  border:1px solid var(--stroke);
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity var(--t-fast) var(--ease-out),
             transform var(--t-fast) var(--ease-out),
             background var(--t-hover) var(--ease-out);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.back-to-top.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.back-to-top:hover{
  background:var(--accent2);
}
.back-to-top svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
[data-theme="light"] .back-to-top{
  background:rgba(0,0,0,.08);
  border-color:rgba(0,0,0,.14);
  color:rgba(0,0,0,.75);
}
[data-theme="light"] .back-to-top:hover{
  background:rgba(0,0,0,.14);
}
