/* =================================================================
   DIANOVA — styles.css
   1. Tokens   2. Base   3. Layout / grid   4. Type   5. Buttons
   6. Header   7. Nav indicator   8. Language   9. Mobile menu
   10. Hero   11. Marquee   12. Placeholders
   14. Sections (shared)   15. Introduction   16. Differentiator
   17. Hero intro + parallax   18. Feature hover   19. Services   20. Solution + audience   21. How we work   22. Pill buttons   23. Logo ticker   24. Experience   25. FAQ   26. Moldova CTA   27. Footer   28. About + team modal   29. Legal page   99. Reduced motion
   ================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Colour */
  --c-ink: #1c1c1c;
  --c-ink-2: #262626;
  --c-paper: #f9f9f9;
  --c-paper-2: #f6f5f3;
  --c-blue: #35618c;
  --c-stone: #eceae6;
  --c-terra: #bc5a3c;
  --c-line-dark: rgba(249, 249, 249, .14);
  --c-text-dim: rgba(249, 249, 249, .78);

  /* Type */
  --f-display: "Funnel Display", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-h1: clamp(2.125rem, 1.2rem + 3.3vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  --fs-lead: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-eyebrow: .6875rem;

  /* Layout */
  --maxw: 1440px;
  --gutter: 24px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-py: clamp(80px, 11vw, 176px);
  --header-h-base: 80px;
  --header-h: var(--header-h-base);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- 3. LAYOUT / GRID ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 4. TYPE ---------- */
h1, h2 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1.4;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85em 1.3em;
  border: 0;
  font-family: var(--f-body);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--block { width: 100%; }

/* Solid: blue → terracotta sweep on hover */
.btn--solid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-blue);
  color: #fff;
}
.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-terra);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.btn--solid:hover::before,
.btn--solid:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- 6. HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--c-paper);
}
/* Background layer (fades in on scroll) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, .95);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--c-line-dark);
  opacity: 0;
  transition: opacity .35s var(--ease-out), background-color .35s;
}
.site-header.is-scrolled { --header-h: 64px; }
.site-header.is-scrolled::before,
.site-header.menu-open::before { opacity: 1; }
.site-header.menu-open::before { background: var(--c-ink); }

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  transition: height .35s var(--ease-out);
}

/* Logo */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
}
.brand__logo { height: 34px; width: auto; }
.brand__fallback {
  display: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -.02em;
}
.brand.has-missing .brand__logo { display: none; }
.brand.has-missing .brand__fallback { display: block; }

/* Nav */
.nav { position: relative; --link-px: clamp(10px, 1.1vw, 18px); }
.nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: 10px var(--link-px);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s;
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active { opacity: 1; }
.nav__link:focus-visible { outline-offset: -2px; }

/* Right-side actions */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta { padding: .8em 1.25em; }

/* ---------- 7. NAV INDICATOR (gliding underline) ----------
   Progressive enhancement:
   - Anchor positioning (Chrome/Edge 125+, Safari 26+) → pure CSS.
   - Other browsers → JS sets --ind-x / --ind-w (.nav--js).        */
.nav__indicator {
  position: absolute;
  height: 2px;
  background: var(--c-terra);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity .25s,
    left .45s var(--ease-out),
    right .45s var(--ease-out),
    width .45s var(--ease-out);
}

@supports (anchor-name: --a) {
  .nav:not(.nav--js) .nav__link:is(:hover, :focus-visible) { anchor-name: --nav-target; }
  .nav:not(.nav--js) .nav__list:not(:has(.nav__link:is(:hover, :focus-visible))) .nav__link.is-active { anchor-name: --nav-target; }

  .nav:not(.nav--js) .nav__indicator {
    position-anchor: --nav-target;
    left: calc(anchor(left) + var(--link-px));
    right: calc(anchor(right) + var(--link-px));
    top: calc(anchor(bottom) - 6px);
  }
  .nav:not(.nav--js):has(.nav__link:is(:hover, :focus-visible, .is-active)) .nav__indicator { opacity: 1; }
}

.nav--js .nav__indicator {
  left: var(--ind-x, 0px);
  width: var(--ind-w, 0px);
  bottom: 4px;
}
.nav--js.is-indicating .nav__indicator { opacity: 1; }

