:root {
  --navy: #071421;
  --navy-2: #0d2235;
  --graphite: #111418;
  --ink: #17212c;
  --muted: #667483;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(7, 20, 33, 0.12);
  --white: #ffffff;
  --soft: #f4f7f9;
  --copper: #c79442;
  --copper-2: #e0bd73;
  --blue: #275285;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 136, 197, 0.45);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 500ms ease,
    box-shadow 500ms ease,
    border-color 500ms ease,
    backdrop-filter 500ms ease;
}

.site-header.is-scrolled {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(235, 244, 249, 0.6)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 46px rgba(7, 20, 33, 0.1);
  border-bottom: 1px solid rgba(7, 20, 33, 0.07);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.header-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 22px;
  transition: min-height 220ms ease;
}

.site-header:not(.is-scrolled) .header-shell {
  min-height: 94px;
  grid-template-columns: 250px 1fr auto;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
}

.brand-logo {
  width: 188px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
  transition:
    width 220ms ease,
    height 220ms ease,
    filter 220ms ease;
}

.site-header:not(.is-scrolled) .brand-logo {
  margin-top: 30px;
  width: 234px;
  height: 100px;
}

.site-header.is-scrolled .brand-logo {
  width: 188px;
  height: 58px;
  filter: drop-shadow(0 8px 18px rgba(7, 20, 33, 0.14));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  color: rgba(7, 20, 33, 0.72);
  font-size: 0.96rem;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition:
    background 180ms ease,
    color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(0, 136, 197, 0.08);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.social-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 20, 33, 0.14);
  border-radius: 50%;
  color: rgba(7, 20, 33, 0.58);
  background: rgba(255, 255, 255, 0.32);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.social-link:hover,
.site-header.is-scrolled .social-link:hover {
  border-color: rgba(0, 136, 197, 0.34);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
}

.social-link::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  background: currentColor;
  mask: var(--social-icon) center / contain no-repeat;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
}

.social-facebook {
  --social-icon: url("../img/icons/facebook.svg");
}

.social-instagram {
  --social-icon: url("../img/icons/instagram.svg");
}

.social-whatsapp {
  --social-icon: url("../img/icons/whatsapp.svg");
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 189, 115, 0.8);
  color: var(--copper-2);
  transform: translateY(-2px);
}

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

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

.btn-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.86rem;
}

.btn-medium {
  min-height: 48px;
  padding-inline: 20px;
  margin-left: 8px;
  margin-right: 8px;
  font-size: 1rem;
}

.btn-copper {
  color: #0e1720;
  background: linear-gradient(135deg, var(--copper-2), var(--copper));
  box-shadow: 0 12px 28px rgba(199, 148, 66, 0.24);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at var(--cursor-x, 68%) var(--cursor-y, 42%),
      rgba(0, 136, 197, 0.15),
      transparent 80%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.84),
      rgba(232, 243, 248, 0.72) 86%,
      rgba(248, 251, 252, 0.58)
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.36), rgba(13, 34, 53, 0.34)),
    url("../img/backgrounds/main-background.webp") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(transparent, var(--soft));
  pointer-events: none;
}

.solutions-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 20, 33, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 136, 197, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  opacity: 0.74;
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 860px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 540px;
  gap: 80px;
  align-items: center;
  padding: 180px 0 132px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.hero-lead,
.page-lead {
  max-width: 650px;
  color: rgba(25, 36, 45, 0.78);
  font-size: 1.18rem;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 850;
}

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

.hero .btn-ghost,
.page-hero .btn-ghost {
  color: var(--ink);
  border-color: rgba(7, 20, 33, 0.16);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 30px rgba(7, 20, 33, 0.08);
}

.hero-architecture {
  position: relative;
  min-height: 640px;
  transition: transform 240ms ease;
}

.hero-architecture::before {
  content: "";
  position: absolute;
  inset: 3% -7% 2% 5%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(199, 148, 66, 0.3);
  border-radius: var(--radius);
  transform: skewY(-3deg);
}

.architecture-frame {
  position: absolute;
  inset: 24px -12px 34px 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 72px rgba(7, 20, 33, 0.18);
}

.architecture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.1);
}

