:root {
  --bg: #070911;
  --solutions-overlay-image: url("images/solutions/solutions-overlay.webp");
  --solutions-overlay-opacity: 0.22;
  --solutions-overlay-size: cover;
  --solutions-overlay-position: center;
  --bg-soft: #101421;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f8ff;
  --muted: #aeb7c8;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #5AC1CF;
  --accent-2: #45949f;
  --warm: #ff9f43;
  --max-width: 1180px;
  --radius: 28px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 40px, var(--max-width)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 17, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 200;
  letter-spacing: -0.04em;
  font-size: 1.08rem;
}
.brand > span {
  position: relative;
  top: 2px;
  display: inline-flex;
  align-items: center;
  height: 34px;
  line-height: 1;
}
.brand > span span { color: var(--accent); }
.brand-logo {
  width: 80px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(56, 213, 255, 0.45);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
}
.lang-btn.is-active {
  color: #06101d;
  background: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  color: var(--muted);
}
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--surface);
}
.nav-toggle { display: none; }

.hero {
  min-height: auto;
  padding: 160px 0 10px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(56, 213, 255, 0.18), transparent 26%),
    radial-gradient(circle at 15% 35%, rgba(139, 92, 246, 0.18), transparent 30%),
    linear-gradient(180deg, #080a13, #070911 72%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
}
.hero-glow-one { background: var(--accent); right: 8%; top: 18%; }
.hero-glow-two { background: var(--accent-2); left: 5%; bottom: 8%; }
.hero-content { position: relative; max-width: 900px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.055em; margin: 0; }
h1 { font-size: clamp(3.1rem, 6.6vw, 6.4rem); max-width: 900px; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.8rem); }
h3 { font-size: 1.35rem; }
.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 26px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 0.95rem;
}
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 18px 40px rgba(56, 213, 255, 0.18);
}
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.button-primary,
.button-secondary {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}
.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(56, 213, 255, 0.34), 0 0 22px rgba(56, 213, 255, 0.2);
  filter: brightness(1.08);
}
.button-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 213, 255, 0.6);
  box-shadow: 0 14px 34px rgba(56, 213, 255, 0.15), 0 0 18px rgba(56, 213, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.hero-showcase {
  position: relative;
  margin-top: 70px;
  min-height: 0;
}
.showcase-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.main-card { height: 410px; }
.screen-simulation {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #12192b;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.showcase-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.showcase-project-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.showcase-client {
  color: rgba(246, 248, 255, 0.62);
}
.showcase-client::before { content: "· "; }

.screen-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 170%;
  object-fit: cover;
  object-position: top center;
  transform: translate3d(0, var(--screen-parallax-y, 0px), 0);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .screen-image {
    transform: none;
  }
  .showcase-slide {
    transition: none;
  }
}
.screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 17, 0.05), rgba(7, 9, 17, 0.45));
  pointer-events: none;
}
.screen-copy {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 3;
  display: grid;
  gap: 6px;
  max-width: min(560px, calc(100% - 64px));
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72), 0 1px 2px rgba(0, 0, 0, 0.85);
}
.screen-copy span { color: rgba(246, 248, 255, 0.82); }
.screen-copy strong { color: var(--text); font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.04em; white-space: nowrap; }
.metric-card {
  position: absolute;
  right: 34px;
  width: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 9, 17, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.metric-card strong { display: block; font-size: 2.1rem; line-height: 1; white-space: nowrap; }
.metric-card span { color: var(--muted); font-size: 0.95rem; }
.metric-card-one { top: -34px; }
.metric-card-two { bottom: -34px; }

 .section { padding: 110px 0; }
.dark-section { background: var(--bg-soft); }

.solutions-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(16, 20, 33, 0.96), rgba(16, 20, 33, 0.96)),
    var(--bg-soft);
}

.solutions-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--solutions-overlay-image);
  background-size: var(--solutions-overlay-size);
  background-position: var(--solutions-overlay-position);
  background-repeat: no-repeat;
  opacity: var(--solutions-overlay-opacity);
}

.solutions-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 18%, rgba(56, 213, 255, 0.16), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(139, 92, 246, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(16, 20, 33, 0.78), rgba(16, 20, 33, 0.92));
  pointer-events: none;
}

