/* ============================================================
   Cortexis Tech — tokens
   ============================================================ */
:root {
  --void: #ffffff;
  --panel: #f7f9f9;
  --panel-2: #edf3f5;
  --cyan: #247f90;
  --blue: #174a66;
  --silver: #52636e;
  --ink: #122433;
  --muted: #657581;
  --line: rgba(18, 36, 51, 0.12);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1140px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Full-screen interactive opening */
.hero {
  min-height: min(850px, calc(100svh - 72px));
  height: calc(100svh - 72px);
  padding: 0;
  background: #070b10;
}
.hero::before {
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 50% 54%,
      rgba(21, 94, 120, 0.2),
      transparent 48%
    ),
    linear-gradient(180deg, rgba(8, 13, 18, 0.1), #080d12 100%);
  pointer-events: none;
}
#constellation {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}
.hero-drive {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.drive-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(88, 217, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 217, 231, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(transparent, #000 32%, #000 80%, transparent);
  transform: perspective(700px) rotateX(60deg) scale(1.8) translateY(23%);
  transform-origin: 50% 75%;
}
.drive-sweep {
  position: absolute;
  inset: -20% -10%;
  opacity: 0.44;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 14%,
    rgba(36, 143, 177, 0.09) 14.1%,
    transparent 14.25% 28%
  );
  mask-image: radial-gradient(ellipse at 50% 55%, #000, transparent 68%);
  transform: translate(var(--drive-x, 0), var(--drive-y, 0));
  transition: transform 0.35s ease-out;
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 70%);
  padding-top: 0;
  transform: translate(var(--drive-x, 0), var(--drive-y, 0));
  transition: transform 0.35s ease-out;
}
.hero .eyebrow {
  background: rgba(8, 13, 18, 0.68);
}
.hero-title {
  max-width: none;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.hero .grad-text {
  text-decoration: none;
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(88, 217, 231, 0.19);
}
.hero-sub {
  max-width: 44ch;
  font-size: clamp(16px, 1.55vw, 20px);
  color: #b4c1ca;
  margin-bottom: 32px;
}
.drive-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font: 600 15px var(--font-body);
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.drive-start-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(88, 217, 231, 0.55);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 19px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.drive-start:hover .drive-start-icon {
  background: rgba(88, 217, 231, 0.13);
  transform: translate(2px, -2px);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
}
.drive-watch {
  color: #b4c1ca;
  text-decoration: none;
  font: 600 15px var(--font-body);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(88, 217, 231, 0.45);
  padding-bottom: 2px;
}
.drive-watch:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}
.drive-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 34px;
  display: flex;
  justify-content: space-between;
  color: rgba(203, 212, 219, 0.58);
  font: 10px var(--font-mono);
  letter-spacing: 0.11em;
}
.caption-mobile {
  display: none;
}
.drive-scroll {
  position: absolute;
  bottom: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(203, 212, 219, 0.6);
  font: 11px var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drive-scroll span {
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.drive-index {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(203, 212, 219, 0.54);
  font: 11px var(--font-mono);
}
.drive-index i {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(203, 212, 219, 0.2));
}
@media (max-width: 700px) {
  .hero {
    min-height: calc(100svh - 64px);
    height: calc(100svh - 64px);
  }
  .hero-inner {
    align-items: center;
  }
  .hero-copy {
    width: 100%;
    padding: 0 4px;
  }
  .hero-title {
    font-size: clamp(43px, 12vw, 66px);
  }
  .hero-sub {
    max-width: 34ch;
  }
  .drive-caption {
    top: auto;
    bottom: 54px;
    left: 20px;
    right: 20px;
    justify-content: center;
    text-align: center;
    font-size: 8px;
  }
  .drive-caption span:first-child {
    display: none;
  }
  .drive-caption span:last-child {
    display: block;
  }
  .caption-desktop {
    display: none;
  }
  .caption-mobile {
    display: inline;
  }
  .drive-scroll {
    left: 20px;
    bottom: 20px;
  }
  .drive-index {
    right: 20px;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drive-sweep,
  .hero-copy {
    transition: none;
  }
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  color: var(--silver);
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--void);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 20px;
  height: 1px;
  border-radius: 0;
  background: #54b8c5;
  box-shadow: none;
  flex-shrink: 0;
}

.grad-text {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(88, 217, 231, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.055em;
}
.section-sub {
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.8;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover {
  background: #10394f;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--blue);
}
.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  display: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-header .brand {
  display: flex;
  align-items: center;
}
.site-header .brand-logo {
  display: block;
  width: 68px;
  height: 68px;
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  text-decoration: none;
  color: var(--silver);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions:has(.header-talk)::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--line);
  opacity: 1;
  flex-shrink: 0;
}
.header-talk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid #cbd9df;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}
.header-talk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54b8c5;
  box-shadow: none;
  flex-shrink: 0;
  transition: box-shadow 0.22s ease;
}
.header-talk:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: none;
}
.header-talk:hover .header-talk-dot {
  background: #fff;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      48% 60% at 82% 14%,
      rgba(37, 140, 173, 0.13),
      transparent 72%
    ),
    linear-gradient(90deg, rgba(88, 217, 231, 0.035), transparent 38%);
  z-index: -2;
}
#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.65;
}
.hero-inner {
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 17ch;
}
.hero-sub {
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-tags li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.hero-tags li::before {
  content: "◆ ";
  color: var(--cyan);
  font-size: 9px;
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  padding: 0 0;
}
.divider span {
  display: block;
  height: 1px;
  width: calc(100% - 48px);
  max-width: calc(var(--wrap) - 48px);
  margin: 0 auto;
  background: var(--line);
  position: relative;
}
.divider span::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
  box-shadow: 0 0 12px 2px rgba(70, 214, 232, 0.5);
}

