:root {
  --bg: #07111f;
  --bg-elevated: #0b1728;
  --bg-panel: rgba(10, 19, 33, 0.92);
  --bg-panel-strong: rgba(12, 22, 38, 0.98);
  --bg-soft: rgba(18, 29, 47, 0.92);
  --line: rgba(113, 143, 191, 0.18);
  --line-strong: rgba(96, 139, 255, 0.36);
  --text-main: #eef4ff;
  --text-soft: #bfd0ea;
  --text-muted: #8ea2c2;
  --brand: #2f73ff;
  --brand-strong: #1756d8;
  --brand-soft: rgba(47, 115, 255, 0.16);
  --brand-glow: 0 0 0 1px rgba(47, 115, 255, 0.35), 0 14px 34px rgba(24, 84, 210, 0.28);
  --success-soft: rgba(43, 182, 115, 0.16);
  --warning-soft: rgba(255, 179, 71, 0.16);
  --shadow-panel: 0 26px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.2);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-heading: "Segoe UI", "Bahnschrift", sans-serif;
  --font-body: "Segoe UI", "Aptos", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(47, 115, 255, 0.12), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(118, 76, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #060c17 0%, #07111f 50%, #050d19 100%);
  padding-inline: 10px;
}

body .site-header,
body .site-main,
body .site-footer {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

body.page-is-ready .site-header,
body.page-is-ready .site-main,
body.page-is-ready .site-footer {
  opacity: 1;
  transform: translateY(0);
}

body.page-is-leaving .site-header,
body.page-is-leaving .site-main,
body.page-is-leaving .site-footer {
  opacity: 0;
  transform: translateY(10px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

h1, h2, h3, h4, h5, h6,
.display-font {
  margin-top: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  color: var(--text-main);
}

p,
li,
label,
input,
select,
textarea {
  color: var(--text-soft);
}

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

img {
  max-width: 100%;
}

.text-secondary {
  color: var(--text-muted) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-panel);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #5c94ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.77rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.btn {
  border-radius: 0.9rem;
  font-weight: 600;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: linear-gradient(180deg, #367eff 0%, #215fe3 100%);
  --bs-btn-border-color: rgba(79, 138, 255, 0.88);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1b58da;
  --bs-btn-hover-border-color: #4b8dff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #144ebf;
  --bs-btn-active-border-color: #3978ec;
  color: #fff;
  background: linear-gradient(180deg, #367eff 0%, #215fe3 100%);
  border-color: rgba(79, 138, 255, 0.88);
  box-shadow: 0 10px 26px rgba(32, 94, 227, 0.32);
}

.btn-outline-brand {
  --bs-btn-color: var(--text-main);
  --bs-btn-border-color: rgba(130, 160, 219, 0.32);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(47, 115, 255, 0.16);
  --bs-btn-hover-border-color: rgba(96, 139, 255, 0.62);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(47, 115, 255, 0.24);
  --bs-btn-active-border-color: rgba(96, 139, 255, 0.62);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(130, 160, 219, 0.32);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(96, 139, 255, 0.14);
  background: rgba(5, 12, 21, 0.84);
  backdrop-filter: blur(16px);
  margin-top: 6px;
  border-radius: 18px 18px 0 0;
}

.site-header .navbar {
  min-height: 4.1rem;
}

.site-header .navbar-brand {
  color: var(--text-main);
  padding-block: 0.2rem;
}

.site-header .navbar-toggler {
  border-color: rgba(130, 160, 219, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.site-header .navbar-toggler-icon {
  filter: invert(1) opacity(0.85);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.2), rgba(47, 115, 255, 0.05)),
    rgba(12, 22, 38, 0.96);
  border: 1px solid rgba(91, 140, 255, 0.34);
  color: #4f8aff;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.navbar-nav {
  --bs-nav-link-padding-x: 0.9rem;
  gap: 0.25rem;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding-top: 1.15rem;
  padding-bottom: 1rem;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  color: #6ca1ff;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link[aria-current="page"]::after {
  background: linear-gradient(90deg, rgba(47, 115, 255, 0.16), #4b8dff, rgba(47, 115, 255, 0.16));
}

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

.container {
  max-width: 1460px;
}

.lang-switch {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0;
}

.lang-switch.is-active {
  color: #8eb3ff;
}

.site-main {
  padding: 0.35rem 0 3.4rem;
}

.site-shell {
  display: grid;
  gap: 1.2rem;
}

body[data-page="home"] .site-shell > .hero-panel {
  order: -2;
}

body[data-page="home"] .site-shell > .project-panel {
  order: -1;
}

.hero-panel,
.content-panel,
.project-panel,
.engineering-panel,
.contact-panel,
.case-panel,
.privacy-panel,
.gateway-card,
.info-card,
.project-card,
.tab-panel,
.contact-links-panel {
  background: linear-gradient(180deg, rgba(10, 19, 33, 0.96), rgba(8, 15, 27, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
}

.section-block {
  padding: 1.9rem;
}

.hero-panel {
  overflow: hidden;
  border-radius: 1.9rem;
}

.hero-panel .row {
  min-height: 35rem;
}

.hero-copy,
.hero-visual {
  padding: 2.35rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1.3rem;
}

.hero-visual {
  padding-left: 0.75rem;
}

.hero-title {
  font-size: clamp(2.55rem, 3.45vw, 3.85rem);
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero-title strong,
.hero-title .text-accent {
  color: #4b8dff;
  font-weight: 800;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 34rem;
}

@media (max-width: 1599.98px) {
  .hero-title {
    font-size: clamp(2.3rem, 3.2vw, 3.4rem);
    max-width: 17ch;
  }

  .lead {
    font-size: 1.02rem;
    line-height: 1.72;
    max-width: 32rem;
  }
}

@media (min-width: 1400px) {
  .hero-copy {
    padding-right: 2rem;
  }

  .hero-title {
    max-width: 18.5ch;
  }

  .lead {
    max-width: 36rem;
  }
}

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

.hero-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-pill,
.badge-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(124, 156, 221, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.tech-pill.is-brand,
.badge-soft.is-brand {
  background: linear-gradient(180deg, rgba(76, 103, 255, 0.2), rgba(47, 115, 255, 0.08));
  color: #b9ceff;
  border-color: rgba(100, 137, 255, 0.24);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(47, 115, 255, 0.13), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  opacity: 0.7;
}

.placeholder-frame {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(97, 137, 207, 0.14);
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.9), rgba(8, 15, 26, 0.96));
}

.placeholder-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-frame.is-hero {
  width: min(41rem, 100%);
  min-height: auto;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 45%, rgba(47, 115, 255, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(9, 17, 29, 0.86), rgba(9, 16, 28, 0.98));
}

.placeholder-frame.is-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.02);
}

.placeholder-frame.is-project {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.placeholder-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  border-radius: 0.9rem;
  background: rgba(5, 12, 20, 0.74);
  border: 1px solid rgba(118, 146, 211, 0.14);
  padding: 0.75rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.87rem;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  margin-bottom: 0.65rem;
}

.section-heading p {
  margin-bottom: 0;
}

.grid-cards {
  display: grid;
  gap: 1rem;
}

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

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

.info-card {
  height: 100%;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 27, 45, 0.98), rgba(10, 18, 31, 0.96));
}

.info-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(47, 115, 255, 0.22), rgba(47, 115, 255, 0.08));
  color: #79a7ff;
  border: 1px solid rgba(96, 139, 255, 0.18);
  font-size: 0.96rem;
  font-weight: 700;
}

.info-card-icon .bi {
  font-size: 1.2rem;
}

.info-card h2,
.info-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.28rem;
}

