:root {
  --ink: #121418;
  --muted: #5e6673;
  --line: #dfe6e6;
  --paper: #fbfcfb;
  --white: #ffffff;
  --accent: #3157ff;
  --accent-dark: #243fd6;
  --accent-soft: rgba(49, 87, 255, 0.14);
  --teal: var(--accent);
  --green: var(--accent);
  --amber: #ffb941;
  --coral: #ef6f5c;
  --charcoal: #17201f;
  --shadow: 0 24px 70px rgba(18, 20, 24, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(18, 20, 24, 0.34);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--white);
  background: rgba(18, 20, 24, 0.34);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a {
  color: inherit;
  opacity: 1;
}

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

.brand-logo {
  width: clamp(132px, 12vw, 190px);
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-dark {
  display: none;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light {
  display: block;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.is-open .brand-logo-dark {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: inherit;
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  opacity: 0.88;
  transition: opacity 160ms ease, color 160ms ease;
}

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

.site-nav a.is-active {
  color: var(--green);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-open .site-nav a.is-active {
  color: var(--green);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.language-switch,
.theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .language-switch,
.site-header.is-open .language-switch,
.site-header.is-scrolled .theme-switch,
.site-header.is-open .theme-switch {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.lang-button,
.theme-button {
  min-width: 36px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-button {
  min-width: 46px;
}

.lang-button.is-active,
.theme-button.is-active {
  color: var(--white);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  margin-top: calc(var(--header-height) * -1);
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero,
.section,
.contact-section {
  scroll-margin-top: var(--header-height);
}

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

.hero-media {
  background-image: url("assets/hero-automation.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 20, 24, 0.88) 0%, rgba(18, 20, 24, 0.68) 38%, rgba(18, 20, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(18, 20, 24, 0.46) 0%, rgba(18, 20, 24, 0.16) 46%, rgba(18, 20, 24, 0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 56px) clamp(20px, 4vw, 64px) 54px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.45rem, 7.8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

html[lang="en"] .hero h1 {
  max-width: 1120px;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.hero-actions,
.contact-form .button {
  margin-top: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 18px 42px rgba(49, 87, 255, 0.28);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 48px 0 0;
}

.hero-metrics div {
  min-height: 108px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-metrics dt {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.section {
  min-height: 100svh;
  padding: clamp(48px, 7vw, 86px) clamp(20px, 4vw, 64px) clamp(64px, 8vw, 110px);
}

.section-heading {
  max-width: 850px;
  margin: 0 0 44px;
  text-align: left;
}

.section-heading.compact {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p,
.timeline-item p,
.service-card p,
.industry-item p {
  color: var(--muted);
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.section-heading.compact p:not(.eyebrow) {
  margin-left: 0;
  margin-right: 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  margin-bottom: 44px;
}

.section-intro .section-heading {
  margin: 0;
}

.section-photo {
  position: relative;
  min-height: clamp(320px, 34vw, 520px);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe6e6;
  box-shadow: 0 24px 70px rgba(18, 20, 24, 0.12);
}

.section-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.contact-photo {
  min-height: clamp(250px, 25vw, 360px);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  background: var(--white);
}

.about-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.about-metrics div {
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  box-shadow: 0 18px 48px rgba(18, 20, 24, 0.05);
}

.about-metrics dt {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
}

.about-metrics dd {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.service-grid {
  width: min(100%, 1160px);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.timeline-item,
.industry-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(18, 20, 24, 0.06);
}

.service-card {
  min-height: 294px;
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--accent-soft);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.timeline-item h3,
.industry-item h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.service-card p,
.timeline-item p,
.industry-item p {
  margin: 15px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #f2f6f2;
}

.timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  position: relative;
  min-height: 214px;
  padding: 24px;
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 30px;
  margin-bottom: 30px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-item:nth-child(2) span {
  background: var(--accent);
}

.timeline-item:nth-child(3) span {
  background: var(--accent);
}

.timeline-item:nth-child(4) span {
  background: var(--accent);
}

.industries-section {
  background: var(--white);
}

.industry-list {
  width: min(100%, 1080px);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.industry-item {
  min-height: 224px;
  padding: 28px;
  border-top: 5px solid var(--accent);
}

.industry-item:nth-child(2) {
  border-top-color: var(--accent);
}

.industry-item:nth-child(3) {
  border-top-color: var(--accent);
}

.contact-section {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  padding: clamp(48px, 7vw, 86px) clamp(20px, 4vw, 64px) clamp(64px, 8vw, 110px);
  background: #eef5f3;
}

.contact-copy {
  grid-row: 1 / span 2;
  align-self: center;
}

.contact-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.contact-mail {
  display: inline-flex;
  margin-top: 34px;
  color: var(--teal);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
}

.contact-form {
  padding: 24px;
}

.contact-section .contact-form {
  grid-column: 2;
  width: 100%;
}

.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label > span {
  display: inline-flex;
  align-items: center;
}

.contact-form label > span::after {
  content: "*";
  margin-left: 5px;
  color: var(--accent);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd8d6;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(49, 87, 255, 0.16);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note:empty {
  display: none;
}

.about-section,
.services-section,
.split-section,
.industries-section,
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.about-section {
  --section-bg: url("assets/hero-about.png");
  --section-bg-position: 58% center;
  grid-template-columns: minmax(0, 860px);
  align-content: start;
  align-items: start;
}

.services-section {
  --section-bg: url("assets/hero-services.png");
  --section-bg-position: 62% center;
}

.split-section {
  --section-bg: url("assets/hero-process.png");
  --section-bg-position: 55% center;
  grid-template-columns: minmax(0, 880px);
  align-content: start;
  align-items: start;
}

.industries-section {
  --section-bg: url("assets/hero-industries.png");
  --section-bg-position: 64% center;
}

.contact-section {
  --section-bg: url("assets/hero-contact.png");
  --section-bg-position: 64% center;
  grid-template-columns: minmax(0, 720px) minmax(320px, 480px);
  justify-content: space-between;
}

.about-section::before,
.about-section::after,
.services-section::before,
.services-section::after,
.split-section::before,
.split-section::after,
.industries-section::before,
.industries-section::after,
.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-section::before,
.services-section::before,
.split-section::before,
.industries-section::before,
.contact-section::before {
  z-index: -2;
  background-image: var(--section-bg);
  background-position: var(--section-bg-position);
  background-size: cover;
  transform: scale(1.02);
}

.about-section::after,
.services-section::after,
.split-section::after,
.industries-section::after,
.contact-section::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 20, 24, 0.9) 0%, rgba(18, 20, 24, 0.76) 42%, rgba(18, 20, 24, 0.2) 100%),
    linear-gradient(180deg, rgba(18, 20, 24, 0.42) 0%, rgba(18, 20, 24, 0.18) 48%, rgba(18, 20, 24, 0.82) 100%);
}

.about-section > *,
.services-section > *,
.split-section > *,
.industries-section > *,
.contact-section > * {
  position: relative;
  z-index: 1;
}

.about-section .section-photo,
.services-section .section-photo,
.split-section .section-photo,
.industries-section .section-photo,
.contact-section .section-photo {
  display: none;
}

.services-section .section-intro,
.industries-section .section-intro {
  display: block;
  max-width: 850px;
  margin-bottom: 44px;
}

.about-section .section-heading h2,
.services-section .section-heading h2,
.split-section .section-heading h2,
.industries-section .section-heading h2,
.contact-copy h2 {
  color: var(--white);
}

.about-section .section-heading p:not(.eyebrow),
.services-section .section-heading p:not(.eyebrow),
.split-section .section-heading p:not(.eyebrow),
.industries-section .section-heading p:not(.eyebrow),
.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.about-section .about-metrics div,
.services-section .service-card,
.split-section .timeline-item,
.industries-section .industry-item {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(18, 20, 24, 0.68);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.about-section .about-metrics dt,
.services-section .service-card h3,
.split-section .timeline-item h3,
.industries-section .industry-item h3 {
  color: var(--white);
}

.about-section .about-metrics dd,
.services-section .service-card p,
.split-section .timeline-item p,
.industries-section .industry-item p {
  color: rgba(255, 255, 255, 0.72);
}

.services-section .service-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.about-metrics,
.timeline {
  width: min(100%, 1080px);
}

.contact-copy {
  grid-row: auto;
  align-self: start;
}

.contact-section .contact-form {
  grid-column: auto;
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(18, 20, 24, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-mail {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.contact-section .contact-form label {
  color: var(--white);
}

.contact-section .contact-form input,
.contact-section .contact-form select,
.contact-section .contact-form textarea {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form select:focus,
.contact-section .contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(49, 87, 255, 0.22);
}

.contact-section .contact-form select option {
  color: var(--white);
  background: #121418;
}

.contact-section .contact-form select option:checked {
  color: var(--white);
  background: var(--teal);
}

.contact-section .contact-form label.has-error input,
.contact-section .contact-form label.has-error select,
.contact-section .contact-form label.has-error textarea {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 111, 92, 0.18);
}

.field-error {
  display: none;
  margin: -2px 0 0;
  color: #ffb5a9;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-error.is-visible {
  display: block;
}

.contact-section .form-note {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 30px clamp(20px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.footer-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.footer-dashboard::after {
  content: "↗";
  font-size: 0.92rem;
  line-height: 1;
}

.footer-dashboard:hover,
.footer-dashboard:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(49, 87, 255, 0.7);
  background: rgba(49, 87, 255, 0.18);
}

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

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

@media (max-width: 1040px) {
  .service-grid,
  .industry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-copy,
  .contact-section .contact-form {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-section .contact-form {
    justify-self: stretch;
  }

  .section-heading.compact {
    max-width: 780px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .brand-logo {
    width: 132px;
    height: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    color: var(--white);
    background: #121418;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: var(--radius);
  }

  .site-nav a.is-active {
    color: var(--white);
    background: rgba(49, 87, 255, 0.2);
    box-shadow: inset 4px 0 0 var(--accent);
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 20, 24, 0.91), rgba(18, 20, 24, 0.45)),
      linear-gradient(180deg, rgba(18, 20, 24, 0.48), rgba(18, 20, 24, 0.82));
  }

  .about-section,
  .services-section,
  .split-section,
  .industries-section,
  .contact-section {
    --section-bg-position: center;
  }

  .about-section::after,
  .services-section::after,
  .split-section::after,
  .industries-section::after,
  .contact-section::after {
    background:
      linear-gradient(90deg, rgba(18, 20, 24, 0.9), rgba(18, 20, 24, 0.58)),
      linear-gradient(180deg, rgba(18, 20, 24, 0.5), rgba(18, 20, 24, 0.86));
  }

  .hero-inner {
    padding: calc(var(--header-height) + 42px) 18px 42px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 5rem);
    line-height: 0.96;
  }

  .hero-actions,
  .about-metrics,
  .timeline,
  .service-grid,
  .industry-list {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .hero-actions .button {
    width: auto;
    min-height: 46px;
    padding-inline: 10px;
    font-size: 0.92rem;
  }

  .hero-metrics {
    margin-top: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-metrics div {
    min-height: 82px;
    padding: 14px 10px;
  }

  .hero-metrics dt {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }

  .hero-metrics dd {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .about-section {
    align-items: start;
  }

  .section-photo {
    min-height: 240px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading p:not(.eyebrow) {
    margin-left: 0;
    margin-right: 0;
  }

  .service-card,
  .timeline-item,
  .industry-item {
    min-height: auto;
  }

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

body.light-mode {
  color: var(--ink);
  background: #f7faf8;
}

body.light-mode .site-header,
body.light-mode .site-header.is-scrolled,
body.light-mode .site-header.is-open {
  color: var(--ink);
  background: rgba(251, 252, 251, 0.9);
  border-color: rgba(18, 20, 24, 0.1);
}

body.light-mode .site-header .brand-logo-light {
  display: none;
}

body.light-mode .site-header .brand-logo-dark {
  display: block;
}

body.light-mode .site-nav a,
body.light-mode .site-header.is-scrolled .site-nav a,
body.light-mode .site-header.is-open .site-nav a {
  color: var(--ink);
}

body.light-mode .site-nav a:hover,
body.light-mode .site-nav a:focus-visible {
  color: var(--teal);
}

body.light-mode .site-nav a.is-active {
  color: var(--accent-dark);
}

body.light-mode .site-header.is-scrolled .site-nav a.is-active,
body.light-mode .site-header.is-open .site-nav a.is-active {
  color: var(--accent-dark);
}

body.light-mode .language-switch,
body.light-mode .theme-switch,
body.light-mode .site-header.is-scrolled .language-switch,
body.light-mode .site-header.is-open .language-switch,
body.light-mode .site-header.is-scrolled .theme-switch,
body.light-mode .site-header.is-open .theme-switch {
  border-color: rgba(18, 20, 24, 0.16);
  background: rgba(18, 20, 24, 0.05);
}

body.light-mode .hero,
body.light-mode .about-section,
body.light-mode .services-section,
body.light-mode .split-section,
body.light-mode .industries-section,
body.light-mode .contact-section {
  color: var(--ink);
  background: #f7faf8;
}

body.light-mode .hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.94) 0%, rgba(251, 252, 251, 0.76) 42%, rgba(251, 252, 251, 0.18) 100%),
    linear-gradient(180deg, rgba(251, 252, 251, 0.48) 0%, rgba(251, 252, 251, 0.1) 44%, rgba(251, 252, 251, 0.88) 100%);
}

body.light-mode .about-section::after,
body.light-mode .services-section::after,
body.light-mode .split-section::after,
body.light-mode .industries-section::after,
body.light-mode .contact-section::after {
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.94) 0%, rgba(251, 252, 251, 0.78) 46%, rgba(251, 252, 251, 0.22) 100%),
    linear-gradient(180deg, rgba(251, 252, 251, 0.5) 0%, rgba(251, 252, 251, 0.16) 45%, rgba(251, 252, 251, 0.9) 100%);
}

body.light-mode .hero h1,
body.light-mode .section-heading h2,
body.light-mode .contact-copy h2,
body.light-mode .about-section .section-heading h2,
body.light-mode .services-section .section-heading h2,
body.light-mode .split-section .section-heading h2,
body.light-mode .industries-section .section-heading h2 {
  color: var(--ink);
}

body.light-mode .hero-copy,
body.light-mode .section-heading p:not(.eyebrow),
body.light-mode .contact-copy p,
body.light-mode .about-section .section-heading p:not(.eyebrow),
body.light-mode .services-section .section-heading p:not(.eyebrow),
body.light-mode .split-section .section-heading p:not(.eyebrow),
body.light-mode .industries-section .section-heading p:not(.eyebrow) {
  color: rgba(18, 20, 24, 0.72);
}

body.light-mode .button-ghost {
  color: var(--ink);
  border-color: rgba(18, 20, 24, 0.22);
  background: rgba(255, 255, 255, 0.42);
}

body.light-mode .hero-metrics div,
body.light-mode .about-section .about-metrics div,
body.light-mode .services-section .service-card,
body.light-mode .split-section .timeline-item,
body.light-mode .industries-section .industry-item {
  border-color: rgba(18, 20, 24, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(18, 20, 24, 0.1);
  backdrop-filter: blur(16px);
}

body.light-mode .hero-metrics dt,
body.light-mode .about-section .about-metrics dt,
body.light-mode .services-section .service-card h3,
body.light-mode .split-section .timeline-item h3,
body.light-mode .industries-section .industry-item h3 {
  color: var(--ink);
}

body.light-mode .hero-metrics dd,
body.light-mode .about-section .about-metrics dd,
body.light-mode .services-section .service-card p,
body.light-mode .split-section .timeline-item p,
body.light-mode .industries-section .industry-item p {
  color: rgba(18, 20, 24, 0.68);
}

body.light-mode .services-section .service-icon {
  color: var(--ink);
  background: var(--accent-soft);
}

body.light-mode .contact-mail {
  color: var(--accent-dark);
}

body.light-mode .contact-section .contact-form {
  border-color: rgba(18, 20, 24, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(18, 20, 24, 0.12);
}

body.light-mode .contact-section .contact-form label {
  color: var(--ink);
}

body.light-mode .contact-section .contact-form input,
body.light-mode .contact-section .contact-form select,
body.light-mode .contact-section .contact-form textarea {
  border-color: rgba(18, 20, 24, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  color-scheme: light;
}

body.light-mode .contact-section .contact-form input:focus,
body.light-mode .contact-section .contact-form select:focus,
body.light-mode .contact-section .contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(49, 87, 255, 0.16);
}

body.light-mode .contact-section .contact-form select option {
  color: var(--ink);
  background: var(--white);
}

body.light-mode .contact-section .contact-form select option:checked {
  color: var(--white);
  background: var(--green);
}

body.light-mode .field-error {
  color: #c64232;
}

body.light-mode .contact-section .form-note {
  color: rgba(18, 20, 24, 0.68);
}

body.light-mode .site-footer {
  color: rgba(18, 20, 24, 0.7);
  background: var(--white);
  border-top: 1px solid rgba(18, 20, 24, 0.1);
}

body.light-mode .footer-dashboard {
  border-color: rgba(18, 20, 24, 0.16);
  color: rgba(18, 20, 24, 0.68);
  background: rgba(18, 20, 24, 0.06);
}

body.light-mode .footer-dashboard:hover,
body.light-mode .footer-dashboard:focus-visible {
  border-color: rgba(49, 87, 255, 0.48);
  color: var(--accent-dark);
  background: rgba(49, 87, 255, 0.18);
}

@media (max-width: 900px) {
  .header-actions {
    gap: 8px;
  }

  .theme-button {
    min-width: 40px;
  }

  body.light-mode .site-nav {
    border-color: rgba(18, 20, 24, 0.12);
    color: var(--ink);
    background: #fbfcfb;
    box-shadow: 0 24px 70px rgba(18, 20, 24, 0.16);
  }

  body.light-mode .site-nav a:hover,
  body.light-mode .site-nav a:focus-visible {
    color: var(--ink);
    background: var(--accent-soft);
  }

  body.light-mode .site-nav a.is-active {
    color: var(--accent-dark);
    background: var(--accent-soft);
    box-shadow: inset 4px 0 0 var(--accent);
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
    padding: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-button,
  .theme-button {
    min-width: 30px;
    min-height: 28px;
    font-size: 0.68rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

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

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