.architecture-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 20, 33, 0.18), rgba(0, 136, 197, 0.2)),
    linear-gradient(to top, rgba(7, 20, 33, 0.82), transparent 62%);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 189, 115, 0.85),
    transparent
  );
  box-shadow: 0 0 22px rgba(224, 189, 115, 0.45);
}

.section {
  position: relative;
  padding: 110px 0;
}

.split-layout,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 70px;
  align-items: center;
}

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

.section-heading.wide {
  max-width: fit-content;
}

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

.copy-stack {
  color: #354453;
  font-size: 1.06rem;
}

.solutions-preview,
.values-section {
  background: var(--navy-2);
  color: var(--white);
  overflow: hidden;
}

.solution-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.solution-chip {
  min-height: 118px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.solution-chip span,
.module-number {
  color: var(--copper-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.solution-chip:hover {
  background: rgba(0, 136, 197, 0.16);
  border-color: rgba(224, 189, 115, 0.5);
}

.why-cards,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.depth-card,
.story-block,
.contact-panel,
.quote-form {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 50px rgba(7, 20, 33, 0.08);
}

.depth-card {
  min-height: 210px;
  padding: 26px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.depth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(7, 20, 33, 0.14);
}

.depth-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.brand-strip {
  background: #edf2f5;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.brand-grid a,
.solution-brands a {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-dark);
}

.brand-grid img,
.solution-brands img {
  max-height: 42px;
  width: 100%;
  object-fit: contain;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 20, 33, 0.96), rgba(13, 34, 53, 0.9)),
    url("../img/backgrounds/main-background.webp") center/cover;
  border-radius: var(--radius);
}

.cta-panel h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.page-hero {
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 82% 10%,
      rgba(0, 136, 197, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 12% 28%,
      rgba(224, 189, 115, 0.16),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.86),
      rgba(232, 243, 248, 0.74) 52%,
      rgba(248, 251, 252, 0.6)
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), rgba(13, 34, 53, 0.22)),
    url("../img/backgrounds/main-background.webp") center/cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--soft));
  pointer-events: none;
}

.page-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-content: end;
  align-items: start;
  min-height: 430px;
  padding: 110px 0 70px;
}

.page-hero-stacked {
  grid-template-columns: 1fr;
}

.page-hero-stacked .page-lead {
  max-width: 100%;
}

.page-hero h1 {
  max-width: 100%;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.page-hero .page-lead {
  max-width: 100%;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.story-block {
  grid-column: span 6;
  padding: 34px;
}

.story-block:first-child {
  grid-column: span 7;
}

.story-block-dark {
  grid-column: span 5;
  color: var(--white);
  background: var(--navy-2);
}

.story-block p:last-child {
  margin-bottom: 0;
}

.values-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 42px;
}

.value-tile {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.095),
    rgba(255, 255, 255, 0.028)
  );
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.value-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 189, 115, 0.44);
}

.value-tile span,
.value-tile strong,
.value-tile p {
  position: relative;
  z-index: 1;
}

.value-tile span {
  color: var(--copper-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.value-tile strong {
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1.1;
}

.value-tile p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.solution-index {
  padding-bottom: 30px;
}

.anchor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-grid a {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-dark);
  font-weight: 750;
}

.anchor-grid a:hover {
  color: var(--blue);
  border-color: rgba(0, 136, 197, 0.45);
}

.solutions-list {
  padding-top: 40px;
}

.solution-module {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}

.solution-module.is-reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.solution-module.is-reverse .solution-media {
  order: 2;
}

.solution-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef3f6;
  box-shadow: 0 18px 60px rgba(7, 20, 33, 0.12);
}

.solution-slider {
  position: relative;
}

.solution-slides {
  display: grid;
  place-items: center;
  min-height: 0;
}

.solution-slides img {
  display: block;
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 700ms ease,
    transform 1100ms ease;
}

.solution-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

.solution-slides img:not(.is-active) {
  pointer-events: none;
}

.solution-slider-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.solution-slider-controls button,
.solution-slider-controls span {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(7, 20, 33, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.solution-slider-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.solution-slider-controls button::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.solution-slider-controls [data-slider-prev]::before {
  transform: translateX(2px) rotate(-45deg);
}

.solution-slider-controls [data-slider-next]::before {
  transform: translateX(-2px) rotate(135deg);
}

.solution-slider-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 189, 115, 0.62);
  background: rgba(7, 20, 33, 0.9);
}