/* ============================================================
   Services
   ============================================================ */
.services,
.process,
.about,
.contact,
.institucional {
  padding: 88px 0;
  scroll-margin-top: 72px;
}
.services,
.contact {
  background: #f7f9f9;
}

.institucional-player {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050b12;
  box-shadow: 0 28px 80px -36px rgba(0, 0, 0, 0.72);
}
.institucional-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050b12;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.services .card-grid .card {
  grid-column: span 2;
}
.services .card-grid .card:nth-child(4) {
  grid-column: 2 / span 2;
}
.services .card-grid .card:nth-child(5) {
  grid-column: 4 / span 2;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.card:hover {
  border-color: rgba(23, 74, 102, 0.26);
  background: #fff;
  transform: translateY(-3px);
}
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}
.card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

.services .card-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
}
.services .card-grid .card-link {
  margin-top: auto;
  padding-top: 16px;
}

/* ============================================================
   Page hero (secondary pages, e.g. portfolio)
   ============================================================ */
.page-hero {
  padding: 96px 0 56px;
  background:
    radial-gradient(ellipse at 88% 45%, rgba(194, 223, 229, 0.34), transparent 38%),
    linear-gradient(115deg, #f7f9f9 0%, #f2f6f7 58%, #edf3f5 100%);
}
.page-hero h1.section-title {
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(42px, 5.4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.page-hero .section-sub {
  max-width: 60ch;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
}
.page-body {
  padding: 8px 0 88px;
}
.page-body .card-grid,
.page-body .process-path,
.page-body .institucional-player {
  margin-top: 0;
}
main > .contact:first-child {
  padding-top: 96px;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio {
  padding: 56px 0 88px;
}
.portfolio-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 360px));
  justify-content: center;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
}
.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.portfolio-thumb svg {
  width: 40px;
  height: 40px;
}
.portfolio-thumb-img {
  padding: 0;
  overflow: hidden;
}
.portfolio-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}
.portfolio-card:hover .portfolio-thumb-img img {
  transform: scale(1.05);
}
.portfolio-thumb-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 20px;
}
.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin: 0 0 8px;
}
.portfolio-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.portfolio-card p {
  font-size: 14.5px;
  color: var(--muted);
}
.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
}
.portfolio-stack li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.portfolio-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan);
  width: fit-content;
}
.portfolio-link:hover {
  text-decoration: underline;
}
.portfolio-note {
  margin: 40px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
.portfolio-note a {
  color: var(--cyan);
  text-decoration: none;
}
.portfolio-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   Category / secondary page nav
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}
.back-link:hover {
  color: var(--cyan);
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan);
}
.card-link:hover {
  text-decoration: underline;
}

.contact-cta {
  padding: 88px 0;
  background: #f3f6f7;
}
.contact-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.contact-cta-inner .section-title {
  margin-bottom: 8px;
}
.contact-cta-inner .section-sub {
  margin: 0;
}

/* ============================================================
   Process path
   ============================================================ */
.process-path {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  position: relative;
}
.process-path::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.process-path::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 1px;
  height: 0%;
  background: linear-gradient(var(--cyan), var(--blue));
  transition: height 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.process-path.in-view::after {
  height: 100%;
}

.process-path li {
  position: relative;
  padding: 0 0 40px 40px;
}
.process-path li:last-child {
  padding-bottom: 0;
}
.node-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--muted);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}
.process-path.in-view li .node-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(70, 214, 232, 0.15);
}
.process-content h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.process-content p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
}

