/* Alb cald spre gri, cu o textură fină de hârtie */
:root {
  --bg: #f0f0eb;
  --ink: #161616;
  --muted: #8a8a86;
  --link-bg: rgba(0, 0, 0, .06);
  --link-bg-hover: rgba(0, 0, 0, .1);
  --key-bg: #ffe0db;
  --key-bg-hover: #ffcfc7;
  --key-line: #a8291f;
  --col: 460px;
  --indent: 28px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font: 400 14px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--key-bg); color: var(--ink); }

/* RO / EN: ambele limbi sunt în HTML, afișăm doar una */
html[data-lang="ro"] [lang="en"],
html[data-lang="en"] [lang="ro"] { display: none !important; }

main {
  max-width: calc(var(--col) + 32px);
  margin: 0 auto;
  padding: 72px 16px 0;
}

.lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 2px;
  font-size: 12px;
  background: var(--bg);
  border-radius: 6px;
}
.lang button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:hover { color: var(--ink); }

.kicker {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 56px;
}

section { margin: 0 0 40px; }

h1, h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
}

section > p,
section > .block { margin: 0 0 12px var(--indent); }

/* Linkuri ca pe budarina.design: fundal mic, colțuri moi, subliniere punctată */
a {
  color: inherit;
  background: var(--link-bg);
  border-radius: 4px;
  padding: 1px 2px;
  text-decoration: underline dotted 2px;
  text-decoration-color: var(--ink);
  text-underline-offset: 3px;
  transition: background-color .15s;
}
a:hover { background: var(--link-bg-hover); }

/* cele importante: roz SUUO */
a.key {
  background: var(--key-bg);
  text-decoration-color: var(--key-line);
}
a.key:hover { background: var(--key-bg-hover); }

/* WhatsApp: la hover punctele de sub link încep să curgă, ca un mic semnal */
a.wa,
a.wa:hover {
  text-decoration: none;
  background-image: radial-gradient(circle, var(--key-line) 1px, transparent 1.3px);
  background-size: 5px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-color: var(--key-bg);
  padding-bottom: 3px;
}
a.wa:hover {
  background-color: var(--key-bg-hover);
  animation: wa-flow .6s linear infinite;
}
@keyframes wa-flow { to { background-position: 5px 100%; } }
@media (prefers-reduced-motion: reduce) { a.wa:hover { animation: none; } }

.back { display: inline-block; margin: 0 0 40px; font-size: 12px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0 0;
  margin-top: 64px;
}

/* Video jos, pe toată lățimea (2560px, nu se pixelează); fundalul lui are exact culoarea paginii */
.portrait {
  position: relative;
  width: 100%;
  margin: 24px 0 0;
  /* doar marginea de sus (fundal gol) se topește în pagină; laturile rămân neatinse */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 2%);
  line-height: 0;
}
.portrait video,
.portrait img { width: 100%; height: auto; display: block; }
/* aceeași textură peste video, ca fundalul lui să nu se vadă mai curat decât pagina */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pixeli animați */
.pixels {
  display: block;
  width: 100%;
  height: 120px;
  margin: 0 0 56px;
  cursor: crosshair;
  touch-action: pan-y;
}

/* Clienți */
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 12px;
}
.logos img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
}

/* Portofoliu */
.work { margin: 0 0 48px; }
.work img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
  border-radius: 4px;
}
.work h2 { margin: 0 0 2px; }
.work p { margin: 0; color: var(--muted); }

.list { list-style: none; padding: 0; margin: 0 0 12px var(--indent); }
.list li { margin: 0 0 12px; }
.list b { font-weight: 500; }

@media (max-width: 480px) {
  :root { --indent: 16px; }
  main { padding-top: 56px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
