/* ==========================================================================
   Sebastian Hera — standalone site
   Breakpoints mirror the original WordPress build:
     1024px  tablet layout (Elementor)
      921px  mobile header + tablet type sizes (Astra)
      767px  mobile layout (Elementor)
      544px  mobile type sizes (Astra)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext for Romanian) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --gold: #e4cb86;
  --gold-soft: rgba(228, 203, 134, 0.16);
  --year: #f0b612;
  --text: #e2e2e2;
  --muted: #b5b5b5;
  --white: #ffffff;
  --black: #000000;
  --line: rgba(255, 255, 255, 0.1);
  /* Menu: graphite greys */
  --nav-top: rgba(44, 44, 44, 0.94);
  --nav-bottom: rgba(27, 27, 27, 0.94);
  --nav-solid: #1f1f1f;
  --nav-hover: #2b2b2b;
  --nav-line: rgba(255, 255, 255, 0.08);
  --nav-text: #d6d6d6;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --header-h: 84px;
  --font-body: 'Montserrat', sans-serif;
  --font-head: 'Cinzel', serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-color: #3a3a3a var(--black);
}
html.lb-lock { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* The header is fixed everywhere; on inner pages leave room for it (the home hero sits underneath). */
body:not(.is-home) { padding-top: var(--header-h); }

::selection { background: var(--gold); color: var(--black); }

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--white); text-decoration: none; transition: color 0.25s ease; }
a:hover, a:focus-visible { color: var(--gold); }

p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--white);
  text-transform: none;
}
h1 { font-size: 80px; line-height: 1.1em; }
h2 { font-size: 40px; line-height: 1.3em; }
h3 { font-size: 32px; line-height: 1.3em; }

strong { font-weight: 700; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 3000;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: var(--black); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

/* Generic content container: 10px gutter, 1200px max inner width */
.con { padding: 10px; }
.con-inner { max-width: 1200px; margin: 0 auto; }

/* Short gold rule under section headings */
.bio h2::after,
.section-title::after,
.work h2::after,
.products h2::after,
.page-intro h1::after,
.about h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--year));
}

/* ---------- Scroll reveal (only when JS is running, see main.js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Scroll progress + back to top (created by main.js) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--year));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(228, 203, 134, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s, background 0.25s, color 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--gold); color: var(--black); }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Social icons (header + footer) ---------- */
.social { display: flex; align-items: center; justify-content: center; gap: 24px; }
.social a { display: inline-flex; line-height: 1; transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.social svg { width: 18px; height: 18px; fill: var(--white); transition: fill 0.25s; }
.social a:hover svg, .social a:focus-visible svg { fill: var(--gold); }
.header-social svg { fill: var(--nav-text); }
.header-social a:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  view-transition-name: site-header;
}

.header-bar {
  background: linear-gradient(180deg, var(--nav-top), var(--nav-bottom));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--nav-line), 0 12px 30px -14px rgba(0, 0, 0, 0.7);
}

.header-inner {
  max-width: 1240px;
  min-height: 84px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: min-height 0.4s var(--ease);
}
.is-scrolled .header-inner { min-height: 68px; }

.logo { justify-self: start; display: flex; transition: opacity 0.25s; }
.logo:hover { opacity: 0.85; }
.logo img { display: block; width: 181px; height: auto; transition: width 0.4s var(--ease); }
.is-scrolled .logo img { width: 150px; }