/* ============================================================
   About
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
}
.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.value-chips li {
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
}
.about-graphic {
  color: var(--cyan);
  width: 100%;
  height: auto;
}
.about-graphic .graphic-nodes circle {
  fill: var(--cyan);
}
.about-graphic .graphic-nodes circle:nth-child(3n) {
  fill: var(--blue);
}
.about-principles,
.about-places {
  padding-top: 0;
}
.about-principles .section-title,
.about-places .section-title {
  margin-top: 12px;
}
.about-principles .card-grid {
  margin-top: 36px;
}
.about-principles .card {
  grid-column: span 2;
}
.about-places-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.about-place {
  padding: 26px 0 0;
  border-top: 2px solid var(--cyan);
}
.about-place-country {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.about-place p {
  margin: 10px 0 0;
  font-size: 15px;
}
.about-place a {
  color: var(--blue);
  font-weight: 600;
}
.about-places-link {
  margin-top: 28px;
}
@media (max-width: 720px) {
  .about-principles .card {
    grid-column: 1 / -1;
  }
  .about-places-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--blue);
  width: fit-content;
  transition: color 0.2s ease;
}
.contact-info a:hover {
  color: var(--cyan);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.contact-form button {
  margin-top: 4px;
  justify-content: center;
}
.form-privacy {
  margin: 0;
  color: var(--muted, #5f6f7a);
  font-size: 12px;
  line-height: 1.5;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin: 0;
  min-height: 1em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 72px 0 0;
  background: #0b1a26;
  color: #c3ced5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.1fr 0.9fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}
.brand-footer {
  display: inline-block;
}
.brand-footer .brand-logo {
  display: block;
  width: auto;
  height: 50px;
}
.site-footer .brand-tagline {
  margin: 14px 0 0;
  color: #4fd3e2;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-footer .footer-about {
  max-width: 34ch;
  margin: 10px 0 0;
  color: #8fa0aa;
  font-size: 14px;
  line-height: 1.7;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.site-footer .footer-col-title {
  margin: 4px 0 6px;
  color: #fff;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a {
  color: #c3ced5;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: #4fd3e2;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #4fd3e2;
}
.footer-col .footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(79, 211, 226, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-col .footer-cta:hover {
  border-color: #4fd3e2;
  background: rgba(79, 211, 226, 0.12);
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .footer-bottom p {
  margin: 0;
  color: #7d8e98;
  font: 12px var(--font-mono);
}
.footer-legal {
  color: inherit;
}
.footer-legal:hover {
  color: #4fd3e2;
}
.footer-top {
  color: #c3ced5;
  font: 12px var(--font-mono);
  text-decoration: none;
}
.footer-top:hover {
  color: #4fd3e2;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .site-footer {
    padding-top: 56px;
  }
  .footer-grid {
    gap: 32px 20px;
    padding-bottom: 40px;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.social-links a:hover {
  color: var(--cyan);
}
.social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--blue);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.social-icon svg {
  width: 20px;
  height: 20px;
}
.contact-info a:hover .social-icon,
.social-links a:hover .social-icon {
  border-color: #a9c6cf;
  background: #edf4f5;
  box-shadow: none;
}
.contact-info a:focus-visible .social-icon,
.social-links a:focus-visible .social-icon {
  outline: none;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 20px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services .card-grid .card,
  .services .card-grid .card:nth-child(4),
  .services .card-grid .card:nth-child(5) {
    grid-column: auto;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-graphic {
    max-width: 280px;
    margin: 0 auto;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
  .header-actions .btn-small,
  .header-actions .header-talk,
  .header-actions:has(.header-talk)::before {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: 0 16px 32px -16px rgba(18, 43, 58, 0.2);
  }
  .site-header.nav-open .header-actions .btn-small {
    display: inline-flex;
  }

  .hero {
    padding: 56px 0 48px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .services,
  .process,
  .about,
  .contact,
  .institucional {
    padding: 64px 0;
  }
  .page-hero {
    padding: 56px 0 40px;
  }
  .contact-cta-inner {
    text-align: left;
  }
}

/* Keep the interactive opening full-height after the general responsive rules. */
.hero {
  min-height: min(850px, calc(100svh - 72px));
  height: calc(100svh - 72px);
  padding: 0;
  background: #0b1219;
}
.hero::before {
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 68% 45%,
      rgba(23, 90, 112, 0.11),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(11, 18, 25, 0.02), rgba(11, 18, 25, 0.1));
  pointer-events: none;
}
#constellation {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.hero-copy {
  width: min(680px, 60%);
}
@media (max-width: 720px) {
  .hero {
    min-height: calc(100svh - 64px);
    height: calc(100svh - 64px);
    padding: 0;
  }
  .hero-copy {
    align-self: flex-start;
    width: 100%;
    padding-top: clamp(38px, 6vh, 56px);
  }
  .hero-title {
    font-size: clamp(40px, 10.5vw, 66px);
  }
  .hero-sub {
    max-width: 33ch;
    font-size: 15px;
  }
  .hero .eyebrow {
    margin-bottom: 12px;
  }
  .drive-start {
    position: relative;
    z-index: 3;
  }
  .drive-scroll {
    z-index: 4;
  }
  .drive-index {
    display: none;
  }
}

