/* ============================================================
   UNICORN BRIDGE — styles.css  v2
   Premium dark corporate · czysty HTML/CSS/JS
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg:            #050608;
  --color-bg-soft:       #0B0D10;
  --color-card:          #111418;
  --color-card-soft:     #171B21;

  --color-text:          #F4F4F2;
  --color-muted:         #A7ADB7;
  --color-muted-2:       #747B86;

  --color-red:           #F24B55;
  --color-red-dark:      #B92F38;

  --color-gold:          #D6B46A;
  --color-gold-soft:     #8C7440;

  --color-border:        rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(214, 180, 106, 0.30);

  --shadow-soft:         0 24px 80px rgba(0, 0, 0, 0.50);
  --shadow-card:         0 4px 24px rgba(0, 0, 0, 0.35);

  --font-base:  system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "Courier New", Courier, monospace;

  --navbar-h:    72px;
  --section-gap: 120px;
  --container-w: 1280px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;

  --transition:  0.25s ease;

  /* ── STATIC SECTION BACKGROUNDS — zmienne do ręcznej regulacji ──────────
     Dotyczy sekcji: "Co robimy" / "Nasza strategia" / "Portfolio" / "Core Team"
       --bg-blur        → siła rozmycia    (16px = delikatne … 40px = mocne)
       --bg-brightness  → jasność obrazu   (0.10 = prawie czarny … 0.35 = wyraźny)
       --bg-saturate    → nasycenie kolorów (0.0 = szary … 1.0 = pełne kolory)
       --bg-overlay     → intensywność ciemnej warstwy nad obrazem
     Siła paralaksy → STATIC_FACTOR w initParallax() w script.js
     ─────────────────────────────────────────────────────────────────────── */
  --bg-blur:       3px;
  --bg-brightness: 0.45;
  --bg-saturate:   0.75;
  --bg-overlay:    rgba(5, 6, 8, 0.35);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 3px;
}

ul { list-style: none; }
address { font-style: normal; }
.is-hidden { display: none !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}
h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
p { color: var(--color-muted); }
small { font-size: 0.8rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-gap); }

.section-header {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header--left {
  text-align: left;
  margin-inline: 0;
}

.section-title { color: var(--color-text); margin-bottom: 1rem; }

.section-title--accent {
  background: linear-gradient(135deg, var(--color-text) 40%, var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow-group::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-red);
  flex-shrink: 0;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}
.btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  box-shadow: 0 0 28px rgba(242, 75, 85, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255,255,255,0.18);
}
.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 16px rgba(214, 180, 106, 0.10);
}

.btn--sm  { padding: 0.5rem 1.2rem; font-size: 0.78rem; }
.btn--lg  { padding: 0.9rem 2.25rem; font-size: 0.95rem; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  white-space: nowrap;
}

.tag--red  {
  background: rgba(242, 75, 85, 0.10);
  border-color: rgba(242, 75, 85, 0.28);
  color: var(--color-red);
}

.tag--gold {
  background: rgba(214, 180, 106, 0.08);
  border-color: var(--color-border-strong);
  color: var(--color-gold);
}

/* ============================================================
   CARDS — BASE
   ============================================================ */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

/* Status top border for portfolio cards */
.card[data-status="active"] { border-top: 2px solid rgba(74, 222, 128, 0.55); }
.card[data-status="dev"]    { border-top: 2px solid rgba(214, 180, 106, 0.55); }
.card[data-status="opp"]    { border-top: 2px solid rgba(242, 75, 85, 0.55); }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(242, 75, 85, 0.08);
  border: 1px solid rgba(242, 75, 85, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-red);
  flex-shrink: 0;
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__title { color: var(--color-text); margin-bottom: 0.65rem; }

.card__desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-muted-2);
  flex-shrink: 0;
}

.card__status--active::before { background: #4ADE80; }
.card__status--dev::before    { background: var(--color-gold); }
.card__status--opp::before    { background: var(--color-red); }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.cards-grid--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Stagger reveal for cards in grids */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.cards-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.cards-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   PLACEHOLDERS
   ============================================================ */
.placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
}

/* Subtle grid texture */
.placeholder__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Radial glow overlay */
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(242, 75, 85, 0.07) 0%,
    rgba(214, 180, 106, 0.04) 45%,
    transparent 70%);
  pointer-events: none;
}

/* Network SVG that fills the placeholder */
.placeholder__network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Flowing dashes animation on SVG connection lines */
@keyframes dashFlow {
  to { stroke-dashoffset: -40; }
}

.flow-line {
  animation: dashFlow 10s linear infinite;
}

/* Outer node ring pulse */
@keyframes ringPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.08; }
}

.pulse-ring {
  animation: ringPulse 4s ease-in-out infinite;
}

/* Small badge label inside placeholder */
.placeholder__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 1.25rem;
  background: rgba(5, 6, 8, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
}

.placeholder__badge-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder__badge small {
  font-size: 0.68rem;
  color: var(--color-muted-2);
  opacity: 0.6;
}

/* Kept for back-compat on network map */
.placeholder__label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-muted-2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  line-height: 1.5;
  padding: 0.75rem 1.25rem;
  border: 1px dashed rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

