:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111315;
  --panel-soft: #171a1d;
  --text: #f3f0ea;
  --muted: #b5b0a8;
  --line: #2b2f33;
  --accent: #f3b04d;
  --accent-2: #74c7d3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px) 72px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.2) 46%, rgba(5, 5, 5, 0)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0) 58%, rgba(5, 5, 5, 0.18)),
    url("assets/K31-berany-scene.jpg") center / cover;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav a,
.hero-partners a,
.project-card a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hero-content {
  max-width: 760px;
  padding-top: 14vh;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
}

.hero-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
}

.hero-partners span {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: #ded8cf;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  text-wrap: balance;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
  gap: 32px;
  align-items: start;
  margin-top: 44px;
}

.project-timeline {
  min-width: 0;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.project-card.featured {
  background: var(--panel);
  margin-top: 8px;
  padding: 28px;
  border: 1px solid var(--line);
}

.project-card h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-card a {
  color: var(--accent);
  width: fit-content;
}

.project-illustrations {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.project-illustrations img {
  display: block;
  width: 100%;
  height: clamp(190px, 18vw, 250px);
  border: 1px solid var(--line);
  object-fit: cover;
}

.usecase {
  margin-top: 36px;
}

.usecase + .usecase {
  margin-top: 52px;
}

.usecase h3 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.usecase img,
.process-video {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.process-video {
  aspect-ratio: 64 / 21;
  background: #000;
}

.usecase img {
  max-height: 520px;
}

.period,
.code {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.active-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(116, 199, 211, 0.55);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: activePulse 1.35s ease-in-out infinite;
}

@keyframes activePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(116, 199, 211, 0);
  }

  50% {
    opacity: 0.45;
    box-shadow: 0 0 18px rgba(116, 199, 211, 0.4);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  display: inline-block;
  width: fit-content;
  margin-right: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer-links span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links p {
  max-width: 520px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .hero {
    min-height: 82vh;
    padding-bottom: 48px;
  }

  .hero-content {
    padding-top: 10vh;
  }

  .hero-partners {
    font-size: clamp(1rem, 6vw, 1.45rem);
  }

  .site-nav {
    justify-content: flex-start;
  }

  .project-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-layout {
    gap: 24px;
  }

  .project-illustrations {
    position: static;
    grid-template-columns: 1fr;
  }

  .project-illustrations img {
    height: 240px;
  }

  .process-video {
    aspect-ratio: 16 / 9;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 56px 0;
  }

  .section-heading {
    display: block;
  }

  .project-card.featured {
    padding: 22px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    width: min(100% - 28px, 1120px);
    padding: 20px 0 26px;
  }

  .footer-links a {
    display: block;
    margin: 0 0 8px;
  }
}