/* Depth layers for the cursor-reactive perspective field */
.drive-grid {
  inset: 38% -18% -35%;
  opacity: 0.4;
  background-size: clamp(44px, 5vw, 82px) clamp(44px, 5vw, 82px);
  mask-image:
    linear-gradient(transparent, #000 24%, #000 72%, transparent),
    radial-gradient(ellipse at 50% 55%, #000 20%, transparent 82%);
  mask-composite: intersect;
  transform: perspective(620px) rotateX(67deg) scale(1.65)
    translate3d(var(--drive-x, 0), var(--drive-y, 0), 0);
  transform-origin: 50% 55%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.drive-sweep {
  inset: -28% -18%;
  opacity: 0.34;
  background:
    radial-gradient(
      ellipse at 52% 43%,
      rgba(40, 183, 211, 0.12),
      transparent 48%
    ),
    repeating-linear-gradient(
      112deg,
      transparent 0 18%,
      rgba(36, 143, 177, 0.1) 18.08%,
      transparent 18.22% 36%
    );
  mask-image: radial-gradient(ellipse at 52% 45%, #000, transparent 72%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-copy {
  width: min(760px, 70%);
}
.drive-start {
  cursor: pointer;
}
.drive-caption,
.drive-scroll,
.drive-index {
  z-index: 3;
}
@media (max-width: 720px) {
  .hero-copy {
    width: 100%;
  }
  .drive-grid {
    inset: 42% -65% -22%;
    opacity: 0.34;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drive-grid,
  .drive-sweep,
  .hero-copy {
    transition: none;
  }
}

/* Full-bleed horizontal hero film, with the original copy above the image. */
body:has(.hero-film) .site-header {
  position: sticky;
  top: 0;
  margin-bottom: -72px;
  background: linear-gradient(180deg, rgba(5, 10, 17, 0.74), transparent);
  border-bottom-color: transparent;
  backdrop-filter: blur(8px);
}
body:has(.hero-film) .hero {
  height: 100svh;
  min-height: 620px;
  padding: 0;
  background: #050b12;
}
body:has(.hero-film) .hero::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(13, 68, 96, 0.2), transparent 55%),
    linear-gradient(180deg, #070e17 0%, #050b12 100%);
  pointer-events: none;
}
body:has(.hero-film) #constellation {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 0;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(660px, 54vw);
}
.hero .hero-title {
  max-width: none;
  font-size: clamp(42px, 3.6vw, 66px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}
.hero .hero-sub {
  max-width: 42ch;
}
.hero-film {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-film::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 18, 0.94) 0%,
      rgba(5, 11, 18, 0.76) 29%,
      rgba(5, 11, 18, 0.23) 58%,
      rgba(5, 11, 18, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 11, 18, 0.46),
      transparent 28%,
      transparent 76%,
      rgba(5, 11, 18, 0.24)
    );
}
.hero-film video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% center;
  opacity: 0.9;
  filter: saturate(0.9) brightness(0.82) contrast(1.08);
}
body:has(.hero-film) .hero-inner {
  z-index: 4;
}
@media (max-width: 1100px) and (min-width: 721px) {
  .hero-copy {
    width: min(580px, 56vw);
  }
  .hero-film video {
    object-position: 48% center;
  }
}
@media (max-width: 720px) {
  body:has(.hero-film) .hero {
    min-height: 100svh;
  }
  .hero-inner {
    align-items: flex-start;
    padding-top: clamp(116px, 16vh, 150px);
    padding-bottom: 30px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero .hero-title {
    font-size: clamp(32px, 8.5vw, 46px);
  }
  .hero .hero-sub {
    max-width: 34ch;
    font-size: 15px;
  }
  .hero-film video {
    object-position: 50% center;
  }
  .hero-film::after {
    background: linear-gradient(
      180deg,
      rgba(5, 11, 18, 0.86) 0%,
      rgba(5, 11, 18, 0.66) 36%,
      rgba(5, 11, 18, 0.16) 75%,
      rgba(5, 11, 18, 0.45) 100%
    );
  }
}

/* ============================================================
   Executive homepage
   ============================================================ */
:root {
  --home-ink: #122433;
  --home-muted: #657581;
  --home-blue: #174a66;
  --home-accent: #54b8c5;
  --home-line: #dce4e8;
}
.home-page {
  --home-ink: #122433;
  --home-muted: #657581;
  --home-blue: #174a66;
  --home-accent: #54b8c5;
  --home-line: #dce4e8;
  background: #fff;
  color: var(--home-ink);
}
.home-page p {
  color: var(--home-muted);
}
.home-page .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(18, 36, 51, 0.1);
  backdrop-filter: blur(16px);
}
.home-page .site-header::before {
  display: none;
}
.home-page .main-nav a {
  color: #4d5e69;
}
.home-page .main-nav a:hover,
.home-page .main-nav a[aria-current="page"] {
  color: var(--home-blue);
}
.home-page .header-actions:has(.header-talk)::before {
  background: var(--home-line);
  opacity: 1;
}
.home-page .header-talk {
  color: var(--home-blue);
  border-color: #cbd9df;
  background: #fff;
}
.home-page .header-talk-dot {
  background: var(--home-accent);
  box-shadow: none;
}
.home-page .header-talk:hover {
  color: #fff;
  border-color: var(--home-blue);
  background: var(--home-blue);
  box-shadow: none;
}
.home-page .header-talk:hover .header-talk-dot {
  background: #fff;
  box-shadow: none;
}
.home-page :focus-visible {
  outline-color: var(--home-accent);
}
.executive-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 48%, rgba(194, 223, 229, 0.4), transparent 36%),
    linear-gradient(115deg, #f7f9f9 0%, #f2f6f7 58%, #edf3f5 100%);
}
.executive-hero-inner {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
  padding-top: 68px;
  padding-bottom: 76px;
}
.executive-copy {
  position: relative;
  z-index: 1;
  padding: 12px 0 20px;
}
.executive-kicker,
.home-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--home-blue);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.executive-kicker span {
  width: 22px;
  height: 1px;
  background: var(--home-accent);
}
.executive-copy h1 {
  max-width: 670px;
  margin: 0 0 26px;
  color: var(--home-ink);
  font-size: clamp(50px, 5.6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.02;
}
.executive-copy h1 span {
  color: var(--home-blue);
}
.executive-lead {
  max-width: 50ch;
  margin: 0;
  color: #52636e;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.8;
}
.executive-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 30px;
  margin-top: 32px;
}
.executive-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  border: 1px solid var(--home-blue);
  background: var(--home-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.executive-button:hover {
  transform: translateY(-2px);
  border-color: #10394f;
  background: #10394f;
}
.executive-button span {
  font-size: 18px;
  font-weight: 400;
}
.executive-text-link,
.home-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.executive-text-link span,
.home-arrow-link span {
  transition: transform 0.2s ease;
}
.executive-text-link:hover span,
.home-arrow-link:hover span {
  transform: translate(2px, -2px);
}
.executive-showcase {
  position: relative;
  z-index: 0;
  display: block;
  padding: 19px;
  border: 1px solid rgba(18, 36, 51, 0.1);
  background: #fff;
  box-shadow: 0 32px 72px -48px rgba(18, 43, 58, 0.42);
  color: inherit;
  text-decoration: none;
  transform: rotate(1.1deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.executive-showcase:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 36px 74px -44px rgba(18, 43, 58, 0.5);
}
.showcase-heading,
.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.showcase-heading {
  padding: 0 1px 15px;
  color: #7b8991;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showcase-index {
  color: #a4afb5;
}
.showcase-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45;
  background: #eef1f3;
}
.showcase-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.9s ease;
}
.showcase-image img.is-active {
  opacity: 1;
}
.showcase-text,
.showcase-index {
  transition: opacity 0.35s ease;
}
.showcase-text.is-swapping,
.showcase-index.is-swapping {
  opacity: 0;
}
.executive-showcase:hover .showcase-image img {
  transform: scale(1.025);
}
.showcase-caption {
  padding: 17px 1px 1px;
}
.showcase-category {
  color: #72818a;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showcase-caption h2 {
  margin: 4px 0 0;
  color: var(--home-ink);
  font-size: 22px;
  letter-spacing: -0.04em;
}
.showcase-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-blue);
  font-size: 17px;
}
.showcase-decoration {
  position: absolute;
  z-index: -1;
  top: 42px;
  right: -24px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(23, 74, 102, 0.18);
}
.hero-bottomline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 74, 102, 0.18), transparent);
}
.home-page .social-icon {
  border-color: #dce4e8;
  background: #f6f8f9;
  color: var(--home-blue);
  box-shadow: none;
}
.home-page .contact-info a:hover .social-icon,
.home-page .social-links a:hover .social-icon {
  border-color: #a9c6cf;
  background: #edf4f5;
  box-shadow: none;
}
@media (max-width: 900px) {
  .executive-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.82fr);
    gap: 44px;
  }
  .executive-copy h1 {
    font-size: clamp(46px, 6vw, 62px);
  }
}
@media (max-width: 720px) {
  .home-page .site-header {
    background: rgba(255, 255, 255, 0.97);
  }
  .home-page .site-header.nav-open .main-nav {
    background: #fff;
    border-bottom-color: var(--home-line);
    box-shadow: 0 16px 32px -16px rgba(18, 43, 58, 0.2);
  }
  .home-page .site-header.nav-open .main-nav a {
    color: var(--home-ink);
  }
  .home-page .nav-toggle span {
    background: var(--home-ink);
  }
  .executive-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 68px;
    padding-bottom: 70px;
  }
  .executive-copy {
    padding: 0;
  }
  .executive-kicker {
    margin-bottom: 20px;
    font-size: 9px;
  }
  .executive-copy h1 {
    margin-bottom: 19px;
    font-size: clamp(44px, 11vw, 62px);
  }
  .executive-lead {
    max-width: 42ch;
    font-size: 15px;
  }
  .executive-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 26px;
  }
  .executive-showcase {
    width: calc(100% - 14px);
    justify-self: center;
    padding: 13px;
  }
  .showcase-decoration {
    top: 26px;
    right: -13px;
  }
  .showcase-image {
    aspect-ratio: 1.22;
  }
}
@media (prefers-reduced-motion: reduce) {
  .executive-showcase,
  .showcase-image img,
  .executive-button {
    transition: none;
  }
}