/* ---------- 8. LANGUAGE DROPDOWN ---------- */
.lang { position: relative; }

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--c-line-dark);
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang__toggle:hover { border-color: rgba(249, 249, 249, .45); }
.lang__chevron { transition: transform .3s var(--ease-out); }
.lang.is-open .lang__chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 12px 32px rgba(28, 28, 28, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s linear .25s;
}
.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s;
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.lang__option:hover,
.lang__option:focus-visible { background: var(--c-paper-2); outline-offset: -2px; }
.lang__code {
  width: 2.4em;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  color: rgba(28, 28, 28, .55);
}
.lang__option[aria-current="true"] .lang__code { color: var(--c-blue); font-weight: 500; }
.lang__option[aria-current="true"]::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: auto;
  background: var(--c-blue);
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line-dark);
  cursor: pointer;
}
.burger__line {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.burger__line:nth-child(1) { top: 15px; }
.burger__line:nth-child(2) { top: 23px; }
.menu-open .burger__line:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger__line:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- 9. MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px var(--pad-x) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--c-ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease-in-out), visibility 0s linear .55s;
}
.menu-open .mobile-menu {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .55s var(--ease-in-out), visibility 0s;
}

.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__list li,
.mobile-menu__footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.menu-open .mobile-menu__list li,
.menu-open .mobile-menu__footer {
  opacity: 1;
  transform: none;
  transition-delay: calc(.18s + var(--i) * .05s);
}
.mobile-menu__link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-dark);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu__link-cta { padding-block: 1.1em; font-size: 1rem; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-block; }
  .site-header__inner { grid-template-columns: 1fr auto; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none; }
}

