:root {
  --bg: #071623;
  --bg-soft: #0d334f;
  --surface: #f4f7fb;
  --surface-2: #ffffff;
  --text: #dce7f4;
  --text-dark: #172433;
  --muted: #8fa4bb;
  --primary: #0f577f;
  --primary-strong: #0d3f62;
  --accent: #67a9d4;
  --brand-1: #0f577f;
  --brand-2: #0d3f62;
  --brand-3: #0a2b43;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 25, 42, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 18px 46px rgba(3, 10, 18, 0.42);
  --shadow-md: 0 10px 24px rgba(10, 18, 30, 0.16);
  --container: min(1180px, calc(100% - 3.2rem));
  --header-h: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line), var(--line));
  background-size: 100% 1px;
  background-position: 0 0;
  background-repeat: no-repeat;
  opacity: 0.45;
}

.section-dark {
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 87, 127, 0.26), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(13, 63, 98, 0.18), transparent 34%),
    linear-gradient(180deg, #071623 0%, #0d314d 100%);
}

.section-light {
  color: var(--text-dark);
  background:
    radial-gradient(circle at 82% 8%, rgba(15, 87, 127, 0.08), transparent 35%),
    linear-gradient(180deg, #ecf3f9 0%, #f6fbff 100%);
}

.section-light::before {
  background-image: linear-gradient(var(--line-dark), var(--line-dark));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 1.35vw, 1.08rem);
}

p,
.footer-bottom p,
.legal-content a {
  overflow-wrap: break-word;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: grid;
  align-items: center;
  background: rgba(8, 23, 38, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-solid {
  background: rgba(8, 23, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 112px;
  max-width: 178px;
}

.brand img {
  width: auto;
  height: clamp(36px, 4.2vw, 50px);
  max-width: 100%;
  object-fit: contain;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  line-height: 1;
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6edf7;
  padding-bottom: 0.15rem;
}

.site-nav a.is-current {
  color: #ffffff;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
  transition: transform 0.25s ease;
}

.site-nav a.is-current::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero::before {
  opacity: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(7, 26, 44, 0.28), transparent 36%),
    linear-gradient(96deg, rgba(6, 20, 34, 0.58) 0%, rgba(6, 20, 34, 0.24) 48%, rgba(6, 20, 34, 0.54) 100%);
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(0.9);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.4rem, 3.8vw, 4rem) 0 1.4rem;
}

.hero-copy {
  width: min(68vw, 1040px);
  max-width: 1040px;
  padding: clamp(1.45rem, 3.2vw, 2.6rem);
  border: 1px solid rgba(17, 37, 56, 0.2);
  background: rgba(239, 245, 251, 0.86);
  color: #142637;
  backdrop-filter: blur(2px);
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.hero-copy h1 {
  margin-bottom: 0.45rem;
  color: #0f4b6f;
  font-size: clamp(2.1rem, 5.2vw, 4.6rem);
}

.hero-lead {
  color: #2b3e53;
  max-width: 42ch;
  font-size: clamp(1.06rem, 1.75vw, 1.65rem);
  line-height: 1.32;
}

.hero-rotating {
  margin-top: 0.2rem;
  color: #214966;
  font-weight: 700;
}

.rotating-word {
  display: inline-block;
  color: #0b5f8f;
  margin-left: 0.25rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rotating-word.is-swapping {
  animation: wordSwap 0.18s ease;
}

.hero-actions {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 26px rgba(13, 63, 98, 0.28);
}

.btn-ghost {
  color: #1e3348;
  border: 1px solid rgba(17, 44, 67, 0.3);
  background: rgba(255, 255, 255, 0.78);
}

.hero-points {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.55rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.25rem;
  color: #2f4357;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1b6a9a;
}

.hero-services-strip {
  --ticker-gap: 0.72rem;
  position: relative;
  z-index: 3;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-1) 0%, var(--brand-2) 52%, var(--brand-3) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  overflow-y: hidden;
  padding: 0.95rem clamp(0.8rem, 2vw, 1.8rem);
}

.hero-services-track {
  display: flex;
  width: max-content;
  animation: heroTicker 31s linear infinite;
  will-change: transform;
}

.hero-services-strip:hover .hero-services-track,
.hero-services-strip:focus-within .hero-services-track {
  animation-play-state: paused;
}

.hero-services-list {
  margin: 0;
  padding: 0 var(--ticker-gap) 0 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--ticker-gap);
  align-items: center;
}

.hero-services-list li {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  line-height: 1.18;
  gap: 0.58rem;
  min-width: max-content;
  padding: 0.25rem 0.95rem;
  white-space: nowrap;
  color: #f2f8ff;
  text-align: center;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(0.98rem, 1.5vw, 1.35rem);
  font-weight: 700;
}

.hero-services-list li span {
  color: #8cb8ff;
  font-size: 1.05em;
}

.page-hero {
  min-height: 62vh;
  padding-top: calc(var(--header-h) + 1.6rem);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.page-hero::before {
  opacity: 0;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(7, 26, 44, 0.28), transparent 36%),
    linear-gradient(100deg, rgba(6, 20, 34, 0.74) 0%, rgba(6, 20, 34, 0.44) 52%, rgba(6, 20, 34, 0.74) 100%);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(0.9);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(1.2rem, 3vw, 2rem) 0;
}

.page-hero-content h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.75rem, 5.2vw, 3.6rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.page-hero-content p {
  color: #d2e0ef;
  max-width: 56ch;
}

.section-head {
  max-width: 840px;
}

.section-head h2 {
  margin-bottom: 0.95rem;
}

.section-head p {
  color: #45607c;
}

.section-dark .section-head p {
  color: #b8c8da;
}

.feature-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(8, 18, 29, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.48);
  box-shadow: 0 16px 28px rgba(10, 19, 31, 0.13);
}

