:root {
  --bg: #f7f8fb;
  --bg-strong: #f1f3f6;
  --ink: #0f1115;
  --ink-soft: #49515b;
  --ink-light: #8a9099;
  --line: #e3e6eb;
  --surface: #ffffff;
  --surface-muted: #f6f7fb;
  --accent: #0a1128;
  --accent-soft: rgba(10, 17, 40, 0.14);
  --accent-blue: #0a1128;
  --surface-dark-solid: #0a1128;
  --surface-dark: linear-gradient(142deg, #0a1128 0%, #0a1128 100%);
  --surface-dark-soft: linear-gradient(142deg, rgba(10, 17, 40, 0.72) 0%, rgba(10, 17, 40, 0.52) 34%, rgba(10, 17, 40, 0.95) 100%);
  --surface-dark-hover: linear-gradient(142deg, #0a1128 0%, #0a1128 100%);
  --surface-dark-border: rgba(255, 255, 255, 0.18);
  --surface-dark-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(15, 17, 21, 0.12);
  --shadow-md: 0 16px 40px rgba(15, 17, 21, 0.1);
  --shadow-sm: 0 10px 24px rgba(15, 17, 21, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --gutter: clamp(1.25rem, 2.5vw, 3rem);
  /* Wider sidebar + wider collapsed rail */
  --sidebar-width: 22rem;
  --sidebar-collapsed: 4rem;
  --content-offset-left: calc(var(--gutter) + var(--sidebar-collapsed));
  --content-max: 1400px;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  /* Keep pull-to-refresh/bounce, but never show white: iOS reveals the `html`
     background when overscrolling past the document edges. */
  background-color: #0a1128;
  background: linear-gradient(140deg, #0a1128 0%, #0a1128 78%, #001f54 100%);
}

body {
  font-family: var(--font-body);
  background-color: #f4f6f9;
  background: linear-gradient(180deg, #f4f6f9 0%, #f7f8fb 55%, #ffffff 100%);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 47.99em) {
  body.is-sidebar-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: inherit;
}

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

a:hover,
a:focus-visible {
  text-decoration: none;
}

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

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.main {
  flex: 1;
  padding-bottom: 0;
}

.container {
  width: min(100%, var(--content-max));
  max-width: var(--content-max);
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--content-offset-left);
}

.section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* Mouse-follow glow */
[data-mouse-glow] {
  --mouse-glow-x: 50%;
  --mouse-glow-y: 50%;
  --mouse-glow-size: 220px;
  --mouse-glow-color: rgba(3, 64, 120, 0.14);
  --mouse-glow-opacity: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

[data-mouse-glow].sidebar,
.sidebar[data-mouse-glow] {
  position: fixed;
  overflow-x: hidden;
  overflow-y: auto;
}

[data-mouse-glow] > * {
  position: relative;
  z-index: 2;
}

[data-mouse-glow] > .mouse-glow-layer {
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  opacity: var(--mouse-glow-opacity);
  transition: opacity 0.22s ease;
  background: radial-gradient(
    circle var(--mouse-glow-size) at var(--mouse-glow-x) var(--mouse-glow-y),
    var(--mouse-glow-color) 0%,
    rgba(3, 64, 120, 0) 72%
  );
}

[data-mouse-glow].is-glowing {
  --mouse-glow-opacity: 1;
}

.glow-hero {
  --mouse-glow-color: rgba(47, 128, 237, 0.17);
}

.glow-surface {
  --mouse-glow-color: rgba(3, 64, 120, 0.14);
}

.glow-sidebar {
  --mouse-glow-color: rgba(47, 128, 237, 0.15);
}

.glow-footer {
  --mouse-glow-color: rgba(47, 128, 237, 0.14);
}

.glow-card {
  --mouse-glow-color: rgba(108, 117, 125, 0.14);
}

.project-card--featured.glow-card,
.contact-panel--dark.glow-card,
.cta-panel.glow-surface {
  --mouse-glow-color: rgba(255, 255, 255, 0.13);
}

.glow-button-dark {
  --mouse-glow-color: rgba(255, 255, 255, 0.22);
}

.section-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  color: var(--ink-light);
  margin: 0;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.section-header p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 860px;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(140deg, rgba(10, 17, 40, 0.9) 0%, rgba(10, 17, 40, 0.93) 78%, rgba(0, 31, 84, 0.92) 100%) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  position: fixed !important;
  width: var(--sidebar-width);
  left: 0;
  right: auto;
  top: 0;
  bottom: 0;
  height: 100vh; /* fallback */
  z-index: 150;
  transform: translateX(calc(-1 * (var(--sidebar-width) - var(--sidebar-collapsed))));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  font-family: var(--font-body);
  visibility: visible;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  /* slower slide */
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-x: hidden;
  overflow-y: auto;
  /* Reduce iOS/Safari scroll "rubber-banding" showing page background as bars. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@supports (height: 100svh) {
  .sidebar {
    height: 100svh;
  }
}

@supports (height: 100dvh) {
  .sidebar {
    height: 100dvh;
  }
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 14%, rgba(3, 64, 120, 0.24), transparent 56%),
    radial-gradient(circle at 78% 84%, rgba(0, 31, 84, 0.3), transparent 62%);
  opacity: 0.34;
  pointer-events: none;
}

.sidebar a {
  color: #f2f2f2 !important;
}

.sidebar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  padding: 1.4rem calc(1.6rem + var(--sidebar-collapsed)) 1.8rem 1.2rem;
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  padding-bottom: 0.9rem;
  border-bottom: 0;
}

.sidebar-logo {
  max-width: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-brand-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1.15;
}

.sidebar-brand-tag {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.25;
}

.sidebar-section-title {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.6rem;
  border-top: 0;
  margin-top: 40px;
}

.sidebar-nav-item {
  display: block;
  padding: 0.25rem 0 0.25rem 20px;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82) !important;
  transition: color 0.2s ease;
}

.sidebar-nav-item.active,
.sidebar-nav-item:hover,
.sidebar-nav-item:focus {
  background: transparent !important;
  border: 0;
  color: #ffffff !important;
  text-decoration: none;
}

.sidebar-lang {
  margin-top: 0.8rem;
  padding-left: 20px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72) !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher-link:hover,
.lang-switcher-link:focus-visible {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-switcher-link.active {
  color: #0a1128 !important;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.lang-switcher--footer .lang-switcher-link {
  color: rgba(255, 255, 255, 0.78) !important;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-projects {
  display: grid;
  gap: 0.6rem;
}

.sidebar-project {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.sidebar-project:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-cta {
  margin-top: auto;
}

.sidebar-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-cta-note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-footer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-checkbox {
  position: fixed;
  top: -100vh;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 48em) {
  .sidebar {
    left: 0 !important;
    visibility: visible !important;
    transform: translateX(calc(-1 * (var(--sidebar-width) - var(--sidebar-collapsed)))) !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .wrap {
    margin-left: 0;
    transform: none !important;
  }

  .sidebar-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 48em) and (hover: hover) {
  .sidebar:hover,
  .sidebar:focus-within {
    transform: translateX(0) !important;
  }
}

@media (max-width: 47.99em) {
  :root {
    --sidebar-width: calc(min(84vw, 22rem) - 10px);
    --sidebar-collapsed: 0rem;
    --content-offset-left: var(--gutter);
  }

  .container,
  .hero-inner,
  .site-footer .container {
    padding-left: var(--gutter);
  }

  .section-highlights {
    display: none;
  }
}

#sidebar-checkbox:checked + .sidebar,
#sidebar-checkbox:checked ~ .sidebar {
  -webkit-transform: translateX(0) !important;
  transform: translateX(0) !important;
}

#sidebar-checkbox:checked ~ .wrap {
  margin-left: 0;
  -webkit-transform: none !important;
  transform: none !important;
}



/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(140deg, #0a1128 0%, #0a1128 78%, #001f54 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (max-width: 47.99em) {
  /* Slightly taller hero on phones (and more stable than plain 100vh on iOS). */
  .hero {
    min-height: 160vh;
  }
}

@supports (min-height: 100svh) {
  @media (max-width: 47.99em) {
    .hero {
      min-height: 105svh;
    }
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(3, 64, 120, 0.24), transparent 50%),
    radial-gradient(circle at 82% 2%, rgba(0, 31, 84, 0.34), transparent 48%),
    linear-gradient(120deg, rgba(3, 64, 120, 0.15), transparent 62%);
  opacity: 0.56;
  z-index: 0;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  opacity: 0.18;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1920px);
  margin: 0 auto;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-right: var(--gutter);
  padding-left: var(--content-offset-left);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  justify-items: center;
}

.hero-inner > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  background: var(--surface-dark-soft);
  color: #f5f7fb;
  border-color: var(--surface-dark-border);
  box-shadow: var(--surface-dark-shadow);
}

.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn-services,
.btn-services:link,
.btn-services:visited,
.btn-services:hover,
.btn-services:focus,
.btn-services:focus-visible,
.btn-services:active {
  text-decoration: none !important;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-primary,
.cta-button {
  background: var(--surface-dark);
  color: #f5f7fb;
  border-color: var(--surface-dark-border);
  box-shadow: var(--surface-dark-shadow);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-dark-hover);
  box-shadow: 0 20px 42px rgba(7, 20, 40, 0.52);
}

.btn-ghost {
  background: var(--surface-dark-soft);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-dark);
}

.btn-light {
  background: var(--surface-dark-soft);
  color: #f5f7fb;
  border-color: var(--surface-dark-border);
}

.btn-press {
  transform-origin: center;
}

.btn-press.is-pressing {
  animation: buttonTapPulse 220ms ease;
}

.hero-actions .btn-hero-action:hover,
.hero-actions .btn-hero-action:focus-visible {
  transform: none;
  background: #ffffff;
  color: #0a1128;
  border-color: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.hero-actions .btn-hero-action > span {
  color: inherit;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.metric span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.metric strong {
  font-size: 1.1rem;
  color: #fff;
}

.hero-board {
  display: grid;
  gap: 1.4rem;
  width: min(100%, 460px);
  justify-self: end;
}

.hero-board-card {
  background: rgba(15, 18, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-board-card--accent {
  background: rgba(52, 58, 64, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-board-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
}

.hero-board-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.hero-board-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.hero-board-row strong {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.hero-board-row:last-child {
  border-bottom: none;
}

.hero-board-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-board-list li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  margin-top: 0.35rem;
  margin-right: 0.6rem;
  background: linear-gradient(140deg, #212529, #212529);
  flex: 0 0 auto;
}

.hero-board-list li {
  display: flex;
  align-items: flex-start;
}

.hero-board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-board-tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 1020px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1019px) {
  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-board {
    width: min(100%, 620px);
    justify-self: center;
  }
}

/* Services */
.section-services {
  background: var(--bg-strong);
}

.service-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.service-grid--all .service-card {
  grid-column: auto;
}

.service-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0.15rem 0.2rem 0.85rem;
  margin: -0.15rem -0.2rem -0.85rem;
  /* Allow vertical scroll while enabling JS swipe handling on touch devices. */
  touch-action: pan-y;
}

.service-grid--carousel {
  display: flex;
  gap: 1.6rem;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-grid--carousel.is-snapping {
  transition: none;
}

.service-grid--carousel .service-card {
  flex: 0 0 calc((100% - 3.2rem) / 3);
  grid-column: auto;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: none;
  display: grid;
  gap: 1rem;
  grid-column: span 2;
  align-content: start;
  transition: border-color 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
  box-shadow: none;
  border-color: var(--line);
}

.service-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 2.8rem;
  /* Prevent flex children from overflowing on narrow screens (mobile Safari). */
  min-width: 0;
}

.service-top h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.service-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0a1128;
  border: 1px solid #0a1128;
  flex: 0 0 auto;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  transform: none;
  background: #0a1128;
  border-color: #0a1128;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.service-details {
  display: grid;
  gap: 0.9rem;
}

.service-details h3,
.service-top h3 {
  margin: 0.25rem 0 0;
}

.service-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.services-more {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}

.btn-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #fff !important;
  border: 1px solid var(--surface-dark-border);
  font-weight: 600;
  box-shadow: var(--surface-dark-shadow);
}

.btn-services:hover,
.btn-services:focus-visible {
  background: var(--surface-dark-hover);
  border-color: var(--surface-dark-border);
}

.btn-services.btn-press-static:hover,
.btn-services.btn-press-static:focus-visible {
  background: var(--surface-dark);
  border-color: var(--surface-dark-border);
  color: #fff !important;
}

/* Highlights */
.section-highlights {
  background: var(--bg);
}

.highlight-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.75rem;
  align-content: start;
  align-items: start;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight-card:hover,
.highlight-card:focus-within {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.highlight-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: 1.15rem;
}

.highlight-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--ink-soft);
}

.highlight-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0a1128;
  border: 1px solid #0a1128;
  box-shadow: 0 10px 20px rgba(10, 17, 40, 0.2);
}