/* ---------- 10. HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  background: var(--c-ink);
  color: var(--c-paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Legibility overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,28,28,.6) 0%, rgba(28,28,28,.15) 32%, rgba(28,28,28,.5) 68%, rgba(28,28,28,.88) 100%),
    linear-gradient(90deg, rgba(28,28,28,.45) 0%, rgba(28,28,28,0) 65%);
  pointer-events: none;
}

.hero__inner {
  flex: 1;
  grid-template-rows: auto 1fr;
  row-gap: 32px;
  padding-top: calc(var(--header-h-base) + clamp(20px, 3vw, 40px));
  padding-bottom: clamp(40px, 5vw, 72px);
}

.hero__tagline {
  grid-column: 1 / span 2;
  grid-row: 1;
  max-width: 16ch;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--c-text-dim);
}

.hero__content {
  grid-column: 4 / span 8;
  grid-row: 2;
  align-self: end;
}

.hero__title {
  max-width: 21ch;
  text-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 44px);
  text-transform: uppercase;
  line-height: 1;
}
.hero__title span { display: block; }

.hero__lead {
  max-width: 50ch;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-text-dim);
}

@media (max-width: 1023px) {
  .hero__tagline { grid-column: 1 / -1; }
  .hero__content { grid-column: 1 / -1; }
}

/* ---------- 11. MARQUEE ---------- */
.hero__marquee {
  overflow: hidden;
  padding-block: 18px;
  border-top: 1px solid var(--c-line-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.hero__marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__list {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__marquee .marquee__list li {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding-right: 1.5em;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--c-text-dim);
}
.hero__marquee .marquee__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--c-terra);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 12. IMAGE PLACEHOLDERS ----------
   Wrapper .ph shows a blueprint grid until the real image loads.  */
.ph {
  background-color: #242424;
  background-image:
    linear-gradient(rgba(249,249,249,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,249,249,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
img.is-missing { visibility: hidden; }

/* ---------- 14. SECTIONS (shared) ----------
   Pattern: eyebrow in cols 1–3, content in cols 4–10 (desktop).   */
.section { padding-block: var(--section-py); }
.section--light { background: var(--c-paper); color: var(--c-ink); }
.section--alt   { background: var(--c-paper-2); color: var(--c-ink); }
.section--dark  { background: var(--c-ink); color: var(--c-paper); }
.section--stone { background: var(--c-stone); color: var(--c-ink); }

.section__eyebrow {
  grid-column: 1 / span 3;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  padding-top: .55em;           /* optical alignment with H2 cap height */
  color: rgba(28, 28, 28, .7);
}
.section__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--c-blue);
}
.section--dark .section__eyebrow { color: var(--c-text-dim); }

.section__body { grid-column: 4 / span 7; }

.section__title span { display: block; }
@media (max-width: 767px) {
  .section__title span { display: inline; }   /* natural wrap on mobile */
}

@media (max-width: 1023px) {
  .section__eyebrow { grid-column: 1 / -1; margin-bottom: 24px; padding-top: 0; }
  .section__body { grid-column: 1 / -1; }
}

/* ---------- 15. INTRODUCTION ---------- */
.intro__text {
  max-width: 54ch;
  margin-top: clamp(24px, 2.5vw, 36px);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: rgba(28, 28, 28, .82);
}

/* ---------- 16. DIFFERENTIATOR (split) ---------- */
.split__grid { align-items: start; row-gap: 48px; }

.split__media {
  grid-column: 1 / span 6;
  margin: 0;
  aspect-ratio: 15 / 14;
  overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__content { grid-column: 8 / span 5; }

.section__title--sm {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
}
.split__text {
  max-width: 46ch;
  margin-top: 20px;
  color: rgba(28, 28, 28, .78);
}

.feature-list {
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(28, 28, 28, .12);
}
.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28, 28, 28, .12);
}
.feature__icon { width: 40px; height: 40px; color: var(--c-blue); }
.feature__title {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.feature__text {
  margin-top: 4px;
  font-size: var(--fs-small);
  color: rgba(28, 28, 28, .65);
}

/* Light placeholder variant */
.ph--light {
  background-color: #e8e6e2;
  background-image:
    linear-gradient(rgba(28,28,28,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,28,.06) 1px, transparent 1px);
}

@media (max-width: 1023px) {
  .split__media, .split__content { grid-column: 1 / -1; }
  .split__media { aspect-ratio: 4 / 3; }
}

/* ---------- 17. HERO INTRO + PARALLAX ----------
   Sequence (html.js + .hero.is-in):
   image clip reveal + slow zoom → H1 line by line (mask) → CTA → lead → marquee */
.hero__media { transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }

.hero__title .word { display: inline; }
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: .1em;       /* room for Romanian diacritics (Î Ș Ț) */
  margin-block: -.1em;
}
.hero__title .line__inner { display: block; }

.js .hero__media { clip-path: inset(100% 0 0 0); }
.js .hero__media img { transform: scale(1.18); }
.js .hero__title .line__inner { transform: translateY(110%); }
.js .hero [data-reveal] { opacity: 0; transform: translateY(14px); }

.hero.is-in .hero__media {
  clip-path: inset(0);
  transition: clip-path 1.4s var(--ease-in-out);
}
.hero.is-in .hero__media img {
  transform: scale(1);
  transition: transform 2.8s var(--ease-out);
}
.hero.is-in .hero__title .line__inner {
  transform: none;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(.55s + var(--i, 0) * .09s);
}
.hero.is-in [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.hero__tagline { --delay: .5s; }
.hero__cta     { --delay: var(--cta-delay, 1.2s); }
.hero__lead    { --delay: calc(var(--cta-delay, 1.2s) + .12s); }
.hero__marquee { --delay: calc(var(--cta-delay, 1.2s) + .35s); }

/* ---------- 18. DIFFERENTIATOR — feature hover ----------
   Subtle blue wash sweeping in from the left. Not clickable → no pointer. */
.feature { position: relative; isolation: isolate; }
.feature::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  background: rgba(53, 97, 140, .07);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .5s var(--ease-out);
}
.feature__icon { transition: transform .4s var(--ease-out); }
.feature__title { transition: color .3s; }

@media (hover: hover) {
  .feature:hover::before { clip-path: inset(0); }
  .feature:hover .feature__icon { transform: translateX(4px); }
  .feature:hover .feature__title { color: var(--c-blue); }
}

/* ---------- 19. SERVICES ---------- */
.section__title--xl {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.services__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.services__count { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Rolling counter: active service number (01–05) */
.counter {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: .06em;      /* avoid clipping digit tops/bottoms */
}
.counter__num { display: block; }
.counter__num--incoming {
  position: absolute;
  inset: .06em 0 auto 0;
}

.services__grid { align-items: start; row-gap: 32px; }

/* Tab list */
.services__tabs {
  grid-column: 1 / span 7;
  margin: 0;
  padding: 0;
  list-style: none;
}
.services__tab {
  display: grid;
  grid-template-columns: clamp(56px, 9vw, 136px) 1fr;
  align-items: baseline;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: rgba(28, 28, 28, .3);
  transition: color .35s ease;
}
.services__tab:hover { color: rgba(28, 28, 28, .6); }
.services__tab.is-active { color: var(--c-ink); }
.services__tab:focus-visible { outline-offset: 2px; }

.services__num {
  font-family: var(--f-mono);
  font-size: clamp(.875rem, .8rem + .3vw, 1.125rem);
  letter-spacing: .04em;
}
.services__name {
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  line-height: 1.25;
  transition: transform .45s var(--ease-out);
}
.services__tab.is-active .services__name { transform: translateX(6px); }

/* Panels: stacked in one grid cell → height = tallest panel, no layout jump */
.services__panels {
  grid-column: 9 / span 4;
  display: grid;
}
.services__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.services__panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}
.services__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s var(--ease-in-out);
}
.services__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.services__panel.is-active .services__img { clip-path: inset(0); }
.services__panel.is-active .services__img img { transform: scale(1); }

.services__desc {
  max-width: 40ch;
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: rgba(28, 28, 28, .7);
  transform: translateY(8px);
  transition: transform .6s var(--ease-out) .1s;
}
.services__panel.is-active .services__desc { transform: none; }

@media (max-width: 1023px) {
  .services__tabs   { grid-column: 1 / -1; grid-row: 2; }
  .services__panels { grid-column: 1 / -1; grid-row: 1; }
  .services__tab { padding: 10px 0; border-bottom: 1px solid rgba(28, 28, 28, .08); }
}

/* ---------- 20. SOLUTION + AUDIENCE CARDS ---------- */
.solution__title {
  max-width: 26ch;
  font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.5rem);
  line-height: 1.15;
}
.solution__note {
  margin-top: 24px;
  font-size: .9375rem;
  color: rgba(28, 28, 28, .7);
}
.solution__cta { margin-top: 28px; }