.placeholder__label small { color: var(--color-muted-2); opacity: 0.6; }

/* Hero placeholder dimensions */
.placeholder--hero {
  width: 100%;
  height: 100%;
  min-height: 460px;
}

/* Network map placeholder */
.placeholder--map {
  width: 100%;
  min-height: 400px;
}

/* Missions placeholder */
.placeholder--missions {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ============================================================
   SECTION IMAGES — real photo integration
   Wspólny kontener dla wszystkich trzech osadzonych obrazów.
   ============================================================ */

/* Wrapper: inherits dimensions z rodzica, dodaje zaokrąglenia i border */
.section-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

/* Sam obraz: wypełnia kontener, nie rozciąga się nienaturalnie */
.section-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Subtelny overlay stapiający obraz z ciemnym tłem strony */
.section-img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.10) 0%,
    transparent 30%,
    rgba(5, 6, 8, 0.22) 100%
  );
}

/* ── HERO ── absolute fill wewnątrz .hero__visual (aspect-ratio: 5/4) */
.hero__visual .section-img-wrap {
  position: absolute;
  inset: 0;
}

/* ── NETWORK ── .network__map nie ma explicit height — nadajemy min-height */
.network__map {
  position: relative;
}

.network__map .section-img-wrap {
  min-height: 420px;
  height: 100%;
}

/* Obraz sieci — lekko rozjaśniony, nakładka delikatna */
.network__map .section-img { filter: brightness(1.1) contrast(1.04); }

.network__map .section-img-overlay {
  background: linear-gradient(
    160deg,
    rgba(5, 6, 8, 0.18) 0%,
    transparent 35%,
    rgba(5, 6, 8, 0.15) 100%
  );
}

/* ── MISSIONS ── absolute fill wewnątrz .missions__visual (position:relative) */
.missions__visual .section-img-wrap {
  position: absolute;
  inset: 0;
}

/* Obraz EXPO — object-position center top zachowuje ważne elementy kompozycji */
.section-img--missions {
  object-position: center top;
}

/* Nieco mocniejszy overlay dla misji — stapia z ciemnym lewym panelem treści */
.missions__visual .section-img-overlay {
  background: linear-gradient(
    to right,
    rgba(5, 6, 8, 0.30) 0%,
    rgba(5, 6, 8, 0.08) 40%,
    transparent 65%,
    rgba(5, 6, 8, 0.12) 100%
  );
}

/* ── RESPONSYWNOŚĆ ── */
@media (max-width: 1024px) {
  .network__map .section-img-wrap { min-height: 320px; }
}

@media (max-width: 768px) {
  .network__map .section-img-wrap { min-height: 240px; }

  /* Na mobile hero visual ma max-height: 280px — obraz nie przekracza */
  .hero__visual .section-img-wrap { border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
  .network__map .section-img-wrap { min-height: 200px; }
}

/* ============================================================
   SECTION AMBIENT BACKGROUNDS
   Blurred, darkened version of the panel image — set via JS.
   Parallax driven by scroll in initParallax().
   ============================================================ */

.section-bg {
  position: absolute;
  inset: -120px;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(48px) brightness(0.20) saturate(0.65);
  will-change: transform;
}

/* Network and missions need a stacking context so section-bg is contained */
.network,
.missions {
  position: relative;
  overflow: hidden;
}

/* Content sits above the ambient background layer */
.network .container,
.missions .container {
  position: relative;
  z-index: 1;
}

/* Mobile: no parallax movement, smaller blur for performance */
@media (max-width: 768px) {
  .section-bg {
    filter: blur(28px) brightness(0.18) saturate(0.6);
    inset: 0;
    transform: scale(1.06);
    will-change: auto;
  }
}

/* ── STATIC AMBIENT BACKGROUNDS — modifier for 4 non-randomised sections ── */

/* Lighter filter controlled via CSS variables (see :root above) */
.section-bg--static {
  filter: blur(var(--bg-blur)) brightness(var(--bg-brightness)) saturate(var(--bg-saturate));
}

/* Dark overlay: second child in DOM, renders on top of section-bg--static (same z-index,
   DOM order wins), below section content (z-index: 1). Not affected by the blur filter
   because it is a sibling element, not a child of section-bg--static. */
.section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-overlay);
}

/* Per-section background images (relative paths from /Strona → ./img/) */
.what-we-do .section-bg--static { background-image: url('./img/BG_Bridge_6.png');    }
.strategy   .section-bg--static { background-image: url('./img/BG_Strategy_1.png');  }
.portfolio  .section-bg--static { background-image: url('./img/BG_Portfolio_4.png'); }
.team       .section-bg--static { background-image: url('./img/BG_Team_3.png');      }

/* Stacking contexts for the 4 new bg sections */
.what-we-do,
.strategy,
.portfolio,
.team {
  position: relative;
  overflow: hidden;
}

