@import url("fonts.css");

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --soft: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #f5a524;
  --tile: #0a0a0a;
  --gutter: 36px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000; }

/* ---------- tranziția între pagini (aceeași ca în Framer) ----------
   Pagina veche urcă 30%, se stinge la 0.1 și e ștearsă de jos în sus (0.55s);
   apoi pagina nouă e dezvăluită de jos în sus (0.55s, după ieșire). */
@view-transition { navigation: auto; }
@property --vt-wipe { syntax: "<number>"; initial-value: 0; inherits: false; }
@keyframes vt-exit {
  from { opacity: 1; transform: translate(0, 0); --vt-wipe: 0; }
  to { opacity: 0.1; transform: translate(0, -30%); --vt-wipe: 1; }
}
@keyframes vt-enter {
  from { opacity: 0; --vt-wipe: 0; }
  to { opacity: 1; --vt-wipe: 1; }
}
::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  backface-visibility: hidden;
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.96, -0.02, 0.38, 1.01);
  animation-fill-mode: both;
}
::view-transition-old(root) {
  animation-name: vt-exit;
  -webkit-mask-image: linear-gradient(360deg, transparent calc(-1% + 101% * var(--vt-wipe)), black calc(101% * var(--vt-wipe)));
  mask-image: linear-gradient(360deg, transparent calc(-1% + 101% * var(--vt-wipe)), black calc(101% * var(--vt-wipe)));
}
::view-transition-new(root) {
  animation-name: vt-enter;
  animation-delay: 0.55s;
  -webkit-mask-image: linear-gradient(360deg, black calc(-1% + 101% * var(--vt-wipe)), transparent calc(101% * var(--vt-wipe)));
  mask-image: linear-gradient(360deg, black calc(-1% + 101% * var(--vt-wipe)), transparent calc(101% * var(--vt-wipe)));
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

/* ---------- header + menu ---------- */
/* Valorile meniului sunt luate 1:1 din Framer (desktop: header 20/36, logo 100, panou 420). */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo { display: block; width: 100px; height: 47px; }
.logo svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.25)); }
.menu-btn { position: relative; width: 32px; height: 32px; }
.menu-btn::before { content: ""; position: absolute; inset: -8px; }
.menu-btn span {
  position: absolute;
  left: 0;
  width: 32px;
  height: 2px;
  background: #fff;
  transition: top 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu-btn span:first-child { top: 11px; }
.menu-btn span:last-child { top: 19px; }
.menu-open .menu-btn span:first-child { top: 15px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 15px; transform: rotate(-45deg); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #000;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.5s var(--ease-out);
}
.menu-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  width: 100%;
  max-width: 420px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease-out), visibility 0s 0.5s;
}
.menu-panel nav { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.menu-panel a {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  transition: opacity 0.25s cubic-bezier(0.44, 0, 0.56, 1);
}
@media (hover: hover) { .menu-panel a:hover { opacity: 0.45; } }
.menu-open .menu-backdrop { opacity: 0.9; pointer-events: auto; }
.menu-open .menu-panel { transform: none; visibility: visible; transition: transform 0.5s var(--ease-out), visibility 0s; }

.is-home { overflow: hidden; height: 100%; }

/* ---------- intro (home) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.intro svg { width: 92px; fill: #fff; opacity: 0; transform: translateY(24px); filter: blur(5px); animation: intro-in 0.9s var(--ease-out) 0.15s forwards; }
.intro.done { opacity: 0; visibility: hidden; }
@keyframes intro-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- home loop stack ---------- */
.stack {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stack .slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  visibility: hidden;
  will-change: transform;
}
.stack .slide.is-current { visibility: visible; z-index: 1; }
.stack .slide.is-next { visibility: visible; z-index: 2; }
.stack .slide video, .stack .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stack .slide[data-video] { cursor: pointer; }
.stack-hint {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  opacity: 0.85;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}
.stack-hint svg { animation: bob 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@media (hover: hover) { .stack-hint:hover svg { animation-play-state: paused; } }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.85; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- page hero ---------- */
.hero {
  position: relative;
  height: 436px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 36px;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.35) 100%);
}
.hero > :not(.hero-media) { position: relative; z-index: 1; }
.hero h1 { font-size: 56px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
/* Reel personal (valori din Framer): 60% din ecran, umbră 0.15→0.65, etichetă albă 75%. */
.hero--person { height: 60vh; min-height: 420px; padding-bottom: 40px; }
.hero--person::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%); }
.hero-copy .hero-eyebrow { margin: 0 0 12px; max-width: none; font-size: 12px; font-weight: 500; letter-spacing: 2px; line-height: 1.2; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.hero--tall { height: min(78vh, 760px); min-height: 520px; padding-bottom: 56px; }
.hero--tall::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.25) 100%); }
.hero--tall .hero-copy { max-width: 900px; }
.hero--tall h1 { font-weight: 600; line-height: 1.05; }
.hero-copy p { margin-top: 20px; max-width: 520px; font-size: 17px; line-height: 1.5; color: var(--soft); }

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- tile grid ---------- */
.grid { display: flex; flex-direction: column; }
/* --h = înălțimea rândului în % din lățimea gridului (fără bara de scroll), ca în Framer */
.row { display: flex; aspect-ratio: 100 / var(--h); }
.tile {
  position: relative;
  flex: var(--span) 1 0;
  overflow: hidden;
  background: var(--tile);
  color: #fff;
  text-align: left;
}
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile video { opacity: 0; transition: opacity 0.6s; }
.tile video.is-playing { opacity: 1; }
.tile[data-video] { cursor: pointer; }
.tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.16) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.tile-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.35), 0 1px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.tile-label b { font-weight: 600; }
.tile-label span { opacity: 0.78; }