.audience {
  margin: clamp(56px, 7vw, 112px) 0 0;
  padding: 0;
  list-style: none;
  row-gap: var(--gutter);
}

.audience__card {
  --card-bg: var(--c-stone);
  --card-fg: var(--c-ink);
  --ov: 28, 28, 28;                 /* hover overlay colour (rgb) */
  grid-column: span 3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: clamp(340px, 30vw, 440px);
  padding: clamp(20px, 2vw, 28px);
  background: var(--card-bg);
  color: var(--card-fg);
  transition: color .4s ease;
}
.audience__card--blue  { --card-bg: var(--c-blue); --card-fg: var(--c-paper); --ov: 31, 61, 90; }
.audience__card--ink   { --card-bg: var(--c-ink);  --card-fg: var(--c-paper); }

/* Hover background image + overlay */
.audience__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .5s ease;
}
.audience__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.2s var(--ease-out);
}
.audience__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--ov), .55) 0%, rgba(var(--ov), .9) 100%);
}

.audience__title {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
}
.audience__text {
  max-width: 28ch;
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: 1.5;
  opacity: .78;
}

/* Icon badge */
.audience__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(249, 249, 249, .35);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .5s var(--ease-out);
}
.audience__card--stone .audience__icon {
  background: var(--c-paper);
  border-color: rgba(28, 28, 28, .12);
}

@media (hover: hover) {
  .audience__card:hover { color: var(--c-paper); }
  .audience__card:hover .audience__bg { opacity: 1; }
  .audience__card:hover .audience__bg img { transform: scale(1); }
  .audience__card:hover .audience__icon {
    background: var(--c-paper);
    border-color: var(--c-paper);
    color: var(--c-ink);
    transform: scale(1.06);
  }
}

@media (max-width: 1023px) {
  .audience__card { grid-column: span 6; min-height: 320px; }
}
@media (max-width: 767px) {
  .audience__card { grid-column: 1 / -1; min-height: 260px; }
}