/* Content must sit above both ambient bg (z:0) and overlay (z:0 DOM-after) */
.what-we-do .container,
.strategy   .container,
.portfolio  .container,
.team       .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--navbar-h);
  background: rgba(5, 6, 8, 0.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.is-scrolled {
  background: rgba(5, 6, 8, 0.94);
  border-color: rgba(255, 255, 255, 0.05);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.navbar__logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar__dot { color: var(--color-red); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.navbar__links { display: flex; gap: 1.75rem; }

.nav-link {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--color-red);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.is-active { color: var(--color-text); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

/* ── NAVBAR DROPDOWN ─────────────────────────────────────── */
.nav-item--dropdown { position: relative; list-style: none; }

.nav-link--has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  user-select: none;
}

.nav-link--has-dropdown::after { display: none; }

.nav-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
  opacity: 0.6;
}
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown.is-open .nav-caret { transform: rotate(180deg); opacity: 1; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: rgba(17, 20, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 950;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item { list-style: none; }

.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-dropdown__link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-dropdown__link.is-current {
  color: var(--color-red);
}
.nav-dropdown__link-icon {
  width: 16px;
  height: 16px;
  color: var(--color-muted-2);
  flex-shrink: 0;
}
.nav-dropdown__link:hover .nav-dropdown__link-icon {
  color: var(--color-red);
}
.nav-dropdown__link--coming {
  opacity: 0.45;
  pointer-events: none;
}
.nav-dropdown__coming-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
}

/* ── MOBILE MENU — Apply sub-links ───────────────────────── */
.mobile-apply-group { width: 100%; text-align: center; }
.mobile-apply-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: default;
}
.mobile-apply-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.mobile-apply-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted-2);
  transition: color var(--transition);
}
.mobile-apply-link:hover { color: var(--color-text); }
.mobile-apply-link--coming {
  opacity: 0.4;
  pointer-events: none;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* 44px tap target */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}

.navbar__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: var(--navbar-h) 0 0 0;
  z-index: 850;
  background: rgba(5, 6, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--transition);
}

.mobile-link:hover { color: var(--color-text); }
.mobile-menu__cta { margin-top: 0.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--navbar-h) + clamp(64px, 8vw, 100px));
  padding-bottom: clamp(80px, 8vw, 120px);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Left red glow */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: -5%;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse,
    rgba(242, 75, 85, 0.055) 0%,
    transparent 65%);
  pointer-events: none;
}

/* Right gold hint */
.hero::after {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse,
    rgba(214, 180, 106, 0.04) 0%,
    transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.hero__text { max-width: 580px; }

.hero__headline { margin-bottom: 1.25rem; color: var(--color-text); }

/* Gradient accent on key phrase */
.hero__accent {
  background: linear-gradient(120deg, var(--color-text) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.78;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Stats strip */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero__stat {
  font-size: 0.75rem;
  color: var(--color-muted-2);
  letter-spacing: 0.03em;
  font-weight: 500;
}

.hero__stats-dot {
  color: var(--color-muted-2);
  opacity: 0.4;
  font-size: 0.8rem;
  line-height: 1;
}

/* Hero visual (right column) */
.hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
}

.hero__visual .placeholder--hero {
  position: absolute;
  inset: 0;
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what-we-do {
  background: var(--color-bg-soft);
  padding-block: clamp(72px, 7vw, 96px);
}

.what-we-do .card {
  border-top: 2px solid rgba(242, 75, 85, 0.45);
}

/* ============================================================
   STRATEGY
   ============================================================ */
.strategy {
  background: var(--color-bg);
  padding-block: clamp(72px, 7vw, 96px);
}

.strategy__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.strategy__step {
  background: var(--color-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background var(--transition);
  position: relative;
}

.strategy__step:hover { background: var(--color-card-soft); }

.strategy__step-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(242, 75, 85, 0.10);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Hover / focus-within: numer kroku robi się wyraźny i lekko luminous */
.strategy__step:hover .strategy__step-num,
.strategy__step:focus-within .strategy__step-num {
  color: var(--color-red);
  text-shadow: 0 0 20px rgba(242, 75, 85, 0.28);
}

.strategy__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.65rem;
}

.strategy__step-desc {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.strategy__cta { text-align: center; }

/* ============================================================
   NETWORK
   ============================================================ */
.network {
  background: var(--color-bg-soft);
  padding-block: clamp(72px, 7vw, 96px);
}

.network__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.network__nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.network-node {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.845rem;
  color: var(--color-muted);
  transition: border-color var(--transition), color var(--transition),
              transform var(--transition);
}

.network-node:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  transform: translateX(2px);
}

/* Region-based dot colours */
.network-node[data-region="market"]     .network-node__dot { background: var(--color-red); }
.network-node[data-region="investor"]   .network-node__dot { background: var(--color-gold); }
.network-node[data-region="initiative"] .network-node__dot { background: #6B8DD6; }
.network-node[data-region="ecosystem"]  .network-node__dot { background: #4ADE80; }

.network-node__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--color-bg); }

.portfolio-card__logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover .portfolio-card__logo {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-card__initials {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-muted-2);
  text-align: center;
}

.portfolio-card__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
}

/* ── PORTFOLIO CAROUSEL ─────────────────────────────────────────────────── */

.portfolio__carousel-outer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  outline: none;
}

.portfolio__carousel-outer:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.portfolio__carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.portfolio__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Cards inside portfolio track become flex items sized by JS */
.portfolio__track .card {
  flex: 0 0 auto;
  /* margin-bottom removed — flex row handles layout */
}

.portfolio__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition),
              background var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.portfolio__nav:hover:not(:disabled) {
  border-color: var(--color-border-strong);
  color: var(--color-gold);
  box-shadow: 0 0 14px rgba(214, 180, 106, 0.12);
  transform: scale(1.08);
}