.solutions-section .section-heading,
.solutions-section .solutions-grid {
  position: relative;
  z-index: 1;
}
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.large-copy { margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.section-heading { margin-bottom: 44px; max-width: 850px; }
.section-heading.narrow { text-align: center; }
.section-heading.narrow { margin-inline: auto; }
.card-grid { display: grid; gap: 18px; }
.solutions-grid { grid-template-columns: repeat(3, 1fr); }
.solution-card {
  cursor: pointer;
  --solution-card-image: url("images/solutions/solutions-overlay.webp");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 245px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--solution-card-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.35s ease, transform 0.5s ease;
  pointer-events: none;
}
.solution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, rgba(7, 10, 18, 0.76), rgba(10, 14, 24, 0.68));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 213, 255, 0.45);
}
.solution-card:hover::before {
  opacity: 0.42;
  transform: scale(1);
}
.solution-card:hover::after { opacity: 1; }
.solution-card > * { position: relative; z-index: 1; }
.card-number { color: var(--accent); font-weight: 800; font-size: 0.85rem; }
.solution-card h3 { margin-top: 0; }
.solution-card p { color: var(--muted); margin-bottom: 0; }
.solution-card:hover h3 { color: var(--text); }
.solution-card:hover p { color: rgba(246, 248, 255, 0.86); }

.sectors-section .section-heading h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  max-width: 860px;
}

.sectors-section {
  background:
    radial-gradient(circle at 15% 0%, rgba(90, 193, 207, 0.12), transparent 32%),
    linear-gradient(180deg, #0e1422, #090d18);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sector-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sector-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 15px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.sector-list a:hover { color: var(--text); border-color: rgba(56, 213, 255, 0.5); }

.projects-section {
  padding-bottom: 10px;
  background: linear-gradient(180deg, var(--bg), #0b0f1a);
  overflow: hidden;
}
.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.carousel-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.carousel-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 213, 255, 0.55);
  background: rgba(56, 213, 255, 0.14);
}
.project-carousel-wrap {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  position: relative;
}
.project-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 37%);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 20px;
  scrollbar-width: thin;
}
.project-carousel::-webkit-scrollbar { height: 10px; }
.project-carousel::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 999px; }
.project-carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.24); border-radius: 999px; }
.project-slide {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}
.project-photo {
  cursor: zoom-in;
  min-height: 310px;
  position: relative;
  overflow: hidden;
  background: #151d2f;
}
.project-photo img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(7, 9, 17, 0.72);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}
.project-content { padding: 26px; }
.project-content p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; }
.process-list { display: grid; gap: 18px; }
.process-step {
  --process-icon-size: 58px;
  display: grid;
  grid-template-columns: var(--process-icon-size) 1fr;
  gap: 18px;
  align-items: center;
}
.process-icon-frame {
  width: var(--process-icon-size);
  height: var(--process-icon-size);
  display: grid;
  place-items: center;
  background: transparent;
}
.process-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.process-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
}
.process-list span { color: var(--accent); font-weight: 800; margin-right: 12px; }
.process-list strong { font-size: 1.1rem; }
.process-list p { color: var(--muted); margin: 8px 0 0; }

.cta-section { background: radial-gradient(circle at 20% 0%, rgba(56,213,255,0.16), transparent 34%), var(--bg); }
.cta-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}
.cta-card p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.24);
  color: var(--text);
  font: inherit;
}
.contact-form textarea { resize: vertical; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: #05070d; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  color: var(--muted);
}
.footer-grid p { max-width: 460px; margin: 0; }
.footer-brand { display: grid; gap: 14px; }
.footer-contact { display: grid; gap: 4px; font-style: normal; font-size: 0.95rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 920px) {
  .navbar { position: relative; justify-content: space-between; }
  .nav-menu { margin-left: 0; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); }
  .nav-menu {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 9, 17, 0.96);
  }
  .nav-menu.is-open { display: flex; }
  .split,
  .cta-card { grid-template-columns: 1fr; }
  .project-carousel { grid-auto-columns: minmax(300px, 72%); }
  .projects-heading { align-items: flex-start; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { position: static; margin-top: 18px; width: 100%; }
  .hero-showcase { min-height: auto; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .hero { padding-top: 132px; }
  h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); }
  .solutions-grid { grid-template-columns: 1fr; }
  .sector-list { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .projects-heading { flex-direction: column; }
  .project-carousel-wrap { width: min(100% - 28px, var(--max-width)); }
  .project-carousel { grid-auto-columns: 88%; }
  .project-photo { min-height: 250px; }
  .project-photo img { height: 250px; }
  .main-card { height: 300px; }
  .section { padding: 78px 0; }
}