/* Service page: organize offerings by the client's current need. */
.service-guide {
  padding-top: 22px;
  padding-bottom: 88px;
  background: #fff;
}
.service-guide-group {
  padding: 30px 0 48px;
}
.service-guide-heading {
  display: grid;
  grid-template-columns: 0.55fr 2fr;
  align-items: start;
  gap: 28px;
  margin-bottom: 28px;
}
.service-guide-step {
  margin: 6px 0 0;
  color: #71818a;
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-guide-step > span {
  color: #54b8c5;
}
.service-guide-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.14;
}
.service-guide-heading > div > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-choice {
  display: flex;
  min-height: 228px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 25px 22px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
.service-choice + .service-choice {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}
.service-choice:hover {
  background: #f7f9f9;
}
.service-choice-type {
  color: #75858d;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-choice h3 {
  margin: 27px 0 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.service-choice > p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.service-choice-link,
.service-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.service-choice-link {
  margin-top: auto;
  padding-top: 24px;
}
.service-choice-link > span,
.service-feature-link > span {
  transition: transform 0.2s ease;
}
.service-choice:hover .service-choice-link > span,
.service-guide-feature:hover .service-feature-link > span,
.service-guide-support:hover .service-feature-link > span {
  transform: translate(2px, -2px);
}
.service-guide-feature {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.7fr;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
  background: #f2f6f7;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
.service-guide-feature:hover {
  background: #eaf1f3;
}
.service-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.service-feature-copy strong,
.service-support-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.service-feature-copy > span:last-child,
.service-support-copy > span:last-child {
  max-width: 48ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.service-feature-link {
  justify-self: end;
}
.service-guide-support {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.7fr;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
  padding: 25px 30px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-guide-support:hover {
  border-color: rgba(23, 74, 102, 0.28);
  background: #fbfcfc;
}
.service-support-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-support-copy strong {
  font-size: 16px;
}
.service-guide .service-guide-step {
  align-self: start;
}
@media (max-width: 900px) {
  .service-guide-heading,
  .service-guide-feature,
  .service-guide-support {
    grid-template-columns: 0.42fr 1.58fr;
    gap: 20px;
  }
  .service-choice {
    padding-right: 18px;
  }
  .service-choice + .service-choice {
    padding-left: 18px;
  }
  .service-feature-link {
    grid-column: 2;
    justify-self: start;
  }
}
@media (max-width: 720px) {
  .service-guide {
    padding-top: 8px;
    padding-bottom: 64px;
  }
  .service-guide-group {
    padding: 20px 0 36px;
  }
  .service-guide-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .service-guide-heading h2 {
    font-size: 29px;
  }
  .service-choice-grid {
    grid-template-columns: 1fr;
  }
  .service-choice {
    min-height: 0;
    padding: 20px 2px 22px 0;
  }
  .service-choice + .service-choice {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .service-choice h3 {
    margin-top: 16px;
  }
  .service-choice-link {
    padding-top: 16px;
  }
  .service-guide-feature,
  .service-guide-support {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 22px;
  }
  .service-feature-copy strong {
    font-size: 17px;
  }
  .service-feature-link {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-choice,
  .service-choice-link > span,
  .service-feature-link > span,
  .service-guide-feature,
  .service-guide-support {
    transition: none;
  }
}

/* ============================================================
   Homepage — serviços, projetos, números e CTA
   ============================================================ */
.home-section-head {
  margin-bottom: 40px;
}
.home-section-head h2 {
  max-width: 620px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.home-section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.home-services,
.home-work {
  padding: 96px 0;
  background: #fff;
}
.home-services {
  border-top: 1px solid #edf0f2;
}
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
}
.home-service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 30px 0;
  color: inherit;
  text-decoration: none;
}
.home-service + .home-service {
  padding-left: 22px;
  border-left: 1px solid var(--home-line);
}
.home-service-index {
  color: var(--home-accent);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.08em;
}
.home-service h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.home-service p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.home-service:hover h3 {
  color: var(--home-blue);
}
.home-work {
  background: #f7f9f9;
  border-top: 1px solid #edf0f2;
}
.home-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home-work-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  border: 1px solid rgba(18, 36, 51, 0.08);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -44px rgba(18, 43, 58, 0.5);
}
.home-work-image {
  overflow: hidden;
  aspect-ratio: 1.45;
  margin-bottom: 16px;
  background: #eef1f3;
}
.home-work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.home-work-card:hover .home-work-image img {
  transform: scale(1.03);
}
.home-work-tag {
  padding: 0 4px;
  color: #72818a;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-work-card h3 {
  margin: 6px 0 6px;
  padding: 0 4px;
  color: var(--home-ink);
  font-size: 20px;
  letter-spacing: -0.04em;
}
.home-work-card p {
  margin: 0;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.6;
}
.home-cta {
  padding: 88px 0;
  background: #fff;
}
.home-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.home-cta h2 {
  margin: 0 0 10px;
  color: var(--home-ink);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.05em;
}
.home-cta p {
  max-width: 52ch;
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 1000px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-service,
  .home-service + .home-service {
    padding: 22px 20px 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--home-line);
  }
  .home-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .home-services,
  .home-work {
    padding: 64px 0;
  }
  .home-section-head {
    margin-bottom: 28px;
  }
  .home-services-grid,
  .home-work-grid {
    grid-template-columns: 1fr;
  }
  .home-cta {
    padding: 64px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-work-card,
  .home-work-image img,
  .home-service h3 {
    transition: none;
  }
}

/* ============================================================
   Cortexis Ops
   ============================================================ */
.ops-hero {
  padding-bottom: 40px;
}
.product-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}
.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 28px;
}
.ops-hero-actions .card-link {
  margin-top: 0;
}
.ops-shot-hero {
  padding: 0 0 72px;
  background: linear-gradient(180deg, #f2f6f7 0%, #f2f6f7 62%, #fff 62%);
}
.ops-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}
.ops-shot-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ops-frame {
  margin: 0;
}
.ops-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(18, 36, 51, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 32px 72px -44px rgba(18, 43, 58, 0.45);
}
.ops-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.ops-modules .section-title,
.ops-security .section-title,
.ops-film-title {
  margin-top: 12px;
}
.ops-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.ops-module {
  padding: 30px 28px;
  border-top: 2px solid var(--cyan);
  background: var(--panel);
}
.ops-module-tag {
  color: var(--cyan);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ops-module h3 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.ops-module p {
  margin: 0;
  font-size: 15px;
}
.ops-feature-alt {
  background: var(--panel);
  padding-top: 88px;
}
.ops-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 56px;
}
.ops-feature-alt .ops-feature-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
}
.ops-feature-alt .ops-feature-copy {
  order: 2;
}
.ops-feature-label {
  margin: 0 0 10px;
  color: var(--cyan);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ops-feature-copy h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.ops-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ops-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.ops-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.ops-list strong {
  color: var(--ink);
  font-weight: 600;
}
.ops-security {
  padding-top: 88px;
}
.ops-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.ops-security .ops-cards {
  margin-top: 40px;
}
.ops-cards .card {
  grid-column: span 2;
}
.ops-mobile {
  background: var(--panel);
  padding-top: 88px;
}
.ops-mobile-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 56px;
}
.ops-mobile .section-title {
  margin-top: 12px;
}
.s26 {
  position: relative;
  width: 100%;
  max-width: 300px;
  justify-self: center;
  padding: 7px;
  border-radius: 24px;
  background: linear-gradient(135deg, #6f757b 0%, #c9ced2 22%, #8b9197 48%, #d6dadd 74%, #6a7076 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 40px 80px -44px rgba(18, 43, 58, 0.6);
}
.s26-screen {
  position: relative;
  overflow: hidden;
  border: 5px solid #050608;
  border-radius: 18px;
  background: #fff;
}
.s26-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 16px;
  background: #fff;
  color: #1a2733;
  font: 600 11px var(--font-body);
}
.s26-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.s26-icons svg {
  width: auto;
  height: 10px;
}
.s26-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3440 0%, #050608 60%);
  transform: translateX(-50%);
}
.s26-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.s26-gesture {
  display: flex;
  justify-content: center;
  padding: 7px 0 8px;
  background: #fff;
}
.s26-gesture span {
  width: 92px;
  height: 4px;
  border-radius: 2px;
  background: #1a2733;
}
.s26-btn {
  position: absolute;
  right: -3px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #8b9197, #c9ced2);
}
.s26-btn-vol {
  top: 19%;
  height: 13%;
}
.s26-btn-power {
  top: 35%;
  height: 7%;
}
.ops-film-title {
  margin-bottom: 32px;
}
@media (max-width: 980px) {
  .ops-module-grid,
  .ops-shot-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .ops-feature-inner,
  .ops-feature-alt .ops-feature-inner,
  .ops-security-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ops-feature-alt .ops-feature-copy {
    order: 0;
  }
  .ops-mobile-inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
  }
}
@media (max-width: 720px) {
  .ops-module-grid {
    grid-template-columns: 1fr;
  }
  .ops-cards .card {
    grid-column: 1 / -1;
  }
  .ops-shot-hero {
    padding-bottom: 48px;
  }
  .ops-mobile-inner {
    grid-template-columns: 1fr;
  }
  .s26 {
    max-width: 260px;
  }
}