.portfolio__nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.portfolio__nav svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.portfolio__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.portfolio__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--transition), width var(--transition);
}

.portfolio__dot.is-active {
  background: var(--color-red);
  width: 18px;
}

/* Center-focus: active card sharp, side cards dimmed */
.portfolio__track .card {
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter   0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color var(--transition),
              box-shadow var(--transition);
  will-change: transform, opacity, filter;
}

.portfolio__track .card.is-active {
  transform: scale(1.04);
  opacity: 1;
  filter: none;
  border-color: rgba(242, 75, 85, 0.30);
  box-shadow: 0 0 0 1px rgba(242, 75, 85, 0.07),
              0 20px 56px rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.portfolio__track .card.is-active:hover {
  transform: scale(1.06) translateY(-2px);
}

.portfolio__track .card.is-side {
  transform: scale(0.88);
  opacity: 0.50;
  filter: blur(2px);
  z-index: 1;
}

.portfolio__track .card.is-side:hover {
  opacity: 0.68;
  filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
  .portfolio__track .card,
  .portfolio__track .card.is-active,
  .portfolio__track .card.is-side {
    transition: border-color var(--transition), box-shadow var(--transition) !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .portfolio__track .card.is-side {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── End Portfolio Carousel ─────────────────────────────────────────────── */

/* ============================================================
   RECOMMENDED PARTNERS — Carousel
   ============================================================ */
.partners { background: var(--color-bg-soft); }

/* Outer row: prev | viewport | next */
.partners__carousel-outer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  outline: none;
}

.partners__carousel-outer:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Viewport clips the sliding track */
.partners__carousel-viewport {
  flex: 1;
  overflow: hidden;
}

/* Sliding track */
.partners__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Nav buttons */
.partners__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition),
              background var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.partners__nav:hover:not(:disabled) {
  border-color: var(--color-border-strong);
  color: var(--color-gold);
  box-shadow: 0 0 14px rgba(214, 180, 106, 0.12);
  transform: scale(1.08);
}

.partners__nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.partners__nav svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dots */
.partners__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.partners__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--transition), width var(--transition);
}

.partners__dot.is-active {
  background: var(--color-red);
  width: 18px;
}

/* Partner card */
.partner-card {
  flex: 0 0 auto; /* width set by JS */
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition), filter 0.35s ease, opacity 0.35s ease;
}

.partner-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Focus hierarchy — assigned by JS (updateFocusClasses()).
   To tune the blur intensity, change the values below:
     .is-side filter  → strength of the soft blur on flanking cards
     .is-side opacity → dimming of flanking cards (lower = darker)  */
.partner-card.is-active {
  filter: none;
  opacity: 1;
  transform: none;
}

.partner-card.is-side {
  filter: blur(2px);
  opacity: 0.78;
  transform: scale(0.98);
}

.partner-card__logo {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-card-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-card__logo img,
.partner-card__logo-img {
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  display: block;
  /* AVIF supported in all modern browsers; add <picture> fallback for IE if needed */
}

.partner-card__initials {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted-2);
}

.partner-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.partner-card__type {
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  color: var(--color-muted-2);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Type color coding */
.partner-card[data-type="Institution"]   .partner-card__type { color: #6B8DD6; }
.partner-card[data-type="Technology"]    .partner-card__type { color: #4ADE80; }
.partner-card[data-type="Ecosystem"]     .partner-card__type { color: var(--color-gold); }
.partner-card[data-type="Market Entry"]  .partner-card__type { color: var(--color-red); }
.partner-card[data-type="Venture"]       .partner-card__type { color: #C084FC; }

.partner-card__desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.62;
  flex: 1;
}

.partners__disclaimer {
  font-size: 0.78rem;
  color: var(--color-muted-2);
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.7;
  opacity: 0.8;
}

/* ============================================================
   FOCUS AREAS — CINEMATIC CAROUSEL
   ============================================================ */
.focus-areas {
  background: var(--color-bg);
  padding-block: 0;
  overflow: hidden;
}

/* Carousel wrapper */
.fa-carousel {
  position: relative;
  width: 100%;
  height: clamp(460px, 62vw, 780px);
  overflow: hidden;
}

/* Slides stack absolutely, crossfade via opacity */
.fa-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.fa-slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* Background image with ken-burns */
.fa-slide__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.fa-slide.is-active .fa-slide__bg {
  transform: scale(1.0);
}

/* Dark overlay — top + bottom */
.fa-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(5, 6, 8, 0.38) 0%,
      rgba(5, 6, 8, 0.10) 30%,
      rgba(5, 6, 8, 0.10) 55%,
      rgba(5, 6, 8, 0.78) 100%);
  z-index: 1;
}

/* Content block — bottom-left */
.fa-slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 760px;
}

.fa-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease 0.15s, transform 0.55s ease 0.15s;
}

