:root {
  --navy-950: #041a31;
  --navy-900: #082f57;
  --navy-800: #0d416f;
  --navy-700: #19557d;
  --cyan-600: #0299b8;
  --cyan-500: #09b5d1;
  --cyan-100: #dff7fb;
  --ink: #10283d;
  --ink-soft: #496173;
  --line: #d6e1e8;
  --line-strong: #bdcbd5;
  --surface: #ffffff;
  --surface-soft: #f4f8fa;
  --surface-blue: #eef5f8;
  --success: #16774d;
  --error: #b32929;
  --shadow-sm: 0 10px 30px rgba(8, 47, 87, 0.08);
  --shadow-lg: 0 26px 70px rgba(8, 47, 87, 0.14);
  --container: 1180px;
  --radius: 6px;
  --radius-large: 32px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  color: inherit;
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 5.1vw, 4.9rem);
  letter-spacing: -0.052em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  letter-spacing: -0.044em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  letter-spacing: -0.025em;
}

::selection {
  color: #ffffff;
  background: var(--cyan-600);
}

:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 4px;
}

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

.section {
  padding: 112px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--navy-950);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.eyebrow-light {
  color: #56d5e7;
}

.mini-label {
  margin-bottom: 12px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-dark {
  color: #ffffff;
  background: var(--navy-900);
  box-shadow: 0 8px 24px rgba(8, 47, 87, 0.16);
}

.button-dark:hover {
  background: var(--navy-800);
  box-shadow: 0 12px 26px rgba(8, 47, 87, 0.24);
}

.button-cyan {
  color: var(--navy-950);
  background: #40d4e7;
  box-shadow: 0 8px 24px rgba(64, 212, 231, 0.2);
}

.button-cyan:hover {
  background: #6ee0ee;
}

.button-small {
  min-height: 44px;
  padding: 10px 19px;
  font-size: 0.9rem;
}

.button[disabled] {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(8, 47, 87, 0.06);
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  width: 225px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.primary-nav > a:not(.button) {
  position: relative;
  color: #314c61;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--cyan-600);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.button):hover::after,
.primary-nav > a:not(.button).is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-900);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  overflow: hidden;
  padding: 64px 0 84px;
  background:
    radial-gradient(circle at 92% 18%, rgba(44, 190, 215, 0.11), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #eef5f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
}

.hero-copy {
  padding: 46px 0 70px;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.hero-media {
  position: relative;
  min-height: 530px;
  padding: 0 0 48px 38px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 48px 38px;
  z-index: 1;
  overflow: hidden;
  border-radius: 4px var(--radius-large) 4px 4px;
  background: #cad9e1;
  box-shadow: var(--shadow-lg);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(8, 47, 87, 0.03), rgba(8, 47, 87, 0.16));
  content: "";
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-statement {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: min(280px, 72%);
  margin: 0;
  padding: 22px 24px;
  color: #ffffff;
  background: var(--cyan-600);
  box-shadow: 16px 16px 0 rgba(8, 47, 87, 0.12);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.45;
}

.blueprint-lines {
  position: absolute;
  top: -32px;
  right: -60px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(2, 153, 184, 0.22);
  border-radius: 50%;
}

.blueprint-lines::before,
.blueprint-lines::after {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(2, 153, 184, 0.22);
  border-radius: 50%;
  content: "";
}

.blueprint-lines::after {
  inset: 64px -30px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.process-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  align-items: stretch;
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.process-strip > * {
  min-height: 105px;
  margin: 0;
  padding: 24px;
}

.process-strip-title {
  display: flex;
  align-items: center;
  color: #ffffff;
  background: var(--navy-900);
  font-weight: 750;
  line-height: 1.4;
}

.process-strip > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid var(--line);
  font-weight: 650;
}

.process-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan-600);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Section headings */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 56px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Services */
.services {
  background: var(--surface);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 47, 87, 0.05);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-feature:hover {
  border-color: #9bcbd5;
  box-shadow: 0 18px 46px rgba(8, 47, 87, 0.12);
  transform: translateY(-5px);
}

.service-image {
  height: 245px;
  overflow: hidden;
  background: #dae5ea;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.service-image-portrait img {
  object-position: center 36%;
}

.service-feature:hover .service-image img {
  transform: scale(1.035);
}

.service-content {
  position: relative;
  min-height: 265px;
  padding: 32px 30px 34px;
}

.service-content h3 {
  max-width: 280px;
}

.service-content p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.service-number {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.capabilities {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  margin-top: 76px;
  padding: 50px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.capabilities-intro h3 {
  max-width: 350px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  font-weight: 650;
}

.capability-list span {
  color: var(--cyan-600);
  font-size: 0.77rem;
  font-weight: 800;
}

/* Methodology */
.methodology {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--navy-950);
}

.methodology-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(86, 213, 231, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 213, 231, 0.32) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.methodology .container {
  position: relative;
  z-index: 1;
}

.methodology-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 64px;
}

.methodology-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -40px;
}

.methodology-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.methodology-heading > p:last-child {
  margin-bottom: 4px;
  color: #b7cad8;
  font-size: 1.05rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 24px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: rgba(127, 189, 209, 0.28);
  content: "";
}

.timeline-step {
  position: relative;
  padding: 0 20px 0 0;
}

.timeline-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(86, 213, 231, 0.55);
  border-radius: 50%;
  color: #82e4f0;
  background: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-step h3 {
  min-height: 58px;
  color: #ffffff;
  font-size: 1.15rem;
}

.timeline-step p {
  margin-bottom: 0;
  color: #aac0d1;
  font-size: 0.94rem;
}

/* Projects */
.projects {
  background: var(--surface-blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 38px rgba(8, 47, 87, 0.07);
}

.project-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.project-card figure {
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  background: #d6e1e8;
}

.project-card-wide figure {
  min-height: 470px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.project-card:nth-child(3) img {
  object-position: center 42%;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 38px;
}

.project-copy > p:not(.project-type) {
  color: var(--ink-soft);
}

.project-type {
  margin-bottom: 13px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: #476276;
  background: var(--surface-soft);
  font-size: 0.77rem;
  font-weight: 700;
}

/* Company */
.company {
  background: #ffffff;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: start;
  gap: 72px;
}

.company-intro {
  position: sticky;
  top: 130px;
}

.company-lead {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.purpose-grid {
  display: grid;
  gap: 20px;
}

.purpose-card {
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.purpose-card h3 {
  max-width: 520px;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
}

.purpose-card p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.purpose-card-dark {
  color: #ffffff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.purpose-card-dark .mini-label {
  color: #6ddbe9;
}

.purpose-card-dark p:last-child {
  color: #c1d0dc;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-grid article {
  padding: 34px 28px 34px 0;
}

.values-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.values-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.values-grid h3 {
  font-size: 1.08rem;
}

.values-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* Contact */
.contact {
  color: #ffffff;
  background:
    radial-gradient(circle at 8% 18%, rgba(58, 209, 229, 0.12), transparent 28%),
    var(--navy-950);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  align-items: start;
  gap: 72px;
}

.contact-copy h2 {
  color: #ffffff;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: #b9cbd8;
  font-size: 1.06rem;
}

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.contact-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(86, 213, 231, 0.55);
  border-radius: 50%;
  color: #73e0ec;
  font-size: 0.82rem;
}

.contact-note p {
  margin: 0;
  color: #b9cbd8;
  font-size: 0.94rem;
}

.contact-note strong {
  color: #ffffff;
}

.contact-channels {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.contact-channels a,
.contact-channels address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  border-top: 1px solid rgba(185, 203, 216, 0.18);
  padding: 14px 0 4px;
  color: #ffffff;
  font-style: normal;
  text-decoration: none;
}

.contact-channels a:hover strong {
  color: #73e0ec;
}

.contact-channels span {
  color: #8fa7b8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-channels strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 42px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

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

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #2d4a61;
  font-size: 0.86rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 49px;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 153, 184, 0.14);
}

.contact-form [aria-invalid="true"] {
  border-color: var(--error);
}

.contact-form .form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  margin: 4px 0 24px;
}

.contact-form .form-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan-600);
}