.main-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  --pad: 20px;
  position: relative;
  display: block;
  padding: 0 var(--pad);
  font-size: 13px;
  font-weight: 600;
  line-height: 2em;
  letter-spacing: 0.04em;
  color: var(--nav-text);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-social { justify-self: end; }

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

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--black);
  padding: 20px 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(228, 203, 134, 0.45), transparent);
}
.footer-inner {
  max-width: 1200px;
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-social { gap: 12px; padding: 14px 0 2px; margin-bottom: 10px; }
.footer-social a, .contact-social a {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}
.footer-social svg, .contact-social svg { width: 16px; height: 16px; }
.footer-social a:hover, .footer-social a:focus-visible,
.contact-social a:hover, .contact-social a:focus-visible {
  transform: translateY(-3px);
  background: var(--gold);
  border-color: var(--gold);
}
.footer-social a:hover svg, .footer-social a:focus-visible svg,
.contact-social a:hover svg, .contact-social a:focus-visible svg { fill: var(--black); }
/* Company data, contact and legal links (required on every page) */
.footer-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 48px;
  width: 100%;
  margin: 16px 0 0;
  padding: 28px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.footer-title {
  margin: 0 0 8px;
  font: 600 11px/1.5 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-info p { margin: 0; }
.footer-info strong { font-weight: 600; color: var(--text); }
.footer-info a { color: var(--text); }
.footer-info a:hover, .footer-info a:focus-visible { color: var(--gold); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 3px 0; }
/* Consumer protection: withdrawal function, ANPC SAL pictogram, ANPC link */
.footer-consumer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
  width: 100%;
  margin: 26px 0 16px;
  padding: 22px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sal-link { display: block; line-height: 0; border-radius: 8px; }
.sal-link img { display: block; width: 250px; max-width: none; height: 50px; }
.anpc-link { font-size: 13px; font-weight: 600; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin: 0 0 10px; font-size: 14px; text-align: center; color: var(--text); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  background: var(--black);
}
/* Photo layer: slow zoom-out on load, parallax translate on scroll (main.js) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--black) url(../img/hero-1706.jpg) no-repeat 0 -436px / cover;
  animation: hero-in 2.6s var(--ease) both;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(16, 16, 16, 0) 22%, rgba(16, 16, 16, 0) 50%, var(--black) 100%);
}
.hero-inner { position: relative; width: 100%; max-width: 1200px; padding: 0 0 92px; }
.hero h1 { text-align: center; animation: rise 1.2s var(--ease) 0.25s both; }
.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise 1.2s var(--ease) 0.55s both;
}
.hero-tagline::before,
.hero-tagline::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  animation: fade-in 1s ease 1.2s both;
  transition: border-color 0.25s;
}
.scroll-cue:hover { border-color: var(--gold); }
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.9s ease-in-out infinite;
}

@keyframes hero-in { from { opacity: 0; scale: 1.12; } 35% { opacity: 1; } to { opacity: 1; scale: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

.bio { padding: 144px 40px 110px; }
.bio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 20px;
}

.bio-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 20px;
  padding: 10px;
}
.bio-photos img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.bio-photos img:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -28px rgba(228, 203, 134, 0.28);
}

.bio-text { text-align: justify; }

.bio-mission {
  align-self: center;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}
.bio-mission h2 { align-self: start; text-align: center; }
.bio-mission .bio-text { align-self: center; margin-top: -70px; color: var(--white); }


.bio-collage { align-self: center; overflow: hidden; border-radius: var(--radius); }
.bio-collage img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.bio-collage:hover img { transform: scale(1.04); }

/* Stagger the two blocks of each row slightly */
.js .bio-mission.reveal, .js .bio-collage.reveal { transition-delay: 0.12s; }

/* ==========================================================================
   Seminarii si work-shop-uri
   ========================================================================== */
/* Alternating timeline on a centre line; the gold fill follows the scroll (main.js sets --p). */
.timeline {
  --p: 0;
  position: relative;
  max-width: 980px;
  margin: 40px auto 60px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--line);
}
.timeline::after {
  background: linear-gradient(180deg, var(--gold), var(--year));
  transform: scaleY(var(--p));
  transform-origin: top;
}
.tl-item {
  position: relative;
  width: 50%;
  margin-left: 50%;
  padding: 0 0 0 52px;
}
.tl-item:nth-child(even) { margin-left: 0; padding: 0 52px 0 0; text-align: right; }
.tl-item::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 13px;
  left: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--black);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.tl-item:nth-child(even)::before { left: auto; right: -8px; }
