/* =========================================================
   AEROSTAR — Homepage
   Reference frame: 1512px (MacBook Pro 14")
   ========================================================= */

@font-face {
  font-family: "Aspekta";
  src: url("../fonts/AspektaVF.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TBJ Monodrip Inktrap";
  src: url("../fonts/TBJMonodripInktrap-VF.ttf?v=2") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #0d204d;
  --navy-800: #12256e;
  --blue-700: #264796;
  --sky-500: #2e86be;
  --ink: #1e1e1e;
  --paper: #ffffff;
  --gray-50: #f4f4f4;
  --gray-100: #f2f2f2;

  --font-sans: "Aspekta", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "TBJ Monodrip Inktrap", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --gutter: clamp(16px, 5.291vw, 80px);          /* 80 @ 1512 */
  --content: 1352px;
  --section-y: clamp(64px, 7.937vw, 120px);      /* 120 @ 1512 */
  --header-h: 80px;

  /* Type scale (value @ 1512) */
  --fs-hero: clamp(40px, 6.349vw, 96px);         /* 96 */
  --fs-statement: clamp(27px, 3.175vw, 48px);    /* 48 */
  --fs-figure: clamp(36px, 2.976vw, 45px);       /* 45 */
  --fs-card: clamp(22px, 1.984vw, 30px);         /* 30 */
  --fs-lg: clamp(18px, 1.587vw, 24px);           /* 24 */
  --fs-post: clamp(18px, 1.455vw, 22px);         /* 22 */
  --fs-body: clamp(16px, 1.19vw, 18px);          /* 18 */

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* `clip` (not `hidden`) — kills horizontal wobble from slide-ins
     without creating a scroll container. */
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* Figma "text-box-trim: cap / alphabetic" — tightens text to cap height
   so spacing matches the design exactly (progressive enhancement). */
.trim { text-box: trim-both cap alphabetic; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* 457 / 895 column split used throughout the design */
.split {
  display: grid;
  grid-template-columns: minmax(0, 457fr) minmax(0, 895fr);
  align-items: start;
}

/* ---------- Atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.eyebrow__dot { width: 8px; height: 8px; background: var(--blue-700); flex: none; }
.eyebrow--light { color: #fff; }
.eyebrow--light .eyebrow__dot { background: var(--sky-500); }

.statement {
  font-size: var(--fs-statement);
  line-height: 1.125;               /* 54 / 48 */
  font-weight: 400;
  color: var(--blue-700);
  text-wrap: pretty;
}
.statement--light { color: #fff; }
.statement .w { display: inline; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 24px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate3d(0, 101%, 0);
  transition: transform .5s var(--ease-out);
}
.btn__chev {
  width: 12px;
  height: 7px;
  transform: rotate(-90deg);
  transition: transform .45s var(--ease-out), filter .45s var(--ease-out);
}
.btn--light { color: #fff; }
.btn--light::before { background: #fff; }
.btn--dark { color: var(--navy-800); }
.btn--dark::before { background: var(--navy-800); }
@media (hover: hover) {
  .btn:hover::before { transform: translate3d(0, 0, 0); }
  .btn--light:hover { color: var(--navy-900); border-color: #fff; }
  .btn--light:hover .btn__chev { filter: brightness(0) saturate(100%) invert(10%) sepia(42%) saturate(3150%) hue-rotate(212deg) brightness(92%); }
  .btn--dark:hover { color: #fff; border-color: var(--navy-800); }
  .btn--dark:hover .btn__chev { filter: brightness(0) invert(1); }
  .btn:hover .btn__chev { transform: translateX(4px) rotate(-90deg); }
}
.hero .btn { letter-spacing: 0; }

/* =========================================================
   PRELOADER / PAGE TRANSITION
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}
.pt-enter .preloader { visibility: visible; transform: none; pointer-events: auto; }
.preloader__logo { overflow: hidden; }         /* mask the logo slides through */
.preloader__inner {
  --s: 2.4;                                    /* 239px header logo × 2.4 ≈ 573px */
  display: flex;
  align-items: flex-end;
  gap: calc(10.091px * var(--s));
  will-change: transform;
}
/* First load: logo starts below the mask (JS slides it up). When arriving via
   the leave transition it is already in place. */
.pt-enter:not(.pt-arrived) .preloader__inner { transform: translateY(105%); }
.preloader__mark { width: calc(76.3394px * var(--s)); height: auto; }
.preloader__text { width: calc(152.248px * var(--s)); height: auto; margin-bottom: calc(6px * var(--s)); }
@media (max-width: 860px) { .preloader__inner { --s: 1.6; } }
@media (max-width: 460px) { .preloader__inner { --s: 1.2; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  transition: border-color .4s var(--ease-out), transform .5s var(--ease-out);
  will-change: transform;
}
/* The glass lives on a ::before layer, NOT on the header itself: an element with
   backdrop-filter becomes a "backdrop root", and the nested dropdown panel could
   then no longer blur the page behind it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: rgba(13, 32, 77, 0);
  transition: background-color .4s var(--ease-out);
}
.site-header.is-solid { border-color: rgba(255, 255, 255, .12); }
.site-header.is-solid::before { background-color: var(--navy-900); }
/* Frosted glass once past the hero: translucent navy + backdrop blur.
   Falls back to the solid navy above where backdrop-filter is unsupported. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-solid::before {
    background-color: rgba(13, 32, 77, .9);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
            backdrop-filter: blur(18px) saturate(160%);
  }
  /* Over the open mobile menu the glass would just blur flat navy — keep it solid. */
  .menu-open .site-header.is-solid::before { background-color: var(--navy-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header.is-hidden { transform: translate3d(0, -101%, 0); }
.site-header__inner {
  display: flex;
  align-items: stretch;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: flex-end;
  gap: 10.091px;
  padding: 6px 0 26px;
  justify-self: start;
}
.brand__mark { width: 76.3394px; height: 48px; }
.brand__text { display: flex; flex-direction: column; padding-bottom: 6px; }
.brand__text img { width: 152.248px; height: 18.6893px; }

.main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Half of the gap the 457/895 grid left between logo and nav
     (column 1 = 457/1352 of the content width, minus the logo). */
  margin-left: max(32px, calc((100% * 457 / 1352 - 238.68px) / 2));
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}
.nav-link img { width: 9px; height: 5px; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.main-nav__divider { width: 1px; height: 100%; align-self: stretch; }

/* ---------- Dropdown (Linii de afaceri) ---------- */
/* The item stretches to the full header height, so moving the pointer from the
   trigger down into the panel never leaves the hover area. */
.nav-item { position: relative; align-self: stretch; display: flex; align-items: center; }
.nav-link__caret { transition: transform .45s var(--ease-out); }
.nav-item.is-open .nav-link__caret { transform: rotate(180deg); }
.nav-item.is-open .nav-link::after { transform: scaleX(1); transform-origin: left; }

.dropdown {
  --pad: 8px;
  position: absolute;
  top: calc(100% + 1px);             /* sits on the header's bottom border */
  left: calc(-1 * (var(--pad) + 12px));   /* thumbnails line up with the trigger text */
  width: 400px;
  padding: var(--pad);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .5s;
}
/* Glass panel on its own layer so it can be wiped open with clip-path while the
   backdrop blur keeps working (clip-path/opacity on an ancestor would kill it). */
.dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .dropdown::before {
    background: rgba(13, 32, 77, .9);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
            backdrop-filter: blur(18px) saturate(160%);
  }
}
.nav-item.is-open .dropdown { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.nav-item.is-open .dropdown::before { clip-path: inset(0 0 0 0); }

.dropdown__list { display: flex; flex-direction: column; }
.dropdown__list li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.dropdown__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 18px;
  padding: 12px 16px 12px 12px;
  color: #fff;
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-out), background-color .3s var(--ease-out);
}
.nav-item.is-open .dropdown__item {
  opacity: 1;
  transform: none;
  transition-delay: calc(.12s + var(--i) * .06s), calc(.12s + var(--i) * .06s), 0s;
}
.dropdown__thumb {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy-800);
}
.dropdown__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.dropdown__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 32, 77, .45);      /* same overlay family as the business cards */
  transition: background-color .45s var(--ease-out);
}
.dropdown__text { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dropdown__num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--sky-500);
  text-box: trim-both cap alphabetic;
}
.dropdown__label {
  font-size: 17px;
  line-height: 1.2;
  text-box: trim-both cap alphabetic;
}
.dropdown__chev {
  width: 12px;
  height: 7px;
  opacity: 0;
  transform: translateX(-6px) rotate(-90deg);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out);
}
.dropdown__item:hover,
.dropdown__item:focus-visible { background-color: rgba(255, 255, 255, .06); }
.dropdown__item:focus-visible { outline-offset: -2px; }
.dropdown__item:hover .dropdown__thumb img,
.dropdown__item:focus-visible .dropdown__thumb img { transform: scale(1.12); }
.dropdown__item:hover .dropdown__thumb::after,
.dropdown__item:focus-visible .dropdown__thumb::after { background-color: rgba(13, 32, 77, .1); }
.dropdown__item:hover .dropdown__chev,
.dropdown__item:focus-visible .dropdown__chev { opacity: 1; transform: translateX(0) rotate(-90deg); }
.icon-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.icon-btn img[src*="search"] { width: 19.5px; height: 19.5px; }
.icon-btn img[src*="menu"] { width: 19.5px; height: 13.5px; }

/* Menu trigger: the menu.svg icon cross-fades into an ✕ while the menu is open */
.icon-btn[data-menu-toggle] { position: relative; }
.icon-btn[data-menu-toggle] img { transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
.icon-btn[data-menu-toggle]::before,
.icon-btn[data-menu-toggle]::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 1.5px;
  border-radius: 2px;
  background: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg) scaleX(.4);
  transition: transform .45s var(--ease-out), opacity .3s var(--ease-out);
}
.menu-open .icon-btn[data-menu-toggle] img { opacity: 0; transform: scale(.6); }
.menu-open .icon-btn[data-menu-toggle]::before { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
.menu-open .icon-btn[data-menu-toggle]::after  { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }

/* ---------- Side menu (hamburger) ---------- */
/* Pure CSS motion driven by .is-open, so it works with or without GSAP. */
.side-menu {
  --sm-ease: cubic-bezier(.87, 0, .13, 1);     /* ≈ expo.inOut, same family as the preloader */
  position: fixed;
  inset: 0;
  z-index: 40;                                 /* under the header (50) so the ✕ stays reachable */
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .8s;
}
.side-menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.side-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 32, 77, .55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.side-menu.is-open .side-menu__scrim { opacity: 1; }
.side-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);               /* the fixed header sits over the panel top */
  background: var(--navy-900);
  border-left: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  transform: translate3d(100%, 0, 0);
  transition: transform .8s var(--sm-ease);
  will-change: transform;
}
.side-menu.is-open .side-menu__panel { transform: none; }
.side-menu__panel:focus { outline: none; }
.side-menu__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 48px 56px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

/* Staggered entrance; --i is assigned in JS to the visible items, in order. */
.sm-anim {
  opacity: 0;
  transform: translate3d(32px, 0, 0);
  transition: opacity .35s var(--ease-out), transform .7s var(--ease-out);
}
.side-menu.is-open .sm-anim {
  opacity: 1;
  transform: none;
  transition-delay: calc(.3s + var(--i, 0) * .03s);
}

/* Main nav (only when the header nav is collapsed) */
.side-menu__primary {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 1279.98px) { .side-menu__primary { display: flex; } }
.sm-primary { font-size: clamp(26px, 7vw, 34px); line-height: 1.1; }

.side-menu__nav { display: flex; flex-direction: column; gap: 40px; }
.sm-group__title {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--sky-500);
  text-box: trim-both cap alphabetic;
}
.sm-group__list, .sm-list { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sm-list { padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sm-link { font-size: clamp(17px, 4.6vw, 19px); line-height: 1.25; }
.sm-group__list .sm-link { color: rgba(255, 255, 255, .78); transition: color .3s var(--ease-out); }

/* Same underline as the footer links */
.sm-primary, .sm-link { position: relative; display: inline-block; }
.sm-primary::after, .sm-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .sm-primary:hover::after, .sm-link:hover::after { transform: scaleX(1); }
  .sm-group__list .sm-link:hover { color: #fff; }
}

.side-menu__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 56px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.sm-lang { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; }
@media (max-width: 640px) {
  .side-menu__scroll { padding: 36px var(--gutter) 32px; }
  .side-menu__foot { padding-inline: var(--gutter); }
  .side-menu__panel { border-left: 0; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  /* 980 @ 1512 — svh keeps it stable when the mobile URL bar collapses */
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1200px;
  padding: clamp(140px, 13.228vw, 200px) var(--gutter) var(--gutter);
  background: var(--blue-700);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1100px) { .hero { min-height: 760px; } }
.hero > :not(.hero__media) { width: 100%; max-width: var(--content); margin-inline: auto; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img {                                  /* wrapper: parallax + intro zoom move image & video together */
  position: absolute;
  left: 0; top: -8%;
  width: 100%; height: 116%;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}
.hero__img > img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--navy-900) 0%, rgba(38, 71, 150, 0) 100%);
}
.hero__top { --top-pad: 10px; padding-inline: var(--top-pad); }
.hero__title {
  /* Always exactly two lines: the break after "prin" is a <br>, nothing else may wrap,
     and the size is capped so the longer line ("PERFORMANȚĂ PRIN" ≈ 9.89em wide,
     10.1 with a safety margin) always fits the available width. */
  white-space: nowrap;
  font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter) - 2 * var(--top-pad, 0px)) / 10.1));
  line-height: 1.0625;          /* 102 / 96 */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.hero__lead {
  flex: 0 1 1009px;
  max-width: 1009px;
  font-size: var(--fs-body);
  line-height: 24px;
  letter-spacing: 0.01em;
}

