:root {
  --bg: #050505;
  --bg-soft: #0d131c;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f6fb;
  --muted: rgba(243, 246, 251, 0.72);
  --accent: #74b8ff;
  --accent-soft: rgba(116, 184, 255, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(116, 184, 255, 0.16), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(180, 217, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #050505 0%, #09111a 55%, #040506 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.78), rgba(4, 8, 14, 0.22));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  transition: opacity 220ms ease;
}

body.hero-active .brand {
  opacity: 0;
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  display: block;
  width: 220px;
  max-width: 52vw;
}

.nav {
  display: flex;
  gap: 18px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.lang-button img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
}

.lang-button:hover,
.lang-button:focus-visible,
.lang-button.is-active {
  color: var(--text);
  border-color: rgba(116, 184, 255, 0.45);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.nav a,
.footer p,
.project-tag,
.section-label,
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a:focus-visible,
.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--text);
}

main {
  padding: 0 0 72px;
}

section {
  margin-bottom: 30px;
}

.hero,
.intro-grid,
.projects,
.contact {
  position: relative;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  width: 100%;
  margin-bottom: 0;
  padding: 24px 0 88px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 7, 11, 0.42) 48%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.44) 0%, rgba(5, 8, 12, 0.1) 45%, rgba(5, 8, 12, 0.44) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: min(12vh, 110px) 24px 0;
  text-align: center;
}

.hero-logo {
  width: min(720px, 30vw);
  height: auto;
  margin-bottom: 100px;
}

.eyebrow,
.section-label,
.project-tag {
  color: var(--accent);
  font-size: 0.78rem;
  margin: 0;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2 {
  max-width: 11ch;
  font-family: "Geo", sans-serif;
  font-weight: 600;
  line-height: 0.98;
}

h1 {
  max-width: 30ch;
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin: 30px;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.hero-copy,
.section-heading p,
.panel p,
.project-copy p,
.contact-copy p,
.contact-card p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-copy {
  max-width: 56ch;
  font-size: clamp(0.94rem, 1.3vw, 1.05rem);
  padding: 28px 0 10px;
}

.intro-copy {
  padding: 34px 0 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #06111c;
  background: var(--accent);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.intro-grid,
.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.panel,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 27, 40, 0.82), rgba(12, 17, 26, 0.78));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 34px;
}

.panel-story {
  min-height: 340px;
  display: grid;
  align-content: end;
  gap: 18px;
}

.panel-values {
  display: grid;
  align-content: center;
}

.value-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.section-heading {
  display: grid;
  gap: 16px;
  padding: 30px 0 34px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-copy {
  padding: 24px;
}

.project-copy a,
.contact-copy a,
.intro-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.project-copy a:hover,
.project-copy a:focus-visible,
.contact-copy a:hover,
.contact-copy a:focus-visible,
.intro-copy a:hover,
.intro-copy a:focus-visible {
  text-decoration: underline;
}

.contact {
  align-items: stretch;
  padding-top: 26px;
}

.contact-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
  min-height: 100%;
}

.contact-mail {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
}

.contact-button {
  justify-self: start;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
}

.footer p {
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .intro-grid,
  .contact,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding-top: 136px;
  }
}

@media (max-width: 760px) {
  .topbar-shell,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-shell {
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .lang-switcher {
    flex-wrap: wrap;
  }

  .panel,
  .contact-card {
    padding: 24px;
  }

  h1,
  h2 {
    max-width: none;
  }

  h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .hero-logo {
    width: min(520px, 86vw);
  }

  .hero-copy,
  .intro-copy {
    padding-top: 24px;
  }

  .hero-copy,
  .section-heading p,
  .panel p,
  .project-copy p,
  .contact-copy p,
  .contact-card p {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  html.js-enabled .reveal {
    transition: none;
  }

  html.js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