.tl-item.is-active::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-soft), 0 0 22px rgba(228, 203, 134, 0.55);
}
.tl-item h3 { margin-bottom: 12px; line-height: 1.3; color: var(--year); }
.tl-text {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.tl-item:hover .tl-text {
  border-color: rgba(228, 203, 134, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(228, 203, 134, 0.25);
}
.tl-text p:last-child { margin-bottom: 0; }
.tl-text strong { font-weight: 600; letter-spacing: 0.02em; color: var(--white); }
.tl-text em { color: var(--muted); }
.js .tl-item.reveal { transform: translate3d(32px, 0, 0); }
.js .tl-item.reveal:nth-child(even) { transform: translate3d(-32px, 0, 0); }
.js .tl-item.reveal.is-visible { transform: none; }

.section-title { padding-top: 40px; text-align: center; }

/* Carousel */
.carousel { --per-view: 2; }
.carousel-stage { position: relative; }
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.7s var(--ease);
}
.carousel-track.no-anim { transition: none; }
.carousel-slide { flex: 0 0 calc(100% / var(--per-view)); margin: 0; padding: 0 6px; }
.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.4s;
}
.carousel-slide img:hover { filter: brightness(1.08); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
.carousel-arrow:active { transform: scale(0.94); }
.carousel-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 26px;
  margin: 12px 0 4px;
}
.carousel-dots button {
  height: 26px;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dots button::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--white);
  opacity: 0.3;
  transition: width 0.45s var(--ease), opacity 0.3s, background 0.3s;
}
.carousel-dots button:hover::before { opacity: 0.6; }
.carousel-dots button[aria-current="true"]::before { width: 26px; opacity: 1; background: var(--gold); }

/* ==========================================================================
   Galerie foto
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 20px;
  padding: 10px;
}
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.4s;
}
/* Round "+" badge in the corner */
.gallery a::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery a:hover::before, .gallery a:focus-visible::before { opacity: 1; transform: none; }

/* ==========================================================================
   Lightbox (built by main.js)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  touch-action: pan-y pinch-zoom;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 90px;
}
.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 150px);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.is-loaded { opacity: 1; transform: none; }
.lightbox-caption {
  max-width: 700px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}
.lightbox-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text);
}
.lightbox-counter b { font-weight: 600; color: var(--gold); }
.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
.lightbox-btn:active { transform: scale(0.94); }
.lightbox-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 22px; top: 50%; margin-top: -26px; }
.lightbox-next { right: 22px; top: 50%; margin-top: -26px; }
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next,
.lightbox.is-single .lightbox-counter { display: none; }

/* ==========================================================================
   404
   ========================================================================== */
.not-found { padding: 120px 20px; text-align: center; }
.not-found h1 {
  font-size: 160px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  background: linear-gradient(180deg, var(--gold), rgba(228, 203, 134, 0));
  -webkit-background-clip: text;
  background-clip: text;
}
.not-found p { margin-top: 24px; }

