/* Sevitch — portofoliu v2. Un singur accent (--accent), restul alb/negru/gri. */
/* Inter Tight găzduit pe site (OFL 1.1), fără cereri către Google */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-tight-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: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-tight-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; }

:root {
  --bg: #000;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --soft: #bdbdbd;
  --line: rgba(255, 255, 255, .12);
  --accent: #ff4d2e;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); min-height: 100svh; -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body[data-menu-open] { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: var(--gutter); top: 8px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--fg); color: #000; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- butoane ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--fg); color: #000; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out);
}
.cta svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.cta:active { transform: scale(0.97); }
.ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; color: var(--muted); font-size: 15px; transition: color 150ms ease-out; }
@media (hover: hover) and (pointer: fine) {
  .cta:hover svg { transform: translate(2px, -2px); }
  .ghost:hover { color: var(--fg); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 240ms ease-out;
}
.site-header[data-scrolled]::before { opacity: 1; }
body[data-menu-open] .site-header::before { opacity: 0; }

.brand { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand i, h1 i, h2 i { color: var(--accent); }

.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--muted); transition: color 150ms ease-out; }
.nav a[aria-current] { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--fg); } }

.header-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.meta { font-size: 11px; line-height: 1.5; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.meta b { color: var(--fg); font-weight: 500; }
.lang { display: flex; font-size: 12px; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); transition: color 150ms ease-out; }
.lang a[aria-current] { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .lang a:hover { color: var(--fg); } }

.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px;
  border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; cursor: pointer;
  user-select: none; -webkit-user-select: none;
}
.menu-btn-icon { position: relative; width: 18px; height: 10px; }
.menu-btn-icon span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 260ms var(--ease-out); }
.menu-btn-icon span:first-child { top: 0; }
.menu-btn-icon span:last-child { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-icon span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* intrarea header-ului */
.site-header > * { opacity: 0; transform: translateY(-6px); animation: fadeIn 600ms var(--ease-out) forwards; }
.site-header > .brand { animation-delay: 550ms; }
.site-header > .nav { animation-delay: 650ms; }
.site-header > .header-right { animation-delay: 750ms; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav, .header-right .meta { display: none; }
  .header-right { gap: 4px; }
  .menu-btn { display: inline-flex; }
}

/* ---------- meniul de pe telefon ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity 200ms ease-out;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu[data-open] { opacity: 1; transition-duration: 260ms; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0;
  font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  transform: translateY(105%); transition: transform 200ms ease-out;
}
.mobile-menu li a span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.mobile-menu[data-open] li a { transform: none; transition: transform 600ms var(--ease-out); transition-delay: calc(var(--i) * 50ms + 60ms); }
.mobile-menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 32px; opacity: 0; transform: translateY(8px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
.mobile-menu-foot .meta { text-align: left; }
.mobile-menu[data-open] .mobile-menu-foot { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 280ms, transform 500ms var(--ease-out) 280ms; }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-portrait { position: absolute; left: 50%; top: 0; z-index: 0; width: min(760px, 120vw); height: 100%; translate: -50% 0; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, #000 92%); }
.hero-content { position: relative; z-index: 2; align-self: end; width: 100%; max-width: 1240px; padding: calc(var(--header-h) + 32px) var(--gutter) max(clamp(48px, 9svh, 88px), env(safe-area-inset-bottom)); text-align: center; }
h1 { font-weight: 600; font-size: clamp(52px, min(13.5vw, 19svh), 196px); line-height: .9; letter-spacing: -0.045em; }
.hero-sub { margin: 28px auto 0; max-width: 34ch; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; color: var(--soft); text-wrap: balance; }
.hero-sub b { color: var(--fg); font-weight: 500; }
.hero-actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- secțiuni ---------- */
.section { scroll-margin-top: var(--header-h); padding: clamp(72px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--line); max-width: 1440px; margin: 0 auto; }
.eyebrow { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
h2 { font-weight: 600; font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -0.045em; }

/* ---------- Lucrări ---------- */
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 34ch); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-lead { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: var(--soft); text-wrap: pretty; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

.works .section-head, .works-grid { max-width: 1080px; margin-inline: auto; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(16px, 2.4vw, 32px); }
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; } }

.work-media {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: #111; cursor: pointer; color: var(--fg);
  transition: transform 160ms var(--ease-out);
}
.work-media:active { transform: scale(0.985); }
.work-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-out); }
.work-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.work-play {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 200ms var(--ease-out), background-color 200ms ease-out;
}
.work-play svg { width: 14px; height: 14px; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) {
  .work-media:hover video { transform: scale(1.03); }
  .work-media:hover .work-play { background: var(--accent); transform: scale(1.08); }
}

.work-info { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding-top: 16px; }
.work-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.work h3 { font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.work-title { margin-top: 2px; font-size: clamp(14px, 1.2vw, 16px); color: var(--soft); line-height: 1.35; }
.work-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.2; color: var(--soft); }
.work-tags li:first-child { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--fg); }
@media (max-width: 520px) {
  .work-info { grid-template-columns: 1fr; gap: 4px; padding-top: 12px; }
  .work-tags li { font-size: 11px; padding: 4px 8px; }
  .work-play { width: 34px; height: 34px; right: 8px; bottom: 8px; }
  .work-media { border-radius: 10px; }
}