/* =========================================================
   INTRO / BUSINESS LINES
   ========================================================= */
.intro { padding-block: var(--section-y); }

.biz { padding-inline: calc(var(--gutter) / 2); }
.biz__row {
  display: flex;
  height: clamp(300px, 26.455vw, 400px);       /* 400 @ 1512 */
  max-width: calc(var(--content) + var(--gutter));
  margin-inline: auto;
}
.biz-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 2.646vw, 40px);
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.biz-card__media { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.biz-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.biz-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(13, 32, 77, .6);
  transition: background-color .6s var(--ease-out);
}
.biz-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  width: 100%;
}
.biz-card__title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-card);
  line-height: 1.2;              /* 36 / 30 */
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.biz-card__plus { width: 31.5px; height: 31.5px; margin: -0.75px; flex: none; transition: transform .6s var(--ease-out); }
@media (hover: hover) {
  .biz-card:hover .biz-card__media img { transform: scale(1.12); }
  .biz-card:hover .biz-card__media::after { background: rgba(13, 32, 77, .35); }
  .biz-card:hover .biz-card__plus { transform: rotate(90deg); }
}

/* =========================================================
   FIGURES
   ========================================================= */
.figures { padding-top: var(--section-y); padding-bottom: calc(var(--section-y) / 2); }
.figures__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;              /* every card as tall as the tallest */
  gap: 10px;
}
.fig-card {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;        /* text sits on the bottom edge */
  background: var(--gray-50);
  overflow: hidden;
}
/* 160 / 40 / 40 @ 671px card — padding + image slots are in cqw of the card
   so the whole composition scales with it. */