.highlight-icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

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

  .service-grid--carousel .service-card {
    flex-basis: calc((100% - 1.6rem) / 2);
  }

  .service-card {
    grid-column: auto;
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .service-grid--carousel .service-card {
    flex-basis: 100%;
  }
}

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

@media (max-width: 640px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Proof */
.section-proof {
  background: transparent;
}

.proof-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.proof-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.4rem;
}

.proof-card--dark {
  background: var(--surface-dark);
  color: #fff;
  border-color: var(--surface-dark-border);
}

.proof-card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.stat-grid {
  display: grid;
  gap: 0.9rem;
}

.stat {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-light);
}

.proof-card--dark .stat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.proof-card--dark .stat span {
  color: rgba(255, 255, 255, 0.6);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-grid span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Process */
.section-process {
  background: var(--bg-strong);
}

.section-process .section-header {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.process-flow {
  --process-gap: clamp(0.55rem, 1.2vw, 0.9rem);
  --process-marker-size: clamp(2.05rem, 2.35vw, 2.35rem);
  --process-connector: clamp(1.2rem, 2vw, 1.8rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--process-gap);
  align-items: center;
  padding: 0.35rem 0;
}

.process-flow::before {
  content: "";
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 17, 21, 0.24), rgba(33, 37, 41, 0.58) 45%, rgba(15, 17, 21, 0.24));
  z-index: 0;
}