/* Intro / critical environments: stacked layout */
.intro-section {
  padding: 64px 0 82px;
}

.intro-section .split {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
  transform: translateY(-14px);
}

.intro-section .split > div,
.intro-section .large-copy {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.intro-section h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.2vw, 3.35rem);
}

.intro-section .large-copy {
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .intro-section {
    padding: 52px 0 66px;
  }

  .intro-section .split {
    gap: 20px;
    transform: translateY(-8px);
  }

  .intro-section h2 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }
}

/* Process cards: hover highlight + 1s light sweep */
.process-box {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}
.process-box::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 24%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
}
.process-step:hover .process-box {
  transform: translateY(-5px);
  border-color: rgba(56, 213, 255, 0.48);
  background: rgba(255,255,255,0.075);
  box-shadow: 0 12px 34px rgba(0,0,0,0.18), 0 0 22px rgba(56,213,255,0.08);
}
.process-step:hover .process-box::after {
  animation: process-card-shine 1s ease-in-out 1;
}
@keyframes process-card-shine {
  0% { left: -42%; opacity: 0; }
  15% { opacity: 0.72; }
  70% { opacity: 0.5; }
  100% { left: 118%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .process-step:hover .process-box::after { animation: none; }
  .process-box { transition: none; }
}

/* v31: metric card one light treatment */
.metric-card-one {
  background: rgba(255, 255, 255, 0.70);
  color: var(--bg);
  border: 1px solid rgba(90, 193, 207, 0.70);
}
.metric-card-one strong,
.metric-card-one span {
  color: var(--bg);
}


/* Shared image modal: solution galleries + project lightbox */
body.modal-open { overflow: hidden; }
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.media-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 7, 12, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.media-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  max-height: 88vh;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.media-modal-stage {
  grid-column: 2;
  grid-row: 1;
  min-height: 240px;
  display: grid;
  place-items: center;
}
.media-modal-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #080a13;
}
.media-modal-close,
.media-modal-nav {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,12,20,0.72);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.media-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.4rem;
  z-index: 3;
}
.media-modal-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.25rem;
  justify-self: center;
}
.media-modal-prev { grid-column: 1; grid-row: 1; }
.media-modal-next { grid-column: 3; grid-row: 1; }
.media-modal-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 8px;
}
.media-modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.media-modal-dot.is-active { background: white; }
.media-modal.is-single .media-modal-nav,
.media-modal.is-single .media-modal-dots { display: none; }
.solution-card:focus-visible,
.project-photo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 720px) {
  .media-modal { padding: 18px; }
  .media-modal-dialog { width: 96vw; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 6px; }
  .media-modal-nav { width: 36px; height: 36px; }
  .media-modal-close { top: -8px; right: -4px; }
}


.projects-section { padding-bottom: 10px; }

/* v38: Process aligned with the structure of the preceding sections */
.process-section {
  overflow: hidden;
}

.process-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: max(0px, calc((100vw - var(--max-width)) / 2));
  text-align: right;
}