.project-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(7, 14, 25, 0.98));
  box-shadow: var(--shadow-soft);
}

.project-card .project-copy {
  padding: 1.15rem 1.2rem 1.25rem;
}

.project-card h3 {
  font-size: 1.42rem;
  margin-bottom: 0.3rem;
}

.project-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #67a0ff;
  font-weight: 600;
}

.project-link .bi {
  font-size: 0.85rem;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-item {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.92), rgba(10, 18, 32, 0.94));
}

.process-step {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #367eff, #215fe3);
  box-shadow: 0 10px 24px rgba(33, 95, 227, 0.28);
  font-size: 0.9rem;
  font-weight: 700;
}

.list-panel {
  display: grid;
  gap: 1rem;
}

.list-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 19, 33, 0.96), rgba(7, 14, 25, 0.96));
  box-shadow: var(--shadow-panel);
}

.list-item .placeholder-frame {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.list-item > .info-card {
  width: min(17.5rem, 100%);
  justify-self: end;
}

.about-profile {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.about-copy {
  min-width: 0;
}

.about-approach,
.about-tech-stack {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.about-tech-stack .case-badges {
  margin-top: 0.75rem;
}

.about-tech-stack > .eyebrow {
  display: flex;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.about-tech-stack > .eyebrow + .eyebrow,
.about-tech-stack > .case-badges + .eyebrow {
  margin-top: 1.35rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #a9c5ff;
  border: 1px solid rgba(96, 139, 255, 0.2);
  font-size: 0.84rem;
  font-weight: 600;
}

.page-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.45rem);
  margin-bottom: 0.55rem;
}

.breadcrumb-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-line span:last-child {
  color: var(--text-soft);
}

.breadcrumb-line .breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-line .breadcrumb-separator .bi {
  font-size: 0.7rem;
}

.case-panel {
  padding: 1.5rem;
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.35rem;
  align-items: center;
}

.case-hero-copy h1 {
  font-size: clamp(2.55rem, 4vw, 3.6rem);
  margin-bottom: 0.6rem;
}

.case-hero-copy .lead {
  max-width: 28rem;
}

.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.case-nav.nav-tabs {
  --bs-nav-tabs-border-width: 0;
  --bs-nav-tabs-border-color: transparent;
  --bs-nav-tabs-border-radius: 0;
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-tabs-link-active-border-color: transparent;
  border-bottom: 1px solid var(--line);
}

.case-nav .nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: 0.84rem;
  border: 0;
  background: transparent;
  padding: 0 0 0.5rem;
  margin: 0;
}

.case-nav .nav-link:hover,
.case-nav .nav-link:focus-visible {
  color: var(--text-soft);
  border-color: transparent;
}

.case-nav .nav-link.active {
  color: #82acff;
  background: transparent;
}

.case-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 2px;
  background: #4b8dff;
}

