:root {
  --bg: #f7f7f4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: #edf0eb;
  --line: rgba(22, 28, 22, 0.09);
  --text: #111513;
  --muted: #5f685f;
  --accent: #1749d1;
  --accent-soft: #dfe8ff;
  --shadow: 0 24px 60px rgba(17, 21, 19, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23, 73, 209, 0.07), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(177, 189, 178, 0.15), transparent 24%),
    linear-gradient(180deg, #fbfcfa 0%, #f3f5f1 52%, #eef1ec 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -8rem;
  right: -6rem;
  background: rgba(23, 73, 209, 0.14);
}

.ambient-two {
  bottom: 8rem;
  left: -8rem;
  background: rgba(146, 161, 149, 0.18);
}

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

.topbar,
.section,
.footer {
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  background: rgba(250, 251, 248, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #255ce6, #0f3aa9);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.brand-copy small {
  color: var(--muted);
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.language-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
}

.lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #255ce6, #0f3aa9);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #255ce6, #0f3aa9);
  box-shadow: 0 16px 34px rgba(23, 73, 209, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(23, 73, 209, 0.24);
}

.button-small {
  padding: 0.75rem 1.1rem;
}

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

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
}

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

.section {
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  border-top: 1px solid rgba(22, 28, 22, 0.06);
}

main > .section:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.46);
}

main > .section:nth-of-type(even) {
  background: rgba(239, 242, 236, 0.58);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 5rem);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 85% 22%, rgba(23, 73, 209, 0.08), transparent 24%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 10vw, 8rem);
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card {
  padding: 1.2rem 1rem 1.2rem 0;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.stat-card span {
  color: var(--muted);
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.hero-card {
  padding: 0;
}

.hero-card-main {
  grid-column: 1 / -1;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-card-main h2 {
  margin: 0.5rem 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.hero-card-main p,
.hero-card-accent p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card-accent {
  align-content: start;
  padding: 1.25rem 0 0;
}

.hero-card-accent strong {
  display: block;
  margin: 0.35rem 0 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
}

.kicker,
.legal-label {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-image {
  overflow: hidden;
  border-radius: 1.6rem;
  min-height: 13rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-large {
  min-height: 26rem;
}

.section-heading {
  max-width: 72rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.services-grid,
.work-grid,
.pillars,
.contact-points {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card,
.work-card,
.pillar-card,
.contact-point {
  padding: 1.4rem 1.2rem 1.5rem 0;
  border-top: 1px solid var(--line);
}

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

.service-card:nth-child(4n + 1) {
  grid-column: span 5;
}

.service-card:nth-child(4n + 2) {
  grid-column: span 3;
}

.service-card:nth-child(4n + 3) {
  grid-column: span 4;
}

.service-card:nth-child(4n + 4) {
  grid-column: span 6;
}

.service-icon,
.work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.service-card h3,
.work-card h3,
.pillar-card h3,
.contact-point h3 {
  margin: 1rem 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.38rem;
}

.service-card p,
.work-card p,
.pillar-card p,
.contact-point p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.process-step {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #255ce6, #0f3aa9);
}

.process-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

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

.work-card {
  grid-column: span 4;
  padding-right: 1rem;
}

.work-card:first-child {
  grid-column: span 6;
}

.work-card:nth-child(2),
.work-card:nth-child(3) {
  grid-column: span 3;
}

.work-card:nth-child(4),
.work-card:nth-child(5),
.work-card:nth-child(6) {
  grid-column: span 4;
}

.work-meta {
  margin-bottom: 1rem;
}

.work-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
  gap: 2rem;
}

.pillar-card,
.contact-point {
  grid-column: span 4;
}

.legal-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.legal-card {
  padding: 1.6rem;
}

.legal-card h3 {
  margin: 0.65rem 0 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
}

.legal-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.legal-card div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.legal-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-card dt {
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.legal-card dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form span {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(22, 28, 22, 0.12);
  border-radius: 1rem;
  color: var(--text);
  background: #f9faf8;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(23, 73, 209, 0.4);
}

.full-span {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0.35rem 0 0;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

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

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

@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1.25rem;
    left: 1.25rem;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .hero,
  .split-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .work-grid,
  .pillars,
  .contact-points,
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .work-card,
  .pillar-card,
  .contact-point,
  .work-card:first-child,
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card:nth-child(5),
  .work-card:nth-child(6) {
    grid-column: span 1;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-panel,
  .services-grid,
  .work-grid,
  .pillars,
  .contact-points,
  .hero-stats,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

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

  .footer-meta {
    justify-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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