.fig-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: max(23.845cqw, 120px) clamp(24px, 5.961cqw, 40px) clamp(24px, 5.961cqw, 40px);
}
.fig-card__img {
  position: absolute;
  height: auto;
  max-width: none;
  pointer-events: none;
  will-change: transform;
}
.fig-card--1 .fig-card__img { left: 28.912cqw; top: -0.3cqw; width: 71.088cqw; }
.fig-card--2 .fig-card__img { left: 35.469cqw; top: 0;       width: 67.660cqw; }
.fig-card--3 .fig-card__img { left: 51.565cqw; top: 5.663cqw; width: 44.262cqw; }
.fig-card--4 .fig-card__img { left: 55.291cqw; top: 5.365cqw; width: 48.733cqw; }
.fig-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-figure);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}
.fig-card__label { font-size: var(--fs-lg); line-height: 1.125; }

/* =========================================================
   MISSION
   ========================================================= */
.mission { padding-top: calc(var(--section-y) / 2); padding-bottom: var(--section-y); }
.mission__body { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.mission__lead { font-size: var(--fs-lg); line-height: 1.25; }
.mission__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  font-size: var(--fs-body);
  line-height: 24px;
}

/* =========================================================
   CAREERS
   ========================================================= */
.careers {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  padding-block: var(--section-y);
  overflow: hidden;
  isolation: isolate;
}
.careers__lines, .footer__lines {
  position: absolute;
  left: 50%;
  top: 100%;
  width: max(100%, 1000px);
  z-index: -1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.careers__lines img, .footer__lines img {
  width: 100%; height: auto;
  will-change: transform;
}
.careers__inner { display: flex; flex-direction: column; gap: clamp(72px, 11.905vw, 180px); }
.careers__body { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.careers__stats { display: flex; align-items: stretch; width: 100%; }
.c-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(200px, 16.07vw, 243px);
  padding: clamp(24px, 2.646vw, 40px);
  background: var(--navy-800);
}
.c-stat__icon { flex: none; }
.c-stat__divider { width: 1px; height: auto; align-self: stretch; flex: none; }
.c-stat__text { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.c-stat__num {
  font-family: var(--font-mono);
  font-size: var(--fs-figure);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.c-stat__label { font-size: var(--fs-lg); line-height: 1.125; }

/* =========================================================
   NEWS
   ========================================================= */
.news { background: var(--gray-100); padding: var(--section-y) calc(var(--gutter) * .75); }
.news__inner {
  display: flex; flex-direction: column; gap: 40px;
  max-width: calc(var(--content) + var(--gutter) * .5);
  margin-inline: auto;
}
.news__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: calc(var(--gutter) / 4);
}
.link-all {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #000;
  font-family: var(--font-mono);
  font-size: 14px; line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.link-all img, .post__more img { width: 16.5px; height: 11.5px; margin: -.75px; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .link-all:hover img, .post__more:hover img, .post:hover .post__more img { transform: translateX(5px); }
}

.news__list { display: flex; align-items: stretch; }
.post {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-inline: calc(var(--gutter) / 4);
  position: relative;
  isolation: isolate;
}
/* White hover panel — a pseudo-element so the card layout never shifts;
   it bleeds 20px above/below to frame the image and the "Citește" link. */
.post::before {
  content: "";
  position: absolute;
  inset: -20px 0;
  z-index: -1;
  background: #fff;
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
.post__divider { width: 1px; height: auto; align-self: stretch; flex: none; margin-block: -20px; } /* match the hover panel's 20px bleed */
.post__media {
  position: relative;
  display: block;
  aspect-ratio: 437.333 / 290;
  overflow: hidden;
  background: #dfe3ea;
}
.post__img {
  position: absolute;
  max-width: none;
  transition: transform 1.1s var(--ease-out);
  transform-origin: 50% 50%;
}
/* Figma crop rectangles */
.post__img--1 { left: 0;       top: -22.76%; width: 128.73%; height: 145.6%; }
.post__img--2 { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__img--3 { left: -8.92%;  top: -27.19%; width: 132.96%; height: 133.74%; }
.post__img--4 { left: -61.9%;  top: -52.84%; width: 191.17%; height: 192.2%; }
@media (hover: hover) {
  .post:hover .post__img { transform: scale(1.06); }
  .post:hover::before { opacity: 1; }
}
.post__meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.post__cat { color: var(--blue-700); }
.post__title {
  flex: 1 0 auto;
  font-weight: 400;
  font-size: var(--fs-post);
  line-height: calc(1.0909em + 5px);   /* 24 / 22 + 5px extra leading */
  padding-bottom: 10px;
}
.post__title a { background: linear-gradient(currentColor, currentColor) 0 calc(100% - 2px) / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
@media (hover: hover) {
  .post:hover .post__title a { background-size: 100% 1px; }
}
.post__more {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 14px; line-height: 20px;
  color: var(--blue-700);
}

/* =========================================================
   PARTNERS MARQUEE
   ========================================================= */
.partners { padding-block: clamp(40px, 5.291vw, 80px); overflow: hidden; --s: 1; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: calc(34.991px * var(--s));
  padding: calc(24.994px * var(--s)) 0;
  /* Loop seam (Boeing → Safran): both artworks touch their box edges, so this is
     the whole visible gap. 120px ≈ the average visible gap between other logos. */
  padding-right: calc(120px * var(--s));
  flex: none;
}
.logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(130.012px * var(--s));
  padding-left: calc(var(--pl, var(--px, 0)) * var(--s) * 1px);
  padding-right: calc(var(--pr, var(--px, 0)) * var(--s) * 1px);
}
.logo img { width: 100%; height: auto; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  min-height: clamp(640px, 64.815vw, 980px);   /* 980 @ 1512 */
  padding-top: var(--section-y);
}
.footer__top { display: flex; align-items: stretch; gap: clamp(48px, 8.929vw, 135px); }
.footer__about {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  width: 437px; flex: none;
}
.footer__claim { font-size: var(--fs-lg); line-height: normal; }
.social { position: relative; width: 208.925px; height: 24px; }
.social img { width: 208.925px; height: 24px; }
.social__hit { position: absolute; top: -8px; bottom: -8px; border-radius: 6px; }
.social__hit--fb { left: -8px;  width: 30px; }
.social__hit--in { left: 45px;  width: 42px; }
.social__hit--ig { left: 110px; width: 39px; }
.social__hit--yt { left: 172px; width: 45px; }
.social__hit:focus-visible { outline-offset: 0; }

.footer__cols { flex: 1 1 0; min-width: 0; display: flex; justify-content: space-between; gap: 32px; }
.f-col { display: flex; flex-direction: column; gap: 60px; }
.f-col__title {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--sky-500);
}
.f-col__list { display: flex; flex-direction: column; gap: 30px; font-size: var(--fs-body); line-height: 27px; white-space: nowrap; }
/* These links are trimmed to the baseline (.trim), so a background underline
   would sit right on the letters. Draw it below the box instead, at the same
   distance under the baseline as the article titles (0.205em). */
.f-col__list a, .footer__legal a {
  position: relative;
  display: inline-block;
}
.f-col__list a::after, .footer__legal a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.205em);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .f-col__list a:hover::after, .footer__legal a:hover::after { transform: scaleX(1); }
}
.footer__bottom { display: flex; flex-direction: column; gap: 60px; }
.footer__legal {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: var(--fs-body); line-height: 27px;
}
.footer__legal p { white-space: pre; }
.footer__wordmark { overflow: hidden; }
.footer__wordmark img { width: 100%; height: auto; will-change: transform; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* < 1280: page links collapse into the menu; divider, EN, search and the
   menu trigger stay on the right at every width down to phones. */
@media (max-width: 1279.98px) {
  .main-nav .nav-link:not([lang]),
  .main-nav .nav-item { display: none; }
  .main-nav { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; gap: 24px; }
}
/* < 460: language switch goes too (it stays in the menu overlay footer). */
@media (max-width: 459.98px) {
  .main-nav .nav-link[lang] { display: none; }
}

@media (max-width: 1180px) {
  .footer__top { flex-direction: column; }
  .footer__about { width: min(437px, 100%); }
  .footer__cols { justify-content: flex-start; gap: 64px 96px; flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .partners { --s: .62; }

  .news__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 0; }
  .post__divider { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand { padding: 0 0 24px; gap: 8px; }
  .brand__mark { width: 60px; height: auto; }
  .brand__text { padding-bottom: 4px; }
  .brand__text img { width: 120px; height: auto; }

  .hero__bottom { flex-direction: column; gap: 28px; }
  .hero__lead { flex: none; }
  .hero__top { --top-pad: 0px; }

  .biz__row { flex-direction: column; height: auto; }
  .biz-card { flex: none; height: clamp(220px, 58vw, 300px); }

  .careers__stats { flex-direction: column; }
  .c-stat__divider { display: none; }
  .c-stat + .c-stat__divider + .c-stat { border-top: 1px solid rgba(255, 255, 255, .9); }
  .c-stat { flex: none; min-height: 200px; }

  .mission__cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .figures__grid { grid-template-columns: 1fr; }
  .fig-card__body { padding-top: 44cqw; }

  .partners { --s: .45; }

  /* News becomes a native swipe carousel */
  .news { padding-inline: 0; }
  .news__head { padding-inline: var(--gutter); }
  .news__list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;               /* overflow-x:auto would otherwise make Y scrollable too */
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: calc(var(--gutter) - 12px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .news__list::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 82%; padding-inline: 12px; scroll-snap-align: start; }
  /* The 20px top/bottom bleed of the dividers and of the white hover panel is a
     desktop hover detail — on the touch carousel it only creates vertical overflow. */
  .post__divider { display: block; margin-block: 0; }
  .post::before { display: none; }

  .footer__inner { gap: 64px; min-height: 0; }
  .footer__cols { display: grid; grid-template-columns: 1fr; gap: 48px; }
  .f-col { gap: 32px; }
  .f-col__list { gap: 22px; white-space: normal; }
  .footer__legal { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .footer__legal p { white-space: normal; }
  .footer__bottom { gap: 40px; }
}

/* ---------- Pre-animation states (only when JS + motion are on) ---------- */
.js.motion [data-hero-fade],
.js.motion .site-header { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