.case-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 14, 25, 0.58);
}

.case-view-switch a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.case-view-switch a:hover,
.case-view-switch a:focus-visible,
.case-view-switch a[aria-current="page"] {
  color: var(--text-main);
  background: var(--brand-soft);
}

.case-engineering-block[id] {
  scroll-margin-top: 1.25rem;
}

.tab-panel {
  margin-top: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.case-tab-pane:not(.active) {
  display: none !important;
}

.case-tab-pane.active.show {
  display: block !important;
}

.case-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}

.case-anchor-nav {
  align-items: center;
  margin-top: 1.4rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-anchor-nav a {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.case-anchor-nav a:hover,
.case-anchor-nav a:focus-visible {
  color: #82acff;
}

.case-study-section {
  scroll-margin-top: 1.25rem;
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--line);
}

.case-study-section:last-child {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.case-business-layer {
  position: relative;
}

.case-engineering-layer {
  margin-top: 1rem;
  padding: 2.25rem 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 0%, rgba(47, 115, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(13, 24, 40, 0.98), rgba(8, 16, 28, 0.98));
  scroll-margin-top: 1.25rem;
}

.case-study-section.case-engineering-layer {
  border-bottom: 0;
  padding-bottom: 1.5rem;
}

.case-engineering-layer .case-section-heading {
  max-width: none;
}

.case-engineering-block {
  margin-top: 1.9rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}

.case-engineering-block > h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.case-engineering-layer h4 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.case-architecture-diagram {
  display: grid;
  gap: 0.55rem;
  max-width: 58rem;
  margin-top: 1rem;
}

.case-architecture-node {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(96, 139, 255, 0.34);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 34, 58, 0.96), rgba(10, 20, 35, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.case-architecture-node > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(96, 139, 255, 0.4);
  border-radius: 999px;
  color: #82acff;
  font-size: 0.76rem;
  font-weight: 700;
}

.case-architecture-node h4 {
  margin-bottom: 0.35rem;
}

.case-architecture-node p {
  max-width: 52rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.case-architecture-arrow {
  color: #82acff;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}

.case-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(6, 14, 25, 0.5);
}

.case-tradeoffs-table {
  width: 100%;
  min-width: 52rem;
  margin: 0;
  border-collapse: collapse;
}

.case-tradeoffs-table th,
.case-tradeoffs-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.case-tradeoffs-table thead th {
  color: var(--text-soft);
  background: rgba(18, 34, 58, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-tradeoffs-table tbody th {
  min-width: 10rem;
  color: var(--text-soft);
  font-weight: 700;
}

.case-tradeoffs-table tbody tr:last-child th,
.case-tradeoffs-table tbody tr:last-child td {
  border-bottom: 0;
}

.case-section-heading {
  max-width: none;
  margin-bottom: 1.35rem;
}

.case-section-heading h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.case-section-heading p:last-child,
.case-study-section > p:last-child {
  margin-bottom: 0;
}

.case-meta-grid,
.case-copy-grid,
.case-media-grid,
.case-capabilities-grid,
.case-proof-grid,
.case-solution-flow {
  display: grid;
  gap: 1rem;
}

.case-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.case-meta-item {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.92), rgba(10, 18, 32, 0.94));
}

.case-meta-item dt {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-meta-item dd {
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
}

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

.case-capabilities-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-capabilities-grid .info-card p:last-child,
.case-proof-grid .info-card p:last-child {
  margin-bottom: 0;
}

.case-technical-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.case-technical-group {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.92), rgba(10, 18, 32, 0.94));
}

.case-technical-group .eyebrow {
  margin-bottom: 0.45rem;
}

.case-technical-group h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.case-technical-group p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.91rem;
}

.case-technical-group .case-badges {
  gap: 0.4rem;
  margin-top: 1rem;
}

.case-technical-group .badge-soft {
  padding: 0.34rem 0.58rem;
  font-size: 0.75rem;
}

.case-solution-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.case-media-grid .placeholder-frame {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.placeholder-frame.is-case-media {
  min-height: 18rem;
  aspect-ratio: 16 / 9;
}

.placeholder-frame.is-placeholder-only {
  display: grid;
  place-items: center;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 35%, rgba(47, 115, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.9), rgba(8, 15, 26, 0.96));
}

.case-placeholder-label {
  max-width: 14rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(118, 146, 211, 0.2);
  border-radius: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.case-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 27, 45, 0.98), rgba(10, 18, 31, 0.96));
}