.process-heading h2 {
  margin-left: auto;
  margin-bottom: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.process-step {
  --process-icon-size: 58px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.process-icon-frame {
  width: var(--process-icon-size);
  height: var(--process-icon-size);
  flex: 0 0 auto;
}

.process-box {
  height: 100%;
  padding: 22px;
}

.process-list span {
  display: block;
  margin: 0 0 12px;
}

.process-list strong {
  display: block;
  line-height: 1.25;
}

.process-list p {
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-heading {
    margin-right: auto;
    text-align: left;
  }

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

/* v39: Process text alignment and equal-height cards */
.process-heading {
  text-align: left;
}

.process-heading h2 {
  margin-left: 0;
  margin-right: 0;
}

.process-box {
  min-height: 220px;
  height: 100%;
  text-align: left;
}

.process-list strong,
.process-list p,
.process-list span {
  text-align: left;
}

/* v40: Process alignment correction */
.process-heading {
  max-width: 850px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.process-heading h2 {
  margin-left: 0;
  margin-right: 0;
}

.process-list {
  align-items: stretch;
}

.process-step {
  height: 100%;
}

.process-box {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  text-align: left;
}

@media (max-width: 760px) {
  .process-heading {
    margin-left: 0;
    margin-right: 0;
  }
}

/* v41: Process final geometry correction */
.process-section .process-heading {
  width: min(100% - 40px, var(--max-width));
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.process-section .process-heading h2,
.process-section .process-heading .eyebrow {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.process-section .process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.process-section .process-step {
  display: grid;
  grid-template-rows: 58px 320px;
  gap: 14px;
  align-items: start;
  height: auto;
  min-width: 0;
}

.process-section .process-icon-frame {
  width: 58px;
  height: 58px;
}

.process-section .process-box {
  box-sizing: border-box;
  width: 100%;
  height: 320px;
  min-height: 320px;
  padding: 22px;
  text-align: left;
}

@media (max-width: 1100px) {
  .process-section .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .process-section .process-step {
    grid-template-rows: 58px auto;
  }
  .process-section .process-box {
    height: 320px;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .process-section .process-list {
    grid-template-columns: 1fr;
  }
  .process-section .process-step {
    grid-template-rows: 58px auto;
  }
  .process-section .process-box {
    height: auto;
    min-height: 0;
  }
}


/* v42: Process card width fix - remove inherited two-column step geometry */
.process-section .process-step {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 58px 320px;
  width: 100%;
}

.process-section .process-box {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .process-section .process-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px 320px;
  }
}

@media (max-width: 760px) {
  .process-section .process-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px auto;
  }
}

/* Contact form: two-column rows, status message and anti-spam field */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.cta-card .form-status[data-state="success"] { color: var(--accent); border-color: rgba(90, 193, 207, 0.45); background: rgba(90, 193, 207, 0.08); }
.cta-card .form-status[data-state="error"] { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.45); background: rgba(255, 138, 138, 0.08); }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Contact form: first-layer data protection notice and consent */
.form-privacy {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  line-height: 1.5;
}
.cta-card .form-privacy p { margin: 0; font-size: inherit; }
.form-privacy dl { display: grid; gap: 2px; margin: 0; }
.form-privacy dt { display: inline; color: var(--text); font-weight: 700; }
.form-privacy dd { display: inline; margin: 0; color: var(--muted); }
.form-privacy a, .form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.contact-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
.contact-form .form-consent input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

/* Legal pages */
.legal-page { position: relative; padding: 150px 0 110px; overflow: hidden; }
.legal-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -120px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(160px);
  opacity: 0.18;
  pointer-events: none;
}
.legal-layout {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.legal-nav { position: sticky; top: 110px; display: grid; gap: 6px; }
.legal-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}
.legal-nav a:hover { color: var(--text); background: var(--surface); }
.legal-nav a.is-active { color: var(--text); border-color: var(--line); background: var(--surface); }
.legal-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}
.legal-card h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 32px; }
.legal-content { color: var(--muted); font-size: 1.02rem; max-width: 760px; }
.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 14px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
}
.legal-content h3 { margin: 26px 0 8px; color: var(--text); font-size: 1.1rem; letter-spacing: -0.01em; }
.legal-num { color: var(--accent); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; }
.legal-content p { margin: 0 0 14px; }
.legal-content strong { color: var(--text); }
.legal-content ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.legal-content li { position: relative; padding-left: 22px; }
.legal-content li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-data {
  display: grid;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.legal-data div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 18px; }
.legal-data div + div { border-top: 1px solid var(--line); }
.legal-data dt { color: var(--text); font-weight: 700; }
.legal-data dd { margin: 0; }
.legal-body .navbar { justify-content: space-between; }
.legal-back { white-space: nowrap; font-size: 0.94rem; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .legal-nav .eyebrow { width: 100%; margin-bottom: 4px; }
}
@media (max-width: 640px) {
  .legal-page { padding: 118px 0 78px; }
  .legal-data div { grid-template-columns: 1fr; gap: 2px; }
  .legal-body .brand > span { display: none; }
}
