/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-alt: #11110f;
  --surface: #171714;
  --line: rgba(236, 230, 218, 0.1);
  --text: #ece6da;
  --muted: #8f897e;
  --accent: #c9a46a;          /* alamă caldă — singurul accent */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 15px/1.7 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
.eyebrow {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.2rem;
}
.lede { color: var(--muted); max-width: 46ch; margin: 1.2rem 0 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background .6s var(--ease), padding .6s var(--ease), border-color .6s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 10, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 12px;
  border-color: var(--line);
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: .02em; }
.logo-sub { font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav-links a {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .4s; position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--text); transition: transform .4s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--text); transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { border-color: rgba(236,230,218,.4); }
.btn-ghost:hover { border-color: var(--text); background: rgba(236,230,218,.06); }

/* ---------- Placeholders (se înlocuiesc cu fotografiile tale) ---------- */
.ph {
  position: relative; width: 100%; aspect-ratio: var(--ar, 3/2);
  background:
    radial-gradient(120% 90% at var(--gx, 30%) var(--gy, 20%), hsla(var(--h, 35), 18%, 26%, .9), transparent 60%),
    linear-gradient(160deg, hsl(var(--h, 35) 8% 14%), hsl(var(--h, 35) 6% 7%));
  overflow: hidden;
}
.ph::before {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(236,230,218,.38);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; pointer-events: none;
}
.ph img, .ph picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph picture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 2.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide .ph { height: 100%; aspect-ratio: auto; transform: scale(1.08); }
.hero-slide.is-active .ph { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08) translate(0,0); } to { transform: scale(1) translate(-1%, -1%); } }
.hero-slide .ph::before { left: auto; right: var(--gutter); bottom: auto; top: 100px; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,10,.55) 0%, rgba(11,11,10,0) 30%, rgba(11,11,10,.2) 55%, rgba(11,11,10,.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(90px, 14vh, 140px); max-width: 900px; }
.hero h1 { font-size: clamp(3rem, 10vw, 7.5rem); line-height: .95; }
.h1-sub {
  display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-top: 1.4rem;
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); /* vizibil pentru SEO/cititoare, nu vizual */
}
.hero-line { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(236,230,218,.82); max-width: 44ch; margin: 1.4rem 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(96px, 14vh, 146px); display: flex; gap: 10px; }
.hero-dots button { width: 28px; height: 20px; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(236,230,218,.3); transition: background .6s; }
.hero-dots button[aria-selected="true"]::after { background: var(--accent); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 1px; height: 48px; background: rgba(236,230,218,.15); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--text); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 14vw, 180px) var(--gutter); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 760px; }

/* ---------- Filters + masonry ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -24px 0 clamp(32px, 4vw, 56px); }
.filter {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding: 10px 0; position: relative; transition: color .4s;
}
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::after { transform: scaleX(1); }

.masonry { columns: 3 320px; column-gap: clamp(10px, 1.4vw, 20px); }
.tile {
  break-inside: avoid; margin: 0 0 clamp(10px, 1.4vw, 20px); position: relative; cursor: zoom-in;
  display: block; width: 100%; text-align: left;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.tile.is-hidden { display: none; }
.tile.is-entering { opacity: 0; transform: translateY(14px); }
.tile .ph { transition: filter 1s var(--ease); }
.tile .ph > * , .tile .ph { transform-origin: center; }
.tile:hover .ph, .tile:focus-visible .ph { filter: brightness(1.08); }
.tile .ph img { transition: transform 1.6s var(--ease); }
.tile:hover .ph img { transform: scale(1.03); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  opacity: 0; transition: opacity .6s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
.tile-cap strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.tile-cap span { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(236,230,218,.7); }
.tile:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* watermark discret */
body.wm .wm-mark { display: block; }
.hero .wm-mark, .serie-strip .wm-mark { display: none !important; }
.wm-mark {
  display: none; position: absolute; right: 14px; top: 12px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: .85rem; color: rgba(255,255,255,.22);
  pointer-events: none; user-select: none;
}
.protected img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- Series ---------- */
.series { display: grid; gap: clamp(64px, 9vw, 140px); }
.serie { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.serie:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.serie:nth-child(even) .serie-cover { order: 2; }
.serie-cover { cursor: zoom-in; display: block; width: 100%; overflow: hidden; }
.serie-cover .ph { transition: transform 2s var(--ease), filter 1s; }
.serie-cover:hover .ph { transform: scale(1.02); filter: brightness(1.08); }
.serie-meta { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.serie h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.serie p { color: var(--muted); max-width: 42ch; }
.serie-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 1.8rem 0; }
.serie-strip button { display: block; }
.serie-strip .ph::before { display: none; }
.serie-strip button:hover .ph { filter: brightness(1.15); }
.text-link { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: color .4s; }
.text-link:hover { color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-text h2 { margin-bottom: 2rem; }
.about-text p { color: rgba(236,230,218,.78); max-width: 52ch; }
.gear { margin: 2.6rem 0 0; border-top: 1px solid var(--line); }
.gear div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.gear dt { color: var(--muted); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding-top: 3px; }
.gear dd { margin: 0; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg-alt); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; transition: background .6s var(--ease); }
.card:hover { background: var(--surface); }
.card-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; margin-bottom: 2.4rem; }
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--muted); font-size: .9rem; margin: 0 0 1.4rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 2rem; font-size: .82rem; }
.card li { padding: 7px 0; border-top: 1px solid var(--line); }
.card-link { margin-top: auto; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); transition: color .4s, letter-spacing .6s var(--ease); }
.card-link:hover { color: var(--accent); letter-spacing: .26em; }