.case-cta p {
  margin: 0;
}

.case-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .case-cta-actions {
    width: 100%;
    margin-left: 0;
  }
}

.case-details {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.92), rgba(10, 18, 32, 0.94));
}

.case-details summary {
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 700;
}

.case-details summary:focus-visible {
  outline: 2px solid #82acff;
  outline-offset: 0.35rem;
  border-radius: 0.2rem;
}

.case-details[open] summary {
  color: #82acff;
}

.case-details-content {
  padding-top: 1rem;
}

.case-details-content h3 {
  font-size: 1.05rem;
}

.tab-panel section + section {
  margin-top: 1.5rem;
}

.highlight-list {
  display: grid;
  gap: 1rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #4b8dff, #2a68ed);
  box-shadow: 0 0 0 6px rgba(47, 115, 255, 0.09);
}

.contact-links-panel {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 1.45rem;
}

.contact-panel .lead {
  max-width: none;
}

.contact-links-panel h2 {
  margin-bottom: 0;
}

.contact-links-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(130, 160, 219, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 139, 255, 0.62);
  background: rgba(47, 115, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.contact-link-card:focus-visible {
  outline: 0;
  border-color: rgba(96, 139, 255, 0.78);
  box-shadow: 0 0 0 0.18rem rgba(47, 115, 255, 0.2);
}

.contact-link-mark {
  display: grid;
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--brand-soft);
  color: #a9c5ff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contact-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-link-title {
  color: var(--text-main);
  font-weight: 700;
}