.process-step {
  position: relative;
  min-width: 0;
  min-height: clamp(22rem, 27vw, 25rem);
}

.process-step::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(33, 37, 41, 0.62), rgba(15, 17, 21, 0.34));
}

.process-step:nth-child(odd)::before {
  top: calc(50% - var(--process-marker-size) / 2 - var(--process-connector));
  height: var(--process-connector);
}

.process-step:nth-child(even)::before {
  top: calc(50% + var(--process-marker-size) / 2);
  height: var(--process-connector);
}

.process-step-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: var(--process-marker-size);
  height: var(--process-marker-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 0.88vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: #0a1128;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 6px rgba(10, 17, 40, 0.14),
    0 10px 22px rgba(15, 17, 21, 0.16);
}

.process-card {
  position: absolute;
  left: 50%;
  width: clamp(16.6rem, 17.4vw, 18.2rem);
  min-height: clamp(8.9rem, 9.5vw, 9.6rem);
  height: clamp(8.9rem, 9.5vw, 9.6rem);
  transform: translateX(-50%);
  z-index: 1;
  padding: clamp(0.9rem, 1.2vw, 1.05rem);
  border-radius: 1.05rem;
  border: 1px solid rgba(15, 17, 21, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.96) 100%);
  box-shadow:
    0 14px 28px rgba(15, 17, 21, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.72rem;
  row-gap: 0.45rem;
  align-content: start;
  align-items: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.process-card-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0a1128;
  border: 1px solid #0a1128;
  margin-bottom: 0;
}