/* ---------- 21. HOW WE WORK (sticky + timeline) ---------- */
.guide {
  --cut: clamp(28px, 4vw, 64px);
  padding-top: calc(var(--section-py) + var(--cut));
  clip-path: polygon(0 var(--cut), 50% var(--cut), calc(50% + var(--cut)) 0, 100% 0, 100% 100%, 0 100%);
}
.guide__grid { align-items: start; row-gap: 56px; }

/* Left: sticky */
.guide__aside {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h-base) + 24px);
}
.guide__aside .section__eyebrow { margin-bottom: 28px; padding-top: 0; }
.guide__cta { margin-top: 32px; }

.guide__stepper {
  margin-top: clamp(40px, 7vh, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--c-line-dark);
}
.guide__counter {
  display: flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.guide__total {
  margin-left: .6em;
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--c-text-dim);
}
.guide__texts { display: grid; margin: 20px 0 0; padding: 0; list-style: none; }
.guide__text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .5s var(--ease-out), visibility 0s linear .35s;
}
.guide__text.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease .08s, transform .6s var(--ease-out) .08s, visibility 0s;
}
.guide__text-title {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
}
.guide__text-desc {
  max-width: 42ch;
  margin-top: 12px;
  line-height: 1.6;
  color: var(--c-text-dim);
}

/* Right: timeline */
.guide__track {
  --rail: 64px;
  --p: 0;
  grid-column: 7 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(88px, 16vh, 180px);
  margin: 0;
  padding: 0 0 0 var(--rail);
  list-style: none;
}
/* Rail (base line) + progress, as pseudo-elements of the <ol> */
.guide__track::before,
.guide__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.guide__track::before {
  left: 13.5px;
  width: 1px;
  background: var(--c-line-dark);
}
.guide__track::after {
  left: 13px;
  width: 2px;
  background: var(--c-blue);
  transform: scaleY(var(--p));
  transform-origin: top;
}

