:root {
  --ink: #f6f8f7;
  --muted: rgba(246, 248, 247, 0.7);
  --line: rgba(255, 255, 255, 0.16);
  --bg: #070909;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --accent: #6ea8ff;
  --accent-soft: rgba(110, 168, 255, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 168, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 14%, rgba(103, 201, 136, 0.1), transparent 32rem),
    linear-gradient(145deg, #070909 0%, #111716 58%, #090c0c 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 0 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.brand {
  display: inline-flex;
  width: clamp(142px, 15vw, 198px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a,
.domain-switch,
.site-footer a,
.contact-card a {
  text-decoration: none;
}

.site-nav a:hover,
.domain-switch:hover,
.site-footer a:hover,
.contact-card a:hover {
  color: #fff;
}

.domain-switch {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
}

.domain-switch:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.language-switcher button {
  min-width: 42px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  background: #fff;
  color: #08100f;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(22px, 4vw, 62px);
  align-items: end;
  min-height: min(740px, calc(100vh - 150px));
  padding: clamp(30px, 6vw, 80px) 0 62px;
}

.hero-copy {
  padding-bottom: clamp(20px, 4vw, 54px);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 6.6vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

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

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: #fff;
  color: #08100f;
}

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

.hero-media {
  position: relative;
  min-height: clamp(420px, 52vw, 680px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0.25) brightness(0.7);
  transform: scale(1.02);
  transition: filter 550ms ease, transform 650ms ease;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 9, 0.02), rgba(7, 9, 9, 0.42)),
    linear-gradient(90deg, rgba(7, 9, 9, 0.4), transparent 55%);
  transition: opacity 500ms ease;
}

.hero-media:hover img,
.hero-media:focus-within img {
  filter: grayscale(0) saturate(1.08) brightness(0.92);
  transform: scale(1.07);
}

.hero-media:hover::after,
.hero-media:focus-within::after {
  opacity: 0.82;
}

.section {
  padding: clamp(58px, 8vw, 110px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.intro-section {
  padding-top: clamp(36px, 5vw, 72px);
}

.narrative-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(420px, 0.66fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.narrative-section h2 {
  position: sticky;
  top: 28px;
}

.text-stack {
  display: grid;
  gap: 22px;
}

.text-stack p:not(.section-lead) {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.section-lead {
  max-width: 980px;
  margin: 0;
  color: rgba(246, 248, 247, 0.86);
  font-size: clamp(1.55rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.narrative-section .section-lead {
  max-width: 900px;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 600;
  line-height: 1.58;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(280px, 0.45fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

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

.section-heading p,
.split-section > div p,
.contact-section > div p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

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

.service-card,
.process-list li,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  min-height: 300px;
  padding: 24px;
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--panel-strong);
}

.service-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.08;
}

.service-card p,
.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.service-card p + p {
  margin-top: 14px;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(360px, 0.58fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  row-gap: 8px;
  padding: 22px;
}

.process-list span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 800;
}

.process-list strong {
  font-size: 1.18rem;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  font-style: normal;
  color: var(--muted);
}

.contact-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.company-details {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
}

.company-details div {
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-details dt,
.company-details dd {
  margin: 0;
}

.company-details dt {
  color: rgba(246, 248, 247, 0.52);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-details dd {
  color: rgba(246, 248, 247, 0.86);
  line-height: 1.45;
}

.contact-card a {
  width: fit-content;
  color: #fff;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-media {
    min-height: 430px;
  }

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

  .section-heading,
  .narrative-section,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .narrative-section h2 {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 24px);
  }

  .site-header {
    gap: 18px;
    padding-top: 18px;
  }

  .brand {
    width: min(174px, 56vw);
  }

  .domain-switch {
    justify-self: end;
    font-size: 0.78rem;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .language-switcher button {
    min-width: 38px;
    min-height: 32px;
    padding: 6px 8px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-media {
    min-height: 340px;
  }

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

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

  .service-card {
    min-height: auto;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .process-list span {
    grid-row: auto;
  }

  .company-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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