.fa-slide.is-active .fa-slide__eyebrow {
  opacity: 1;
  transform: none;
}

.fa-slide__eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.fa-slide__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s ease 0.26s, transform 0.62s ease 0.26s;
}

.fa-slide.is-active .fa-slide__title {
  opacity: 1;
  transform: none;
}

.fa-slide__desc {
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.58s ease 0.36s, transform 0.58s ease 0.36s;
}

.fa-slide.is-active .fa-slide__desc {
  opacity: 1;
  transform: none;
}

/* Navigation controls */
.fa-carousel__nav {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  right: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Arrow buttons */
.fa-carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  background: rgba(5, 6, 8, 0.40);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  flex-shrink: 0;
}

.fa-carousel__arrow:hover {
  border-color: var(--color-gold);
  background: rgba(214, 180, 106, 0.15);
  color: var(--color-gold);
}

.fa-carousel__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dot indicators */
.fa-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline: 0.25rem;
}

.fa-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
  flex-shrink: 0;
}

.fa-carousel__dot.is-active {
  background: var(--color-gold);
  width: 22px;
  border-radius: 3px;
}

/* Slide counter */
.fa-carousel__counter {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.50);
  min-width: 2.8em;
  text-align: right;
  user-select: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fa-slide,
  .fa-slide__bg,
  .fa-slide__eyebrow,
  .fa-slide__title,
  .fa-slide__desc {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .fa-slide { opacity: 0 !important; }
  .fa-slide.is-active { opacity: 1 !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .fa-carousel {
    height: clamp(520px, 100vw, 640px);
  }
  .fa-slide__content {
    max-width: 100%;
  }
  .fa-carousel__arrow {
    display: none;
  }
  .fa-carousel__nav {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ============================================================
   GLOBAL MISSIONS & EXPO
   ============================================================ */
.missions { background: var(--color-bg); }

.missions__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.missions__desc {
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.missions__cta-text {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.75;
}

.missions__cta-link {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--color-gold);
  font-weight: 600;
  transition: color var(--transition);
}

.missions__cta-link:hover { color: var(--color-text); }

.missions__visual {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.missions__visual .placeholder--missions {
  position: absolute;
  inset: 0;
}

/* ============================================================
   CORE TEAM
   ============================================================ */
.team { background: var(--color-bg-soft); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-card-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
  /*
    PODMIANA ZDJĘCIA:
    Dodaj style="background-image: url('images/team-xxx.jpg')"
    na elemencie .team-card__photo i usuń <div class="team-card__photo-placeholder">
  */
}

/* Gradient overlay at bottom of photo for text legibility */
.team-card__photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(17,20,24,0.7) 0%, transparent 100%);
  pointer-events: none;
}

.team-card__photo-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted-2);
  text-align: center;
  padding: 1rem;
}

/* Real photo image inside team card — absolute fill so ::after gradient overlay stays on top */
.team-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card__photo-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(242, 75, 85, 0.06);
  border: 1px solid rgba(242, 75, 85, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.team-card__photo-placeholder small {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--color-muted-2);
  opacity: 0.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card__info { padding: 1.5rem; }

.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-red);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

.team-card__desc {
  font-size: 0.858rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.team__advisors-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-bottom: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   TEAM — CENTER-FOCUS CAROUSEL
   ============================================================ */
.team-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

/* Track: absolutely-positioned slides live here */
.team-carousel__track {
  position: relative;
  height: 440px;
}

/* All slides anchored to horizontal center */
.team-carousel__slide {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(300px, 30vw, 380px);
  opacity: 0;           /* invisible until class applied */
  will-change: transform, opacity, filter;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter    0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-carousel__slide.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
}

.team-carousel__slide.is-prev {
  transform: translateX(calc(-50% - clamp(250px, 27vw, 350px))) scale(0.82);
  opacity: 0.55;
  filter: blur(2.5px);
  z-index: 1;
  pointer-events: none;
}

.team-carousel__slide.is-next {
  transform: translateX(calc(-50% + clamp(250px, 27vw, 350px))) scale(0.82);
  opacity: 0.55;
  filter: blur(2.5px);
  z-index: 1;
  pointer-events: none;
}

/* Card shell */
.team-card-c {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.team-carousel__slide.is-active .team-card-c {
  border-color: rgba(242, 75, 85, 0.28);
  box-shadow: 0 0 0 1px rgba(242, 75, 85, 0.06),
              0 20px 56px rgba(0, 0, 0, 0.48);
}

/* Photo area */
.team-card-c__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-card-soft);
  cursor: default;
}

.team-carousel__slide.is-active .team-card-c__photo {
  cursor: pointer;
}

.team-card-c__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Bottom gradient for legibility */
.team-card-c__photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(17, 20, 24, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* QR overlay */
.team-card-c__qr {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.90);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.62s ease;
  z-index: 2;
  pointer-events: none;
}

/* Desktop hover — only on active slide */
.team-carousel__slide.is-active .team-card-c__photo:hover .team-card-c__qr {
  opacity: 1;
}

/* Mobile tap (JS-toggled class) */
.team-card-c__photo.qr-visible .team-card-c__qr {
  opacity: 1;
}