.contact-form .form-consent span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.form-status {
  flex: 1 1 220px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.form-status.is-success {
  color: var(--success);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 76px 0 0;
  color: #b8c7d2;
  background: #031426;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.65fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
}

.footer-brand img {
  width: 230px;
  margin-bottom: 22px;
  filter: brightness(1.8) saturate(0.9);
}

.footer-brand p {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.footer-main .footer-social-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(126, 211, 227, 0.25);
  border-radius: 50%;
  color: #8be4ef;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

a.footer-social-link:hover {
  border-color: var(--cyan-500);
  color: #ffffff;
  background: var(--cyan-600);
  transform: translateY(-2px);
}

.footer-social-link.is-pending {
  opacity: 0.42;
  cursor: not-allowed;
}

.footer-main > div:not(.footer-brand) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.footer-main a {
  color: #b8c7d2;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-main a:hover {
  color: #ffffff;
}

.footer-main > div > p:last-child {
  color: #8498a8;
  font-size: 0.88rem;
}

.footer-label {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(184, 199, 210, 0.14);
  padding-top: 22px;
  padding-bottom: 24px;
}

.footer-bottom p {
  margin: 0;
  color: #7890a1;
  font-size: 0.82rem;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 200;
  margin: 0;
  padding: 14px 18px;
  color: #ffffff;
  background: var(--navy-900);
  text-align: center;
}

/* 404 */
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
  background: var(--surface-blue);
}

.error-card {
  width: min(100%, 700px);
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.error-card img {
  width: min(290px, 80%);
  margin: 0 auto 34px;
}

.error-code {
  margin-bottom: 6px;
  color: var(--cyan-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.error-card p:not(.error-code) {
  color: var(--ink-soft);
}

/* Progressive reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 0.7, 0.25, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Responsive */
@media (max-width: 1040px) {
  .primary-nav {
    gap: 16px;
  }

  .primary-nav > a:not(.button) {
    font-size: 0.88rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
    gap: 44px;
  }

  .service-feature-grid {
    gap: 16px;
  }

  .service-content {
    padding: 28px 24px;
  }

  .company-grid,
  .contact-grid {
    gap: 48px;
  }

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

  .values-grid article:nth-child(3) {
    border-left: 0;
  }

  .values-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 86px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 28px 20px 48px;
    overflow-y: auto;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a:not(.button) {
    border-bottom: 1px solid var(--line);
    padding: 17px 4px;
    color: var(--navy-900);
    font-size: 1.05rem;
  }

  .primary-nav > a:not(.button)::after {
    display: none;
  }

  .primary-nav .button {
    margin-top: 22px;
  }

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

  .hero-copy {
    max-width: 760px;
    padding-bottom: 10px;
  }

  .hero-media {
    min-height: 500px;
  }

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

  .process-strip-title {
    grid-column: 1 / -1;
  }

  .process-strip > div:nth-child(2),
  .process-strip > div:nth-child(4) {
    border-left: 0;
  }

  .process-strip > div {
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .methodology-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .methodology-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .service-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-feature {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  }

  .service-image {
    height: 100%;
    min-height: 300px;
  }

  .service-content {
    min-height: 300px;
  }

  .capabilities {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline::before {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 24px;
    width: 1px;
    height: auto;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 22px;
    padding: 0 0 36px;
  }

  .timeline-number {
    margin: 0;
  }

  .timeline-step h3 {
    min-height: auto;
  }

  .project-card,
  .project-card-wide {
    grid-template-columns: 1fr;
  }

  .project-card-wide figure,
  .project-card figure {
    min-height: 380px;
  }

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

  .company-intro {
    position: static;
  }

  .contact-copy {
    max-width: 700px;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand {
    width: 184px;
  }

  .primary-nav {
    top: 76px;
  }

  .hero {
    padding: 44px 0 64px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-media {
    min-height: 390px;
    padding: 0 0 40px 16px;
  }

  .hero-photo {
    inset: 0 0 40px 16px;
    border-radius: 3px 22px 3px 3px;
  }

  .hero-statement {
    padding: 17px 18px;
    font-size: 0.92rem;
  }

  .blueprint-lines {
    display: none;
  }

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

  .process-strip-title {
    grid-column: auto;
  }

  .process-strip > div {
    min-height: 88px;
    border-left: 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .service-feature {
    grid-template-columns: 1fr;
  }

  .service-image {
    min-height: 230px;
  }

  .service-content {
    min-height: auto;
  }

  .capabilities {
    margin-top: 48px;
    padding: 30px 22px;
  }

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

  .project-card-wide figure,
  .project-card figure {
    min-height: 290px;
  }

  .project-copy,
  .purpose-card,
  .contact-form {
    padding: 28px 22px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .values-grid article,
  .values-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 28px 0;
  }

  .values-grid article:first-child {
    border-top: 0;
  }

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

  .contact-channels a,
  .contact-channels address {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-channels strong {
    text-align: left;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* Inicio: revisión de contenido y componentes */
.page-home .hero {
  padding: 50px 0 62px;
}

.page-home .hero-media {
  min-height: 430px;
}

.page-home .hero-photo {
  background: var(--navy-950);
}

.page-home .hero-photo img {
  object-fit: contain;
}

.page-home .section {
  padding: 84px 0;
}

.page-home .home-presentation {
  padding-block: 72px;
}

.page-home .section-heading {
  margin-bottom: 42px;
}

.presentation-facts {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 24px;
}

.presentation-facts > div {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface-soft);
}

.experience-fact strong {
  color: var(--cyan-600);
  font-size: 2.25rem;
  line-height: 1;
}

.presentation-facts span:not(.mexico-flag) {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}

.mexico-flag {
  position: relative;
  display: block;
  width: 54px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(16, 40, 61, 0.16);
  border-radius: 3px;
  background: linear-gradient(90deg, #006847 0 33.333%, #ffffff 33.333% 66.666%, #ce1126 66.666% 100%);
  box-shadow: 0 3px 9px rgba(8, 47, 87, 0.12);
}

.mexico-flag::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid #8c6b2f;
  border-radius: 50%;
  background: radial-gradient(circle at 54% 38%, #9a7331 0 23%, #2f7249 26% 54%, #805b27 57% 72%, transparent 75%);
  content: "";
  transform: translate(-50%, -50%);
}

/* Carrusel de servicios */
.service-carousel {
  position: relative;
  padding-inline: 58px;
}

.service-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.service-carousel-track::-webkit-scrollbar {
  display: none;
}

.service-slide {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex: 0 0 calc((100% - 40px) / 3);
  align-items: center;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 47, 87, 0.055);
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-slide:hover {
  border-color: #90c7d2;
  box-shadow: 0 18px 46px rgba(8, 47, 87, 0.11);
  transform: translateY(-4px);
}

.service-round-image {
  width: 100%;
  height: 190px;
  flex: 0 0 auto;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid #a9d9e2;
  border-radius: 16px;
  background: var(--cyan-100);
  box-shadow: 0 0 0 6px #f0f8fa;
}

.service-round-image img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-round-image-portrait img {
  object-position: center 30%;
}

.service-slide:hover .service-round-image img {
  transform: scale(1.045);
}

.service-slide .service-number {
  margin: 0 0 7px;
}

.service-slide h3 {
  min-height: 52px;
  margin-bottom: 9px;
  font-size: 1.25rem;
}

.service-slide p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.service-slide .card-link {
  margin-top: auto;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(8, 47, 87, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.carousel-control:hover:not(:disabled) {
  background: var(--cyan-600);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

/* Proceso con el set gráfico proporcionado */
.page-home .timeline::before {
  top: 47px;
}

.timeline-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  border: 1px solid rgba(86, 213, 231, 0.42);
  border-radius: 24px;
  background-color: var(--navy-950);
  background-image: url("assets/icons/engineering-set.png");
  background-repeat: no-repeat;
  background-size: 550px 450px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.timeline-icon-diagnosis {
  background-position: -25px -34px;
}

.timeline-icon-engineering {
  background-position: -235px -245px;
}

.timeline-icon-integration {
  background-position: -129px -32px;
}

.timeline-icon-startup {
  background-position: -129px -242px;
}

.timeline-icon-support {
  background-position: -449px -137px;
}

.page-home .timeline-step h3 {
  min-height: auto;
}

/* Llamado final compacto */
.quote-band-compact {
  padding: 46px 0;
}

.quote-band-single {
  display: flex;
  justify-content: center;
}

/* Nube flotante de WhatsApp, compartida por las cinco páginas */
.whatsapp-cloud {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(17, 139, 69, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(3, 25, 46, 0.24);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.whatsapp-cloud::after {
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(17, 139, 69, 0.18);
  border-bottom: 1px solid rgba(17, 139, 69, 0.18);
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.whatsapp-cloud:hover {
  box-shadow: 0 19px 48px rgba(3, 25, 46, 0.3);
  transform: translateY(-3px);
}

.whatsapp-cloud img {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
}

.whatsapp-cloud-copy {
  position: relative;
  z-index: 1;
  display: grid;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
}

.whatsapp-cloud-copy strong {
  color: var(--ink);
  font-size: 0.91rem;
}

@media (max-width: 900px) {
  .page-home .hero-media {
    min-height: calc((100vw - 40px) * 0.5625 + 48px);
  }

  .page-home .section {
    padding: 68px 0;
  }

  .page-home .home-presentation {
    padding-block: 64px;
  }

  .service-slide {
    flex-basis: calc((100% - 20px) / 2);
  }

  .page-home .timeline::before {
    top: 46px;
    bottom: 46px;
    left: 47px;
  }

  .page-home .timeline-step {
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding-bottom: 28px;
  }

  .timeline-icon {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .page-home .hero {
    padding: 42px 0 52px;
  }

  .page-home .hero-media {
    min-height: calc((100vw - 28px) * 0.5625 + 40px);
  }

  .page-home .section,
  .page-home .home-presentation {
    padding-block: 56px;
  }

  .page-home .section-heading {
    margin-bottom: 32px;
  }

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

  .presentation-facts > div {
    min-width: 0;
    padding: 10px 12px;
  }

  .service-carousel {
    padding: 0 0 62px;
  }

  .service-slide {
    min-height: 410px;
    flex-basis: 100%;
    padding-inline: 20px;
  }

  .service-round-image {
    width: 100%;
    height: 210px;
  }

  .carousel-control {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .carousel-control:hover:not(:disabled) {
    transform: scale(1.05);
  }

  .carousel-control-prev {
    right: calc(50% + 8px);
    left: auto;
  }

  .carousel-control-next {
    right: auto;
    left: calc(50% + 8px);
  }

  .page-home .timeline::before {
    left: 39px;
  }

  .page-home .timeline-step {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }

  .timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-size: 458px 375px;
  }

  .timeline-icon-diagnosis {
    background-position: -21px -28px;
  }

  .timeline-icon-engineering {
    background-position: -196px -204px;
  }

  .timeline-icon-integration {
    background-position: -108px -27px;
  }

  .timeline-icon-startup {
    background-position: -108px -202px;
  }

  .timeline-icon-support {
    background-position: -374px -114px;
  }

  .quote-band-compact {
    padding: 38px 0;
  }

  .quote-band-single .button {
    width: 100%;
  }

  .whatsapp-cloud {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 60px;
    padding: 6px;
  }

  .whatsapp-cloud img {
    width: 48px;
    height: 48px;
  }

  .whatsapp-cloud-copy {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-carousel-track {
    scroll-behavior: auto;
  }

  .service-slide,
  .whatsapp-cloud {
    transition: none;
  }
}

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

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

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

/* Shared multi-page components */
.primary-nav > a:not(.button)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
  gap: clamp(48px, 8vw, 110px);
}

.split-intro h2 {
  margin-bottom: 0;
}

.split-intro-copy {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.split-intro-copy .text-link {
  margin-top: 10px;
}

.home-presentation {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.card-link span {
  transition: transform 180ms ease;
}

.card-link:hover span {
  transform: translateX(4px);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}

.project-preview-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, 0.875fr);
  gap: 20px;
}

.project-preview {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  color: #ffffff;
  background: var(--navy-900);
  text-decoration: none;
}

.project-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(3, 20, 38, 0.88) 100%);
  content: "";
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.project-preview:nth-child(3) img {
  object-position: center 40%;
}

.project-preview:hover img {
  transform: scale(1.045);
}

.project-preview > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 28px;
}

.project-preview small {
  color: #67d9e8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-preview strong {
  font-size: 1.2rem;
  line-height: 1.25;
}

.quote-band {
  padding: 78px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 30%, rgba(70, 210, 228, 0.16), transparent 27%),
    var(--navy-900);
}

.quote-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 70px;
}

.quote-band h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
}

.quote-band p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: #bfd0dc;
}

.quote-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.quote-whatsapp {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.quote-whatsapp:hover {
  color: #7de0ec;
}

/* Subpage hero */
.page-hero {
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(6, 35, 64, 0.98) 0%, rgba(6, 35, 64, 0.93) 48%, rgba(3, 20, 38, 0.93) 100%);
}

.page-hero-grid {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
}

.page-hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 80px 70px 80px 0;
}

.page-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
}

.page-hero-copy > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: #bed0dc;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.page-hero-image {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.page-hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 35, 64, 0.42), transparent 35%);
  content: "";
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-services .page-hero-image img {
  object-position: center 46%;
}

.page-hero-projects .page-hero-image img {
  object-position: center 39%;
}

/* About page */
.about-intro {
  background: #ffffff;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(450px, 1.2fr);
  gap: 86px;
}

.about-intro-grid h2 {
  margin-bottom: 0;
}

.about-story {
  color: var(--ink-soft);
}

.large-copy {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 650;
  line-height: 1.45;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 82px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-pillars article {
  padding: 34px 34px 34px 0;
}

.about-pillars article + article {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.about-pillars span,
.value-card > span {
  display: block;
  margin-bottom: 24px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.about-pillars h3 {
  font-size: 1.15rem;
}

.about-pillars p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.purpose-section {
  background: var(--surface-blue);
}

.purpose-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.purpose-panel {
  padding: clamp(42px, 6vw, 76px);
  border: 1px solid var(--line);
  background: #ffffff;
}

.purpose-panel h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}

.purpose-panel > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.purpose-panel-dark {
  color: #ffffff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.purpose-panel-dark h2 {
  color: #ffffff;
}

.purpose-panel-dark .mini-label {
  color: #70dce9;
}

.purpose-panel-dark > p:last-child {
  color: #bfd0dc;
}

.values-section {
  background: #ffffff;
}

.center-heading {
  max-width: 780px;
  margin: 0 auto 58px;
  text-align: center;
}

.center-heading .eyebrow {
  justify-content: center;
}

.center-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.value-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value-card {
  min-height: 250px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px;
  background: #ffffff;
}

.value-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.why-section {
  background: var(--surface-soft);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(46px, 7vw, 90px);
}

.why-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: 4px 38px 4px 4px;
  box-shadow: var(--shadow-lg);
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 16px 0 16px 30px;
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan-600);
  border-radius: 50%;
  content: "";
}

.check-list strong {
  color: var(--ink);
}

/* Services page */
.services-intro {
  padding-bottom: 70px;
  background: #ffffff;
}

.service-jump-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 58px;
}

.service-jump-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.service-jump-nav a:hover {
  color: var(--navy-900);
  border-color: #9ccbd5;
  background: var(--cyan-100);
}

.service-detail-section {
  padding: 0 0 112px;
  background: var(--surface-soft);
}

.service-detail-list {
  display: grid;
  gap: 24px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(8, 47, 87, 0.055);
}

.service-detail-heading {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
  padding: 48px;
}

.service-detail-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.service-detail-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.service-detail-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #9ed6df;
  border-radius: 50%;
  color: var(--cyan-600);
  font-size: 0.76rem;
  font-weight: 800;
}

.service-detail-body {
  padding: 48px;
  border-left: 1px solid var(--line);
  background: #f7fafb;
}

.service-detail-body h3 {
  font-size: 1rem;
}

.service-detail-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.service-detail-body li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.service-detail-body li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-600);
  content: "";
}

.service-detail-featured {
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr) minmax(340px, 0.85fr);
}

.service-detail-media {
  min-height: 360px;
  overflow: hidden;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-media-portrait img {
  object-position: center 34%;
}

.service-detail-special {
  color: #ffffff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.service-detail-special h2,
.service-detail-special .mini-label {
  color: #ffffff;
}

.service-detail-special .service-detail-heading p:last-child {
  color: #bfd0dc;
}

/* Projects page */
.project-gallery-section {
  background: #ffffff;
}

.project-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, 270px);
  gap: 16px;
}

.project-mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d6e1e8;
}

.project-mosaic .mosaic-large {
  grid-row: 1 / 3;
}

.project-mosaic figure:last-child {
  grid-column: 2 / 4;
}

.project-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.project-mosaic figure:hover img {
  transform: scale(1.035);
}

.project-mosaic figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(3, 20, 38, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.project-catalog {
  background: var(--surface-blue);
}

.catalog-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

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

.project-filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.project-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(8, 47, 87, 0.06);
}

.project-sheet[hidden] {
  display: none;
}

.project-sheet > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.project-sheet:nth-child(3) > img,
.project-sheet:nth-child(6) > img {
  object-position: center 38%;
}

.project-sheet > div {
  padding: 28px;
}

.project-sheet p {
  margin-bottom: 10px;
  color: var(--cyan-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-sheet h3 {
  min-height: 56px;
}

.project-sheet-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 8px 0;
  color: var(--navy-900);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.project-sheet-button:hover span {
  transform: translateX(4px);
}

.project-sheet-button span {
  transition: transform 180ms ease;
}

.empty-projects {
  margin: 30px 0 0;
  color: var(--ink-soft);
  text-align: center;
}

.project-dialog {
  width: min(calc(100% - 32px), 940px);
  max-height: min(88vh, 760px);
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  overflow: auto;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(3, 20, 38, 0.42);
}

.project-dialog[open] {
  display: grid;
}

.project-dialog::backdrop {
  background: rgba(3, 20, 38, 0.76);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--navy-950);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(3, 20, 38, 0.15);
  font-size: 1.7rem;
  cursor: pointer;
}

.dialog-image {
  min-height: 560px;
  background: #d6e1e8;
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-copy {
  align-self: center;
  padding: 58px 48px;
}

.dialog-copy > p:not(.mini-label) {
  color: var(--ink-soft);
}

.dialog-copy ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 30px;
  padding: 0;
  list-style: none;
}

.dialog-copy li {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--ink-soft);
}

/* Contact page */
.contact-overview {
  background: #ffffff;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  min-height: 220px;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--surface-soft);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  border-color: #9ccbd5;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.contact-card-label {
  color: var(--cyan-600);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--ink-soft);
  font-weight: 700;
}

.location-section {
  background: var(--surface-soft);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: 70px;
}

.location-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.location-panel {
  position: relative;
  display: grid;
  min-height: 380px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 1px;
  overflow: hidden;
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(rgba(86, 213, 231, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 213, 231, 0.1) 1px, transparent 1px),
    var(--navy-900);
  background-size: 42px 42px;
}

.location-panel > div {
  position: relative;
  z-index: 2;
  min-height: 160px;
  padding: 24px;
  background: rgba(3, 20, 38, 0.76);
  backdrop-filter: blur(7px);
}

.location-panel small {
  display: block;
  margin-bottom: 10px;
  color: #70dce9;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.location-panel p {
  margin: 0;
  color: #bfd0dc;
  font-size: 0.88rem;
}

.location-cross {
  position: absolute;
  top: 58px;
  left: 52%;
  width: 62px;
  height: 62px;
  border: 2px solid #55d2e4;
  border-radius: 50%;
  transform: translateX(-50%);
}

.location-cross::before,
.location-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #55d2e4;
  content: "";
  transform: translate(-50%, -50%);
}

.location-cross::before {
  width: 92px;
  height: 1px;
}

.location-cross::after {
  width: 1px;
  height: 92px;
}

@media (max-width: 1040px) {
  .project-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  }

  .service-detail-featured {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  }

  .service-detail-featured .service-detail-media {
    grid-column: 2;
    grid-row: 1;
  }

  .service-detail-featured .service-detail-body {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

@media (max-width: 900px) {
  .split-intro,
  .about-intro-grid,
  .why-grid,
  .location-grid,
  .quote-band-inner {
    grid-template-columns: 1fr;
  }

  .project-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-preview:first-child {
    grid-column: 1 / -1;
  }

  .quote-actions {
    justify-content: flex-start;
  }

  .page-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .page-hero-copy {
    padding: 72px 0 58px;
  }

  .page-hero-image {
    min-height: 430px;
  }

  .about-pillars,
  .value-card-grid,
  .contact-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-pillars article:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

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

  .why-image {
    min-height: 430px;
  }

  .service-detail,
  .service-detail-featured {
    grid-template-columns: 1fr;
  }

  .service-detail-featured .service-detail-media,
  .service-detail-featured .service-detail-body {
    grid-column: auto;
    grid-row: auto;
  }

  .service-detail-body {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-detail-media {
    min-height: 330px;
  }

  .project-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 360px 240px 300px;
  }

  .project-mosaic .mosaic-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-mosaic figure:last-child {
    grid-column: 1 / -1;
  }

  .catalog-heading {
    grid-template-columns: 1fr;
  }

  .project-filters {
    justify-content: flex-start;
  }

  .project-dialog[open] {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: 330px;
  }

  .location-panel {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .project-preview-grid,
  .about-pillars,
  .value-card-grid,
  .contact-card-grid,
  .project-sheet-grid {
    grid-template-columns: 1fr;
  }

  .project-preview:first-child {
    grid-column: auto;
  }

  .project-preview {
    min-height: 350px;
  }

  .quote-band {
    padding: 64px 0;
  }

  .quote-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-hero-copy {
    padding: 58px 0 46px;
  }

  .page-hero-image {
    min-height: 320px;
  }

  .about-pillars article,
  .about-pillars article + article,
  .about-pillars article:nth-child(3) {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 28px 0;
  }

  .about-pillars article:first-child {
    border-top: 0;
  }

  .purpose-panel,
  .value-card {
    padding: 30px 24px;
  }

  .service-jump-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .service-jump-nav a {
    border-radius: 4px;
  }

  .service-detail-heading,
  .service-detail-body {
    padding: 30px 22px;
  }

  .service-detail-heading {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .service-detail-number {
    width: 38px;
    height: 38px;
  }

  .service-detail-body ul {
    grid-template-columns: 1fr;
  }

  .service-detail-media {
    min-height: 240px;
  }

  .project-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 280px);
  }

  .project-mosaic .mosaic-large,
  .project-mosaic figure:last-child {
    grid-column: auto;
  }

  .project-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .project-sheet > img {
    height: 240px;
  }

  .project-dialog {
    width: calc(100% - 18px);
    max-height: 92vh;
  }

  .dialog-image {
    min-height: 240px;
  }

  .dialog-copy {
    padding: 34px 24px;
  }

  .location-panel {
    grid-template-columns: 1fr;
    min-height: 480px;
    padding: 24px;
  }
}

/* Overrides finales del llamado compacto de Inicio */
.quote-band.quote-band-compact {
  padding: 46px 0;
}

@media (max-width: 640px) {
  .quote-band.quote-band-compact {
    padding: 38px 0;
  }
}