/* ---------- content sections ---------- */
.section { padding: 0 var(--gutter); }
.about-intro { padding-top: 24px; padding-bottom: 96px; }
.about-intro p { max-width: 930px; font-size: 22px; line-height: 1.45; }
.stats { display: flex; gap: 72px; margin-top: 48px; }
.stats strong { display: block; font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

.services { padding-bottom: 120px; }
.services ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.services h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.05; }
.services p { max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.cta { padding-bottom: 140px; }
.cta h2 { font-size: 48px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.05; }
.pill {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
@media (hover: hover) { .pill:hover { background: var(--accent); color: #000; } }

.people { padding-top: 64px; padding-bottom: 120px; }
.people ul { list-style: none; margin: 0; padding: 0; }
.people li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
}
.people .who { flex: 1; min-width: 0; }
.people h3 { font-size: 40px; font-weight: 600; letter-spacing: -1px; line-height: 1.05; }
.people .role { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.people .mail { font-size: 13px; color: var(--muted); transition: color 0.2s; }
@media (hover: hover) { .people .mail:hover { color: #fff; } }
.people .pill { margin-top: 0; }

.say-hello { padding-bottom: 120px; }
.say-hello h2 { font-size: 40px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; }
.big-mail {
  display: inline-block;
  margin-top: 18px;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.contact-line { margin-top: 24px; font-size: 13px; color: var(--muted); }
.contact-line .sep { margin: 0 10px; }
.social { display: flex; gap: 18px; margin-top: 28px; }
.social a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--soft); transition: color 0.2s; }
@media (hover: hover) { .social a:hover { color: var(--accent); } }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter);
  font-size: 12px;
  color: var(--muted);
}
.site-footer .social { margin: 0; }

/* ---------- player (valori din modalul Framer) ---------- */
.player {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #000;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.player:focus { outline: none; }
.player[data-layout="desktop"] {
  background: rgba(0, 0, 0, 0.93);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}
.pl-inner { display: flex; flex-direction: column; flex-shrink: 0; }
.player[data-layout="portrait"] .pl-inner { position: relative; width: 100%; height: 100%; }
.player[data-layout="immersive"] .pl-inner { position: relative; width: 100%; height: 100%; }

.pl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: #fff;
  opacity: 0.9;
  -webkit-tap-highlight-color: transparent;
}
.pl-btn svg { display: block; }
.pl-info { opacity: 0.85; }
.pl-info[aria-pressed="true"] { opacity: 1; }

.pl-top { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 2px 0 0; flex-shrink: 0; }
.pl-back { width: auto; min-width: 0; gap: 6px; padding-right: 8px; }
.pl-back span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.pl-stage { display: flex; flex-direction: column; }
.pl-video { position: relative; max-width: 100%; background: #000; overflow: hidden; flex-shrink: 0; }
.pl-embed { position: absolute; inset: 0; pointer-events: none; }
.pl-mount, .pl-embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.pl-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.72);
  transition: background 0.3s ease;
}
.player.is-playing .pl-hit { background: transparent; }
.pl-big {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  transform: scale(1.3);
}
.pl-big:empty { border-color: transparent; }
.pl-big[hidden] { display: none; }

.pl-bottom { display: flex; align-items: center; gap: 10px; height: 52px; flex-shrink: 0; }
.pl-bar { flex: 1; min-width: 40px; height: 32px; display: flex; align-items: center; padding: 0 6px; cursor: pointer; }
.pl-track { position: relative; width: 100%; height: 1px; background: rgba(255, 255, 255, 0.28); }
.pl-fill { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: #fff; }
.pl-knob { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 999px; background: #fff; }
.pl-time { min-width: 40px; flex-shrink: 0; font-size: 11px; letter-spacing: 0.06em; text-align: right; opacity: 0.85; font-variant-numeric: tabular-nums; }
.pl-spacer { display: none; }

.pl-credits {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(360px, 45%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  user-select: text;
  -webkit-user-select: text;
}
.pl-credits[hidden] { display: none; }
.pl-credits-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.pl-credit { display: flex; flex-direction: column; gap: 4px; }
.pl-credit div:first-child { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.pl-credit div:last-child { font-size: 15px; font-weight: 500; line-height: 1.35; }

/* telefon vertical: bare deasupra/sub video, creditele sub bara de sus pe toată lățimea */
.player[data-layout="portrait"] .pl-top { padding: 0 10px 0 8px; }
.player[data-layout="portrait"] .pl-stage { flex: 1; min-height: 0; justify-content: center; }
.player[data-layout="portrait"] .pl-video { margin: 0 auto; }
.player[data-layout="portrait"] .pl-bottom { gap: 6px; padding: 0 10px; }
.player[data-layout="portrait"] .pl-spacer { display: block; height: 52px; flex-shrink: 0; }
.player[data-layout="portrait"] .pl-big { transform: scale(1.1); }
.player[data-layout="portrait"] .pl-credits { top: 52px; left: 0; width: 100%; z-index: 5; padding: 24px 20px 40px; background: rgba(0, 0, 0, 0.94); }

/* telefon orizontal / ecran scund: video pe tot ecranul, barele apar peste și se ascund singure */
.player[data-layout="immersive"] .pl-top,
.player[data-layout="immersive"] .pl-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 64px;
  transition: opacity 0.35s ease;
}
.player[data-layout="immersive"] .pl-top { top: 0; padding: 0 14px 0 10px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%); }
.player[data-layout="immersive"] .pl-bottom { bottom: 0; gap: 8px; padding: 0 16px 4px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%); }
.player[data-layout="immersive"] .pl-stage { position: absolute; inset: 0; align-items: center; justify-content: center; }
.player[data-layout="immersive"] .pl-credits { width: min(360px, 52%); padding: 70px 24px; }
.player.pl-hidden .pl-top, .player.pl-hidden .pl-bottom { opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .hero h1 { font-size: 46px; }
  .big-mail { font-size: 60px; letter-spacing: -2px; }
  .people h3 { font-size: 34px; }
}
@media (max-width: 809px) {
  :root { --gutter: 20px; }
  .logo { width: 80px; height: 37px; }
  .menu-panel { max-width: 440px; }
  .menu-panel a { font-size: 34px; }
  .hero { height: 300px; padding-bottom: 24px; }
  .hero--person { height: 60vh; min-height: 360px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
  .hero--tall { height: auto; min-height: 520px; padding-top: 120px; }
  .hero-copy p { font-size: 15px; }
  .row { flex-direction: column; aspect-ratio: auto; }
  .tile { flex: none; aspect-ratio: 4 / 3; }
  .tile[style*="--span:6"], .tile[style*="--span:4"] { aspect-ratio: 16 / 10; }
  .about-intro p { font-size: 18px; }
  .stats { gap: 40px; }
  .stats strong { font-size: 44px; letter-spacing: -1.5px; }
  .services li { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .services h3 { font-size: 22px; }
  .cta h2, .say-hello h2 { font-size: 30px; letter-spacing: -1px; }
  .people li { flex-wrap: wrap; padding: 22px 0; gap: 14px; }
  .people .who { flex-basis: 100%; }
  .people h3 { font-size: 28px; }
  .big-mail { font-size: 34px; letter-spacing: -1px; }
  .site-footer { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