.team-card-c__qr-img {
  width: 66%;
  max-width: 190px;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 0.45rem;
}

.team-card-c__qr-hint {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.44);
}

/* Info */
.team-card-c__info { padding: 1.25rem 1.4rem 1.4rem; }

.team-card-c__name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.team-card-c__role {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--color-red);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.team-card-c__desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Controls row (prev ← dots → next) */
.team-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.75rem;
}

/* Arrow buttons */
.team-carousel__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 242, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.team-carousel__btn:hover {
  background: rgba(242, 75, 85, 0.14);
  border-color: rgba(242, 75, 85, 0.38);
  color: var(--color-red);
}

.team-carousel__btn svg { width: 18px; height: 18px; }

/* Dot indicators */
.team-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.team-carousel__dot.is-active {
  background: var(--color-red);
  transform: scale(1.5);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-carousel__slide {
    transition: opacity 0.15s ease;
    filter: none !important;
  }
  .team-card-c__qr { transition: opacity 0.1s ease; }
}

/* Tablet */
@media (max-width: 1024px) {
  .team-carousel__track { height: 415px; }
  .team-carousel__slide.is-prev {
    transform: translateX(calc(-50% - clamp(210px, 24vw, 290px))) scale(0.80);
  }
  .team-carousel__slide.is-next {
    transform: translateX(calc(-50% + clamp(210px, 24vw, 290px))) scale(0.80);
  }
}

/* Mobile — only active card, side cards off-screen */
@media (max-width: 768px) {
  .team-carousel__track { height: 385px; }
  .team-carousel__slide { width: min(300px, 90vw); }
  .team-carousel__slide.is-prev {
    transform: translateX(calc(-50% - 200vw)) scale(0.75);
    opacity: 0;
  }
  .team-carousel__slide.is-next {
    transform: translateX(calc(-50% + 200vw)) scale(0.75);
    opacity: 0;
  }
}

/* ============================================================
   APPLY / CONTACT
   ============================================================ */
.apply { background: var(--color-bg); }

.apply__paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.apply__path-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.apply__path-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.apply__path-icon {
  width: 44px;
  height: 44px;
  color: var(--color-red);
}

.apply__path-icon svg { width: 100%; height: 100%; }

.apply__path-card h3 { color: var(--color-text); }

.apply__path-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.apply__path-card .btn { align-self: flex-start; }

/* Form */
.apply__form-wrapper {
  max-width: 720px;
  margin-inline: auto;
}

.apply__form-intro {
  font-size: 0.975rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  text-align: center;
}

.apply__form-note {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  line-height: 1.65;
}

.apply__form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
}

.apply__form-title {
  color: var(--color-text);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.form-row { display: grid; gap: 1rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-muted-2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(242, 75, 85, 0.6);
  box-shadow: 0 0 0 3px rgba(242, 75, 85, 0.10);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23747B86' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-card);
  color: var(--color-text);
}

.form-char-count {
  font-size: 0.72rem;
  color: var(--color-muted-2);
  text-align: right;
  margin-top: 0.3rem;
  transition: color var(--transition);
}

.form-char-count--limit { color: var(--color-red); }

.form-notice {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.65;
  min-height: 1.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.form-notice--error {
  color: var(--color-red);
  background: rgba(242, 75, 85, 0.06);
  border: 1px solid rgba(242, 75, 85, 0.15);
}

.form-notice--success {
  color: var(--color-gold);
  background: rgba(214, 180, 106, 0.06);
  border: 1px solid var(--color-border-strong);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding-top: clamp(3rem, 5vw, 5rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--color-border);
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.75rem;
}

.footer__company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.footer__address {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.footer__legal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.75rem;
  font-size: 0.78rem;
}

.footer__legal dt { color: var(--color-muted-2); font-weight: 600; }
.footer__legal dd { color: var(--color-muted); }

.footer__links h4 { margin-bottom: 1rem; }

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links a {
  font-size: 0.845rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--color-text); }

.footer__contact h4 { margin-bottom: 1rem; }

.footer__contact p {
  font-size: 0.845rem;
  margin-bottom: 1.25rem;
}

.footer__contact a {
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer__contact a:hover { color: var(--color-text); }

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer__social-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer__social-link:hover { color: var(--color-text); }

.footer__social-link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.footer__bottom { padding-block: 1.5rem; }

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__notice {
  font-size: 0.75rem;
  color: var(--color-muted-2);
  font-style: italic;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-muted-2);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay   { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }

/* ============================================================
   APPLY-STARTUP PAGE
   ============================================================ */

/* Hero */
.sform-hero {
  padding-top: calc(var(--navbar-h) + clamp(56px, 7vw, 96px));
  padding-bottom: clamp(48px, 6vw, 80px);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.sform-hero .eyebrow-group { margin-bottom: 1.25rem; }
.sform-hero h1 {
  color: var(--color-text);
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.sform-hero__sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 0.9rem;
}
.sform-hero__desc {
  font-size: 0.9rem;
  color: var(--color-muted-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ── APPLY PAGES — CINEMATIC HERO ────────────────────────────
   Parallax strength  →  --apply-hero-parallax-strength  (0 = static, 0.18 = default, 0.3 = strong)
   Background scale   →  --apply-hero-bg-scale           (keeps edges filled; raise if gaps appear)
   Overlay darkness   →  --apply-hero-overlay             (increase alpha to darken more)
   ─────────────────────────────────────────────────────────── */
:root {
  --apply-hero-parallax-strength: 0.18;
  --apply-hero-bg-scale:          1.15;
  --apply-hero-overlay:           rgba(0, 0, 0, 0.42);
}

.apply-hero {
  position: relative;
  height: clamp(520px, 65vh, 800px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.apply-hero__bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform;
}

.apply-hero--startup  .apply-hero__bg { background-image: url('./img/Startup_2.png'); }
.apply-hero--investor .apply-hero__bg { background-image: url('./img/Investor_4.png'); }
.apply-hero--supporter .apply-hero__bg { background-image: url('./img/Supporter_3.png'); }

.apply-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(5, 6, 8, 0.92) 0%,
      rgba(5, 6, 8, 0.55) 35%,
      rgba(5, 6, 8, 0.22) 70%,
      rgba(5, 6, 8, 0.12) 100%),
    var(--apply-hero-overlay);
  z-index: 1;
}

.apply-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 5vw, 5rem);
  padding-top: calc(var(--navbar-h) + 1.5rem);
}

.apply-hero__inner {
  max-width: clamp(700px, 82vw, 960px);
  margin: 0 auto;
  text-align: center;
}

.apply-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1.25rem;
}
.apply-hero__badge::before,
.apply-hero__badge::after {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-red);
  flex-shrink: 0;
}