/* ==========================================================================
   Tablet layout (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Phones and tablets: the hero fills the screen (svh ignores collapsing browser bars) and keeps the face in view. */
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-media { background-image: url(../img/hero-1280.jpg); background-position: 50% 30%; }
  .hero-inner { max-width: none; padding: 10px 16px 92px; }

  .bio { padding: 80px 40px; }
  .bio-photos { display: flex; align-items: center; }
  .bio-photos img {
    width: 40vw;
    max-width: 40vw;
    height: auto;
    object-fit: scale-down;
  }
  .bio-photos img + img { display: none; }

  .lightbox-figure { padding: 0 20px; }
  .lightbox-img { max-width: calc(100vw - 40px); max-height: calc(100vh - 190px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 22px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

/* ==========================================================================
   Mobile header + tablet type (≤921px)
   ========================================================================== */
@media (max-width: 921px) {
  :root { --header-h: 70px; }
  body { font-size: 15px; }
  h1 { font-size: 64px; }
  h2 { font-size: 36px; }
  h3 { font-size: 30px; }

  .header-bar { padding: 0 20px; }
  .site-header.menu-open .header-bar { background: var(--nav-solid); }
  .header-inner {
    display: flex;
    justify-content: space-between;
    max-width: none;
    min-height: 70px;
    padding: 0;
  }
  .is-scrolled .header-inner { min-height: 60px; }
  .main-nav, .header-social { display: none; }
  .logo img { width: 147px; }
  .is-scrolled .logo img { width: 124px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--gold);
    color: var(--black);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
  }
  .menu-toggle:active { transform: scale(0.92); }
  .menu-toggle svg { width: 16px; height: 16px; fill: currentColor; }
  .menu-toggle .icon-close { display: none; }
  .menu-open .menu-toggle .icon-menu { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; animation: spin-in 0.35s var(--ease); }
  .menu-toggle.was-toggled .icon-menu { animation: spin-in 0.35s var(--ease); }

  /* Dropdown slides open; links fade in one after another */
  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--nav-solid);
    transition: max-height 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .menu-open .mobile-menu {
    max-height: 70vh;
    visibility: visible;
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8);
    transition: max-height 0.45s var(--ease), visibility 0s;
  }
  .mobile-menu ul { margin: 0; padding: 4px 0 10px; list-style: none; }
  .mobile-menu li {
    border-top: 1px solid var(--nav-line);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.4s var(--ease);
  }
  .menu-open .mobile-menu li { opacity: 1; transform: none; }
  .menu-open .mobile-menu li:nth-child(2) { transition-delay: 0.06s; }
  .menu-open .mobile-menu li:nth-child(3) { transition-delay: 0.12s; }
  .menu-open .mobile-menu li:nth-child(4) { transition-delay: 0.18s; }
  .menu-open .mobile-menu li:nth-child(5) { transition-delay: 0.24s; }
  .mobile-menu a {
    display: block;
    padding: 0 20px;
    font-size: 15px;
    line-height: 45px;
    color: var(--nav-text);
    transition: color 0.25s, padding 0.3s var(--ease), background 0.25s;
  }
  .mobile-menu a:hover, .mobile-menu a:focus-visible, .mobile-menu a[aria-current="page"] { color: var(--gold); }
  .mobile-menu a:hover, .mobile-menu a:focus-visible { padding-left: 26px; background: var(--nav-hover); }
  .mobile-menu a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--gold); }

  .footer-social { padding: 8px 0 3px; }
  .copyright { margin-bottom: 15px; }
}