.guide__step { position: relative; }
.guide__marker {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--rail));
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--c-ink);
  border: 1px solid var(--c-line-dark);
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .06em;
  color: var(--c-text-dim);
  transition: background-color .3s, border-color .3s, color .3s;
}
.guide__marker.is-reached {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

.guide__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.guide__media img { width: 100%; height: 100%; object-fit: cover; }

.guide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.guide__tags li {
  padding: 7px 10px;
  border: 1px solid var(--c-line-dark);
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

/* Active vs inactive steps */
.guide__media, .guide__tags, .guide__mobile-text {
  opacity: .35;
  transition: opacity .5s ease;
}
.guide__step.is-active .guide__media,
.guide__step.is-active .guide__tags,
.guide__step.is-active .guide__mobile-text { opacity: 1; }

.guide__mobile-text { display: none; }

@media (max-width: 1023px) {
  .guide__aside { grid-column: 1 / -1; position: static; }
  .guide__stepper { display: none; }
  .guide__track { grid-column: 1 / -1; --rail: 48px; gap: 72px; }
  .guide__mobile-text { display: block; margin-bottom: 20px; }
  .guide {
    clip-path: polygon(0 var(--cut), 40% var(--cut), calc(40% + var(--cut)) 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ---------- 22. PILL BUTTONS ----------
   Usage: class="btn btn--solid btn--pill [btn--lg]"
   Hover: same terracotta sweep as header "Contact".              */
.btn--pill { border-radius: 999px; padding: .85em 1.4em; }
.btn--lg   { padding: 1.05em 1.75em; font-size: .9375rem; }
.btn__arrow { flex-shrink: 0; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(3px); }
.btn--pill:focus-visible { outline-offset: 4px; }

/* Rounded interactive header controls (cards/images stay square) */
.lang__toggle,
.burger { border-radius: 999px; }
.lang__menu { border-radius: 14px; }
.lang__option { border-radius: 8px; }

/* ---------- 23. COLLABORATIONS (logo ticker) ----------
   Full width, no edge fade, slow, pauses on hover.        */
.logos { padding-block: clamp(72px, 9vw, 128px); }
.logos__title { text-align: center; }

.logos__marquee {
  margin-top: clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.logos__marquee:hover .marquee__track { animation-play-state: paused; }

.logos__item {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(140px, 13vw, 190px);
  height: 64px;
  margin-right: clamp(40px, 5vw, 88px);
}
.logos__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .35s ease, opacity .35s ease;
}
.logos__item:hover img { filter: none; opacity: 1; }
/* Placeholder until logoN.webp exists */
.logos__item.has-missing {
  background-color: rgba(28, 28, 28, .04);
  background-image:
    linear-gradient(rgba(28,28,28,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,28,.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ---------- 24. EXPERIENCE (cards + carousel) ---------- */
.projects {
  --gap: var(--gutter);
  --room: 24px;                     /* space for hover frame + zoom */
  margin-top: clamp(40px, 5vw, 72px);
}
.projects__viewport {
  margin-inline: calc(-1 * var(--room));
  padding: var(--room);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--room);
  scrollbar-width: none;
}
.projects__viewport::-webkit-scrollbar { display: none; }
.projects__viewport.is-draggable { cursor: grab; }
.projects__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.projects__viewport.is-dragging .project { pointer-events: none; }

.projects__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Card */
.project {
  position: relative;
  scroll-snap-align: start;
  transition: transform .5s var(--ease-out);
}
.project::before {                  /* hover frame */
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(28, 28, 28, .18);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .35s ease, transform .5s var(--ease-out), border-color .3s;
  pointer-events: none;
}

.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.project__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.project__body { padding-top: 20px; }
.project__location {
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.project__title {
  margin: 10px 0 0;
  font-family: var(--f-body);
  font-size: clamp(1.125rem, 1rem + .35vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.25;
}
.project__link { text-decoration: none; }
.project__link::after {             /* whole card clickable */
  content: "";
  position: absolute;
  inset: 0;
}
.project__link:focus-visible { outline: none; }
.project__role {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: rgba(28, 28, 28, .6);
}
.project__desc {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: rgba(28, 28, 28, .75);
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.project__tags li {
  padding: 6px 9px;
  border: 1px solid rgba(28, 28, 28, .14);
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, .65);
}

/* Hover (mouse only) + keyboard focus */
@media (hover: hover) {
  .project:hover { transform: scale(1.02); z-index: 1; }
  .project:hover::before { opacity: 1; transform: none; }
  .project:hover .project__img--hover.is-ready { opacity: 1; }
}
@media (hover: none) {
  .project__img--hover { display: none; }   /* mobile: main image only */
}
.project:has(.project__link:focus-visible)::before {
  opacity: 1;
  transform: none;
  border-color: var(--c-blue);
}

/* Controls (only when cards overflow) */
.projects__controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.projects__controls[hidden] { display: none; }
.projects__progress {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(28, 28, 28, .1);
  overflow: hidden;
}
.projects__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-w, 33%);
  background: var(--c-blue);
  transform: translateX(var(--bar-x, 0%));
}
.projects__arrows { display: flex; gap: 8px; }
.projects__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(28, 28, 28, .18);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.projects__arrow:hover:not(:disabled) {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.projects__arrow:disabled { opacity: .35; cursor: default; }

@media (max-width: 1023px) {
  .projects__track { grid-auto-columns: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 767px) {
  .projects { --room: 16px; }
  .projects__track { grid-auto-columns: 85%; }
}

/* ---------- 25. FAQ ---------- */
.faq__title {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.faq__list {
  grid-column: 3 / span 8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border: 1px solid rgba(28, 28, 28, .14);
  background: var(--c-paper);
  transition: border-color .3s ease, background-color .3s ease;
}
.faq__item:hover { border-color: rgba(28, 28, 28, .3); }
.faq__item[open] {
  border-color: rgba(53, 97, 140, .45);
  background: #fff;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 2.4vw, 28px);
  font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color .3s ease;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:focus-visible { outline-offset: -3px; }
.faq__item[open] .faq__question { color: var(--c-blue); }

/* + → − icon */
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -.75px;
  background: currentColor;
  transition: transform .4s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__answer { overflow: hidden; }
.faq__answer-inner {
  padding: 0 clamp(18px, 2.4vw, 28px) 24px;
}
.faq__answer p {
  max-width: 64ch;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: rgba(28, 28, 28, .75);
}

@media (max-width: 1023px) {
  .faq__list { grid-column: 1 / -1; }
}

/* ---------- 26. MOLDOVA CTA (parallax + contact cards) ---------- */
.moldova {
  padding-top: clamp(180px, 24vw, 360px);   /* room to show the background photo */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;       /* clip (not scrollable): focus/scrollIntoView can't shift the content */
}
.moldova__media {
  position: absolute;
  inset: -18% 0;                     /* extra height for parallax travel */
  z-index: -2;
  transform: translate3d(0, var(--parallax, 0px), 0);
}
.moldova__media img { width: 100%; height: 100%; object-fit: cover; }
.moldova::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28,28,28,.78) 0%, rgba(28,28,28,.7) 45%, rgba(28,28,28,.92) 100%);
  pointer-events: none;
}

.moldova__head {
  grid-column: 3 / span 8;
  text-align: center;
}
.moldova__title { font-size: var(--fs-h2); }
.moldova__subtitle {
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  color: var(--c-paper);
}
.moldova__text {
  max-width: 56ch;
  margin: 24px auto 0;
  line-height: 1.6;
  color: var(--c-text-dim);
}
.moldova__keywords {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  line-height: 1.8;
  color: rgba(249, 249, 249, .55);
}

/* Contact cards (reusable) */
.contact-cards {
  scroll-margin-top: 45vh;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  width: 100%;
  max-width: 760px;
  justify-self: center;
  gap: 12px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid rgba(249, 249, 249, .22);
  background: transparent;
  color: var(--c-paper);
  text-decoration: none;
  transition: border-color .35s ease, background-color .35s ease;
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(249, 249, 249, .25);
  border-radius: 50%;
  transition: border-color .35s ease, background-color .35s ease, color .35s ease;
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__title {
  margin: 20px 0 0;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.contact-card__text {
  margin-top: 6px;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--c-text-dim);
}
.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--c-blue);
  background: rgba(53, 97, 140, .1);
}
.contact-card:hover .contact-card__icon,
.contact-card:focus-visible .contact-card__icon {
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: #fff;
}
.contact-card:focus-visible { outline-offset: 4px; }

@media (max-width: 1023px) {
  .moldova__head { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .contact-cards { grid-template-columns: 1fr; gap: 12px; }
  .contact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    align-items: center;
    padding: 20px;
  }
  .contact-card__icon { grid-row: span 2; width: 48px; height: 48px; }
  .contact-card__title { margin: 0; }
  .contact-card__text { margin-top: 4px; font-size: var(--fs-small); }
}

/* ---------- 27. FOOTER ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  overflow: hidden;
  overflow: clip;
  background: var(--c-ink);
  color: var(--c-paper);
  padding-top: clamp(72px, 9vw, 128px);
}
.footer__top { row-gap: 48px; }

.footer__label {
  margin-bottom: 18px;
  color: rgba(249, 249, 249, .5);
}

.footer__nav { grid-column: 1 / span 6; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  justify-self: start;
  width: fit-content;
  font-size: var(--fs-small);
  color: var(--c-text-dim);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .25s ease, background-size .35s var(--ease-out);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--c-paper);
  background-size: 100% 1px;
}
.footer__link--strong { font-size: .9375rem; color: var(--c-paper); }

.footer__contact {
  grid-column: 8 / span 3;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer__label + .footer__link { display: inline-block; }
.footer__address {
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.6;
  color: var(--c-text-dim);
}
.footer__social { grid-column: 11 / span 2; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--c-line-dark);
}
.footer__brand .brand__logo { height: 30px; }
.footer__meta { color: rgba(249, 249, 249, .5); }
.footer__credit { text-decoration: none; transition: color .25s; }
.footer__credit:hover, .footer__credit:focus-visible { color: var(--c-paper); }

/* Giant wordmark: fitted to width, cropped at the bottom */
.footer__wordmark {
  margin-top: clamp(32px, 4vw, 56px);
  padding-inline: var(--pad-x);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24vw;                 /* fallback before JS fit */
  line-height: .78;
  letter-spacing: -.035em;
  color: #e6e4e0;
  opacity: .3;
  white-space: nowrap;
  text-align: center;
  margin-bottom: -.1em;            /* crops the baseline area like the design */
  user-select: none;
}
.footer__wordmark span { display: inline-block; }

@media (max-width: 1023px) {
  .footer__nav { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / span 8; }
  .footer__social { grid-column: 9 / span 4; }
}
@media (max-width: 767px) {
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__social { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 28. ABOUT (section 3 eyebrow) + TEAM MODAL ---------- */
.split__eyebrow { margin-bottom: 20px; padding-top: 0; }

/* <dialog> covers the viewport; its own background is the backdrop */
.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--pad-x);
  border: 0;
  background: rgba(28, 28, 28, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.modal[open] { display: grid; place-items: center; }
.modal::backdrop { background: transparent; }
.modal.is-open {
  background: rgba(28, 28, 28, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal__panel {
  width: min(100%, 1000px);
  max-height: calc(100dvh - 2 * var(--pad-x));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px);
  background: var(--c-paper);
  color: var(--c-ink);
  opacity: 0;
  transform: translateY(20px) scale(.985);
  transition: opacity .3s ease, transform .45s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(28, 28, 28, .12);
}
.modal__eyebrow { margin-bottom: 14px; padding-top: 0; }
.modal__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
  line-height: 1.1;
}
.modal__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(28, 28, 28, .18);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease-out);
}
.modal__close:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-paper);
  transform: rotate(90deg);
}

.modal__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 36px);
}
.person {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 20px;
  align-items: start;
}
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}
.person__role {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--c-blue);
}
.person__desc {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(28, 28, 28, .75);
}
.person__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: .6em 1em;
  border: 1px solid rgba(28, 28, 28, .18);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.person__link:hover,
.person__link:focus-visible {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* Single-person variant */
.modal--single .modal__panel { width: min(100%, 780px); }
.modal--single .modal__people { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .modal__people { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .modal { padding: 12px; }
  .modal__panel { max-height: calc(100dvh - 24px); }
  .person { grid-template-columns: 1fr; }
  .person__photo { aspect-ratio: 4 / 3; }
}

/* ---------- 29. LEGAL PAGE (legal.html) ----------
   Both languages in the DOM; the EN/RO selector shows one.      */
html[lang="ro"] [data-lang-block="en"],
html:not([lang="ro"]) [data-lang-block="ro"] { display: none; }

.page-legal .site-header::before { opacity: 1; }   /* solid header from the top */

.legal-hero {
  padding: calc(var(--header-h-base) + clamp(56px, 8vw, 112px)) 0 clamp(40px, 5vw, 64px);
  background: var(--c-paper-2);
  border-bottom: 1px solid rgba(28, 28, 28, .08);
}
.legal-hero .section__eyebrow { margin-bottom: 20px; padding-top: 0; }
.legal-hero__title { grid-column: 4 / span 8; }
.legal-hero__meta {
  grid-column: 4 / span 8;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(28, 28, 28, .55);
}

.legal { padding-block: clamp(56px, 7vw, 104px); }
.legal__grid { align-items: start; }
.legal__toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: calc(var(--header-h-base) + 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__toc a {
  width: fit-content;
  padding: .6em 1.1em;
  border: 1px solid rgba(28, 28, 28, .16);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.legal__toc a:hover,
.legal__toc a:focus-visible {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.legal__content { grid-column: 4 / span 7; }

.legal__doc + .legal__doc {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(28, 28, 28, .12);
}
.legal__doc { scroll-margin-top: calc(var(--header-h-base) + 24px); }
.legal__doc h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); margin-bottom: 24px; }
.legal__doc h3 {
  margin: 40px 0 12px;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}
.legal__doc p,
.legal__doc li {
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(28, 28, 28, .8);
}
.legal__doc p + p { margin-top: 12px; }
.legal__doc ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal__doc li + li { margin-top: 6px; }
.legal__doc a { color: var(--c-blue); text-underline-offset: 3px; }
.legal__intro { font-size: 1.0625rem !important; color: var(--c-ink) !important; }

.legal__card {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(28, 28, 28, .12);
  background: #fff;
}
.legal__card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
  font-size: .9375rem;
}
.legal__card dt {
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, .55);
  padding-top: .25em;
}
.legal__card dd { margin: 0; }

@media (max-width: 1023px) {
  .legal-hero__title, .legal-hero__meta { grid-column: 1 / -1; }
  .legal__toc {
    grid-column: 1 / -1;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .legal__content { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .legal__card dl { grid-template-columns: 1fr; gap: 2px; }
  .legal__card dd { margin-bottom: 10px; }
}

/* ---------- 99. REDUCED MOTION (keep last) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
}
