/* Vlad Zaha: profil personal.
   Runda 2: mai uman și mai cald. Fundal luminos cald (nu alb pur), accentul e verdele-salvie
   din cămașa din portret. Literata pentru titluri (o literă de carte, caldă), Figtree pentru text.
   Runda 3: hero-ul și contactul sunt întunecate, într-un verde-negru cald (--dark); conținutul dintre ele rămâne luminos.
   Fără italic, fără text peste poze.
   Colțuri: butoanele sunt pastilă, pozele și cardurile au 14px. */

:root {
  --bg: #fcfbf8;
  --band: #f5f2ec;
  --surface: #ffffff;
  --ink: #26231f;
  --muted: #6b655d;
  --line: #e6e1d8;
  --accent: #3d6b52;
  --accent-deep: #2f5641;
  --accent-soft: #e7eee8;
  --shadow: 0 1px 2px rgb(60 50 35 / .05), 0 10px 30px rgb(60 50 35 / .06);

  /* Partea întunecată: hero, contact, subsol */
  --dark: #17211c;
  --dark-2: #1f2b25;
  --dark-3: #121a16;
  --on-dark: #f2efe8;
  --on-dark-muted: #b4bdb4;
  --on-dark-line: rgb(242 239 232 / .14);
  --accent-on-dark: #a9c9b3;

  --f-head: "Literata", Georgia, serif;
  --f-body: "Figtree", system-ui, sans-serif;

  --r: 14px;
  --gutter: 24px;
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0938rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em, i, cite { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Nav: numele în stânga (ascuns cât suntem sus, în hero), hamburger în dreapta */
.nav { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font: 600 1.25rem/1 var(--f-head); text-decoration: none; letter-spacing: -.005em; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.nav:not(.is-scrolled):not(.is-menu) .nav__brand,
.nav:not(.is-scrolled):not(.is-menu) .nav__toggle { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; }
.nav__toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 1.375rem; cursor: pointer; transition: border-color .2s, color .2s, opacity .3s, transform .3s var(--ease), visibility .3s; }
.nav__toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav.is-menu .nav__brand { color: var(--on-dark); }
.nav:not(.is-scrolled) .nav__toggle, .nav.is-menu .nav__toggle { color: var(--on-dark); border-color: var(--on-dark-line); }
.nav:not(.is-scrolled) .nav__toggle:hover, .nav.is-menu .nav__toggle:hover { border-color: var(--on-dark); }
.nav.is-menu { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Meniul pe tot ecranul */
.menu { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; background: var(--dark); color: var(--on-dark); opacity: 0; transition: opacity .35s var(--ease); overflow-y: auto; }
/* `display: flex` de mai sus ar anula atributul hidden; fără asta, stratul invizibil acoperă pagina și blochează click-urile. */
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
.menu.is-open { opacity: 1; }
.menu__nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.menu__nav a { font: 600 clamp(2.25rem, 6vw, 4rem)/1.2 var(--f-head); letter-spacing: -.02em; text-decoration: none; color: var(--on-dark); padding: 4px 12px; transition: color .2s; }
.menu__nav a:hover, .menu__nav a.is-active { color: var(--accent-on-dark); }
.menu__foot { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.menu__mail { color: var(--on-dark-muted); text-decoration: none; font-size: 1.0625rem; }
.menu__mail:hover { color: var(--on-dark); }
.menu__social { display: flex; gap: 10px; }
.menu__social a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--on-dark-line); border-radius: 999px; color: var(--accent-on-dark); font-size: 1.25rem; transition: border-color .2s; }
.menu__social a:hover { border-color: var(--accent-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .menu__nav a, .menu__foot { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; }
  .menu.is-open .menu__nav a, .menu.is-open .menu__foot { opacity: 1; transform: none; }
  .menu.is-open .menu__nav a:nth-child(2) { transition-delay: .04s; }
  .menu.is-open .menu__nav a:nth-child(3) { transition-delay: .08s; }
  .menu.is-open .menu__nav a:nth-child(4) { transition-delay: .12s; }
  .menu.is-open .menu__nav a:nth-child(5) { transition-delay: .16s; }
  .menu.is-open .menu__foot { transition-delay: .22s; }
}
html.no-scroll { overflow: hidden; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 600 1.0313rem/1 var(--f-body); text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

/* Tipografie comună */
.eyebrow { font-weight: 500; font-size: 1.0625rem; color: var(--accent); margin-bottom: 14px; }
.h2 { font: 600 clamp(2rem, 4vw, 2.875rem)/1.12 var(--f-head); letter-spacing: -.015em; margin-bottom: 36px; }
.h3 { font: 600 1.5rem/1.2 var(--f-head); margin: 80px 0 28px; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }

/* Secțiuni */
.sec { padding: 100px 0; }
.sec--band { background: var(--band); }
@media (max-width: 767px) { .sec { padding: 68px 0; } .h2 { margin-bottom: 28px; } .h3 { margin-top: 60px; } }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h) - 1px); /* meniul are și 1px de bordură */
  padding: calc(var(--nav-h) + 48px) 0 112px;
  min-height: min(100dvh, 880px);
  display: flex; align-items: center;
  background: var(--dark);
  color: var(--on-dark);
}
/* Hero: doar text, pe centru, pe aproape tot ecranul. */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(1000px, 160vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, #263529 0%, #1f2c24 55%, rgb(31 44 36 / 0) 100%);
}
.hero .hl { color: var(--accent-on-dark); }
.hero .btn--solid { background: var(--on-dark); color: var(--dark); }
.hero .btn--solid:hover { background: #ffffff; }
.hero .btn--line { background: transparent; border-color: var(--on-dark-line); color: var(--on-dark); }
.hero .btn--line:hover { border-color: var(--on-dark); color: var(--on-dark); }
.hero__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero__news { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 36px; padding: 8px 16px 8px 18px; border: 1px solid var(--on-dark-line); border-radius: 999px; background: rgb(242 239 232 / .04); color: var(--on-dark); font-size: .9688rem; font-weight: 500; line-height: 1.3; text-decoration: none; text-align: left; transition: border-color .2s, background-color .2s; }
.hero__news .i { flex: none; color: var(--accent-on-dark); transition: transform .2s var(--ease); }
.hero__news:hover { border-color: var(--accent-on-dark); background: rgb(242 239 232 / .07); }
.hero__news:hover .i { transform: translateX(3px); }

.hero__name { font: 600 clamp(3rem, 7.6vw, 6rem)/1 var(--f-head); letter-spacing: -.03em; margin-bottom: 14px; }
.hero__role { font-size: 1.0625rem; font-weight: 500; color: var(--accent-on-dark); margin-bottom: 22px; }
.hero__thesis { font: 500 clamp(1.375rem, 2.4vw, 1.875rem)/1.35 var(--f-head); letter-spacing: -.01em; max-width: 26ch; margin: 0 auto 34px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Semn de scroll în dreapta jos: un cerc mic cu o săgeată care coboară ușor, în buclă. */
.hero__scroll { position: absolute; right: var(--gutter); bottom: 28px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--on-dark-line); border-radius: 999px; color: var(--on-dark); font-size: 1.25rem; text-decoration: none; overflow: hidden; transition: border-color .2s, background-color .2s; }
.hero__scroll:hover { border-color: var(--on-dark); background: rgb(242 239 232 / .06); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__scroll { opacity: 0; animation: fade .8s var(--ease) 1.1s forwards; }
  .hero__scroll .i { animation: nudge 2.2s cubic-bezier(.45, 0, .25, 1) 1.6s infinite; }
}
@keyframes fade { to { opacity: 1; } }
@keyframes nudge {
  0%, 30% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(16px); opacity: 0; }
  56% { transform: translateY(-16px); opacity: 0; }
  85%, 100% { transform: translateY(0); opacity: 1; }
}
@media (min-width: 1024px) {
  .hero__scroll { right: max(32px, calc((100vw - 1160px) / 2 + 32px)); bottom: 36px; width: 54px; height: 54px; }
}

/* Desktop: hero-ul umple aproape tot ecranul. Mărimile urmăresc și lățimea, și înălțimea ecranului,
   ca să încapă și pe laptopuri scunde (1280x720). */
@media (min-width: 1024px) {
  .hero { min-height: 100dvh; padding: calc(var(--nav-h) + 16px) 0 72px; }
  .hero .wrap { max-width: 1480px; }
  .hero__name { white-space: nowrap; }
  .hero__news { font-size: min(1.3125rem, 2.5vh); padding: .6em 1.2em .6em 1.4em; gap: 12px; margin-bottom: min(60px, 6vh); }
  .hero__name { font-size: min(14vw, 23vh, 15rem); letter-spacing: -.04em; margin-bottom: min(24px, 2.6vh); }
  .hero__role { font-size: min(1.75rem, 3.1vh); margin-bottom: min(48px, 5vh); }
  .hero__thesis { font-size: min(4vw, 6.4vh, 4.25rem); line-height: 1.22; max-width: 24ch; margin-bottom: min(60px, 6.4vh); }
  .hero__cta { gap: 16px; }
  .hero__cta .btn { min-height: min(72px, 7.8vh); padding: 0 2.1em; font-size: min(1.3125rem, 2.4vh); }
  .hero::before { width: min(1400px, 110vw); }
}

@media (max-width: 700px) {
  /* Telefon: hero-ul are exact înălțimea ecranului vizibil (svh nu sare când apare bara browserului),
     cu conținutul la mijloc. Bara e ascunsă sus, deci spațiul de sus și cel de jos sunt egale. */
  .hero { min-height: 100vh; min-height: 100svh; padding-top: 40px; padding-bottom: 40px; }
  .hero__news { font-size: .9375rem; margin-bottom: 28px; }
  .hero__name { font-size: min(17vw, 5.25rem); margin-bottom: 12px; white-space: nowrap; }
  .hero__role { font-size: min(4.3vw, 1.125rem); margin-bottom: 22px; }
  .hero__thesis { font-size: min(7.4vw, 2.125rem); line-height: 1.28; margin-bottom: 30px; text-wrap: balance; }
  .hero__cta .btn { min-height: 54px; font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__in > * { opacity: 0; transform: translateY(10px); animation: rise .9s var(--ease) forwards; }
  .js .hero__in > :nth-child(2) { animation-delay: .06s; }
  .js .hero__in > :nth-child(3) { animation-delay: .12s; }
  .js .hero__in > :nth-child(4) { animation-delay: .18s; }
  .js .hero__in > :nth-child(5) { animation-delay: .24s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Despre */
.about { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.about__photo { position: sticky; top: calc(var(--nav-h) + 24px); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }
.about__text p:not(.lead) { color: var(--muted); max-width: 60ch; }
.quote { margin: 36px 0; padding: 26px 28px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.quote p { font: 500 1.375rem/1.4 var(--f-head); color: var(--ink) !important; margin-bottom: 10px; }
.quote cite { font-size: .9375rem; color: var(--muted); }
.now__h { font: 600 1.125rem/1.3 var(--f-head); margin-bottom: 12px; }
.now li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.now strong { color: var(--ink); font-weight: 600; margin-right: 8px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__photo { position: static; order: 2; max-width: 320px; }
  .about__photo img { aspect-ratio: 4 / 5; }
}

/* Proiecte */
.proj__years { font-size: .9375rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.proj__title { font: 600 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 var(--f-head); letter-spacing: -.01em; margin-bottom: 16px; }
.proj p { color: var(--muted); }
.proj__out { color: var(--ink) !important; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.proj__out strong { color: var(--accent); font-weight: 600; }

.proj--lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.proj__body { padding: 44px; }
.proj--lead .proj__title { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
.proj__more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.proj__more .link, .school .link { font-size: .9688rem; }
.pubs__a { text-decoration: none; }
.pubs__a strong { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.pubs__a .i { color: var(--accent); font-size: .875em; margin-left: 2px; }
.pubs__a:hover strong { color: var(--accent); text-decoration-color: var(--accent); }
.proj__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 12px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { color: var(--accent-deep); }
.proj__status { background: var(--accent-soft); padding: 44px 36px; }
.proj__status p { color: var(--ink); }
.proj__label { font-size: .9375rem; font-weight: 600; color: var(--accent) !important; margin-bottom: 4px; }
.proj__status p:not(.proj__label) { font: 500 1.1875rem/1.45 var(--f-head); margin-bottom: 28px; }
.proj__status p:last-child { margin-bottom: 0; }

.proj-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; margin-top: 24px; align-items: start; }
.proj-pair > .proj { border-radius: var(--r); }
.proj-pair > .proj:not(.proj--img) { padding: 40px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.proj--img { background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.proj--img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.proj__pad { padding: 32px 36px 36px; }

@media (max-width: 860px) {
  .proj--lead { grid-template-columns: 1fr; }
  .proj__body { padding: 30px 24px; }
  .proj__status { padding: 28px 24px; }
  .proj-pair { grid-template-columns: 1fr; }
  .proj-pair > .proj:not(.proj--img) { padding: 28px 24px; }
  .proj__pad { padding: 24px 24px 28px; }
}

.research { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
.research li { padding: 24px 0; border-top: 1px solid var(--line); }
.research h4 { font: 600 1.25rem/1.3 var(--f-head); margin-bottom: 8px; }
.research li > p:not(.proj__years) { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .research { grid-template-columns: 1fr; } }

/* Noutăți */
.news { max-width: 880px; }
.news li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.news li:last-child { border-bottom: 1px solid var(--line); }
.news time { font-size: .9375rem; font-weight: 500; color: var(--muted); padding-top: 3px; }
.news a { display: block; text-decoration: none; }
.news__kind { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.news strong { display: block; font: 600 1.25rem/1.35 var(--f-head); transition: color .2s; }
.news__src { display: block; font-size: .9375rem; color: var(--muted); margin-top: 4px; }
.news a:hover strong { color: var(--accent); }
.press-more { max-width: 66ch; margin-top: 32px; color: var(--muted); }
.press-more a { color: var(--ink); font-weight: 500; text-decoration-color: var(--line); text-underline-offset: 3px; }
.press-more a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; gap: 6px; } }

/* Studii */
.schools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; }
.school { padding: 32px 0 0; border-top: 2px solid var(--ink); }
.school h3 { font: 600 1.625rem/1.2 var(--f-head); margin-bottom: 4px; }
.school__deg { font-weight: 600; margin-bottom: 12px; }
.school p:not(.school__deg):not(.proj__years) { color: var(--muted); max-width: 48ch; margin-bottom: 0; }
@media (max-width: 760px) { .schools { grid-template-columns: 1fr; gap: 40px; } }

.more { margin-top: 48px; border-top: 1px solid var(--line); }
.more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; font-weight: 600; list-style: none; padding-top: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary .i { transition: transform .25s var(--ease); }
.more[open] summary .i { transform: rotate(180deg); }
.more summary:hover { color: var(--accent); }
.pubs { max-width: 880px; }
.pubs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1.5; }
.pubs__y { font-weight: 600; color: var(--ink); }
.pubs strong { display: block; color: var(--ink); font-weight: 600; }

/* Contact (întunecat) */
.contact { background: var(--dark); color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.contact .lead { color: var(--on-dark); }
.contact p:not(.lead) { color: var(--on-dark-muted); }
.contact a[href^="mailto"] { font-weight: 600; color: var(--accent-on-dark); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact a[href^="mailto"]:hover { color: var(--on-dark); }
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; background: var(--dark-2); border: 1px solid var(--on-dark-line); border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--on-dark); transition: border-color .2s, color .2s; }
.social li:last-child { grid-column: 1 / -1; }
.social .i { font-size: 1.25rem; color: var(--accent-on-dark); }
.social a:hover { border-color: var(--accent-on-dark); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 32px; } }

.foot { padding: 28px 0 36px; font-size: .9375rem; color: var(--on-dark-muted); background: var(--dark-3); }
.foot__in { display: flex; justify-content: space-between; gap: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); }

/* Apariție la scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Telefon: doar portretul din „Despre” e centrat; restul rămâne aliniat la stânga. */
@media (max-width: 700px) {
  .about__photo { justify-self: center; width: 100%; margin: 0 auto; }
}
