:root {
  --bg: #090d16;
  --surface: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.18);
  --accent: #0b4f8a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #05070c 0%, #111b2b 100%);
  height: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100dvh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(4, 5, 10, 0.5), rgba(4, 5, 10, 0.8));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(92vw, 1100px);
  padding: 1.5rem 1.5rem 5rem;
  animation: fade-up 0.9s ease both;
}

.hero-logo {
  width: min(62vw, 290px);
  height: auto;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: 0.08em;
}

.hero-content p {
  margin: 0.5rem auto 1.7rem;
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  color: var(--muted);
  max-width: 75ch;
}

.portfolio-title {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 220px));
  justify-content: center;
  gap: 1rem;
}

.company-card {
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  min-height: 126px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(11, 79, 138, 0.28);
}

.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #06121f;
  background: linear-gradient(145deg, #d2f0ff, #86cffc);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.company-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.company-card:hover .company-logo img,
.company-card:focus-visible .company-logo img {
  filter: grayscale(0%);
}

.company-card span {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.site-footer {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

@keyframes fade-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .company-card,
  .company-card:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 920px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 100svh;
    height: auto;
  }

  body {
    overflow: auto;
  }
}

@media (max-width: 560px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .company-card {
    min-height: 108px;
  }
}