.contact-link-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-link-arrow {
  margin-left: auto;
  color: #8eb3ff;
  font-size: 1.35rem;
  line-height: 1;
}

.form-shell .form-control,
.form-shell .form-select {
  background: rgba(6, 12, 20, 0.86);
  border-color: rgba(115, 144, 204, 0.16);
  color: var(--text-main);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.form-shell .form-control::placeholder,
.form-shell .form-select {
  color: var(--text-muted);
}

.form-shell .form-control:focus,
.form-shell .form-select:focus {
  background: rgba(6, 12, 20, 0.96);
  border-color: rgba(86, 133, 255, 0.58);
  color: var(--text-main);
  box-shadow: 0 0 0 0.18rem rgba(47, 115, 255, 0.14);
}

.form-label {
  color: var(--text-main);
  font-weight: 600;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-panel {
  padding: 1rem 1.25rem;
  border-radius: 0 0 1.6rem 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 14, 24, 0.98), rgba(4, 10, 19, 0.98));
}

.footer-panel a,
.footer-panel p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  justify-content: flex-end;
}

.lang-gateway {
  min-height: 100vh;
}

.gateway-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.gateway-card {
  max-width: 42rem;
  padding: 3rem;
  text-align: center;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1100;
  background: #dce8ff;
  color: #04101f;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  body .site-header,
  body .site-main,
  body .site-footer {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.skip-link:focus {
  top: 1rem;
}

@media (max-width: 1199.98px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-hero,
  .case-body,
  .list-item {
    grid-template-columns: 1fr;
  }

  .list-item > .info-card {
    width: 100%;
    justify-self: stretch;
  }

  .case-meta-grid,
  .case-capabilities-grid,
  .case-proof-grid,
  .case-solution-flow,
  .case-technical-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar {
    padding-block: 0.35rem;
  }

  .nav-utilities {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.8rem;
  }

  .hero-panel .row {
    min-height: auto;
  }

  .hero-copy,
  .hero-visual,
  .section-block {
    padding: 1.6rem;
  }

  .hero-copy,
  .hero-visual {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .site-header {
    margin-top: 0;
    border-radius: 0;
  }

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

@media (max-width: 767.98px) {
  .site-main {
    padding-top: 1rem;
  }

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

  .hero-title {
    max-width: none;
  }

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

  .case-nav {
    gap: 0.8rem 1.1rem;
  }

  .case-anchor-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .case-meta-grid,
  .case-copy-grid,
  .case-media-grid,
  .case-capabilities-grid,
  .case-proof-grid,
  .case-solution-flow,
  .case-technical-groups {
    grid-template-columns: 1fr;
  }

  .case-study-section {
    padding: 1.7rem 0;
  }

  .case-engineering-layer {
    margin-top: 0.5rem;
    padding: 1.7rem 0.85rem 1rem;
    border-radius: var(--radius-lg);
  }

  .case-study-section.case-engineering-layer {
    padding-bottom: 1rem;
  }

  .case-engineering-block {
    margin-top: 1.55rem;
    padding-top: 1.35rem;
  }

  .case-architecture-node {
    padding: 1rem;
  }

  .placeholder-frame.is-case-media {
    /* Let the aspect ratio follow the narrow mobile content width. */
    min-height: 0;
  }
}