/* ---------- Prints ---------- */
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.print { display: flex; flex-direction: column; }
.print-frame { background: #e9e4da; padding: 9%; cursor: zoom-in; display: block; width: 100%; transition: transform 1s var(--ease); }
.print-frame:hover { transform: translateY(-4px); }
.print-frame .ph::before { color: rgba(236,230,218,.3); }
.print h3 { font-size: 1.3rem; margin: 1.2rem 0 .3rem; }
.print-info { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); }
.print-price { color: var(--text); }
.print .text-link { align-self: flex-start; margin-top: 1rem; }

/* ---------- Beyond ---------- */
.beyond { padding: 40px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.beyond p { margin: 0; color: var(--muted); font-size: .88rem; }
.beyond a { color: var(--text); border-bottom: 1px solid rgba(201,164,106,.5); transition: color .4s; }
.beyond a:hover { color: var(--accent); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); }
.contact-intro p { color: var(--muted); max-width: 40ch; margin: 1.6rem 0 2.4rem; }
.contact-links { list-style: none; padding: 0; margin: 0; }
.contact-links li { border-top: 1px solid var(--line); }
.contact-links li:last-child { border-bottom: 1px solid var(--line); }
.contact-links a { display: flex; justify-content: space-between; padding: 16px 0; font-family: var(--serif); font-size: 1.4rem; transition: color .4s, padding .6s var(--ease); }
.contact-links a::after { content: "→"; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.contact-links a:hover { color: var(--accent); padding-left: 8px; }
.form { display: grid; gap: 26px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--text); font: 300 1rem/1.5 var(--sans);
  border: 0; border-bottom: 1px solid rgba(236,230,218,.22); padding: 10px 0; border-radius: 0;
  transition: border-color .4s; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%238f897e'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { background: var(--bg); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #b4685a; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-size: .85rem; color: var(--accent); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom)); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.footer a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,6,5,.97);
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  opacity: 0; transition: opacity .6s var(--ease);
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 64px 0 24px; min-width: 0; }
.lb-media { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lb-media.is-swapping { opacity: 0; transform: scale(.985); }
.lb-media .ph { height: 100%; width: auto; max-width: 100%; max-height: 100%; }
.lb-media img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { display: flex; gap: 18px; align-items: baseline; justify-content: center; flex-wrap: wrap; padding-top: 18px; text-align: center; }
.lb-title { font-family: var(--serif); font-size: 1.3rem; }
.lb-loc, .lb-count { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lb-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; font-size: 2rem; font-weight: 200; color: var(--muted); transition: color .3s; z-index: 2; }
.lb-nav { height: 100%; font-size: 2.6rem; font-weight: 200; color: var(--muted); transition: color .3s; }
.lb-close:hover, .lb-nav:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive (mobil) ---------- */
@media (max-width: 900px) {
  .serie, .serie:nth-child(even) { grid-template-columns: 1fr; }
  .serie:nth-child(even) .serie-cover { order: 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; margin-right: -10px; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; background: var(--bg);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 0 var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a { font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0; text-transform: none; color: var(--text); }
  .nav-links a::after { display: none; }
  .masonry { columns: 2 150px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; }
  .tile-cap { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
  .lb-figure { padding: 56px 0 20px; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 40px; }
  .scroll-cue { display: none; }
  .serie-strip { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
@media (max-width: 420px) {
  .masonry { columns: 1; }
  .hero-actions .btn { flex: 1; padding: 0 14px; white-space: nowrap; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Pagina „în lucru” ---------- */
.wip {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; padding: 24px var(--gutter);
  transition: opacity 1s var(--ease), visibility 1s;
}
.wip.is-leaving { opacity: 0; visibility: hidden; }
.wip-inner { display: grid; justify-items: center; gap: 28px; text-align: center; max-width: 520px; }
.wip-logo { display: flex; flex-direction: column; align-items: center; margin: 0; line-height: 1; }
.wip-logo .logo-name { font-size: 1.6rem; }
.wip h2 { font-size: clamp(2.6rem, 9vw, 4.6rem); font-style: italic; }
.wip-text { margin: 0; color: var(--muted); max-width: 40ch; }
.wip-bar { width: 140px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.wip-bar span { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--accent); animation: wipbar 3.2s var(--ease) infinite; }
@keyframes wipbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.wip-links { display: flex; gap: 28px; margin: 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.wip-links a { border-bottom: 1px solid rgba(201,164,106,.5); padding-bottom: 4px; transition: color .4s; }
.wip-links a:hover { color: var(--accent); }
