:root {
  --bg: #0b0b0f;
  --surface: rgba(17, 17, 23, 0.88);
  --surface-strong: #111117;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #a0a0b0;
  --muted-strong: #c9c9d4;
  --accent-a: #667eea;
  --accent-b: #764ba2;
  --accent-c: #6ed6ff;
  --accent-lime: #b6ff68;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.16), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(118, 75, 162, 0.22), transparent 24%),
    linear-gradient(180deg, #09090d 0%, #0b0b0f 55%, #09090d 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
}

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

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

.site-shell {
  position: relative;
  overflow-x: clip;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  top: 8rem;
  right: -10rem;
  background: radial-gradient(circle, var(--accent-a), transparent 60%);
}

.ambient-b {
  bottom: 8rem;
  left: -10rem;
  background: radial-gradient(circle, var(--accent-b), transparent 60%);
}

.topbar,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.85), rgba(11, 11, 15, 0.45));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.02);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 0;
}

.hero {
  min-height: calc(100svh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(52rem, 80vw);
  height: min(52rem, 80vw);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(102, 126, 234, 0.28), transparent 42%),
    radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.22), transparent 34%);
  filter: blur(40px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(52rem, 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-c);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.94;
  max-width: 10ch;
  margin-inline: auto;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1;
  max-width: 12ch;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.05;
}

p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.hero-text,
.section-text {
  max-width: 60ch;
  margin-top: 1.4rem;
  font-size: 1.06rem;
}

.hero-text {
  margin-inline: auto;
}

.hero-text-secondary {
  max-width: 54ch;
  margin-top: 0.85rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 14px 40px rgba(102, 126, 234, 0.32);
}

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

.metric,
.service-card,
.project-card,
.lead-card,
.education-panel,
.cta-card,
.reference-placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-label,
.lead-label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent-lime);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.metric {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.metric span {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric strong {
  display: block;
  max-width: 20ch;
  font-size: 1.15rem;
  line-height: 1.3;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.1rem;
}

.section-actions {
  margin-top: 1.6rem;
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.project-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
}

.service-card {
  grid-column: span 4;
}

.service-card:last-child:nth-child(5) {
  grid-column: 5 / span 4;
}

.service-card p + .service-label {
  margin-top: 1.25rem;
}

.projects-section {
  padding-top: 5rem;
}

.project-card {
  grid-column: span 4;
  display: grid;
  gap: 1rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.project-note {
  color: var(--muted-strong);
  font-size: 0.97rem;
}

.trust-section {
  padding-top: 5rem;
}

.reference-placeholder {
  min-height: 12rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
}

.reference-placeholder span {
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.approach-section {
  padding-top: 5rem;
}

.feature-layout,
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-copy,
.approach-copy {
  display: grid;
  gap: 1rem;
}

.lead-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--radius-md);
}

.about-section,
.leadership-section,
.education-section,
.cta-section {
  padding-top: 5rem;
}

.education-panel,
.cta-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.education-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.education-points span {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cta-card {
  text-align: center;
}

.cta-card h2,
.cta-card p {
  margin-inline: auto;
}

.cta-card .hero-actions {
  justify-content: center;
}

.footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a,
.cookie-copy a,
.policy-card a {
  color: var(--text);
}

.policy-page {
  position: relative;
  z-index: 1;
}

.policy-hero {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.policy-content {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.policy-meta {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.policy-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  max-width: none;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.policy-list li + li {
  margin-top: 0.5rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: min(32rem, calc(100vw - 2rem));
  padding: 1.2rem;
  border-radius: 1.4rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(17, 17, 23, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-title {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cookie-copy p:last-child {
  font-size: 0.96rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-actions .button {
  flex: 1 1 10rem;
}

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

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

@media (max-width: 1080px) {
  .hero,
  .feature-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .project-card,
  .service-card:last-child:nth-child(5) {
    grid-column: auto;
  }

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

@media (max-width: 720px) {
  .topbar {
    padding-top: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.9rem 1.1rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 2.6rem;
    padding-bottom: 3rem;
  }

  h1 {
    max-width: 10ch;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 0.8rem;
  }

  .education-panel,
  .cta-card,
  .service-card,
  .project-card {
    padding: 1.35rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .policy-card {
    padding: 1.4rem;
  }
}

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

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

  .button {
    transition: none;
  }
}