.process-card-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.process-step:nth-child(odd) .process-card {
  bottom: calc(50% + var(--process-marker-size) / 2 + var(--process-connector));
}

.process-step:nth-child(even) .process-card {
  top: calc(50% + var(--process-marker-size) / 2 + var(--process-connector));
}

.process-card:hover,
.process-card:focus-within {
  transform: translateX(-50%);
  border-color: rgba(15, 17, 21, 0.08);
  box-shadow:
    0 14px 28px rgba(15, 17, 21, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.process-step-label {
  display: none !important;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.62rem;
  color: rgba(15, 17, 21, 0.52);
}

.process-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: clamp(1.1rem, 1.45vw, 1.42rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.process-card > p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 0.98vw, 0.98rem);
  line-height: 1.32;
  max-width: none;
}

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

  .process-flow::before,
  .process-step::before {
    display: none;
  }

  .process-step {
    min-height: auto;
    padding-top: calc(var(--process-marker-size) + 0.55rem);
  }

  .process-step-marker {
    top: 0;
    left: 0.95rem;
    transform: none;
  }

  .process-card,
  .process-step:nth-child(odd) .process-card,
  .process-step:nth-child(even) .process-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    min-height: 9.8rem;
    height: 9.8rem;
    width: 100%;
  }

  .process-card:hover,
  .process-card:focus-within {
    transform: none;
  }

  .process-card > p {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (max-width: 680px) {
  .process-flow {
    display: block;
    position: relative;
    padding: 0.35rem 0;
    width: min(100%, 30rem);
    margin-left: auto;
    margin-right: auto;
  }

  .process-flow::before {
    display: none;
  }

  .process-step {
    min-height: 0;
    padding: 0.6rem 0;
    position: relative;
  }

  .process-step:last-child {
    padding-bottom: 0.6rem;
  }

  .process-step::before {
    display: block;
    content: "";
    position: absolute;
    left: calc(1.25rem - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    transform: none;
    background: rgba(15, 17, 21, 0.38);
  }

  .process-step:nth-child(odd)::before,
  .process-step:nth-child(even)::before {
    left: calc(1.25rem - 1px);
    top: 0;
    bottom: 0;
    height: auto;
  }

  .process-step:first-child::before {
    top: 50%;
  }

  .process-step:last-child::before {
    bottom: 50%;
  }

  .process-step-marker {
    top: 50%;
    left: 1.25rem;
    transform: translate(-50%, -50%);
  }

  .process-card,
  .process-step:nth-child(odd) .process-card,
  .process-step:nth-child(even) .process-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: min(calc(100% - 4.6rem), 23.1rem);
    margin-left: 4.1rem;
    margin-right: auto;
    min-height: 0;
    height: auto;
  }

  .process-card:hover,
  .process-card:focus-within {
    transform: none;
  }
}

/* Security */
.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "[x]";
  margin-right: 0.6rem;
  color: var(--accent);
  font-weight: 700;
}