/* ---------- Showreel ---------- */
.reel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(360px, calc((100svh - 140px) * 9 / 16))); gap: 40px clamp(40px, 6vw, 96px); align-items: center; max-width: 1080px; padding-inline: var(--gutter); margin-inline: auto; box-sizing: content-box; }
.reel-tags { margin-top: 24px; }
.reel .section-lead { margin-top: 28px; max-width: 34ch; }
.reel-play {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--fg); color: #000; font-size: 15px; font-weight: 500;
  transition: transform 200ms var(--ease-out);
}
.reel-play svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .reel-media:hover .reel-play { transform: scale(1.04); } }
@media (max-width: 760px) {
  .reel { grid-template-columns: 1fr; }
  .reel-media { max-width: 420px; justify-self: center; }
}

/* ---------- Ce fac ---------- */
.services .section-head, .rows, .process .section-head, .steps { max-width: 1080px; margin-inline: auto; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 32px; align-items: baseline; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.row-num, .step-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.row p { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.5; color: var(--soft); }
@media (max-width: 760px) {
  .row { grid-template-columns: 36px minmax(0, 1fr); }
  .row p { grid-column: 2; }
}

/* ---------- Cum lucrăm ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 24px 22px 28px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.step h3 { margin-top: 40px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.step:nth-child(3) .step-num { color: var(--accent); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step h3 { margin-top: 20px; } }

/* ---------- Despre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; max-width: 1080px; padding-inline: var(--gutter); box-sizing: content-box; }
.about-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-lead { margin-top: 28px; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.015em; text-wrap: pretty; }
.about-body { margin-top: 16px; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; color: var(--soft); max-width: 46ch; }
.stats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tools { margin-top: 28px; font-size: 14px; color: var(--soft); line-height: 1.6; }
.tools b { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact ---------- */
.contact { text-align: center; padding-block: clamp(96px, 16vw, 200px); }
.contact .eyebrow { margin-bottom: 24px; }
.contact-title { font-size: clamp(64px, 14vw, 200px); line-height: .9; }
.contact-lead { margin: 32px auto 0; max-width: 32ch; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; color: var(--soft); }
.contact-actions { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-big { min-height: 60px; padding: 0 32px; font-size: 17px; }
.contact-alt { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; min-height: 44px; align-items: center; font-size: 14px; color: var(--muted); transition: color 150ms ease-out; }
.contact-alt span { color: var(--soft); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact-alt:hover span { color: var(--fg); text-decoration-color: currentColor; } }

/* ---------- subsol ---------- */
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.brand-foot { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-foot i { color: var(--accent); }
.foot-links { display: flex; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); transition: color 150ms ease-out; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--fg); } }
.foot-meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .site-footer { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ---------- player ---------- */
.player {
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--fg);
  max-width: none; max-height: none; overflow: visible;
}
.player::backdrop { background: rgba(0, 0, 0, .86); opacity: 0; transition: opacity 220ms ease-out; }
.player[data-open]::backdrop { opacity: 1; }
.player-inner {
  width: min(calc((100svh - 120px) * 9 / 16), calc(100vw - 32px), 480px);
  opacity: 0; transform: scale(0.96); transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.player[data-open] .player-inner { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.player video:focus-visible { outline-offset: -2px; }
.player video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; }
.player-title { font-size: 14px; color: var(--soft); line-height: 1.3; }
.player-close {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg);
  font: inherit; font-size: 14px; cursor: pointer; transition: transform 160ms var(--ease-out), border-color 150ms ease-out;
}
.player-close:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .player-close:hover { border-color: rgba(255, 255, 255, .4); } }
body[data-player-open] { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .player-inner, .player[data-open] .player-inner { transform: none; }
  .work-media video { transition: none; }
}

/* ---------- apariția la scroll (o singură dată; fără JS sau cu mișcare redusă, totul e vizibil) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- animații de intrare ---------- */
.line { display: block; overflow: hidden; padding: .1em 0 .08em; margin: -.1em 0 -.08em; }
.line > span { display: inline-block; transform: translateY(105%); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.fade { opacity: 0; transform: translateY(8px); animation: fadeIn 600ms var(--ease-out) forwards; animation-delay: var(--d, 600ms); }
.hero-portrait picture { display: block; height: 100%; opacity: 0; transform: scale(1.06); filter: blur(6px); animation: portraitIn 1300ms var(--ease-out) 50ms forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; transform: none; } }
@keyframes portraitIn { to { opacity: .62; transform: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  .line > span, .fade, .site-header > *, .hero-portrait picture { animation: none; transform: none; filter: none; opacity: 1; }
  .hero-portrait picture { opacity: .62; }
  .mobile-menu, .mobile-menu li a, .mobile-menu-foot { transition: opacity 150ms ease-out !important; transform: none !important; }
}
.no-js .menu-btn { display: none; }