.apply-hero__headline {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
}

.apply-hero__sub {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(244, 244, 242, 0.68);
  line-height: 1.72;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Quote — editorial, no box */
.hero-quote {
  margin: 0 auto 2.25rem;
  padding: 0;
  background: none;
  border: none;
  border-left: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 800px;
}
.hero-quote__mark { display: none; }
.hero-quote__text {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin: 0;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.60);
}
.hero-quote__text::before {
  content: '\201C';
  color: rgba(212, 175, 55, 0.72);
  font-style: normal;
  margin-right: 0.05em;
}
.hero-quote__text::after {
  content: '\201D';
  color: rgba(212, 175, 55, 0.72);
  font-style: normal;
  margin-left: 0.05em;
}

/* Scroll CTA */
.apply-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(244, 244, 242, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color var(--transition), border-color var(--transition);
}
.apply-hero__cta:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.30);
}
.apply-hero__cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Hero entrance animation */
.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--reveal-delay, 0ms);
}
.hero-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .hero-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Two-column layout */
.sform-body {
  background: var(--color-bg-soft);
  padding-block: clamp(48px, 6vw, 80px);
}
.sform-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* Sidebar */
.sform-sidebar { position: sticky; top: calc(var(--navbar-h) + 24px); }
.sform-sidebar__card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.sform-sidebar__card h3 {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.sform-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.sform-sidebar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.sform-sidebar__item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.45em;
}
.sform-sidebar__note {
  font-size: 0.78rem;
  color: var(--color-muted-2);
  line-height: 1.65;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.sform-sidebar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-muted-2);
  margin-top: 1.25rem;
  transition: color var(--transition);
}
.sform-sidebar__back:hover { color: var(--color-text); }
.sform-sidebar__back svg { width: 12px; height: 12px; }

/* Form container */
.sform {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Fieldset / section */
.sform__section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.sform__section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.sform__section-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  background: rgba(242, 75, 85, 0.1);
  border: 1px solid rgba(242, 75, 85, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.sform__section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  border: none;
  padding: 0;
}
.sform__section-desc {
  font-size: 0.825rem;
  color: var(--color-muted-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.sform__fields { display: flex; flex-direction: column; gap: 0; }

/* Form group */
.sform__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.sform__group:last-child { margin-bottom: 0; }

.sform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sform__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Labels */
.sform__label {
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.sform__required { color: var(--color-red); margin-left: 0.15em; }

/* Inputs */
.sform__input,
.sform__select,
.sform__textarea {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 0.875rem;
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.sform__input::placeholder,
.sform__textarea::placeholder { color: var(--color-muted-2); }
.sform__input:focus,
.sform__select:focus,
.sform__textarea:focus {
  border-color: rgba(242, 75, 85, 0.5);
  box-shadow: 0 0 0 3px rgba(242, 75, 85, 0.09);
}
.sform__input--error,
.sform__select--error,
.sform__textarea--error {
  border-color: rgba(242, 75, 85, 0.6);
  box-shadow: 0 0 0 2px rgba(242, 75, 85, 0.12);
}

.sform__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.sform__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23747B86' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}
.sform__select option {
  background: var(--color-card);
  color: var(--color-text);
}

/* Field hint */
.sform__hint {
  font-size: 0.75rem;
  color: var(--color-muted-2);
  line-height: 1.5;
  margin-top: 0.2rem;
}
.sform__error-msg {
  font-size: 0.75rem;
  color: var(--color-red);
  margin-top: 0.2rem;
  display: none;
}
.sform__group.has-error .sform__error-msg { display: block; }

/* Character counter */
.sform__char-count {
  font-size: 0.7rem;
  color: var(--color-muted-2);
  text-align: right;
  margin-top: 0.25rem;
  transition: color var(--transition);
}
.sform__char-count--warn { color: var(--color-gold-soft); }
.sform__char-count--limit { color: var(--color-red); }

/* Radio groups */
.sform__radio-group {
  border: none;
  padding: 0;
  margin: 0;
}
.sform__radio-legend {
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.65rem;
  display: block;
  width: 100%;
}
.sform__radios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sform__radios--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.sform__radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color var(--transition);
  line-height: 1.4;
}
.sform__radio-label:hover { color: var(--color-text); }
.sform__radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-red);
  flex-shrink: 0;
  cursor: pointer;
}

/* Checkbox groups (multi-select) */
.sform__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sform__checkboxes--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.sform__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color var(--transition);
  line-height: 1.4;
}
.sform__checkbox-label:hover { color: var(--color-text); }
.sform__checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-red);
  flex-shrink: 0;
  cursor: pointer;
}