@keyframes spin-in { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Mobile layout (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
  .hero-inner { padding: 0 16px 78px; }
  .hero-tagline { gap: 10px; font-size: 11px; letter-spacing: 0.24em; }
  .hero-tagline::before, .hero-tagline::after { width: 24px; }
  .scroll-cue { bottom: 18px; }

  .bio { padding: 64px 24px 40px; }
  .bio-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; }
  .bio-photos { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
  .bio-photos img, .bio-photos img + img { display: block; width: 100%; max-width: 100%; height: auto; }
  .bio-mission { display: block; }
  .bio-mission { margin-top: 54px; }
  .bio-mission .bio-text { margin-top: 20px; }
  .bio-collage { margin-top: 20px; }

  /* Timeline: line moves to the left, every entry on the right of it */
  .timeline { margin: 20px 0 40px; gap: 24px; }
  .timeline::before, .timeline::after { left: 8px; }
  .tl-item, .tl-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 0 40px; text-align: left; }
  .tl-item::before, .tl-item:nth-child(even)::before { top: 9px; left: 0; right: auto; }
  .tl-text { padding: 16px 18px; }
  .js .tl-item.reveal, .js .tl-item.reveal:nth-child(even) { transform: translate3d(0, 24px, 0); }
  .js .tl-item.reveal.is-visible { transform: none; }

  .section-title { padding-top: 24px; }

  .carousel { --per-view: 1; }
  .carousel-slide { padding: 0 4px; }
  .carousel-arrow { width: 42px; height: 42px; margin-top: -21px; }
  .carousel-arrow.prev { left: 12px; }
  .carousel-arrow.next { right: 12px; }

  .gallery { grid-template-columns: 1fr; }
  .gallery a::before { opacity: 0.9; transform: scale(0.8); right: 12px; bottom: 12px; }

  .not-found h1 { font-size: 110px; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ==========================================================================
   Mobile type (≤544px)
   ========================================================================== */
@media (max-width: 544px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  /* The name stays on one line down to 320px screens */
  .hero h1 { font-size: min(48px, 11vw); }
  .site-footer { padding: 10px 10px 70px; }
}
@media (max-width: 400px) {
  .hero-tagline { gap: 8px; letter-spacing: 0.14em; }
  .hero-tagline::before, .hero-tagline::after { width: 16px; }
}
/* Phones held sideways: smaller name, no scroll cue, so the face stays visible */
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .hero h1 { font-size: 44px; }
  .hero-inner { padding-bottom: 28px; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Shared pieces: eyebrow, lead text, buttons, inner-page intro
   ========================================================================== */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead { font-size: 17px; line-height: 1.75; color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; transition: transform 0.3s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--black); box-shadow: 0 12px 30px -12px rgba(228, 203, 134, 0.55); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--gold); color: var(--black); }
.btn--solid:hover, .btn--solid:focus-visible { background: #f2dfa8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 11px; }

.page-intro { max-width: 860px; margin: 0 auto; padding: 84px 24px 44px; text-align: center; }
.page-intro h1 { font-size: 64px; line-height: 1.15; }
.page-intro .lead { max-width: 720px; margin: 24px auto 0; }
.page-intro .btn-row { justify-content: center; }
.page-intro > * { animation: rise 1s var(--ease) both; }
.page-intro > :nth-child(2) { animation-delay: 0.1s; }
.page-intro > :nth-child(3) { animation-delay: 0.2s; }
.page-intro > :nth-child(4) { animation-delay: 0.3s; }

/* Round "+" badge on clickable photos */
.marquee-item::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.marquee-item:hover::before, .marquee-item:focus-visible::before { opacity: 1; transform: none; }

/* ==========================================================================
   Home: Selected Work (slow, draggable marquee; photos open in the lightbox)
   ========================================================================== */
.work { padding: 40px 0 120px; overflow: hidden; }
.work-head { max-width: 760px; margin: 0 auto; padding: 0 24px 46px; text-align: center; }
.work-head .lead { margin: 24px 0 0; }
.marquee {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-js { overflow: hidden; touch-action: pan-y; cursor: grab; }
.marquee.is-dragging { cursor: grabbing; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 7vw;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--black), rgba(0, 0, 0, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--black), rgba(0, 0, 0, 0)); }
.marquee-track { display: flex; width: max-content; }
.marquee.is-js .marquee-track { will-change: transform; }
.marquee-item {
  position: relative;
  flex: none;
  display: block;
  width: 330px;
  aspect-ratio: 3 / 4;
  margin-right: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  cursor: zoom-in;
}
.marquee.is-dragging .marquee-item { cursor: grabbing; }
.marquee-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 1s var(--ease), filter 0.5s;
}
.marquee-item:hover img { transform: scale(1.05); filter: brightness(1.06); }
.work-cta { margin: 46px 0 0; text-align: center; }

/* ==========================================================================
   Gallery variants: uniform 3:4 grid (Portofoliu) and masonry (Despre mine)
   ========================================================================== */
.gallery--grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery--grid img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery--masonry { display: block; columns: 3; column-gap: 20px; }
.gallery--masonry a { margin-bottom: 20px; break-inside: avoid; }