.feature-card h3 {
  color: #13263b;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #3d546d;
}

.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.section-dark .feature-card h3 {
  color: #f2f7fd;
}

.section-dark .feature-card p {
  color: #c3d2e3;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.panel-text {
  margin-top: 0.85rem;
  color: #bcd0e3;
  max-width: 55ch;
}

.section-light .panel-text {
  color: #3a536c;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 540px;
}

.workflow-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.workflow-step h3 {
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.workflow-step p {
  color: #c6d7e8;
}

.teaser-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teaser-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(8, 18, 29, 0.12);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease;
}

.teaser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.25s ease;
}

.teaser-card:hover,
.teaser-card:focus-visible {
  transform: translateY(-4px);
}

.teaser-card:hover img,
.teaser-card:focus-visible img {
  transform: scale(1.03);
}

.section-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(7, 18, 30, 0.1);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(15, 87, 127, 0.45);
  box-shadow: 0 16px 28px rgba(10, 19, 31, 0.14);
}

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--bg-soft);
  background: linear-gradient(120deg, rgba(15, 87, 127, 0.2) 0%, rgba(103, 169, 212, 0.26) 100%);
  margin-bottom: 0.95rem;
}

.service-card .icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  color: #13263b;
  margin-bottom: 0.58rem;
}

.service-card p {
  color: #3d546d;
}

.stats-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  min-height: 170px;
  display: grid;
  align-content: center;
  gap: 0.6rem;
}

.stat-value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--primary);
  font-weight: 700;
}

.stat-value::after {
  content: "+";
  font-size: 0.75em;
  margin-left: 0.08em;
}

.stat-label {
  color: #d0deee;
  font-size: 0.98rem;
}

.proof-list {
  margin-top: 1.6rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.proof-list li {
  position: relative;
  padding-left: 1.7rem;
  color: #e5eef8;
}

.proof-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.project-filters {
  margin-top: 2rem;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.filter-btn {
  border: 1px solid rgba(17, 36, 54, 0.14);
  background: #fff;
  color: #1c334a;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background: #0e2135;
  color: #e6edf8;
  border-color: #0e2135;
}

.project-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-card {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-md);
  will-change: transform, opacity, filter;
  transition: transform 0.22s ease, opacity 0.25s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.04);
  filter: contrast(1.05);
}

.project-card:focus-visible,
.filter-btn:focus-visible,
.btn:focus-visible,
.contact-card a:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-card.is-hidden {
  display: none;
}

.project-card.is-appearing {
  animation: projectCardIn 0.38s ease both;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.35rem;
  align-items: center;
}

.about-copy p {
  color: #c6d6e8;
  margin-top: 0.95rem;
}

.check-list {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.72rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.about-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 580px;
}