/* Checkbox consent */
.sform__consent-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.sform__consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.15rem;
  cursor: pointer;
}
.sform__consent-text {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.65;
}
.sform__consent-group.has-error .sform__consent-text { color: var(--color-red); }

/* Submit area */
.sform__submit-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}
.sform__notice {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.65;
  display: none;
}
.sform__notice.is-visible { display: block; }
.sform__notice--error {
  color: var(--color-red);
  background: rgba(242, 75, 85, 0.06);
  border: 1px solid rgba(242, 75, 85, 0.18);
}
.sform__notice--success {
  color: var(--color-gold);
  background: rgba(214, 180, 106, 0.06);
  border: 1px solid var(--color-border-strong);
}

/* Separator between sections inside fieldset */
.sform__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: 1.25rem;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-gap: 80px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__text  { max-width: 100%; }
  .hero__visual { aspect-ratio: 16 / 9; max-height: 380px; }

  .network__layout  { grid-template-columns: 1fr; }
  .missions__inner  { grid-template-columns: 1fr; }
  .missions__visual { min-height: 280px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .portfolio__nav { width: 36px; height: 36px; }
  /* Tablet (2 visible): soften blur on off-screen cards */
  .partner-card.is-side { filter: blur(1px); opacity: 0.82; transform: scale(0.99); }

  /* Apply startup — sidebar goes to single column */
  .sform-layout { grid-template-columns: 1fr; }
  .sform-sidebar { position: static; order: -1; }
  .sform__row { grid-template-columns: 1fr 1fr; }

  /* Apply hero — tablet */
  .apply-hero { height: clamp(460px, 60vh, 640px); }
  .apply-hero__inner { max-width: 100%; }
  .apply-hero__headline { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
  .hero-quote { max-width: 100%; }
  .hero-quote__text { font-size: clamp(1.05rem, 2.2vw, 1.55rem); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-gap: 60px; --navbar-h: 60px; }

  .navbar__nav       { display: none; }
  .navbar__hamburger { display: flex; }

  .hero__visual { aspect-ratio: 4 / 3; max-height: 280px; }

  .hero__cta-row { flex-direction: column; align-items: flex-start; }

  .cards-grid--4 { grid-template-columns: 1fr 1fr; }
  .cards-grid--3 { grid-template-columns: 1fr 1fr; }
  .cards-grid--2 { grid-template-columns: 1fr; }

  .strategy__steps { grid-template-columns: 1fr; }

  .network__nodes-grid { grid-template-columns: 1fr 1fr; }

  .partners__nav  { width: 36px; height: 36px; }
  .portfolio__nav { width: 36px; height: 36px; }
  /* Mobile (1 card visible): blur effect fully disabled */
  .partner-card.is-side { filter: none; opacity: 1; transform: none; }

  .apply__paths  { grid-template-columns: 1fr; }
  .form-row--2   { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }

  /* Apply startup — full-width inputs on mobile */
  .sform__row { grid-template-columns: 1fr; }
  .sform__row--3 { grid-template-columns: 1fr; }
  .sform-hero { padding-top: calc(var(--navbar-h) + 40px); }

  /* Apply hero — mobile */
  .apply-hero {
    height: auto;
    min-height: 500px;
    align-items: flex-end;
  }
  .apply-hero__inner { max-width: 100%; margin: 0 auto; }
  .apply-hero__headline { font-size: clamp(1.5rem, 6vw, 2rem); }
  .apply-hero__sub { max-width: 100%; margin: 0 auto 1.5rem; }
  .hero-quote { max-width: 100%; }
  .hero-quote__text { font-size: clamp(1rem, 4.5vw, 1.3rem); }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .cards-grid--4 { grid-template-columns: 1fr; }
  .cards-grid--3 { grid-template-columns: 1fr; }

  .network__nodes-grid { grid-template-columns: 1fr; }

  .hero__visual { max-height: 240px; }
}

/* ============================================================
   RESPONSIVE — WIDE (≥ 1600px)
   ============================================================ */
@media (min-width: 1600px) {
  :root { --container-w: 1440px; --section-gap: 140px; }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cards-grid .reveal:nth-child(n) { transition-delay: 0s; }
  .section-bg { will-change: auto; transform: none !important; }
}