/* ============================================================
   Finanças Fácil
   ============================================================ */
.ff-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ff-gallery-section {
  background: var(--panel);
  padding-top: 88px;
}
.ff-gallery-section .section-title {
  margin-top: 12px;
}
.ff-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.ff-gallery figure {
  margin: 0;
}
.ff-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 28px 60px -44px rgba(18, 43, 58, 0.55);
}
.ff-feature-shot {
  max-width: 340px;
  justify-self: center;
}
@media (max-width: 900px) {
  .ff-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .ff-gallery {
    gap: 12px;
  }
}

.home-products {
  padding: 96px 0;
  background: #fff;
  border-top: 1px solid #edf0f2;
}
.home-product-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 4px 0;
  padding: 0;
  list-style: none;
}
.home-product-modules li {
  padding: 3px 9px;
  border: 1px solid #d5e0e6;
  border-radius: 999px;
  color: #174a66;
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .home-products {
    padding: 64px 0;
  }
}

/* Política de privacidade */
.legal-text {
  max-width: 720px;
  padding-top: 40px;
}
.legal-text h2 {
  margin: 36px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
}
.legal-text p,
.legal-text li {
  color: var(--muted);
  line-height: 1.7;
}
.legal-text ul {
  padding-left: 20px;
}

/* Produtos */
.product-section {
  padding: 96px 0;
  background: #fff;
}
.product-section-page {
  padding-top: 64px;
}
.product-list {
  display: grid;
  gap: 72px;
}
.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.product-panel-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #eef1f3;
  box-shadow: 0 28px 60px -44px rgba(18, 43, 58, 0.55);
}
.product-panel-image img {
  width: 100%;
  transition: transform 0.5s ease;
}
.product-panel-image:hover img {
  transform: scale(1.02);
}
.product-panel-reverse .product-panel-image {
  order: 2;
}
.product-panel-copy .home-section-label {
  margin: 0 0 14px;
}
.product-panel-copy h3 {
  margin: 0 0 14px;
  color: var(--home-ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.product-panel-copy > p:not(.home-section-label) {
  margin: 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
}
.product-panel-copy .home-product-modules {
  margin: 20px 0 0;
}
.product-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.product-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  color: inherit;
  text-decoration: none;
}
.product-compact .home-section-label {
  margin: 0 0 8px;
}
.product-compact h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.product-compact > p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.6;
}
.product-trust {
  padding: 80px 0;
  background: var(--home-blue);
  color: #fff;
}
.product-trust .home-section-label,
.product-trust .home-section-head h2 {
  color: #fff;
}
.product-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.product-trust-grid > div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.product-trust-grid h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.product-trust-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}
.service-bridge {
  padding: 28px 0;
  border-top: 1px solid var(--home-line);
  background: #fff;
}
.service-bridge-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.service-bridge p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
}
.service-bridge strong {
  color: var(--home-ink);
}
.portfolio-wide .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portfolio-wide .section-title + .portfolio-grid {
  margin-top: 40px;
}
.about-process .process-path {
  margin-top: 40px;
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-panel-reverse .product-panel-image {
    order: 0;
  }
  .product-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-trust-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-wide .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .product-section {
    padding: 64px 0;
  }
  .product-list {
    gap: 56px;
  }
  .product-trust {
    padding: 56px 0;
  }
}
@media (max-width: 560px) {
  .portfolio-wide .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-panel-image img {
    transition: none;
  }
}