/* ==========================================================================
   Portofoliu: Ce folosesc pentru tine + brand bar
   ========================================================================== */
.products { padding: 110px 40px 120px; }
.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 60px;
}
.products-text h2 { margin-bottom: 30px; text-align: center; }
.brand-bar {
  position: relative;
  max-width: 1200px;
  margin: 90px auto 0;
  padding: 38px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-bar ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-bar li { display: flex; align-items: center; justify-content: center; width: 140px; height: 64px; }
.brand-bar img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  opacity: 0.6;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.brand-bar li:hover img { opacity: 1; transform: scale(1.06); }

/* ==========================================================================
   Despre mine
   ========================================================================== */
.about { padding: 70px 40px 60px; }
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: 80px;
}
.about-portrait { position: relative; isolation: isolate; margin: 0; }
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  z-index: -1;
  border: 1px solid rgba(228, 203, 134, 0.45);
  border-radius: var(--radius);
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.about-text h1 { font-size: 64px; line-height: 1.15; }
.about h1::after { margin: 16px 0 0; }
.about-lead { margin: 30px 0 22px; font-family: var(--font-head); font-size: 24px; line-height: 1.5; color: var(--white); }
.about-text p:not(.eyebrow):not(.about-lead):not(.btn-row) { text-align: justify; }

/* ==========================================================================
   Educație: links from timeline entries to their photos
   ========================================================================== */
