@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Inter";
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Palette: white and the logo's burgundy, on a silver-tinted neutral. */
:root {
  --red: #ae0001;     /* sampled from the logo */
  --bg: #fff;
  --tile: #f4f3f3;    /* silver tile */
  --silver: #b9b5b5;  /* secondary bars */
  --ink: #1d1a1a;
  --accent: var(--red);

  --ink-2: rgb(29 26 26 / 0.64);
  --line: rgb(29 26 26 / 0.13);
  --soft: rgb(29 26 26 / 0.05);
  --glow: rgb(174 0 1 / 0.6);

  --r-tile: 28px;
  --r-inner: 18px;
  --nav-h: 52px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  scrollbar-color: #c9c6c6 transparent;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  overflow-x: clip;
}

::selection { background: rgb(174 0 1 / 0.16); }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 980px;
  background: var(--ink); color: var(--bg);
}
.skip:focus { top: 10px; }

.hl { color: var(--accent); }
.dim { color: var(--ink-2); }

/* burgundy surfaces: the same components, re-inked through the variables */
.on-red {
  --ink: #fff;
  --ink-2: rgb(255 255 255 / 0.8);
  --line: rgb(255 255 255 / 0.28);
  --soft: rgb(255 255 255 / 0.12);
  --accent: #fff;
  --glow: rgb(255 255 255 / 0.85);
  background: var(--red);
  color: var(--ink);
  caret-color: #fff;
}
.on-red ::selection { background: #fff; color: var(--red); }

/* Local nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: var(--nav-h);
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: block; margin-right: auto; }
.brand img { display: block; width: auto; height: 36px; }
.brand:hover { text-decoration: none; }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav li a { position: relative; display: inline-block; padding-block: 5px; color: var(--ink); font-size: 13px; opacity: 0.72; transition: opacity 0.2s; }
.nav li a:hover, .nav li a[aria-current] { opacity: 1; text-decoration: none; }
.nav li a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.3s var(--ease);
}
.nav li a[aria-current]::after { transform: scale(1); }
/* language switch: segmented control; the dark thumb marks the current language and only moves on press */
.lang {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 2px; border: 1px solid var(--line); border-radius: 980px; background: var(--tile);
}
.lang::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  border-radius: 980px; background: var(--ink); transition: translate 0.45s var(--ease);
}
.lang a {
  position: relative; padding: 4px 10px; border-radius: 980px; text-align: center;
  color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; transition: color 0.3s;
}
.lang a:hover { text-decoration: none; }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }
.lang:has(a:active) a[aria-current] { background: transparent; } /* the thumb takes over while it slides */
.lang:has(a:last-child[aria-current])::before { translate: 100% 0; }
.lang:has(a:first-child:active)::before { translate: 0 0; }
.lang:has(a:last-child:active)::before { translate: 100% 0; }
.lang:has(a:active) a { color: var(--ink-2); }
.lang a:active { color: var(--bg); }
.lang.go a[aria-current] { background: transparent; } /* lang.js: the thumb slides to the chosen language before the page changes */