.solution-slider-controls span {
  min-width: 64px;
  padding: 9px 12px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 850;
}

.media-placeholder {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 136, 197, 0.22), rgba(199, 148, 66, 0.12)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 42px
    ),
    var(--navy);
}

.media-placeholder span {
  color: var(--copper-2);
  font-weight: 900;
}

.media-placeholder strong {
  font-size: 2rem;
  line-height: 1.05;
}

.solution-content {
  padding: 26px;
}

.solution-content p {
  color: #3d4a58;
}

.solution-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.contact-panel,
.quote-form {
  padding: 34px;
}

.contact-panel {
  align-self: start;
  color: var(--white);
  background: var(--navy-2);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.contact-lines a,
.footer-socials a,
.footer-links a,
.site-footer a {
  color: inherit;
}

.footer-links a:hover,
.footer-link a:hover {
  color: var(--copper-2);
  border-color: rgba(0, 136, 197, 0.45);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.contact-lines a {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nif {
  color: rgba(255, 255, 255, 0.68);
}

.quote-form {
  display: grid;
  gap: 18px;
}

.form-heading h2 {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #24313d;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 20, 33, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #f9fbfc;
}

textarea {
  resize: vertical;
  min-height: 190px;
}

.form-alert {
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.form-alert.success {
  color: #0b5135;
  background: #dff6ea;
}

.form-alert.error {
  color: #7a1f1f;
  background: #fde4e4;
}

.form-alert a {
  text-decoration: underline;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #324252;
  font-weight: 650;
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--copper);
}

.consent-check a,
.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section {
  background: #f7fafc;
}

.legal-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(7, 20, 33, 0.12);
}

.legal-aside h2 {
  font-size: 1.4rem;
  line-height: 1.15;
}

.legal-aside a {
  color: var(--copper-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content article {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 44px rgba(7, 20, 33, 0.06);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.legal-content p:last-child,
.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 20px;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(520px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: var(--white);
  background: rgba(5, 11, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.cookie-consent p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.cookie-consent a {
  color: var(--copper-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-actions .btn {
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
  padding: 70px 0 24px;
}

.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-brand img {
  width: 230px;
  height: 86px;
  object-fit: contain;
  object-position: left center;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
}

.footer-links,
.footer-socials {
  display: grid;
  gap: 8px;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-icons .social-link {
  width: 40px;
  height: 40px;
}

.footer-social-icons .social-link::before {
  width: 19px;
  height: 19px;
}

.footer-entity-logos {
  width: min(var(--max), calc(100% - 40px));
  margin: 46px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-entity-logos a {
  display: inline-flex;
  padding: 8px;
  border-radius: var(--radius);
}

.footer-entity-logos img {
  width: auto;
  max-width: 210px;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.footer-entity-logos a:first-child {
  background: rgba(255, 255, 255, 0.02);
}

.footer-entity-logos a:first-child img {
  max-width: 230px;
  max-height: 72px;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

a.footer-created {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

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

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

@media (max-width: 1120px) {
  .header-shell {
    grid-template-columns: 190px auto auto;
  }

  .header-actions .social-link {
    display: none;
  }

  .page-hero {
    padding-top: 20px;
  }

  .hero-layout,
  .page-hero-layout,
  .split-layout,
  .why-grid,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .hero-layout {
    gap: 46px;
    padding-top: 130px;
  }

  .hero-architecture {
    max-width: 560px;
    min-height: 540px;
  }

  .solution-rail,
  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, var(--max));
  }

  .header-shell {
    min-height: 78px;
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    width: 160px;
  }

  .site-header:not(.is-scrolled) .brand-logo {
    width: 172px;
    height: 54px;
  }

  .site-header:not(.is-scrolled) .header-shell {
    min-height: 76px;
  }

  .menu-toggle {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 132;
    justify-self: end;
    display: inline-grid;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    place-items: center;
    overflow: hidden;
    transition:
      background 180ms ease,
      border-color 180ms ease;
  }

  .menu-toggle span:not(.sr-only) {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    transform-origin: center;
    transition:
      transform 220ms ease,
      opacity 220ms ease;
  }

  .menu-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-7px);
  }

  .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) translateY(7px);
  }

  .menu-open .menu-toggle {
    right: calc(
      max(14px, env(safe-area-inset-right)) + var(--scrollbar-width, 0px)
    );
    background: rgba(224, 189, 115, 0.16);
    border-color: rgba(224, 189, 115, 0.46);
  }

  .menu-open .menu-toggle span:not(.sr-only) {
    background: var(--white);
  }

  .menu-open .site-header,
  .menu-open .site-header.is-scrolled {
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .menu-open .site-header::after {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .main-nav,
  .header-actions {
    position: fixed;
    left: 0;
    right: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 260ms ease,
      visibility 260ms ease,
      transform 260ms ease;
  }

  .main-nav {
    inset: 0;
    z-index: 120;
    min-height: 100dvh;
    padding: 118px 24px 220px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    background:
      radial-gradient(
        circle at 78% 18%,
        rgba(0, 136, 197, 0.22),
        transparent 30%
      ),
      radial-gradient(
        circle at 18% 84%,
        rgba(199, 148, 66, 0.2),
        transparent 28%
      ),
      linear-gradient(145deg, rgba(4, 12, 20, 0.96), rgba(7, 20, 33, 0.9));
    backdrop-filter: blur(18px);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
  }

  .main-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
    pointer-events: none;
  }

  .main-nav a {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    padding: 12px 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.85rem, 9vw, 3.8rem);
    line-height: 1;
    font-weight: 850;
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 420ms ease,
      transform 420ms ease,
      color 180ms ease;
    transition-delay: 0ms;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: transparent;
    color: var(--copper-2);
  }

  .header-actions {
    z-index: 126;
    left: 24px;
    right: 24px;
    top: auto !important;
    top: auto;
    bottom: max(22px, env(safe-area-inset-bottom)) !important;
    height: auto;
    padding: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    overscroll-behavior: contain;
  }

  .menu-open .main-nav,
  .menu-open .header-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-open .main-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-open .main-nav a:nth-child(1) {
    transition-delay: 90ms;
  }

  .menu-open .main-nav a:nth-child(2) {
    transition-delay: 140ms;
  }

  .menu-open .main-nav a:nth-child(3) {
    transition-delay: 190ms;
  }

  .menu-open .main-nav a:nth-child(4) {
    transition-delay: 240ms;
  }

  .header-actions .social-link {
    display: grid;
  }

  .menu-open .header-actions .social-link {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
  }

  .menu-open .header-actions .social-link::before {
    width: 26px;
    height: 26px;
  }

  .menu-open .header-actions .btn {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    flex: 0 0 100%;
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-open .cookie-consent {
    display: none;
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding: 112px 0 120px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.6rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .section {
    padding: 74px 0;
  }

  .solution-rail,
  .brand-grid,
  .why-cards,
  .values-grid,
  .footer-grid,
  .solution-brands {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-entity-logos {
    gap: 14px;
  }

  .footer-entity-logos img {
    max-width: 160px;
    max-height: 50px;
  }

  .footer-entity-logos a:first-child img {
    max-width: 180px;
    max-height: 58px;
  }

  .story-block,
  .story-block:first-child,
  .story-block-dark {
    grid-column: span 12;
  }

  .solution-module,
  .solution-module.is-reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution-module.is-reverse .solution-media {
    order: initial;
  }

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

  .cookie-consent {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-architecture {
    min-height: auto;
    height: 470px;
  }

  .architecture-frame {
    inset: 20px 0 30px 0;
  }

  .form-row.two,
  .solution-rail,
  .brand-grid,
  .why-cards,
  .values-grid,
  .solution-brands {
    grid-template-columns: 1fr;
  }

  .panel-metrics {
    display: grid;
  }

  .signal-map {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 36px;
  }

  .page-hero-layout {
    padding-top: 88px;
  }

  .story-block,
  .contact-panel,
  .quote-form,
  .legal-aside,
  .legal-content article,
  .cta-panel {
    padding: 24px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .solution-media,
  .solution-media img,
  .media-placeholder {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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