.contact-grid {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(8, 18, 29, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.contact-card h3 {
  color: #11283e;
  margin-bottom: 0.35rem;
}

.contact-card p,
.contact-card a {
  color: #3f5770;
  font-weight: 600;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--primary);
}

.map-wrap {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(8, 18, 29, 0.12);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.map-wrap iframe {
  width: 100%;
  min-height: 380px;
}

.map-wrap[data-map-consent] {
  display: grid;
}

.map-consent-placeholder {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
}

.map-consent-placeholder h3 {
  color: #15344f;
  font-size: 1.1rem;
}

.map-consent-placeholder p {
  color: #3e5a74;
  max-width: 60ch;
}

.map-wrap.is-active .map-consent-placeholder {
  display: none;
}

.contact-form-shell {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid rgba(8, 18, 29, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.contact-form-head h3 {
  color: #11283e;
  margin-bottom: 0.35rem;
}

.contact-form-head p {
  color: #47607b;
  max-width: 70ch;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.contact-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 0.38rem;
}

.form-field span {
  color: #1f344a;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 40, 62, 0.2);
  border-radius: 12px;
  background: #f9fbfe;
  color: #1d3146;
  padding: 0.75rem 0.8rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7a90a8;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #0f5a88;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 90, 136, 0.14);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #3b526a;
  font-size: 0.9rem;
}

.form-consent input {
  margin-top: 0.2rem;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.form-status {
  font-size: 0.9rem;
  color: #4b637c;
}

.form-status.is-error {
  color: #1e40af;
  font-weight: 600;
}

.form-status.is-success {
  color: #0f5a88;
  font-weight: 600;
}

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

.site-footer {
  padding: 2.1rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 14% 8%, rgba(15, 87, 127, 0.24), transparent 34%),
    radial-gradient(circle at 84% 90%, rgba(13, 63, 98, 0.22), transparent 34%),
    linear-gradient(180deg, #07131f 0%, #050d16 100%);
}

.footer-shell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr 1fr;
  gap: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: inline-flex;
  max-width: 186px;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-tagline {
  margin-top: 0.45rem;
  color: #b9c8d7;
  font-size: 0.92rem;
  max-width: 42ch;
}

.footer-links,
.footer-contact-mini,
.footer-legal-menu {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-links h3,
.footer-contact-mini h3,
.footer-legal-menu h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.footer-links a,
.footer-contact-mini a,
.footer-legal-menu a {
  color: #c8d5e4;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-address {
  margin: 0;
  display: block;
  color: #c8d5e4;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact-mini a:hover,
.footer-contact-mini a:focus-visible,
.footer-legal-menu a:hover,
.footer-legal-menu a:focus-visible {
  color: #ffffff;
}

.footer-credit {
  color: #9fb4c9;
  font-size: 0.83rem;
}

.footer-credit a {
  color: #e8f1fb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.footer-bottom p {
  color: #c4d1df;
  font-size: 0.88rem;
}

.consent-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: #c8d5e4;
  text-align: left;
  justify-self: start;
  font-size: 0.9rem;
}

.consent-link:hover,
.consent-link:focus-visible {
  color: #ffffff;
}

.footer-consent {
  margin-top: 0.15rem;
}

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

@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-shell {
    padding: 1rem;
  }

  .footer-brand-block {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
  }

  .footer-tagline {
    max-width: 32ch;
    margin-inline: auto;
  }

  .footer-links,
  .footer-contact-mini,
  .footer-legal-menu {
    justify-items: center;
    text-align: center;
  }

  .consent-link {
    justify-self: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-bottom p {
    width: 100%;
  }
}

.floating-whatsapp {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 998;
}

.floating-whatsapp a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: 0 14px 32px rgba(10, 18, 30, 0.34);
  transition: transform 0.2s ease;
}

.floating-whatsapp a:hover,
.floating-whatsapp a:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.floating-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(103, 169, 212, 0.42);
  color: #e8f1ff;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: 0 14px 32px rgba(10, 18, 30, 0.34);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-top:hover,
.floating-top:focus-visible {
  box-shadow: 0 18px 36px rgba(10, 18, 30, 0.44);
}

.floating-top svg {
  width: 24px;
  height: 24px;
}

.cookie-banner {
  position: fixed;
  right: 0.7rem;
  bottom: 0.7rem;
  left: auto;
  z-index: 1200;
  width: min(360px, calc(100% - 1rem));
  padding: 0;
}

.cookie-banner-inner {
  width: 100%;
  margin: 0;
  background: #0f2234;
  color: #dce8f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(3, 10, 18, 0.22);
  padding: 0.6rem 0.68rem;
  display: grid;
  gap: 0.4rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  transition: border-color 0.2s ease;
}

.cookie-banner-inner h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #eaf4ff;
}

.cookie-banner-inner p {
  color: #c6d6e7;
  font-size: 0.78rem;
  line-height: 1.38;
  max-width: 34ch;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.cookie-actions .btn {
  width: auto;
  min-width: 0;
  padding: 0.33rem 0.56rem;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 7px;
  transform: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.cookie-actions .btn:hover,
.cookie-actions .btn:focus-visible {
  transform: none;
}

.cookie-actions .btn-primary {
  background: #f0f6ff;
  color: #0d334f;
  border: 1px solid rgba(13, 51, 79, 0.14);
  box-shadow: none;
}

.cookie-actions .btn-ghost {
  background: transparent;
  color: #d2e1f1;
  border: 1px solid rgba(166, 196, 225, 0.34);
}

.cookie-actions .btn-ghost:hover,
.cookie-actions .btn-ghost:focus-visible {
  border-color: rgba(196, 220, 246, 0.6);
  color: #f2f8ff;
}

.cookie-settings {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.45rem;
  display: grid;
  gap: 0.38rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.38rem;
  color: #ccdced;
  font-size: 0.75rem;
  line-height: 1.3;
}

.cookie-option input {
  margin-top: 0.1rem;
}

.cookie-settings #consentSaveSettings {
  width: auto;
  justify-self: start;
  padding: 0.3rem 0.52rem;
  font-size: 0.72rem;
  border-radius: 7px;
  background: transparent;
  color: #d6e4f4;
  border: 1px solid rgba(166, 196, 225, 0.32);
}

.cookie-banner:not([hidden]) .cookie-banner-inner {
  animation: cookieBannerIn 220ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.cookie-settings:not([hidden]) {
  animation: cookieSettingsIn 180ms ease-out both;
}

@media (max-width: 720px) {
  .cookie-banner {
    right: 0.45rem;
    bottom: 0.45rem;
    left: auto;
    width: min(340px, calc(100% - 0.9rem));
  }

  .cookie-banner-inner {
    padding: 0.56rem 0.62rem;
  }
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content h2 {
  color: #15344f;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-top: 0.8rem;
}

.legal-content h3 {
  color: #1f405d;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.legal-content p,
.legal-content li {
  color: #395672;
  max-width: 78ch;
}

.legal-content a {
  color: #174fa9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content em {
  color: #385a7b;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.75);
  backdrop-filter: blur(3px);
}

.gallery-dialog {
  position: relative;
  width: min(920px, calc(100% - 1.3rem));
  margin: clamp(1rem, 4vw, 2.4rem) auto;
  background: #f8fbff;
  color: #1a2f45;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(7, 20, 32, 0.12);
  overflow: hidden;
}

.gallery-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(8, 18, 29, 0.1);
}

.gallery-topbar h3 {
  font-size: 1.1rem;
}

.gallery-close {
  border: 1px solid rgba(8, 18, 29, 0.18);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-frame {
  position: relative;
  display: grid;
  place-items: center;
  background: #0a1725;
  min-height: min(65vh, 640px);
}

.gallery-frame img {
  max-width: 100%;
  max-height: min(65vh, 640px);
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 0.6rem;
}

.gallery-nav.next {
  right: 0.6rem;
}

.gallery-caption {
  padding: 0.85rem 1rem 1rem;
  color: #39516a;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition: opacity 0.58s ease, transform 0.58s ease, filter 0.18s ease;
}

[data-reveal="left"] {
  transform: translate3d(-28px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(28px, 0, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (max-width: 1024px) {
  :root {
    --header-h: 70px;
  }

  .hero-copy {
    width: min(86vw, 940px);
    max-width: 940px;
  }

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

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

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

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

  .split-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-open {
    overflow: hidden;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand {
    min-width: 92px;
    max-width: 156px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    flex: none;
    width: min(92vw, 360px);
    height: calc(100dvh - var(--header-h));
    background: rgba(7, 18, 29, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: right 0.25s ease;
    padding: 1.2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .site-nav ul {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .nav-open .site-nav {
    right: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1180px, calc(100% - 1.6rem));
  }

  .hero {
    min-height: 92vh;
  }

  .page-hero {
    min-height: 52vh;
  }

  .hero-grid {
    align-items: flex-start;
    padding-top: 1.1rem;
  }

  .hero-copy {
    width: 100%;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: rgba(239, 245, 251, 0.9);
  }

  .hero-services-list {
    gap: var(--ticker-gap);
  }

  .hero-services-list li {
    font-size: 0.95rem;
    padding-inline: 0.8rem;
  }

  .services-grid,
  .feature-grid,
  .project-grid,
  .teaser-grid,
  .contact-grid,
  .contact-form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .map-wrap iframe {
    min-height: 320px;
  }

  .gallery-dialog {
    width: calc(100% - 0.8rem);
  }

  .gallery-frame {
    min-height: min(56vh, 480px);
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: clamp(4.6rem, 12vw, 6rem) 0;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .hero-services-strip {
    padding-block: 0.75rem;
    padding-inline: 0.55rem;
  }

  .hero-services-list li {
    gap: 0.42rem;
    padding-inline: 0.65rem;
  }

  .floating-whatsapp,
  .floating-top {
    bottom: 0.7rem;
  }

  .floating-whatsapp a,
  .floating-top {
    width: 48px;
    height: 48px;
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .floating-top svg {
    width: 20px;
    height: 20px;
  }
}

body:has(.cookie-banner:not([hidden])) .floating-top,
body:has(.cookie-banner:not([hidden])) .floating-whatsapp {
  bottom: 4.4rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-services-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-services-track {
    animation: none;
  }
}

@keyframes heroTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes wordSwap {
  from {
    opacity: 0.35;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes projectCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cookieBannerIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cookieSettingsIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