/* RO <-> EN: the page cross-fades instead of flashing; the bar and the switch hold still */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
.legal-top { view-transition-name: legal-top; }
.nav-in > .lang, .menu-foot .lang, .legal-top .lang { view-transition-name: lang; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root) { animation: vt-out 0.3s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
@keyframes vt-out { to { opacity: 0; filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.menu-btn, .menu-foot { display: none; }

@media (min-width: 1061px) {
  /* the menu is a popover only on phones; on desktop it is an inline list */
  .nav nav { all: unset; display: block; }
}

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: filter 0.2s, transform 0.15s;
}
.pill:hover { filter: brightness(1.18); text-decoration: none; }
.pill:active { transform: scale(0.98); }
.pill-sm { min-height: 30px; padding: 0 14px; font-size: 13px; }

.more { font-size: 17px; }
.more::after {
  content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.35em;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateY(-0.08em) rotate(45deg);
  transition: transform 0.25s;
}
.more:hover::after { transform: translate(0.2em, -0.08em) rotate(45deg); }

/* Scroll stage: sticky WebGL canvas behind the steps.
   100vh = large viewport on phones: stays put while the address bar collapses, so the canvas never resizes mid-scroll */
.stage { position: relative; }
.stage-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.stage-sticky canvas { position: relative; display: block; width: 100%; height: 100%; }
.js .stage-sticky canvas { opacity: 0; transition: opacity 1.4s ease 0.2s; }
.js .stage.ready canvas { opacity: 1; }
.steps { position: relative; z-index: 1; margin-top: -100vh; }

/* one soft silver light behind the stack */
.aurora {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 52% at 70% 58%, rgb(185 181 181 / 0.12), transparent 72%);
}

.step {
  min-height: 100vh; min-height: 100svh;
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center;
}
/* tall screens: services keep a fixed scroll length; first and last stay full height, the last one has to end the sticky stage centered */
@media (min-width: 861px) { .step:not(.step-hero, .step-end) { min-height: min(100svh, max(760px, 80svh)); } }
.step-in { width: min(100%, 31rem); }
.step-hero .step-in { width: min(100%, 36rem); }
.step-hero .sub { max-width: 31rem; }

h1 { font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1.05; letter-spacing: -0.038em; font-weight: 600; }
h1 span { display: block; }
.step h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.032em; font-weight: 600; }
.sub { margin-top: 20px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.016em; }
.tagline { margin-top: 18px; font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.022em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.items { margin: 28px 0 0; padding: 0; list-style: none; }
.items li {
  position: relative; padding: 16px 0 16px 30px; border-top: 1px solid var(--line);
  font-size: 19px; line-height: 1.42; letter-spacing: -0.018em;
}
.items li:last-child { border-bottom: 1px solid var(--line); }
.items li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.items i, .groups i { font-style: italic; }

.step-pay .step-in { width: min(100%, 37rem); }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 26px; }
.groups h3 { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.groups ul { margin: 0; padding: 0; list-style: none; }
.groups li { position: relative; padding: 5px 0 5px 18px; font-size: 15.5px; line-height: 1.38; }
.groups li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Regular blocks */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.block-stats { padding-top: clamp(72px, 9vw, 120px); }
/* desktop: the line sits right under the closing pile, over the empty bottom of the sticky canvas */
@media (min-width: 861px) { .js .block-stats { position: relative; z-index: 1; margin-top: -16vh; padding-top: 0; } }
.block-title { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.06; letter-spacing: -0.036em; font-weight: 600; max-width: 16ch; margin-bottom: clamp(36px, 5vw, 64px); }
#clienti .block-title, #clients .block-title, #echipa .block-title, #team .block-title, #cariere .block-title, #careers .block-title, #contact .block-title { margin-inline: auto; text-align: center; text-wrap: balance; }
#echipa .block-title, #team .block-title { max-width: none; }
#echipa .block-title .dim, #team .block-title .dim { display: block; }
.nw { white-space: nowrap; }

/* careers: one tile, a CV on the firm's letterhead slides in and gets ticked */
.careers { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 72px); overflow: hidden; }
.tile.careers h3 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -0.032em; text-wrap: balance; }
.cv { display: block; position: relative; justify-self: center; width: min(100%, 250px); aspect-ratio: 210 / 297; margin-block: -12px; }
.cv::before, .cv-sheet { position: absolute; inset: 0; border-radius: 10px; background: #fff; box-shadow: 0 28px 56px -22px rgb(29 26 26 / 0.3), 0 1px 3px rgb(29 26 26 / 0.08); }
.cv::before { content: ""; border-top: 4px solid var(--red); rotate: 7deg; translate: 16px 4px; }
.cv-sheet { overflow: hidden; rotate: -3deg; }
.cv-band { padding: 16px 18px 18px; background: var(--red); color: #fff; }
.cv-band img { display: block; width: auto; height: 17px; }
.cv-band b { display: block; margin-top: 20px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cv-mail { display: block; margin-top: 4px; font-size: 13px; opacity: 0.85; }
.cv-body { display: grid; gap: 11px; padding: 18px; }
.cv-body i { display: block; height: 7px; border-radius: 4px; background: rgb(29 26 26 / 0.1); }
.cv-body i:nth-child(3n) { width: 62%; }
.cv-body i:nth-child(3n + 2) { width: 84%; }
.cv-body .cv-photo { width: 42px; height: 42px; margin-bottom: 4px; border-radius: 50%; border: 1.5px solid var(--red); background: rgb(174 0 1 / 0.08); }
.cv-ok { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--red); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .careers .cv::before { rotate: 0deg; translate: 0 0; transition: rotate 1s var(--ease) 0.35s, translate 1s var(--ease) 0.35s; }
.js .careers .cv-sheet { translate: 0 48px; rotate: 6deg; transition: translate 1.1s var(--ease) 0.2s, rotate 1.1s var(--ease) 0.2s; }
.js .careers .cv-ok { scale: 0; transition: scale 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.1s; }
.js .careers.in .cv::before { rotate: 7deg; translate: 16px 4px; }
.js .careers.in .cv-sheet { translate: 0 0; rotate: -3deg; }
.js .careers.in .cv-ok { scale: 1; }
.js .careers.in:hover .cv-sheet { translate: 0 -6px; rotate: -1deg; transition-delay: 0s; }

/* burgundy field: the page closes on the logo's colour */
.field { margin-top: clamp(96px, 12vw, 160px); }
.field .block { padding-block: clamp(48px, 8vh, 110px); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stats dd { margin: 0; font-size: clamp(2.75rem, 5.4vw, 4.75rem); font-weight: 300; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 16px; line-height: 1.35; max-width: 20ch; color: var(--ink-2); }

.tile { position: relative; background: var(--tile); border-radius: var(--r-tile); padding: clamp(28px, 4vw, 52px); }
.tile h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.12; letter-spacing: -0.026em; font-weight: 600; margin-bottom: 14px; }
.tile p { font-size: 19px; line-height: 1.42; max-width: 38ch; }
.tile .note { max-width: none; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }

/* 3D tilt + spotlight edge (pointer devices; fx.js sets the variables) */
.tilt { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.4s;
}
.tilt.lit::after { opacity: 1; }

/* De ce noi: the question on the left, three plain answers on the right */
#de-ce-noi, #why-us { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(28px, 4vw, 64px); align-items: start; }
#de-ce-noi .block-title, #why-us .block-title { margin-bottom: 0; }
@media (min-width: 861px) { #de-ce-noi .block-title, #why-us .block-title { position: sticky; top: calc(var(--nav-h) + 32px); } }
.why { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.why li { padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.why p { font-size: clamp(1.375rem, 2.5vw, 2.125rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.028em; }

/* Clienți: one tile with the globe */
.clients { display: grid; gap: 20px; }
.world {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(28px, 4vw, 64px); overflow: hidden;
}
/* desktop: copy and globe sit directly in the .world grid; on phones this wrapper is the first card */
.world-main { display: contents; }
.globe { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; }
/* EN variant: the industries illustration (burgundy-grey) instead of the globe; multiply drops its white onto the silver tile */
.sectors-art { margin: 0; mix-blend-mode: multiply; }
.sectors-art img { display: block; width: 100%; height: auto; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.sectors { margin: 28px 0 0; padding: 0; list-style: none; }
.sectors li { position: relative; padding: 15px 0 15px 22px; border-top: 1px solid var(--line); }
.sectors li:last-child { border-bottom: 1px solid var(--line); }
.sectors + .note { border-top: 0; padding-top: 0; }
.sectors li::before {
  content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 2px; border-radius: 1px;
  background: var(--accent); transform: scaleY(0); transition: transform 0.5s var(--ease);
}
.sectors li.on::before { transform: scaleY(1); }
.sectors b { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.016em; }
.sectors span { display: block; margin-top: 4px; text-wrap: balance; font-size: 16px; color: var(--ink-2); transition: color 0.4s; }
.sectors li.on span { color: var(--ink); }

/* desktop: heading and globe tile fit one screen, and the nav links land on the heading */
@media (min-width: 861px) {
  #clienti, #clients { scroll-margin-top: calc(16px - clamp(96px, 12vw, 160px)); }
  #clienti .block-title, #clients .block-title { margin-bottom: clamp(16px, 3vh, 40px); }
  .world { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); row-gap: 14px; padding: clamp(20px, 3.5vh, 44px) clamp(28px, 4vw, 52px); }
  .world h3 { margin-bottom: 8px; font-size: clamp(1.375rem, 2vw, 1.75rem); }
  .world p { font-size: 16px; }
  .sectors { margin-top: 12px; }
  .sectors li { padding-block: 8px; }
  .sectors li::before { top: 8px; bottom: 8px; }
  .sectors b { font-size: 15.5px; }
  .sectors span { margin-top: 2px; font-size: 14.5px; }
  .world .note { margin-top: 12px; font-size: 14px; }
  .globe { max-width: min(600px, 50vh); }
}
@media (min-width: 861px) and (min-height: 820px) { .world { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* the other two client types, across the bottom of the tile */
.others { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(28px, 4vw, 64px); padding-top: 14px; border-top: 1px solid var(--line); }
.world .others h3 { margin-bottom: 2px; font-size: 1.125rem; letter-spacing: -0.018em; }
.world .others p { max-width: none; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.others .note { margin-top: 6px; padding-top: 0; border-top: 0; }

/* Echipa: compact partner cards */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.person { position: relative; background: var(--tile); border-radius: var(--r-tile); padding: clamp(28px, 4vw, 44px); }
.person-head { display: flex; align-items: center; gap: 22px; }
.portrait {
  flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: rgb(174 0 1 / 0.07); object-fit: cover; outline: 1px solid var(--red); outline-offset: 5px;
  color: var(--red); font-size: 28px; font-weight: 600; letter-spacing: 0.02em;
}
.person h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.026em; font-weight: 600; }
.roles { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.4; }

.career { display: flex; gap: 6px; height: 8px; margin-top: 30px; }
.seg { display: block; flex: 15; border-radius: 4px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.4s; }
.seg.b { flex: 10; background: var(--silver); transition-delay: 0.9s; }
.seg.full { flex: 1; }
.person.in .seg, html:not(.js) .seg { transform: scaleX(1); }
.legend { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legend li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.38; }
.legend li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.legend li.b::before { background: var(--silver); }
.legend b { font-weight: 700; }

#contact .block-title { margin-bottom: 8px; }
.mail {
  display: block; width: fit-content; margin: 0 auto clamp(24px, 4vh, 44px); color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  overflow-wrap: anywhere; transition: opacity 0.2s;
}
.mail:hover, .contact a:hover { opacity: 0.72; }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin-bottom: clamp(24px, 4vh, 44px); text-align: center; }
/* a lone item on the last row (Location) spans the row, so it sits centred */
.contact > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.contact span { display: block; margin-bottom: 4px; font-size: 14px; color: var(--ink-2); }
.contact a, address { color: var(--ink); font-size: 17px; font-style: normal; font-weight: 500; line-height: 1.35; letter-spacing: -0.014em; overflow-wrap: anywhere; transition: opacity 0.2s; }
.map-wrap { position: relative; }
.map-open {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 980px;
  background: #fff; color: #1d1a1a; font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
}
/* contact map (map.js): a white architectural model; light tokens again inside the burgundy field; the iframe is the no-WebGL fallback */
.contact-map {
  --ink: #1d1a1a; --ink-2: rgb(29 26 26 / 0.64); --line: rgb(29 26 26 / 0.13); --accent: var(--red);
  color: var(--ink);
  padding: 0; overflow: hidden; height: clamp(240px, 38vh, 480px); isolation: isolate; clip-path: inset(0 round var(--r-tile)); }
/* desktop: the burgundy field fills the screen under the nav and the map takes all the height left */
@media (min-width: 861px) {
  #contact { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h)); padding-block: clamp(32px, 5vh, 64px); }
  .map-wrap { flex: 1; display: grid; min-height: 280px; }
  .contact-map { height: auto; }
}
.contact-map .maplibregl-canvas { opacity: 0; transition: opacity 1.2s ease; }
.contact-map.ready .maplibregl-canvas { opacity: 1; }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(0) invert(0.92); }
.contact-map .maplibregl-ctrl-group { background: rgb(0 0 0 / 0.6); border: 1px solid rgb(255 255 255 / 0.2); border-radius: 12px; box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.contact-map .maplibregl-ctrl-group button + button { border-top-color: rgb(255 255 255 / 0.2); }
.contact-map .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1); }
.contact-map .maplibregl-ctrl.maplibregl-ctrl-attrib, .contact-map .maplibregl-ctrl-attrib.maplibregl-compact-show { background: rgb(0 0 0 / 0.6); color: rgb(255 255 255 / 0.72); font-size: 10px; }
.contact-map .maplibregl-ctrl-attrib a { color: rgb(255 255 255 / 0.72); }
.contact-map .maplibregl-ctrl-attrib-button { filter: invert(1); }
.contact-map .maplibregl-cooperative-gesture-screen { background: rgb(0 0 0 / 0.72); color: #fff; font: 600 17px var(--font); }
.pin { display: grid; justify-items: center; gap: 10px; pointer-events: none; }
.pin-card {
  order: -1; padding: 10px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.94); border: 1px solid var(--line); box-shadow: 0 6px 20px rgb(29 26 26 / 0.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink-2); font: 400 12px/1.35 var(--font); white-space: nowrap; text-align: center;
}
.pin-card b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pin-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.pin-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

/* footer: Apple-style fine print on silver, in columns */
.foot { background: var(--tile); color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.foot-in { width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 32px 0 24px; }
.foot a { color: var(--ink-2); transition: color 0.2s; }
.foot a:hover { color: var(--ink); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.foot-top > img { display: block; width: auto; height: 28px; }
.credit { display: inline-flex; align-items: center; gap: 8px; }
.credit img { display: block; width: auto; height: 22px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; padding: 20px 0; }
.foot-h { margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.foot-prof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.foot-prof img { display: block; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.foot-in > .foot-bar:first-child { padding-top: 0; border-top: 0; }

/* Entrances: hero lines rise out of a slot, the rest follows */
.step-hero .h1-a { animation: curtain 1.1s var(--ease) both; }
.step-hero .tagline, .step-hero .sub, .step-hero .actions { animation: rise 1s var(--ease) both; }
.step-hero .tagline { animation-delay: 0.28s; }
.step-hero .sub { animation-delay: 0.38s; }
.step-hero .actions { animation-delay: 0.5s; }
@keyframes curtain {
  from { clip-path: inset(100% 0 -0.3em 0); translate: 0 0.6em; }
  to { clip-path: inset(-0.2em 0 -0.3em 0); translate: 0 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.js .rv {
  opacity: 0; translate: 0 32px;
  transition: opacity 0.8s ease, translate 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .rv.in { opacity: 1; translate: 0 0; }
.js .rv.tilt {
  transition: opacity 0.8s ease, translate 0.9s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s;
}

/* No WebGL: plain stacked content */
.no-webgl .stage-sticky canvas { display: none; }
.no-webgl .step { min-height: 0; padding-block: 64px; }
.no-webgl .step-hero { padding-top: calc(var(--nav-h) + 96px); }

@media (max-width: 1200px) {
  .step-pay .step-in { width: min(100%, 31rem); }
.step-hero .step-in { width: min(100%, 36rem); }
.step-hero .sub { max-width: 31rem; }
  .groups { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1060px) and (min-width: 861px) {
  .step-in, .step-pay .step-in, .step-hero .step-in { width: min(100%, 26rem); }
}

@media (max-width: 1060px) {
  /* bar: logo + menu button; links, call and language live in the menu */
  .nav-in > .lang, .nav-in > .pill-sm { display: none; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .menu-btn span { position: relative; display: block; width: 18px; height: 8px; }
  .menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
    transition: transform 0.35s var(--ease);
  }
  .menu-btn span::before { top: 0; }
  .menu-btn span::after { bottom: 0; }
  .nav:has(:popover-open) .menu-btn span::before { transform: translateY(3.25px) rotate(45deg); }
  .nav:has(:popover-open) .menu-btn span::after { transform: translateY(-3.25px) rotate(-45deg); }

  #meniu:popover-open {
    position: fixed; inset: var(--nav-h) 0 auto; width: auto; height: auto; max-height: calc(100dvh - var(--nav-h)); margin: 0;
    padding: 8px var(--gutter) 28px; border: 0; border-bottom: 1px solid var(--line); overflow: auto;
    background: rgb(255 255 255 / 0.97); color: var(--ink);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 1; translate: 0 0; transition: opacity 0.3s, translate 0.45s var(--ease);
  }
  @starting-style { #meniu:popover-open { opacity: 0; translate: 0 -10px; } }
  #meniu ul { flex-direction: column; gap: 0; }
  #meniu li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 600; letter-spacing: -0.024em; opacity: 1; }
  #meniu li a::after { display: none; }
  #meniu li a[aria-current] { color: var(--accent); }
  .menu-foot { display: flex; flex-direction: column-reverse; gap: 14px; margin-top: 28px; }
  .menu-foot .lang { display: grid; }
  .menu-foot .lang a { padding: 12px 18px; font-size: 15px; letter-spacing: -0.01em; }
  .menu-foot .lang::before { top: 2px; bottom: 2px; }
}

@media (max-width: 860px) {

  /* the stack stays full-screen behind the copy, dimmed to a backdrop */
  /* 0.18: --ink-2 and --accent keep 4.5:1 even over the burgundy mastheads */
  .js .stage.ready canvas { opacity: 0.18; }
  .aurora { background: none; }
  .step { min-height: 0; justify-content: flex-start; padding-top: 40px; padding-bottom: 40px; }
  .step-hero { padding-top: calc(var(--nav-h) + 44px); }
  .step-in, .step-pay .step-in, .step-hero .step-in { width: 100%; }
  .no-webgl .step { padding-top: 48px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .team, .contact, .world, .others { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-prof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .foot-prof > .foot-h { grid-column: 1 / -1; margin-bottom: 0; }
  .foot-prof img { width: auto; height: 60px; }
  #de-ce-noi, #why-us { grid-template-columns: minmax(0, 1fr); }
  #de-ce-noi .block-title, #why-us .block-title { margin: 0 auto 12px; text-align: center; }
  .world .globe { order: -1; max-width: 380px; margin: -8px auto -12px; }
  .world .sectors-art { order: -1; }
  .careers { grid-template-columns: minmax(0, 1fr); }
  .cv { width: min(64%, 210px); margin-block: 8px 4px; }
  .tile, .person { border-radius: 22px; }
  /* phones: the shared tile splits into two separate cards */
  .world { padding: 0; background: none; border-radius: 0; gap: 20px; overflow: visible; }
  .world-main, .others { padding: clamp(28px, 4vw, 52px); background: var(--tile); border-radius: 22px; }
  .world-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; overflow: hidden; }
  .others { gap: 20px; border-top: 0; }
  .contact-map { clip-path: inset(0 round 22px); }
  .contact-map { height: 340px; }
  .map-open { top: 12px; bottom: auto; left: 12px; } /* clear of the map credit */
  .items li, .tile p { font-size: 17px; }
  /* comfortable tap targets for the links that stand alone */
  .actions .more { display: none; } /* phones: hero keeps only the email button */
  .contact a { display: block; padding-block: 8px; }
  .credit { min-height: 44px; }
}

@media (max-width: 480px) {
  .brand img { height: 32px; }
  .person-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .portrait { width: 76px; height: 76px; font-size: 24px; }
  .why p { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .seg { transform: scaleX(1); }
}

/* Legal pages */
.legal-top, .legal { width: min(calc(100% - 2 * var(--gutter)), 42rem); margin-inline: auto; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: 14px; }
.legal-top > a { min-width: 0; }
.legal-top img { display: block; max-width: 100%; height: auto; } /* logo shrinks on 320px phones instead of pushing RO/EN off screen */
@media (max-width: 860px) { .legal-top .lang a { padding: 10px 14px; } }
.legal { padding: 56px 0 40px; line-height: 1.6; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.032em; font-weight: 600; }
.legal-date { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.legal h2 { margin-top: 40px; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.legal h3 { margin-top: 28px; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); font-weight: 500; }
.legal a:hover { opacity: 0.72; }
.legal b { font-weight: 600; }