.tl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-link::after { content: "\2193"; transition: transform 0.3s var(--ease); }
.tl-link:hover::after, .tl-link:focus-visible::after { transform: translateY(3px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
  gap: 40px;
  padding: 20px 10px 110px;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.contact-card:hover { border-color: rgba(228, 203, 134, 0.4); }
.contact-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-soft);
}
.contact-icon svg { width: 20px; height: 20px; fill: var(--gold); }
.contact-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.contact-label { font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 17px; font-weight: 600; color: var(--white); overflow-wrap: break-word; }
.contact-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.contact-copy svg { width: 14px; height: 14px; fill: currentColor; }
.contact-copy:hover, .contact-copy:focus-visible, .contact-copy.is-copied { border-color: var(--gold); color: var(--gold); }
.contact-social { justify-content: flex-start; gap: 12px; padding: 8px 4px; }

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.contact-form h2 { font-size: 30px; }
.form-note { margin: 10px 0 26px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font: 400 16px/1.5 var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e4cb86'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.field select option { background: #1c1c1c; color: var(--white); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.contact-form .btn { width: 100%; margin-top: 8px; }
.form-legal { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.form-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-legal a:hover, .form-legal a:focus-visible { color: var(--gold); }

/* ==========================================================================
   Home: pause button for the moving Selected Work strip (created by main.js)
   ========================================================================== */
.marquee-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 20px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.marquee-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.marquee-toggle:hover, .marquee-toggle:focus-visible { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Legal pages: termeni, confidențialitate, cookie-uri, accesibilitate, retragere
   ========================================================================== */
.legal { padding: 0 24px 110px; }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { margin: 48px 0 14px; font-size: 28px; line-height: 1.3; }
.legal-body h3 {
  margin: 26px 0 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.legal-body ul, .legal-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.legal-body li { margin-bottom: 0.45em; }
.legal-body li::marker { color: var(--gold); }
.legal-body a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:not(.btn):hover, .legal-body a:not(.btn):focus-visible { color: var(--white); }
.legal-body strong { font-weight: 600; color: var(--white); }
.legal-meta { font-size: 13px; color: var(--muted); }
.legal-card {
  margin: 0 0 1.2em;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.legal-card > :last-child { margin-bottom: 0; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.legal-dl dt { font-weight: 600; color: var(--white); }
.legal-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

/* Withdrawal function */
.withdraw-form { max-width: 640px; margin: 36px auto 0; }
.legal-body .withdraw-form h2 { margin-top: 0; }
.field-hint { display: block; margin: -2px 0 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.field .optional { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #ff9b8a; }
.form-status:empty { margin: 0; } /* stays rendered so screen readers announce the message */
/* Honeypot against spam bots: off-screen, skipped by keyboard and screen readers */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.withdraw-result { max-width: 640px; margin: 36px auto 0; }
.legal-body .withdraw-result h2 { margin-top: 0; }
.withdraw-result:focus { outline: none; }

@media print {
  .site-header, .site-footer, .to-top, .scroll-progress, .skip-link, .no-print { display: none !important; }
  body:not(.is-home) { padding: 0; background: #fff; }
  .page-intro *, .legal-body * { color: #000 !important; }
  .legal-card { border-color: #999; background: none; }
}

/* ---------- Responsive for the sections above ---------- */
@media (max-width: 1100px) {
  .main-nav a { --pad: 12px; }
  .header-social { gap: 16px; }
}
@media (max-width: 1024px) {
  .gallery--grid { grid-template-columns: repeat(3, 1fr); }
  .gallery--masonry { columns: 2; }
  .products-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 60px; }
  .about-portrait { max-width: 520px; width: calc(100% - 26px); margin: 0 auto; }
  /* Wrap onto several rows, last row centred */
  .brand-bar ul { flex-wrap: wrap; justify-content: center; gap: 34px 40px; }
  .brand-bar li { width: 150px; }
  .marquee-item { width: 285px; }
}
@media (max-width: 921px) {
  .page-intro h1, .about-text h1 { font-size: 52px; }
}
@media (max-width: 767px) {
  .page-intro { padding: 56px 20px 30px; }
  .lead { font-size: 16px; }
  .work { padding: 20px 0 80px; }
  .work-head { padding-bottom: 32px; }
  .marquee-item { width: 225px; margin-right: 12px; }
  .marquee::before, .marquee::after { width: 24px; }
  .gallery--grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery--masonry { columns: 2; column-gap: 10px; }
  .gallery--masonry a { margin-bottom: 10px; }
  .gallery--grid a::before, .gallery--masonry a::before { display: none; }
  .products { padding: 64px 24px 80px; }
  .products-grid { gap: 36px; }
  .brand-bar { margin-top: 60px; padding: 30px 0; }
  .brand-bar ul { gap: 30px 36px; }
  .brand-bar li { width: 130px; height: 54px; }
  .about { padding: 40px 24px 30px; }
  .about-lead { font-size: 20px; }
  .contact-grid { padding: 10px 10px 80px; }
  .contact-card { padding: 18px; }
  .contact-value { font-size: 14px; }
  .contact-copy-text { display: none; }
  .contact-copy { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .contact-card { gap: 12px; }
  .contact-icon { width: 38px; height: 38px; }
  .contact-form { padding: 24px 20px; }
  /* Justified text leaves wide gaps between words on narrow screens */
  .bio-text, .about-text p:not(.eyebrow):not(.about-lead):not(.btn-row) { text-align: left; }
  .footer-info { grid-template-columns: 1fr; gap: 22px; padding: 24px 12px 0; text-align: center; }
  .legal { padding: 0 20px 80px; }
  .legal-body h2 { margin-top: 38px; font-size: 24px; }
  .legal-card { padding: 18px; }
  .legal-dl { grid-template-columns: 1fr; gap: 0; }
  .legal-dl dd { margin-bottom: 8px; }
}
@media (max-width: 544px) {
  /* Scales down so long single words ("Confidențialitate") fit 320px screens */
  .page-intro h1, .about-text h1 { font-size: clamp(27px, 8.4vw, 40px); overflow-wrap: break-word; }
}
@media (min-width: 768px) {
  /* Compact timeline: each year starts before the previous card on the other side ends */
  .tl-item + .tl-item { margin-top: -72px; }
}

/* Page-to-page cross-fade in browsers that support it (no JS needed) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .tl-item.reveal, .js .tl-item.reveal:nth-child(even) { opacity: 1; transform: none; }
}