.security-panel {
  background: var(--surface-dark);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.feature-panels {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .feature-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-panel {
  background: var(--surface-dark);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.feature-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.feature-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.badge {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

/* Projects */
.section-projects {
  background: var(--bg);
}

.project-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 960px) {
  .project-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card--featured {
    grid-column: span 2;
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem 1.8rem 3.9rem;
  padding-right: clamp(5.8rem, 10vw, 7rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-logo {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo--arro {
  top: 0.01rem;
  width: min(6.2rem, 34%);
}

.project-logo--arro img {
  transform: scaleX(1.72);
  transform-origin: center;
}

.project-logo--savanori {
  width: clamp(2.15rem, 3vw, 2.55rem);
  height: clamp(2.15rem, 3vw, 2.55rem);
  filter: drop-shadow(0 5px 12px rgba(226, 109, 117, 0.4));
}

.project-logo--lintana {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  height: 2.15rem;
  padding: 0 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(8, 16, 36, 0.22);
  background: linear-gradient(135deg, #202c40, #111827);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card:hover .project-logo,
.project-card:focus-visible .project-logo {
  transform: translateY(-1px) scale(1.02);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(33, 37, 41, 0.12), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(33, 37, 41, 0.35);
  box-shadow: 0 28px 60px rgba(52, 58, 64, 0.24);
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}

.project-card:active {
  transform: translateY(-2px);
}

.project-card--featured {
  background: var(--surface-dark);
  color: #fff;
  border-color: var(--surface-dark-border);
}

.project-card--featured:hover,
.project-card--featured:focus-visible {
  border-color: rgba(33, 37, 41, 0.45);
  box-shadow: 0 30px 66px rgba(52, 58, 64, 0.3);
}

.project-visit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 17, 21, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 17, 21, 0.78);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-visit::after {
  content: "->";
  font-size: 0.72rem;
  line-height: 1;
}

.project-card:hover .project-visit,
.project-card:focus-visible .project-visit {
  transform: translateY(-1px);
  border-color: rgba(15, 17, 21, 0.3);
}

.project-card--featured .project-visit {
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.project-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.project-card--featured .project-tag {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 42em) {
  .project-card {
    padding-right: 5.35rem;
  }

  .project-logo--arro {
    width: 5.2rem;
  }

  .project-logo--lintana {
    min-width: 5.45rem;
    height: 1.95rem;
    font-size: 0.6rem;
  }
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.project-card--featured .project-meta span {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
}

/* Results */
.result-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.result-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.testimonial-card {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface-dark);
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-quote {
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
}

.testimonial-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* CTA */
.section-cta {
  background: transparent;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface-dark);
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.cta-panel h2 {
  margin: 0 0 0.6rem;
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.btn-swipe-right {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-dark);
  color: #ffffff;
  border: 1px solid var(--surface-dark-border);
  box-shadow: var(--surface-dark-shadow);
  transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-swipe-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 0;
}

.btn-swipe-right > span {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.btn-swipe-right:hover,
.btn-swipe-right:focus-visible {
  color: #0a1128;
  border-color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.btn-swipe-right:hover::before,
.btn-swipe-right:focus-visible::before {
  transform: scaleX(1);
}

/* Contact */
.section-contact {
  background: var(--bg);
}

.contact-split {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.contact-split > .contact-panel {
  height: 100%;
}

@media (min-width: 960px) {
  .contact-split {
    grid-template-columns: 1.7fr 1fr;
  }
}

.contact-panel {
  padding: 2.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-panel h3 {
  margin: 0 0 0.6rem;
}

.contact-panel-lead {
  margin: 0 0 1.5rem;
}

.contact-panel--dark {
  background: var(--surface-dark);
  color: #fff;
  border-color: var(--surface-dark-border);
}

.contact-panel--dark .contact-panel-lead {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel--light {
  background: var(--surface);
}

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

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

@media (min-width: 900px) {
  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.contact-panel--light .contact-field span {
  color: var(--ink-light);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel--light .contact-field input,
.contact-panel--light .contact-field textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.contact-panel--light .contact-field input::placeholder,
.contact-panel--light .contact-field textarea::placeholder {
  color: var(--ink-light);
}

.contact-panel--light .contact-field input:focus,
.contact-panel--light .contact-field textarea:focus {
  border-color: rgba(0, 0, 0, 0.25);
  background: #fff;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.contact-form-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-panel--light .contact-form-note {
  color: var(--ink-light);
}

.contact-info {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.contact-info-item {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-item span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--ink-light);
}

.contact-info-item p {
  margin: 0;
  font-weight: 600;
}

.contact-info-item a {
  color: inherit;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-card--highlight {
  background: var(--surface-dark);
  color: #fff;
  border-color: var(--surface-dark-border);
}

.contact-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item p {
  margin: 0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-card--highlight a {
  color: #fff;
  font-weight: 600;
}

.contact-hours {
  margin-top: 2rem;
  display: inline-grid;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.contact-hours span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-light);
}

/* Page layout */
.page {
  width: min(calc(100% - (2 * var(--gutter)) - var(--sidebar-collapsed)), var(--content-max));
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.page-services .page {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.page-services .cta-panel {
  max-width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

.page-services .page-body section:last-child {
  margin-bottom: 0;
}

.page-services .page {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.page-header {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--ink-light);
  margin: 0;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.page-body > p,
.page-body > ul,
.page-body > ol {
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-body > ul,
.page-body > ol {
  padding-left: 1.2rem;
}

.page-body section {
  margin-bottom: 2.5rem;
}

/* Page embellishments */
.page-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.page-hero-text h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.page-hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.page-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.page-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 1.5rem;
}

.page-meta-item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.page-meta-item span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  margin-bottom: 0.35rem;
}

.page-meta-item strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.page-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.page-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.page-card-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.page-card-list li {
  margin-bottom: 0.35rem;
}

.page-card--muted {
  background: var(--surface-muted);
}

.page-section--soft {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.page-steps {
  display: grid;
  gap: 1rem;
}

.page-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.page-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-dark);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-step h4 {
  margin: 0 0 0.35rem;
}

.page-faq {
  display: grid;
  gap: 0.75rem;
}

.page-faq details {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: var(--surface-muted);
}

.page-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.page-faq details[open] {
  background: var(--surface);
}

.page-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.page-tag-list li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Project pages */
.project-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.project-hero--dark {
  background: var(--surface-dark);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.project-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.project-hero--dark .project-kicker {
  color: rgba(255, 255, 255, 0.6);
}

.project-hero-text h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.project-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.project-hero-note {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.project-hero--dark .project-hero-note {
  color: rgba(255, 255, 255, 0.6);
}

.project-hero-visual {
  display: grid;
  gap: 1rem;
}

.project-map-mock,
.project-screen-mock,
.project-structure-mock {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(52, 58, 64, 0.25), rgba(0, 0, 0, 0.3));
}

.project-hero--dark .project-map-mock,
.project-hero--dark .project-screen-mock,
.project-hero--dark .project-structure-mock {
  border-color: rgba(255, 255, 255, 0.15);
}

.project-map-mock {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 30px),
    #08162a;
}

.project-map-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  top: 45%;
  left: 52%;
  box-shadow: 0 0 0 10px rgba(52, 58, 64, 0.2);
  animation: pulse 2.5s infinite;
}

.project-map-line {
  position: absolute;
  width: 40%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  top: 52%;
  left: 15%;
}

.project-screen-mock {
  background: linear-gradient(160deg, #ffffff, #efe8df);
}

.project-screen-bar {
  height: 12px;
  background: #343a40;
  opacity: 0.8;
}

.project-screen-lines {
  position: absolute;
  inset: 20px;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 2px, transparent 2px, transparent 12px);
}

.project-structure-mock {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.5));
}

.project-structure-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
}

.project-structure-grid {
  position: absolute;
  inset: 20px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 2px, transparent 2px, transparent 18px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 2px, transparent 2px, transparent 18px);
}

.project-stat-grid {
  display: grid;
  gap: 0.75rem;
}

.project-stat {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.project-stat span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-light);
}

.project-stat strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.project-hero--dark .project-stat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-hero--dark .project-stat span {
  color: rgba(255, 255, 255, 0.6);
}

.project-details {
  margin-bottom: 2rem;
}

.project-list {
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.project-card-tight {
  padding: 1.25rem;
  box-shadow: none;
}

/* Footer */
.site-footer {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.975rem;
  background: linear-gradient(140deg, #0a1128 0%, #0a1128 78%, #001f54 100%);
  overflow: hidden;
  text-align: left;
  border-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(2.5rem, 7vw, 7rem);
  row-gap: clamp(1.75rem, 3vw, 3rem);
  align-items: start;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  max-width: 28rem;
}

.footer-right {
  display: flex;
  gap: clamp(3rem, 6vw, 6rem);
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.footer-brand-text {
  display: grid;
  gap: 0.25rem;
}

.footer-brand-name {
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.125rem;
}

.footer-brand-tag {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.975rem;
  line-height: 1.4;
}

.footer-col {
  min-width: 0;
}

.footer-right nav.footer-col {
  transform: translateX(-1.6rem);
}

.footer-heading {
  margin: 0 0 0.9rem;
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.62);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
}

.footer-contact-list li {
  display: grid;
  gap: 0.38rem;
}

.footer-label {
  display: block;
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-list a,
.footer-contact-list li > span:not(.footer-label) {
  font-size: 1.2rem;
  line-height: 1.25;
}

.footer-bottom {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(3, 64, 120, 0.22), transparent 52%),
    radial-gradient(circle at 80% 0%, rgba(0, 31, 84, 0.32), transparent 48%),
    linear-gradient(120deg, rgba(3, 64, 120, 0.14), transparent 62%);
  opacity: 0.54;
  z-index: 0;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  opacity: 0.18;
  z-index: 0;
}

.site-footer .container {
  position: relative;
  z-index: 1;
  width: min(100%, 1600px);
  max-width: 1600px;
  padding-right: clamp(1.5rem, 4vw, 4rem);
  padding-left: calc(clamp(1.5rem, 4vw, 4rem) + var(--sidebar-collapsed));
}

.site-footer p {
  margin: 0;
}

@media (max-width: 52em) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-right {
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 3.25rem;
  }

  .footer-right nav.footer-col {
    transform: none;
  }

  .footer-bottom {
    margin-top: 1.5rem;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .footer-copy {
    text-align: left;
  }
}

/* Sidebar toggle */
.sidebar-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed);
  height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Blend into the sidebar (no visible "button" background/border) */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  z-index: 200; /* must sit above the sidebar */
  /* slower slide to match sidebar */
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus,
.sidebar-toggle:focus-visible {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-toggle::before {
  content: none;
}

.sidebar-toggle-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.sidebar-toggle-arrow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.sidebar-toggle-arrow svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease;
}

.sidebar-toggle-menu {
  display: none;
}

.sidebar-toggle-menu svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Keep the rail aligned with the sidebar edge when open */
#sidebar-checkbox:checked ~ .sidebar-toggle {
  transform: translateX(calc(var(--sidebar-width) - var(--sidebar-collapsed)));
}

#sidebar-checkbox:checked ~ .sidebar-toggle .sidebar-toggle-arrow svg {
  transform: rotate(180deg);
}

/* Force toggle visible on desktop even if base theme hides it */
@media (min-width: 48em) and (hover: hover) {
  .sidebar-toggle {
    display: flex !important;
  }
}

@media (max-width: 47.99em) {
  .sidebar {
    width: var(--sidebar-width);
    z-index: 280;
  }

  .sidebar-toggle {
    display: inline-flex !important;
    /* Must remain visible while scrolling on mobile. */
    position: fixed !important;
    top: calc(0.9rem + env(safe-area-inset-top)) !important;
    left: calc(0.9rem + env(safe-area-inset-left) - 10px) !important;
    width: 4.5rem !important;
    height: 4.5rem !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 320;
    transform: none !important;
  }

  .sidebar-toggle-icon {
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Keep the phone menu button as just the 3 stripes (no circle/pill). */
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .sidebar-toggle-menu svg {
    width: 2.3rem;
    height: 2.3rem;
    /* No shadows on the menu icon; keep contrast via blending when supported. */
    filter: none;
    mix-blend-mode: difference;
  }

  .sidebar-toggle-arrow {
    display: none !important;
  }

  .sidebar-toggle-menu {
    display: grid !important;
    place-items: center;
    width: 100%;
    height: 100%;
  }

  #sidebar-checkbox:checked ~ .sidebar-toggle {
    left: calc(0.9rem + env(safe-area-inset-left) - 10px) !important;
    transform: translateX(var(--sidebar-width)) !important;
  }
}


/* Animations */
@keyframes buttonTapPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGlow {
  0% {
    opacity: 0.78;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(52, 58, 64, 0.2);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 22px rgba(52, 58, 64, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(52, 58, 64, 0.2);
  }
}

.hero-copy,
.hero-board-card,
.section,
.page,
.project-hero,
.project-details,
.project-card,
.result-card,
.proof-card,
.contact-card {
  animation: fadeUp 0.8s ease both;
}

.service-card:nth-child(2),
.project-card:nth-child(2),
.result-card:nth-child(2),
.proof-card:nth-child(2) {
  animation-delay: 0.08s;
}

.service-card:nth-child(3),
.project-card:nth-child(3),
.result-card:nth-child(3) {
  animation-delay: 0.16s;
}

@media (max-width: 900px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding-top: 4rem;
    padding-right: var(--gutter);
    padding-bottom: 4rem;
    padding-left: var(--content-offset-left);
  }

  .testimonial-meta {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  [data-mouse-glow] > .mouse-glow-layer {
    display: none !important;
  }
}
