:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-soft: #0c0c11;
  --panel: #111118;
  --panel-strong: #171722;
  --text: #f5f5f7;
  --muted: #b7b7c2;
  --subtle: #858592;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #9b6cff;
  --accent-strong: #c8b6ff;
  --accent-soft: rgba(155, 108, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(155, 108, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 12% 24%, rgba(155, 108, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 52% 38%, rgba(155, 108, 255, 0.06), transparent 34rem),
    radial-gradient(circle at 88% 54%, rgba(155, 108, 255, 0.085), transparent 32rem),
    radial-gradient(circle at 24% 68%, rgba(155, 108, 255, 0.07), transparent 30rem),
    radial-gradient(circle at 58% 82%, rgba(155, 108, 255, 0.055), transparent 36rem),
    radial-gradient(circle at 10% 96%, rgba(155, 108, 255, 0.06), transparent 28rem),
    linear-gradient(180deg, #050507 0%, #08080c 42%, #050507 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(18px);
}

.header-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  filter: invert(1);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a,
.site-footer a,
.text-link {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-strong);
}

.language-select select {
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0b10;
  color: var(--text);
  padding: 8px 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  padding: 116px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 72px;
  align-items: center;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text,
.section-intro p:not(.eyebrow),
.content-stack p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  max-width: 1040px;
  margin: 0 auto;
}

.hero-copy h1 {
  margin-inline: auto;
}

.hero-text {
  max-width: 760px;
  margin: 28px auto 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.content-stack p {
  margin: 0 0 22px;
}

.principles,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.principles span,
.badges span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 9px 12px;
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.leader-card,
.meeting-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 24, 0.76);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.service-card {
  min-height: 270px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 182, 255, 0.44);
}

.service-card ul,
.project-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.service-card li,
.project-card li {
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-list {
  display: grid;
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d13;
}

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

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-strong);
  font-weight: 700;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tech-grid > div {
  padding: 24px;
  border-top: 1px solid var(--line);
}

.tech-grid h3 {
  margin-bottom: 18px;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.leader-card {
  padding: 30px;
}

.role {
  color: var(--accent-strong);
  font-weight: 700;
}

.leader-card p:not(.role) {
  color: var(--muted);
}

.contact-grid {
  align-items: start;
}

address {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--text);
  font-style: normal;
}

.meeting-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 300px;
  padding: 34px;
}

.contact-section .meeting-panel {
  margin-top: 42px;
}

.contact-section .meeting-panel-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 800;
}

.meeting-panel-copy {
  margin: 0;
  color: var(--muted);
}

.meeting-panel .button {
  justify-self: start;
  margin-top: 8px;
}

select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .header-shell {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .language-select {
    order: 2;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 15, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .card-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 82px 0;
  }

  h1 {
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  .brand span {
    display: none;
  }

  .contact-section .meeting-panel {
    margin-top: 0;
  }

  .card-grid,
  .tech-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

.legal-page {
  border-top: 1px solid var(--line);
}

.legal-hero {
  min-height: 44vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.legal-layout {
  max-width: 860px;
}

.legal-page h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.legal-summary,
.legal-updated {
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-summary {
  max-width: 720px;
  margin-top: 24px;
}

.legal-updated {
  margin: 18px 0 0;
}

.legal-content-section {
  padding-top: 78px;
}

.legal-content {
  color: var(--muted);
}

.legal-content h2 {
  margin: 46px 0 14px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
}

.legal-content ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--accent-strong);
  font-weight: 700;
}

.legal-note {
  margin-top: 52px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
