/* ==========================================================
   RDEV — Visual system
   ========================================================== */

/* 01 — Variables */
:root {
  --rdev-bg: #07111a;
  --rdev-bg-deep: #050b12;
  --rdev-bg-soft: #0d1925;
  --rdev-surface: #122231;
  --rdev-surface-hover: #172c3e;
  --rdev-surface-elevated: #172839;
  --rdev-light: #eef3f7;
  --rdev-light-soft: #e4ebf1;
  --rdev-paper: #f7f8f6;

  --rdev-text: #f3f7fb;
  --rdev-text-soft: #bec9d5;
  --rdev-text-muted: #8796a6;
  --rdev-ink: #0b1722;
  --rdev-ink-soft: #4d5e6c;

  --rdev-line: rgba(190, 211, 230, .12);
  --rdev-line-strong: rgba(190, 211, 230, .25);
  --rdev-dark-line: rgba(11, 23, 34, .12);

  --rdev-accent: #69efd0;
  --rdev-accent-2: #78b9ff;
  --rdev-accent-3: #a7f5e2;
  --rdev-accent-soft: rgba(105, 239, 208, .12);
  --rdev-accent-glow: rgba(105, 239, 208, .25);
  --rdev-blue-soft: rgba(120, 185, 255, .12);
  --rdev-blue-glow: rgba(120, 185, 255, .22);

  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-space: clamp(118px, 9vw, 158px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

/* 02 — Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(120, 185, 255, .075), transparent 25%),
    radial-gradient(circle at 92% 19%, rgba(105, 239, 208, .055), transparent 28%),
    linear-gradient(180deg, #091622 0%, #061019 44%, #050c13 100%);
  color: var(--rdev-text);
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  color: var(--rdev-bg-deep);
  background: var(--rdev-accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

a:hover {
  color: var(--rdev-accent);
}

button {
  font: inherit;
  color: inherit;
}

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

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rdev-accent);
  outline-offset: 6px;
}

p {
  margin: 0 0 1.35rem;
  color: var(--rdev-text-soft);
}

strong {
  color: var(--rdev-text);
  font-weight: 600;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

/* 03 — Typography */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -.05em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 5.8vw, 5.85rem);
  line-height: 1.015;
}

h2 {
  font-size: clamp(2.15rem, 4.25vw, 4.25rem);
  line-height: 1.075;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.section-lead {
  font-size: clamp(1.08rem, 1.38vw, 1.28rem);
  line-height: 1.68;
}

.section-index,
.tech-label,
.metric-label,
.capability-number,
.timeline-year {
  font-family: var(--mono);
  font-size: .79rem;
  font-weight: 400;
  letter-spacing: .07em;
}

.section-index,
.tech-label {
  text-transform: uppercase;
}

.section-index {
  color: var(--rdev-text-soft);
  margin-bottom: 28px;
}

.section-index::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--rdev-accent), var(--rdev-accent-2));
  box-shadow: 0 0 14px rgba(105, 239, 208, .18);
}

.tech-label {
  color: var(--rdev-text-soft);
}

.text-soft {
  color: var(--rdev-text-soft);
}

.accent {
  color: var(--rdev-accent);
}

.mobile-only {
  display: none !important;
}

/* 04 — Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 52px;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--rdev-line);
  overflow: clip;
}

.section-heading {
  margin-bottom: 58px;
  position: relative;
  z-index: 2;
}

.section-heading>h2 {
  max-width: 1100px;
}

.heading-copy {
  max-width: 720px;
  margin-top: 30px;
  margin-bottom: 0;
}

.row {
  --bs-gutter-x: 3rem;
}

.row>* {
  min-width: 0;
}

.surface-light {
  --rdev-text: #f3f7fb;
  --rdev-text-soft: #b7c5d2;
  --rdev-line: rgba(190, 211, 230, .12);
  --rdev-line-strong: rgba(190, 211, 230, .25);
  color: var(--rdev-text);

}

.surface-paper {
  --rdev-text: #f3f1ed;
  --rdev-text-soft: #c6c0b8;
  --rdev-line: rgba(224, 215, 202, .12);
  --rdev-line-strong: rgba(224, 215, 202, .24);
  color: var(--rdev-text);

}

.surface-light p,
.surface-paper p {
  color: var(--rdev-text-soft);
}

.surface-light strong,
.surface-paper strong {
  color: var(--rdev-text);
}

.surface-light .text-soft,
.surface-paper .text-soft {
  color: var(--rdev-text-soft);
}

.surface-light .section-index,
.surface-light .tech-label,
.surface-paper .section-index,
.surface-paper .tech-label {
  color: var(--rdev-text-muted);
}

/* 05 — Utilities */
.grid-background {
  isolation: isolate;
}

.grid-background::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 202, 231, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 202, 231, .07) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .6;
  mask-image: linear-gradient(112deg, transparent 22%, #000 54%, transparent 96%);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rdev-accent);
  box-shadow: 0 0 0 5px rgba(105, 239, 208, .07), 0 0 18px var(--rdev-accent-glow);
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  padding: 12px 20px;
  background: var(--rdev-accent);
  color: var(--rdev-bg);
  z-index: 100;
  transform: translateY(-150%);
}

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

/* 06 — Navigation */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}

.js .site-header {
  position: fixed;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(6, 15, 23, .82);
  border-bottom-color: rgba(190, 211, 230, .12);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.085em;
  color: var(--rdev-text);
  white-space: nowrap;
}

.brand span {
  color: var(--rdev-accent);
  margin-inline: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: .82rem;
  color: var(--rdev-text-soft);
}

.nav-links>a {
  position: relative;
  padding-block: 12px;
}

.nav-links>a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--rdev-accent), var(--rdev-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav-links>a:hover::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--rdev-text);
  border: 1px solid var(--rdev-line-strong);
  border-radius: 999px;
  padding: 10px 17px;
  background: rgba(255, 255, 255, .025);
}

.nav-cta:hover {
  border-color: rgba(105, 239, 208, .45);
  background: var(--rdev-accent-soft);
}

.menu-toggle {
  background: none;
  border: 0;
  padding: 10px 0;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
}

.menu-lines {
  width: 22px;
  height: 12px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: transform .25s;
}

.menu-open .menu-lines {
  transform: rotate(-45deg);
}

.menu-toggle {
  display: none;
}

/* 07 — Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(circle at 78% 34%, rgba(120, 185, 255, .11), transparent 21%),
    radial-gradient(circle at 89% 67%, rgba(105, 239, 208, .08), transparent 25%),
    linear-gradient(145deg, #0c1b28 0%, #07121c 48%, #061018 100%);
}

.hero::after {
  content: '';
  position: absolute;
  width: min(48vw, 700px);
  aspect-ratio: 1;
  right: -16vw;
  top: 10vh;
  border: 1px solid rgba(120, 185, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(120, 185, 255, .025), 0 0 0 170px rgba(105, 239, 208, .018);
  pointer-events: none;
}

.hero-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 150px;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .025em;
  margin-bottom: 38px;
}

.hero h1 {
  max-width: 1150px;
  letter-spacing: -.062em;
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, var(--rdev-accent) 0 48%, var(--rdev-text) 58% 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
}

.motion .hero h1 em {
  animation: textFill 1.2s var(--ease-out) .55s forwards;
}

.hero-lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-top: 42px;
}

.hero-lower>p {
  max-width: 715px;
  margin: 0;
}

.scroll-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.scroll-link>svg {
  width: 48px;
  height: 48px;
  padding: 13px;
  border: 1px solid var(--rdev-line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
  transition: transform .25s, border-color .25s, background .25s;
}

.scroll-link:hover>svg {
  transform: translateY(4px);
  border-color: var(--rdev-accent);
  background: var(--rdev-accent-soft);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rdev-line);
  padding-top: 22px;
  margin-top: 60px;
  font-size: .64rem;
  letter-spacing: .12em;
}

/* 08 — Shared components */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.capability {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 22px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--rdev-line);
  transition: transform .3s var(--ease), background .3s var(--ease), padding .3s var(--ease);
}

.capability::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--rdev-accent), var(--rdev-accent-2), transparent 72%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .65s var(--ease-out);
}

.capability.is-visible::before,
.capability:hover::before {
  transform: scaleX(1);
}

.capability-number {
  color: var(--rdev-text-soft);
  padding-top: 4px;
  transition: color .25s, transform .25s;
}

.capability h3 {
  margin-bottom: 13px;
}

.capability p {
  max-width: 500px;
  margin-bottom: 0;
  font-size: .98rem;
}

.capability:hover {
  transform: translateY(-3px);
}

.capability:hover .capability-number {
  color: var(--rdev-accent);
  transform: translateX(3px);
}

.capability h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.capability h3 svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--rdev-accent);
  stroke-width: 1.7;
}

.expandable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rdev-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  padding: 8px 14px;
  font-size: .78rem;
  color: var(--rdev-accent);
  min-height: 40px;
  transition: background .25s, border-color .25s, transform .25s;
}

.expandable-toggle:hover {
  background: var(--rdev-accent-soft);
  border-color: rgba(105, 239, 208, .38);
  transform: translateY(-1px);
}

.expandable-toggle span {
  display: inline-block;
  transition: transform .25s;
}

.expandable.is-open .expandable-toggle span {
  transform: translateY(-1px);
}

.expandable-content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .5s var(--ease), visibility .5s, opacity .35s;
}

.expandable-content>div {
  overflow: hidden;
  min-height: 0;
}

.expandable-content p:first-child {
  margin-top: 20px;
}

.expandable-content p:last-child {
  margin-bottom: 0;
}

.expandable.is-enhanced:not(.is-open) .expandable-content {
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tech-chip {
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .015em;
  color: var(--rdev-text-soft);
  border: 1px solid var(--rdev-line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .02);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.tech-chip:hover {
  color: var(--rdev-accent);
  border-color: rgba(105, 239, 208, .35);
  background: var(--rdev-accent-soft);
  transform: translateY(-1px);
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-size: .8rem;
  border-bottom: 1px solid var(--rdev-line-strong);
  padding: 8px 0;
}

.external-link svg,
.contact-cta svg {
  transition: transform .25s;
}

.external-link:hover svg,
.contact-cta:hover svg {
  transform: translate(4px, -4px);
}

.security .tech-chips {
  gap: 12px;
}

.security .tech-chip {
  color: var(--rdev-accent);
  background: rgba(95, 228, 191, .08);
  border-color: rgba(95, 228, 191, .28);
  box-shadow:
    inset 0 0 0 1px rgba(95, 228, 191, .08),
    0 10px 24px rgba(95, 228, 191, .05);
}

.security .tech-chip:hover {
  background: rgba(95, 228, 191, .12);
  border-color: rgba(95, 228, 191, .42);
  color: #d9fff3;
  transform: translateY(-1px);
}

/* Archive / future image slots */
.archive-slot {
  position: relative;
  margin: 22px 0 0;
  min-height: 145px;
  border: 1px solid var(--rdev-line-strong);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(120, 185, 255, .08), rgba(105, 239, 208, .035)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(190, 211, 230, .045) 24px),
    rgba(8, 18, 27, .58);
}

.archive-slot::after {
  content: '';
  position: absolute;
  inset: -30% 0 auto;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(105, 239, 208, .08), transparent);
  transform: translateY(-150%);
  pointer-events: none;
}

.motion .archive-slot.is-visible::after {
  animation: archiveScan 2.3s var(--ease-out) .25s 1;
}

.archive-slot__body {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
}

.archive-slot__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--rdev-text-soft);
}

.archive-slot__placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.archive-slot__placeholder svg {
  width: 26px;
  height: 26px;
  color: var(--rdev-accent);
}

.archive-slot__placeholder span {
  max-width: 230px;
  font-size: .78rem;
  color: var(--rdev-text-muted);
  text-align: right;
}

.archive-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 09 — Case study */

.feature-story>.section-lead {
  color: var(--rdev-text);
  font-size: clamp(1.18rem, 1.75vw, 1.5rem);
  line-height: 1.52;
  letter-spacing: -.018em;
}

.architecture {
  border: 1px solid rgba(120, 185, 255, .22);
  background:
    linear-gradient(180deg, rgba(22, 40, 56, .95), rgba(10, 20, 30, .98));
  padding: 28px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 26px 66px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.architecture:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 239, 208, .32);
  box-shadow: 0 30px 74px rgba(0, 0, 0, .34), 0 0 42px rgba(105, 239, 208, .045);
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .65rem;
  border-bottom: 1px solid var(--rdev-line);
  padding-bottom: 20px;
}

.dossier-head span:first-child {
  color: var(--rdev-accent);
}

.architecture-flow {
  padding: 26px 0 26px 15px;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: .79rem;
}

.architecture-flow>span {
  position: relative;
  padding: 12px 0 23px 27px;
  border-left: 1px solid rgba(105, 239, 208, .27);
}

.architecture-flow>span::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rdev-accent);
  left: -4px;
  top: 18px;
  box-shadow: 0 0 12px rgba(105, 239, 208, .35);
}

.architecture-flow>span:last-child {
  padding-bottom: 0;
}

.architecture-flow small {
  display: block;
  font-size: .65rem;
  color: var(--rdev-text-soft);
  margin-top: 6px;
}

.dossier-foot {
  font-size: .62rem;
  border-top: 1px solid var(--rdev-line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rdev-line-strong);
  border-radius: 18px;
  margin-top: 62px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 34, 48, .72), rgba(9, 18, 27, .72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.metric {
  position: relative;
  min-height: 138px;
  padding: 28px 24px;
  border-right: 1px solid var(--rdev-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  overflow: hidden;
}

.metric::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--rdev-accent), var(--rdev-accent-2));
  transform: scaleX(0);
  transform-origin: left;
}

.metrics.is-visible .metric::before {
  animation: lineGrow .7s var(--ease-out) forwards;
}

.metrics.is-visible .metric:nth-child(2)::before {
  animation-delay: .18s;
}

.metrics.is-visible .metric:nth-child(3)::before {
  animation-delay: .36s;
}

.metrics.is-visible .metric:nth-child(4)::before {
  animation-delay: .54s;
}

.metric:last-child {
  border: 0;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(2.25rem, 3.55vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.062em;
  color: var(--rdev-accent);
  white-space: nowrap;
  font-weight: 520;
}

.metric-number {
  font: inherit;
  color: inherit;
}

.metric-unit {
  font-size: .48em;
  letter-spacing: -.02em;
  color: var(--rdev-accent-3);
}

.metric-prefix {
  font: 500 .38em var(--mono);
  letter-spacing: .04em;
  color: var(--rdev-accent-3);
  margin-right: 2px;
}

.metric-label {
  font-size: .74rem;
  letter-spacing: 0;
  color: var(--rdev-text);
  opacity: .82;
  line-height: 1.35;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 96px;
  gap: 50px 42px;
}

.case-block {
  position: relative;
  border: 1px solid var(--rdev-line);
  border-radius: 18px;
  padding: 28px 28px 30px;
  background: linear-gradient(180deg, rgba(17, 31, 44, .63), rgba(8, 17, 26, .4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.case-block::after {
  content: '';
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rdev-accent), var(--rdev-accent-2), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.case-block:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 185, 255, .28);
  background: linear-gradient(180deg, rgba(24, 43, 59, .74), rgba(9, 19, 28, .55));
  box-shadow: 0 22px 56px rgba(0, 0, 0, .18);
}

.case-block:hover::after {
  opacity: .8;
}

.case-block>.tech-label {
  font-size: .68rem;
  margin-bottom: 28px;
}

.case-block h3 {
  font-size: clamp(1.7rem, 2.55vw, 2.5rem);
  margin-bottom: 22px;
}

.case-block p {
  font-size: .98rem;
}

.transmission {
  grid-column: span 7;
}

.robotics-case {
  grid-column: span 5;
}

.integrations {
  grid-column: span 5;
}

.payments {
  grid-column: span 7;
  background: linear-gradient(145deg, rgba(120, 185, 255, .08), rgba(105, 239, 208, .025)), rgba(13, 25, 37, .9);
  border-color: rgba(120, 185, 255, .18);
}

.case-block .bandwidth {
  color: var(--rdev-accent);
  font-size: clamp(2.2rem, 3.75vw, 3.75rem);
  letter-spacing: -.06em;
}

.bandwidth span {
  color: var(--rdev-accent-2);
  font-weight: 400;
}

.bandwidth small {
  font: 400 .7rem var(--mono);
  letter-spacing: 0;
}

.case-block .case-statement {
  color: var(--rdev-text);
  font-size: 1.1rem;
  letter-spacing: -.02em;
  line-height: 1.5;
}

.operation-list {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.operation-list li {
  font-size: .82rem;
  color: var(--rdev-text-soft);
  border-left: 2px solid rgba(105, 239, 208, .35);
  padding: 6px 0 6px 10px;
}

/* 10 — Security / history / engineering / community */

.security .tech-chips {
  gap: 10px;
}

.security-quote {
  margin: 74px 0 0;
  max-width: 980px;
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  color: var(--rdev-text);
  padding-left: 28px;
  border-left: 2px solid var(--rdev-accent);
}

.security-quote span {
  color: var(--rdev-accent);
}

.timeline {
  --timeline-progress: 0;
  position: relative;
  max-width: 1040px;
  margin-left: 5%;
}

.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  left: 206px;
  top: 4px;
  bottom: 0;
  width: 1px;
}

.timeline::before {
  background: var(--rdev-line-strong);
}

.timeline::after {
  background: linear-gradient(var(--rdev-accent), var(--rdev-accent-2));
  transform: scaleY(var(--timeline-progress));
  transform-origin: top;
  box-shadow: 0 0 12px rgba(105, 239, 208, .16);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 206px 1fr;
  gap: 44px;
  padding-bottom: 48px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 202px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--rdev-text-muted);
  background: var(--rdev-bg);
  z-index: 1;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s;
}

.timeline-item.passed::before {
  background: var(--rdev-accent);
  border-color: var(--rdev-accent);
  box-shadow: 0 0 0 6px rgba(105, 239, 208, .07), 0 0 16px rgba(105, 239, 208, .26);
  transform: scale(1.05);
}

.timeline-year {
  font-size: .92rem;
  letter-spacing: -.02em;
  color: var(--rdev-accent);
  padding-top: 1px;
}

.timeline-item p {
  max-width: 660px;
  margin-bottom: 0;
}

.timeline-item h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-item h3 svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--rdev-accent);
  stroke-width: 1.7;
  opacity: .95;
  transition:
    color .25s var(--ease),
    transform .25s var(--ease),
    filter .25s var(--ease);
}

.timeline-item:hover h3 svg {
  transform: translateY(-1px);
  color: var(--rdev-accent-3);
  filter: drop-shadow(0 0 8px rgba(105, 239, 208, .18));
}

.mentorship {
  border: 1px solid rgba(120, 185, 255, .18);
  margin-top: 66px;
  padding: 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(120, 185, 255, .11), transparent 28%),
    linear-gradient(120deg, rgba(105, 239, 208, .045), transparent 54%),
    linear-gradient(180deg, rgba(18, 33, 47, .96), rgba(9, 18, 28, .98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.mentor-heading {
  margin-bottom: 46px;
}

.mentor-heading h2 {
  max-width: 760px;
}

.mentor-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 66px;
}

.progression {
  padding: 0;
  list-style: none;
  color: var(--rdev-text);
}

.progression li {
  padding-bottom: 28px;
  position: relative;
}

.progression li:not(:last-child)::after {
  content: '↓';
  display: block;
  position: absolute;
  bottom: 2px;
  color: var(--rdev-accent);
}

.progression li:last-child {
  color: var(--rdev-accent);
  padding: 0;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 24px;
}

.discipline-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  gap: 34px;
  margin: 0 0 58px;
}

.discipline-path li {
  padding: 24px 24px 28px;
  border: 1px solid rgba(11, 23, 34, .12);
  border-radius: 16px;
  position: relative;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 10px 30px rgba(21, 43, 61, .045);
}

.discipline-path li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -23px;
  top: 50%;
  color: #2cae92;
}

.discipline-path .tech-label {
  display: block;
  margin-bottom: 18px;
  color: #258f79;
}

.discipline-path h3 {
  font-size: 1.55rem;
  color: var(--rdev-text);
}

.engineering-copy {
  padding-top: 32px;
  border-top: 1px solid rgba(11, 23, 34, .13);
}

.degree {
  font-size: 1.4rem;
  letter-spacing: -.035em;
  color: var(--rdev-text);
  line-height: 1.4;
}

.network-map {
  padding: 28px 26px 32px;
  background: linear-gradient(180deg, rgba(18, 35, 49, .96), rgba(8, 18, 27, .98));
  border: 1px solid rgba(105, 239, 208, .17);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.network-leaves {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  font-size: .59rem;
}

.network-leaves span {
  position: relative;
  padding: 12px 0 32px;
  border-bottom: 1px solid var(--rdev-line-strong);
  transition: color .2s;
}

.network-leaves span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 19px;
  width: 1px;
  background: linear-gradient(var(--rdev-line-strong), var(--rdev-accent));
}

.network-leaves span:hover {
  color: var(--rdev-accent);
}

.network-hub {
  padding: 40px 0;
  font-size: .67rem;
  position: relative;
}

.network-hub::before,
.network-hub::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 27px;
  background: linear-gradient(var(--rdev-accent), var(--rdev-accent-2));
}

.network-hub::before {
  top: 0;
}

.network-hub::after {
  bottom: 0;
}

.network-map>strong {
  display: block;
  font-weight: 520;
  font-size: clamp(3rem, 5.2vw, 4.6rem);
  letter-spacing: -.055em;
  color: var(--rdev-accent);
}

.network-node {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--rdev-accent);
  border-radius: 50%;
  margin: 0 0 10px 12px;
  transition: box-shadow .3s, transform .3s;
}

.network-map:hover .network-node {
  box-shadow: 0 0 0 8px var(--rdev-accent-soft), 0 0 22px rgba(105, 239, 208, .22);
  transform: scale(1.1);
}

.network-map>p {
  font-size: .65rem;
  margin: 10px 0 0;
}

.human h2 {
  max-width: 1040px;
  color: var(--rdev-text);
}

.human-copy {
  max-width: 740px;
  margin-left: auto;
}

.human-copy .section-lead {
  color: #ded8cf;
}

.human-copy .external-link {
  margin-top: 17px;
  color: #aee8da;
  border-color: rgba(174, 232, 218, .24);
}

.footer {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 35px;
  border-top: 1px solid var(--rdev-line);
}

.footer>p {
  font-size: .72rem;
  margin: 0 auto 0 0;
}

.footer .tech-label {
  font-size: .65rem;
  white-space: nowrap;
}

/* 11 — Motion */
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(4px);
  }

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

@keyframes textFill {
  to {
    background-position: 0 0;
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes archiveScan {
  0% {
    transform: translateY(-180%);
  }

  100% {
    transform: translateY(520%);
  }
}

@keyframes pulseSoft {

  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(105, 239, 208, .06), 0 0 14px rgba(105, 239, 208, .12);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(105, 239, 208, .025), 0 0 24px rgba(105, 239, 208, .24);
  }
}

.motion .hero-kicker,
.motion .hero h1,
.motion .hero-lower,
.motion .hero-foot {
  animation: enter .82s var(--ease-out) both;
}

.motion .hero h1 {
  animation-delay: 90ms;
}

.motion .hero-lower {
  animation-delay: 190ms;
}

.motion .hero-foot {
  animation-delay: 300ms;
}

.motion .status-dot {
  animation: pulseSoft 2.8s ease-in-out infinite;
}

.motion .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.motion .reveal.is-visible {
  animation: enter .72s var(--ease-out) both;
}

.motion .capabilities-grid .capability:nth-child(2).is-visible,
.motion .cases-grid .case-block:nth-child(2).is-visible {
  animation-delay: 70ms;
}

.motion .capabilities-grid .capability:nth-child(3).is-visible,
.motion .cases-grid .case-block:nth-child(3).is-visible {
  animation-delay: 120ms;
}

.motion .capabilities-grid .capability:nth-child(4).is-visible,
.motion .cases-grid .case-block:nth-child(4).is-visible {
  animation-delay: 170ms;
}

.motion .capabilities-grid .capability:nth-child(5).is-visible {
  animation-delay: 220ms;
}

.motion .capabilities-grid .capability:nth-child(6).is-visible {
  animation-delay: 270ms;
}

/* 12 — Responsive */
@media (min-width: 1600px) {
  .hero-inner {
    padding-top: 175px;
    padding-bottom: 38px;
  }

  .hero-foot {
    margin-top: 72px;
  }
}

@media (max-width: 1199px) {
  .container {
    padding-inline: 40px;
  }

  .nav-links {
    gap: 24px;
  }

  .timeline {
    margin-left: 0;
  }

  .cases-grid {
    gap: 38px 30px;
  }

  .footer {
    gap: 24px;
  }

  .back-top {
    display: none;
  }
}

@media (max-width: 991px) {
  .container {
    padding-inline: 30px;
  }

  :root {
    --section-space: 106px;
  }

  .hero-inner {
    padding-top: 138px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7.4vw, 5.1rem);
  }

  .hero-lower {
    gap: 24px;
  }

  .scroll-link .tech-label {
    display: none;
  }

  .capabilities-grid {
    column-gap: 34px;
  }

  .capability {
    gap: 15px;
  }

  .feature-grid {
    --bs-gutter-y: 2.75rem;
  }

  .architecture-flow {
    flex-direction: row;
    justify-content: space-between;
    padding: 26px 0;
  }

  .architecture-flow>span {
    font-size: .64rem;
    padding: 12px 14px;
    border-left: 1px solid rgba(105, 239, 208, .25);
  }

  .architecture-flow small {
    font-size: .54rem;
  }

  .architecture-flow>span::before {
    top: 17px;
  }

  .metric {
    padding-inline: 17px;
  }

  .metrics {
    margin-top: 42px;
  }

  .metric-value {
    font-size: 2.35rem;
  }

  .cases-grid {
    margin-top: 72px;
  }

  .discipline-path {
    gap: 22px;
  }

  .discipline-path h3 {
    font-size: 1.25rem;
  }

  .discipline-path li:not(:last-child)::after {
    right: -16px;
  }

  .human-copy {
    margin-left: 15%;
  }

  .footer>p {
    max-width: 350px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-space: 88px;
  }

  .container {
    padding-inline: 22px;
  }

  .nav-shell {
    min-height: 74px;
    gap: 16px;
  }

  .brand {
    font-size: 1.35rem;
  }

  .js .menu-toggle {
    display: flex;
  }

  .nav-links {
    gap: 10px;
    font-size: .68rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links .nav-cta {
    padding: 7px 9px;
    gap: 5px;
  }

  .js .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 24px 22px 32px;
    background: rgba(6, 15, 23, .97);
    border-bottom: 1px solid var(--rdev-line-strong);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    font-size: 1.55rem;
  }

  .js .menu-open .nav-links {
    display: flex;
  }

  .js .nav-links .nav-cta {
    border: 0;
    border-radius: 0;
    padding: 12px 0;
    justify-content: space-between;
    color: var(--rdev-accent);
    background: none;
  }

  .hero-inner {
    padding-top: 122px;
    padding-bottom: 24px;
  }

  .hero-kicker {
    font-size: .64rem;
    gap: 9px;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 10vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -.06em;
    text-wrap: initial;
  }

  .hero-lower {
    margin-top: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

  .hero-lower>.section-lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .scroll-link .tech-label {
    display: block;
    font-size: .62rem;
  }

  .scroll-link>svg {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .hero-foot {
    margin-top: 30px;
    font-size: .52rem;
    gap: 15px;
    padding-top: 18px;
  }

  .hero-foot span:first-child {
    max-width: 210px;
  }

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

  .section-index {
    font-size: .67rem;
    letter-spacing: .045em;
    margin-bottom: 22px;
  }

  h2 {
    font-size: clamp(2rem, 7.7vw, 3.25rem);
    line-height: 1.1;
  }

  .heading-copy {
    margin-top: 24px;
  }

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

  .capability {
    padding: 26px 0;
    gap: 16px;
    grid-template-columns: 28px 1fr;
  }

  .capability h3 {
    font-size: 1.3rem;
  }

  .capability p {
    font-size: .96rem;
  }

  .architecture {
    padding: 22px;
    border-radius: 16px;
  }

  .architecture-flow {
    flex-direction: column;
    padding: 20px 0 20px 10px;
  }

  .architecture-flow>span {
    font-size: .72rem;
    padding: 11px 0 20px 21px;
  }

  .architecture-flow small {
    font-size: .59rem;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }

  .metric {
    min-height: 124px;
    padding: 22px 18px;
    border-bottom: 1px solid var(--rdev-line);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(n+3) {
    border-bottom: 0;
  }

  .metric-value {
    font-size: clamp(2rem, 7.6vw, 2.75rem);
  }

  .metric-label {
    font-size: .7rem;
  }

  .cases-grid {
    display: flex;
    flex-direction: column;
    margin-top: 62px;
    gap: 24px;
  }

  .case-block {
    padding: 24px 22px 26px;
    border-radius: 15px;
  }

  .case-block>.tech-label {
    margin-bottom: 24px;
  }

  .case-block h3 {
    font-size: 1.75rem;
  }

  .case-block .bandwidth {
    font-size: clamp(2.1rem, 8vw, 3.25rem);
  }

  .security-quote {
    margin-top: 44px;
    font-size: 1.85rem;
    padding-left: 18px;
  }

  .timeline::before,
  .timeline::after {
    left: 4px;
  }

  .timeline-item {
    display: block;
    padding-left: 32px;
    padding-bottom: 40px;
  }

  .timeline-item::before {
    left: 0;
    top: 8px;
  }

  .timeline-year {
    display: block;
    font-size: .83rem;
    margin-bottom: 14px;
  }

  .timeline-item h3 {
    font-size: 1.35rem;
  }

  .timeline-item p {
    font-size: .98rem;
  }

  .progression {
    margin: 0;
  }

  .source-links {
    gap: 10px;
  }

  .discipline-path {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
  }

  .discipline-path li {
    padding: 20px 20px 24px;
  }

  .discipline-path li:not(:last-child)::after {
    content: '↓';
    top: auto;
    bottom: -17px;
    right: auto;
    left: 20px;
  }

  .discipline-path h3 {
    font-size: 1.45rem;
  }

  .discipline-path h3 br {
    display: none;
  }

  .discipline-path .tech-label {
    font-size: .65rem;
    margin-bottom: 10px;
  }

  .network-map {
    padding: 22px 14px 26px;
    border-radius: 16px;
  }

  .network-leaves {
    font-size: .5rem;
    gap: 5px;
  }

  .archive-slot {
    min-height: 132px;
  }

  .archive-slot__placeholder span {
    max-width: 190px;
    font-size: .7rem;
  }

  .human-copy {
    margin-left: 0;
  }

  .human h2 br {
    display: none;
  }

  .contact-cta {
    font-size: 1.2rem;
    border-radius: 13px;
  }

  .footer {
    padding-block: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .footer>p {
    grid-row: 2;
    grid-column: 1 / -1;
    max-width: 280px;
    font-size: .7rem;
  }

  .footer>.tech-label {
    grid-column: 2;
    grid-row: 1;
  }

  .footer .back-top {
    display: none;
  }

  .row {
    --bs-gutter-x: 2rem;
  }
}

@media (max-width: 430px) {
  .human h2 {
    font-size: clamp(2rem, 8.9vw, 2.4rem);
  }

  .metric {
    padding-inline: 14px;
  }
}



/* 12b — Refinements v3 */
.reveal.is-visible {
  animation-delay: var(--reveal-delay, 0ms);
}

.case-study::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 202, 231, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 202, 231, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 95%);
  opacity: .55;
}

.feature-grid>* {
  position: relative;
  z-index: 1;
}

.metrics {
  gap: 0;
}

.metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
}

.metric:nth-child(1) {
  border-top: 1px solid rgba(105, 239, 208, .28);
}

.metric:nth-child(2) {
  border-top: 1px solid rgba(120, 185, 255, .28);
}

.metric:nth-child(3) {
  border-top: 1px solid rgba(105, 239, 208, .22);
}

.metric:nth-child(4) {
  border-top: 1px solid rgba(120, 185, 255, .22);
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, .12);
}

.metric-time .metric-unit,
.metric-money .metric-unit {
  font-size: .38em;
  margin-left: 7px;
  letter-spacing: .03em;
}

.metric-money .metric-value {
  letter-spacing: -.05em;
}

.metric-money .metric-number {
  color: var(--rdev-accent-3);
}

.metric-money .metric-unit {
  color: var(--rdev-accent-2);
}

.metric-label {
  max-width: 16ch;
}

.transmission {
  border-color: rgba(120, 185, 255, .18);
}

.robotics-case {
  border-color: rgba(105, 239, 208, .17);
}

.integrations {
  border-color: rgba(91, 220, 180, .18);
}

.payments {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(145deg, rgba(120, 185, 255, .09), rgba(105, 239, 208, .04)), rgba(13, 25, 37, .96);
}

.payments-copy {
  max-width: 40ch;
  margin-bottom: 18px;
}

.payments .tech-chips {
  margin-bottom: 20px;
}

.payments .expandable {
  margin-top: auto;
  padding-top: 14px;
}

.payments .expandable-toggle {
  margin-top: 2px;
}

.case-block .expandable {
  margin-top: 18px;
}

.security-quote {
  max-width: none;
  width: min(100%, 1120px);
  margin-top: 82px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.06;
  padding-left: 0;
  border-left: 0;
}

.security .quote-readable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.motion .security .quote-reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.motion .security .quote-letter {
  opacity: 0;
}

.motion .security .quote-letter.is-typed {
  opacity: 1;
}

.timeline {
  max-width: 1120px;
  margin-left: 0;
}

.timeline-item {
  grid-template-columns: 168px 1fr;
  gap: 38px;
}

.timeline::before,
.timeline::after {
  left: 168px;
}

.timeline-item::before {
  left: 164px;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--rdev-accent-3);
}

.mentorship {
  margin-top: 82px;
}

.mentor-body {
  grid-template-columns: minmax(280px, .88fr) 1.4fr;
  align-items: center;
}

.surface-light {}

.surface-paper {}

.community .archive-slot,
.case-study .archive-slot {
  background: rgba(8, 16, 25, .52);
}

@media (max-width: 991px) {
  .timeline {
    margin-left: 0;
  }

  .timeline-item {
    grid-template-columns: 132px 1fr;
    gap: 28px;
  }

  .timeline::before,
  .timeline::after {
    left: 132px;
  }

  .timeline-item::before {
    left: 128px;
  }
}

@media (max-width: 767px) {

  .metric-money .metric-unit,
  .metric-time .metric-unit {
    margin-left: 4px;
  }

  .security-quote {
    margin-top: 52px;
    font-size: 1.95rem;
  }
}


/* Atmospheric layers — isolated from text and interaction */
.section {
  isolation: isolate;
}

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

.surface-soft {
  background: radial-gradient(ellipse at 12% 36%, rgba(150, 182, 202, .045), transparent 65%), #0d1925;
}

.case-study {
  background: #07111a;
}

.case-study::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(170, 192, 209, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 192, 209, .08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 75% 20%, #000, transparent 68%);
  opacity: .45;
}

.architecture {
  position: relative;
  isolation: isolate;
}

.architecture::before {
  content: '';
  position: absolute;
  inset: -80px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(128, 183, 190, .13), transparent 66%);
  filter: blur(25px);
}

.security {
  background:
    radial-gradient(circle at 50% 78%, rgba(120, 185, 255, .08), transparent 24%),
    linear-gradient(180deg, #08131d 0%, #07111a 100%);
  overflow: hidden;
}

.security::before,
.security::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-repeat: repeat;
}

/* capa principal */
.security::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='278' viewBox='0 0 320 278'%3E%3Cg fill='none' stroke='%2378b9ff' stroke-width='1.05' stroke-opacity='0.42'%3E%3Cpath d='M80 1L240 1L319 139L240 277L80 277L1 139Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 278px;
  background-position: 0 0;
  opacity: .13;
}

.security::after {
  background-image: none;
  background:
    radial-gradient(circle at 50% 72%, rgba(120, 185, 255, .12), transparent 22%),
    radial-gradient(circle at 58% 78%, rgba(95, 228, 191, .06), transparent 18%);
  opacity: .85;
  filter: blur(28px);
}

.security-quote {
  position: relative;
  isolation: isolate;
}

.security-quote::before {
  content: '';
  position: absolute;
  inset: -70px -20px;
  z-index: -1;
  pointer-events: none;

  background: radial-gradient(ellipse at 55% 50%,
      rgba(123, 166, 212, .055),
      transparent 72%);

  filter: blur(34px);
  opacity: .55;
}

#historia {
  background: #07121b;
}

.timeline-item>div {
  padding: 6px 0 0;
}

.timeline::after {
  box-shadow: 0 0 10px rgba(145, 212, 215, .23);
}

.timeline-item.passed::before {
  box-shadow: 0 0 0 4px rgba(145, 212, 215, .04), 0 0 14px rgba(145, 212, 215, .2);
}

.mentorship {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.mentor-visual {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mentor-visual::before,
.mentor-visual::after {
  content: none;
}

.mentor-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mentor-visual__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: scale(1.08);
  filter: drop-shadow(0 0 22px rgba(105, 239, 208, .10));
}

.mentor-stages {
  font-size: .7rem;
  line-height: 2;
  text-wrap: balance;
}

.surface-light {
  background:
    radial-gradient(ellipse at 94% 25%, rgba(82, 143, 179, .10), transparent 55%),
    radial-gradient(ellipse at 0% 85%, rgba(65, 132, 126, .07), transparent 52%),
    #0a1722;
}

.community {
  background: #08141e;
}

.network-map {
  position: relative;
  isolation: isolate;
}

.network-map::before {
  content: '';
  position: absolute;
  inset: 12% -12% -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 65%, rgba(142, 195, 190, .13), transparent 63%);
  filter: blur(18px);
}

.human {
  background:
    radial-gradient(ellipse at 78% 32%, rgba(135, 112, 91, .075), transparent 52%),
    #111718;
}

.human::before {
  content: '';
  position: absolute;
  width: min(1050px, 110vw);
  aspect-ratio: 1;
  left: -48%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 46% 54% 59% 41%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse, transparent 25%, rgba(140, 166, 159, .11) 48%, rgba(160, 181, 173, .055) 61%, transparent 73%);
  filter: blur(38px);
}

.contact {
  background: radial-gradient(ellipse at 86% 58%, rgba(141, 185, 191, .065), transparent 62%), #08141e;
}

.contact::after {
  content: '';
  position: absolute;
  width: min(70vw, 850px);
  aspect-ratio: 1;
  right: -30%;
  top: 8%;
  border: 1px solid rgba(145, 186, 205, .12);
  border-radius: 50%;
  mask-image: linear-gradient(150deg, #000, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 991px) and (min-width: 768px) {
  .timeline-item {
    grid-template-columns: 132px 1fr;
  }

  .timeline::before,
  .timeline::after {
    left: 132px;
  }

  .timeline-item::before {
    left: 128px;
  }
}

@media (max-width: 767px) {
  .security::before {
    background-size: 220px 191px;
    opacity: .14;
  }

  .security::after {
    background-size: 320px 277px;
    background-position: 80px 40px;
    opacity: .08;
  }

  .timeline::before,
  .timeline::after {
    left: 4px;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-item>div {
    padding: 0;
  }

  .human::before {
    left: -65%;
    width: 130vw;
    filter: blur(24px);
  }

  .contact::after {
    width: 100vw;
    right: -65%;
  }
}



/* ==========================================================
   14 — Final polish / composition pass
   ========================================================== */

/* Sequenced content: each capability is allowed to breathe in separately. */
@keyframes capabilityIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.992);
    filter: blur(3px);
  }

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

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.985);
  }

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

@keyframes archiveIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.motion .capability.reveal.is-visible {
  animation: capabilityIn .68s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.capability {
  border-radius: 12px;
  padding-inline: 0;
}

.capability:hover {
  padding-inline: 14px;
  background: rgba(120, 185, 255, .035);
}

.capability h3 {
  transition: color .28s var(--ease);
}

.capability:hover h3 {
  color: #ffffff;
}

/* 05 / Ingeniería — stronger composition, blue surfaces + mint accent. */
.engineering {
  background:
    radial-gradient(ellipse at 93% 24%, rgba(91, 177, 207, .10), transparent 52%),
    radial-gradient(ellipse at 8% 82%, rgba(72, 151, 139, .06), transparent 48%),
    #0a1722;
}

.engineering-title-accent {
  color: var(--rdev-accent);
  position: relative;
  white-space: nowrap;
}

.engineering-title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.09em;
  height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg, #35bea3, #58a9d6);
  transform: scaleX(.18);
  transform-origin: left;
  opacity: .7;
  transition: transform .8s var(--ease-out);
}

.engineering .section-heading.is-visible .engineering-title-accent::after {
  transform: scaleX(1);
}

.engineering .discipline-path {
  gap: 22px;
  margin-bottom: 34px;
}

.engineering .discipline-path li {
  min-height: 176px;
  padding: 28px 28px 30px;
  border: 1px solid rgba(101, 194, 204, .22);
  border-radius: 18px;
  background: #153047;
  box-shadow: 0 15px 34px rgba(28, 55, 74, .09), inset 0 1px 0 rgba(255, 255, 255, .035);
  overflow: hidden;
  transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease), background .32s var(--ease);
}

.engineering .discipline-path li:nth-child(2) {
  background: #17344d;
}

.engineering .discipline-path li:nth-child(3) {
  background: #18384f;
}

.engineering .discipline-path li::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -74px;
  bottom: -88px;
  border-radius: 50%;
  border: 1px solid rgba(105, 239, 208, .14);
  box-shadow: 0 0 0 28px rgba(105, 239, 208, .025);
  pointer-events: none;
}

.engineering .discipline-path li:hover {
  transform: translateY(-5px);
  border-color: rgba(105, 239, 208, .42);
  background: #183a53;
  box-shadow: 0 22px 42px rgba(28, 55, 74, .14), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.engineering .discipline-path .tech-label {
  color: var(--rdev-accent);
  margin-bottom: 28px;
}

.engineering .discipline-path h3 {
  color: #f6fbff;
  font-size: clamp(1.45rem, 1.8vw, 1.75rem);
}

.engineering .discipline-path li:not(:last-child)::after {
  color: #1fa88e;
  right: -17px;
  font-size: 1.2rem;
  z-index: 3;
}

.motion .engineering .discipline-path li.reveal.is-visible {
  animation: panelIn .68s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.engineering-summary {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) 1.35fr;
  gap: 0;
  border: 1px solid rgba(105, 181, 195, .18);
  border-radius: 22px;
  background: rgba(13, 30, 43, .82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
  overflow: hidden;
}

.achievement-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 34px 36px;
  background: rgba(40, 101, 119, .10);
  border-right: 1px solid rgba(105, 181, 195, .15);
}

.achievement-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rdev-accent);
  background: rgba(53, 190, 163, .11);
  border: 1px solid rgba(53, 190, 163, .24);
  box-shadow: 0 8px 22px rgba(27, 119, 103, .08);
}

.achievement-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.achievement-panel .tech-label {
  color: var(--rdev-accent);
  margin-bottom: 8px;
}

.achievement-panel .degree {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--rdev-text);
}

.achievement-status {
  margin: 0;
  font-size: .92rem;
  color: var(--rdev-text-muted) !important;
}

.engineering-narrative {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 40px;
}

.engineering-narrative p {
  max-width: 690px;
}

.engineering-narrative strong {
  color: var(--rdev-accent-3);
}

.engineering-emphasis {
  margin: 4px 0 0 !important;
  padding-left: 20px;
  border-left: 2px solid #35bea3;
  color: #b9cad6 !important;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.6;
}

/* Historical archive — real recovered ChileCloud material. */
.archive-gallery {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.archive-gallery__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.archive-media {
  margin: 0;
  min-width: 0;
}

.archive-media__frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(120, 185, 255, .16);
  background: #09131c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.archive-media__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
  background: linear-gradient(180deg, transparent 72%, rgba(5, 12, 18, .16));
}

.archive-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease-out), filter .45s var(--ease);
}

.archive-media--primary .archive-media__frame {
  aspect-ratio: 16 / 9;
}

.archive-gallery__secondary .archive-media__frame {
  aspect-ratio: 16 / 10;
}

.archive-media:hover img {
  transform: scale(1.025);
  filter: contrast(1.03) saturate(1.03);
}

.archive-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 9px 4px 0;
  color: var(--rdev-text-muted);
  font-size: .74rem;
}

.archive-media figcaption .tech-label {
  color: var(--rdev-accent);
  font-size: .62rem;
}

.motion .archive-media.reveal.is-visible {
  animation: archiveIn .72s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Empty archive slots remain intentional and quieter than real material. */
.archive-slot__placeholder strong {
  color: var(--rdev-accent);
  font-weight: 500;
}

.case-study .archive-slot {
  border-style: dashed;
  opacity: .82;
}

.case-study .archive-slot:hover {
  opacity: 1;
}

/* Human chapter — an atmospheric anchor without an illustration. */
.human {
  isolation: isolate;
}

.human::after {
  content: '';
  position: absolute;
  width: min(620px, 50vw);
  aspect-ratio: 1;
  right: -15%;
  top: 10%;
  border-radius: 50%;
  border: 1px solid rgba(34, 105, 108, .09);
  box-shadow: 0 0 0 70px rgba(51, 128, 119, .025), 0 0 0 145px rgba(59, 120, 135, .018);
  pointer-events: none;
  z-index: -1;
}

.human-copy {
  position: relative;
  padding: 30px 34px 30px 36px;
  border-left: 1px solid rgba(24, 105, 96, .18);
}

.human-copy::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 31px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2aa88e;
  box-shadow: 0 0 0 8px rgba(42, 168, 142, .055);
}

/* Final interaction polish. */
.section-heading .section-index::before {
  transition: width .7s var(--ease-out), opacity .7s var(--ease-out);
}

.motion .section-heading.reveal:not(.is-visible) .section-index::before {
  width: 7px;
  opacity: .25;
}

.expandable-toggle span {
  transition: transform .3s var(--ease-out);
}

.expandable-toggle:hover span {
  transform: translateY(2px);
}

.expandable.is-open .expandable-toggle:hover span {
  transform: translateY(-2px);
}

.contact-cta {
  overflow: hidden;
  position: relative;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 24%, rgba(255, 255, 255, .08) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}

.contact-cta:hover::before {
  transform: translateX(120%);
}

@media (max-width: 991px) {
  .engineering-summary {
    grid-template-columns: 1fr;
  }

  .achievement-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 56, 78, .11);
  }

  .archive-gallery__secondary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .capability:hover {
    padding-inline: 8px;
  }

  .engineering .discipline-path {
    gap: 14px;
  }

  .engineering .discipline-path li {
    min-height: auto;
    padding: 23px 22px 25px;
  }

  .engineering .discipline-path li:not(:last-child)::after {
    color: #168c78;
    left: 22px;
    right: auto;
  }

  .engineering-summary {
    border-radius: 18px;
  }

  .achievement-panel {
    padding: 26px 22px;
    gap: 16px;
  }

  .achievement-icon {
    width: 46px;
    height: 46px;
  }

  .engineering-narrative {
    padding: 26px 22px 28px;
  }

  .archive-gallery__secondary {
    grid-template-columns: 1fr;
  }

  .archive-media figcaption {
    font-size: .68rem;
  }

  .human::after {
    width: 100vw;
    right: -62%;
    top: 15%;
  }

  .human-copy {
    padding: 24px 0 24px 24px;
  }
}





/* ==========================================================
   16 — Community archive / Contact / Lightbox
   Final consolidated pass: one authoritative block per element.
   ========================================================== */

/* 06 — Community & Infrastructure */
.community .section-heading {
  margin-bottom: clamp(46px, 5vw, 70px);
}

.community .section-heading>h2 {
  max-width: 100%;
}

.community-layout {
  display: grid;
  gap: clamp(34px, 4vw, 56px);
}

.community-archive {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.7fr);
  gap: clamp(28px, 3.4vw, 50px);
  align-items: start;
  min-width: 0;
}

.community-archive::before {
  content: '';
  position: absolute;
  inset: 3% -7% 7%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 40%,
      rgba(120, 185, 255, .06),
      rgba(105, 239, 208, .024) 44%,
      transparent 72%);
  filter: blur(48px);
}

.community .network-map {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 44px);
  border-color: rgba(105, 239, 208, .19);
  background:
    radial-gradient(circle at 50% 62%, rgba(105, 239, 208, .06), transparent 38%),
    rgba(10, 24, 35, .86);
}

.community .network-map::before {
  content: none;
}

.community .network-map>strong {
  font-size: clamp(3.2rem, 5vw, 5.2rem);
}

.community .archive-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(210px, .78fr);
  gap: clamp(18px, 2vw, 28px);
  min-width: 0;
}

.community .archive-gallery__secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.2vw, 30px);
  align-content: start;
}

.community .archive-media {
  margin: 0;
  min-width: 0;
}

.community .archive-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .65s var(--ease-out), filter .45s var(--ease);
}

.community .archive-media:hover img {
  transform: scale(1.012);
  filter: contrast(1.025) saturate(1.025);
}

.community .archive-media figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 11px;
  color: var(--rdev-text-muted);
  font-size: .7rem;
}

.community .archive-media figcaption .tech-label {
  color: var(--rdev-accent);
  font-size: .62rem;
}

.community .archive-gallery__secondary figcaption {
  display: grid;
  gap: 2px;
}

.community-divider {
  height: 1px;
  background: linear-gradient(90deg,
      rgba(105, 239, 208, .36),
      rgba(120, 185, 255, .18) 42%,
      rgba(190, 211, 230, .07) 78%,
      transparent);
}

.community-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.community-story {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 2.7vw, 34px);
  border: 1px solid rgba(190, 211, 230, .11);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(120, 185, 255, .045), transparent 46%),
    rgba(10, 22, 32, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.community-story::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--rdev-accent), transparent);
}

.community-story__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--rdev-accent);
  font-size: .66rem;
}

.community-story .section-lead,
.community-story>p:last-child {
  margin: 0;
}

.community-story .section-lead {
  color: #dde8ef;
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  line-height: 1.72;
}

.community-story>p:last-child {
  line-height: 1.78;
}

.community-more {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.community-more .expandable-content p {
  max-width: 900px;
  line-height: 1.8;
}

.archive-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 8px;
}

/* 08 — Contact */
.contact {
  isolation: isolate;
}

.contact .section-heading {
  margin-bottom: clamp(42px, 5vw, 66px);
}

.contact .section-heading>h2 {
  width: 100%;
  max-width: 1260px;
  text-wrap: balance;
}

.contact-lower {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 26px;
  align-content: start;
}

.contact-intro .section-lead {
  margin: 0;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.contact-point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rdev-text-soft);
  font-size: .92rem;
}

.contact-point .icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.contact-point .icon-badge svg {
  width: 17px;
  height: 17px;
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(120, 185, 255, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 185, 255, .065), transparent 32%),
    rgba(9, 22, 32, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 26px 70px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.form-field--full,
.contact-verification,
.contact-status,
.contact-submit,
.contact-form-note {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--rdev-text-soft);
  font: 500 .7rem/1.3 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(190, 211, 230, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  color: var(--rdev-text);
  padding: 14px 15px;
  outline: 0;
  transition:
    border-color .28s var(--ease),
    background .28s var(--ease),
    box-shadow .28s var(--ease),
    transform .28s var(--ease);
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(190, 201, 213, .46);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(105, 239, 208, .48);
  background: rgba(105, 239, 208, .035);
  box-shadow: 0 0 0 4px rgba(105, 239, 208, .055);
}

.contact-verification {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 2px;
}

.turnstile-shell {
  flex: 1 0 300px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 65px;
  overflow: hidden;
  border-radius: 10px;
}

#contact-turnstile {
  width: 100%;
}

.contact-consent {
  display: flex;
  flex: 1 1 220px;
  align-items: flex-start;
  gap: 10px;
  max-width: 34rem;
  margin: 4px 0 0;
  color: var(--rdev-text-muted);
  font-size: .74rem;
  line-height: 1.55;
}

.contact-consent input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--rdev-accent);
}

.contact-consent a {
  color: var(--rdev-text-soft);
  border-bottom: 1px solid var(--rdev-line-strong);
}

.contact-consent a:hover {
  color: var(--rdev-accent);
  border-color: rgba(105, 239, 208, .42);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-status {
  min-height: 1.4em;
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.contact-status.is-success {
  color: var(--rdev-accent);
}

.contact-status.is-error {
  color: #ff9e9e;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(105, 239, 208, .34);
  border-radius: 13px;
  background: var(--rdev-accent);
  color: #06120f;
  font-weight: 650;
  transition:
    transform .28s var(--ease),
    box-shadow .28s var(--ease),
    background .28s var(--ease);
}

.contact-submit:hover {
  color: #04100d;
  background: #7cf6da;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(105, 239, 208, .12);
}

.contact-submit:disabled,
.contact-submit[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
  box-shadow: none;
}

.contact-submit svg {
  width: 20px;
  height: 20px;
}

.contact-form-note {
  margin: -4px 0 0;
  color: var(--rdev-text-muted);
  font-size: .75rem;
}

/* Archive lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(3, 9, 14, .88);
  backdrop-filter: blur(14px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1500px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.image-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(7, 17, 26, .72);
  color: var(--rdev-text);
}

.image-lightbox__close svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .community-archive {
    grid-template-columns: minmax(250px, .74fr) minmax(0, 1.45fr);
  }

  .community .archive-gallery {
    grid-template-columns: minmax(0, 1.45fr) minmax(190px, .72fr);
  }

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

@media (max-width: 991px) {
  .community-archive {
    grid-template-columns: 1fr;
  }

  .community .network-map {
    min-height: 250px;
  }

  .community .archive-gallery {
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, .75fr);
  }

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

  .contact-intro {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .community .archive-gallery {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .community .archive-gallery__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .community-stories {
    grid-template-columns: 1fr;
  }

  .community-more {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .form-field--full,
  .contact-verification,
  .contact-status,
  .contact-submit,
  .contact-form-note {
    grid-column: 1;
  }

  .contact-verification {
    flex-direction: column;
    gap: 14px;
  }

  .contact-consent {
    max-width: none;
  }

  .image-lightbox {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .community .archive-gallery__secondary {
    grid-template-columns: 1fr;
  }

  .contact-form {
    border-radius: 17px;
    padding: 19px 17px;
  }
}

@media (max-width: 360px) {
  .turnstile-shell {
    width: 100%;
    min-height: 65px;
  }
}



/* ==========================================================
   16 — Mobile composition pass
   One authoritative mobile layer; desktop rules remain untouched.
   ========================================================== */
@media (max-width: 767px) {
  .mobile-only {
    display: flex !important;
  }

  /* Global mobile rhythm */
  .section {
    padding-block: 84px;
  }

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

  .section-heading>h2 {
    max-width: 100%;
  }

  .heading-copy {
    margin-top: 20px;
  }

  /* 01 / RDEV — horizontal capability rail */
  #servicios .heading-copy {
    max-width: 34rem;
  }

  .mobile-scroll-hint {
    align-items: center;
    gap: 8px;
    margin: -8px 0 20px;
    color: var(--rdev-text-muted);
    font: 400 .68rem/1.4 var(--mono);
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-scroll-hint svg {
    width: 17px;
    height: 17px;
    color: var(--rdev-accent);
  }

  .capabilities-grid {
    display: flex;
    gap: 16px;
    margin-inline: -22px;
    padding: 2px 22px 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 22px;
    scrollbar-width: none;
  }

  .capabilities-grid::-webkit-scrollbar {
    display: none;
  }

  .capability {
    flex: 0 0 min(82vw, 350px);
    min-height: 250px;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    padding: 26px 22px 28px;
    border: 1px solid rgba(190, 211, 230, .12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .012));
    scroll-snap-align: start;
  }

  .capability::before {
    inset: -1px 18px auto;
    width: auto;
  }

  .capability:hover {
    transform: none;
  }

  .capability h3 {
    gap: 14px;
    margin-bottom: 14px;
    font-size: 1.35rem;
  }

  .capability h3 svg {
    width: 25px;
    height: 25px;
  }

  .capability p {
    font-size: .94rem;
    line-height: 1.62;
  }

  /* 02 / Case study — message first, detail on demand */
  .case-desktop-copy {
    display: none;
  }

  .case-mobile-summary {
    display: block !important;
    margin: 0 0 22px;
    color: var(--rdev-text-soft);
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .case-study .feature-grid {
    --bs-gutter-y: 2rem;
  }

  .case-study .archive-slot {
    display: none;
  }

  .architecture {
    padding: 20px;
  }

  .architecture-flow {
    padding-block: 18px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-top: 34px;
  }

  .metric {
    min-height: 118px;
    padding: 20px 16px;
  }

  .metric-value {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
  }

  .metric-label {
    max-width: 15ch;
    font-size: .68rem;
  }

  .cases-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 50px;
  }

  .case-block {
    padding: 23px 21px 25px;
  }

  .case-block>p:not(.tech-label):not(.case-statement) {
    display: none;
  }

  .case-block .case-statement {
    margin-bottom: 0;
  }

  .case-block h3 {
    font-size: 1.72rem;
  }

  .case-block .bandwidth {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .operation-list {
    margin-bottom: 10px;
  }

  /* 03 / Security — concise copy, animated chips + quote retained */
  .security .row {
    --bs-gutter-y: 1.5rem;
  }

  .security .security-desktop-lead {
    display: none;
  }

  .security .security-mobile-summary {
    display: block !important;
    margin: 0 0 18px;
    max-width: 31rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .security .tech-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
  }

  .security .tech-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 8px;
    font-size: .62rem;
    line-height: 1.25;
    text-align: center;
  }

  .security .tech-chip:last-child {
    grid-column: 1 / -1;
  }

  .mobile-disclosure__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--rdev-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: var(--rdev-accent);
    font-size: .76rem;
  }

  .mobile-disclosure__content {
    min-width: 0;
  }

  .is-mobile-collapsed>.mobile-disclosure__content {
    display: none;
  }

  .security-mobile-detail .mobile-disclosure__content p {
    margin: 14px 0 0;
    font-size: .94rem;
  }

  .security-quote {
    margin-top: 44px;
    padding-left: 0;
    font-size: clamp(1.8rem, 8.3vw, 2.35rem);
  }

  /* 04 / Trajectory */
  .timeline-item {
    padding-left: 32px;
    padding-bottom: 42px;
  }

  .timeline-item h3 {
    gap: 14px;
    margin-bottom: 20px;
    color: var(--rdev-accent);
    font-size: 1.38rem;
  }

  .timeline-item h3 svg {
    width: 25px;
    height: 25px;
  }

  .timeline-item p {
    margin-top: 0;
    font-size: .96rem;
    line-height: 1.68;
  }


  /* 05 / Engineering — one card at a time, downward rhythm */
  .engineering .discipline-path {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }

  .engineering .discipline-path li {
    min-height: 0;
    padding: 22px 21px 24px;
  }

  .engineering .discipline-path li:not(:last-child)::after {
    content: none;
  }

  .engineering .discipline-path h3 {
    font-size: 1.42rem;
  }

  .engineering-summary {
    grid-template-columns: 1fr;
  }

  .achievement-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 56, 78, .11);
  }

  /* 06 / Community */
  .community-archive {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .community .archive-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .community .archive-gallery__secondary {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .community-divider {
    margin-block: 34px 26px;
  }

  .community-stories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 07 / Behind RDEV — editorial vertical structure */
  .human .section-heading {
    margin-bottom: 30px;
  }

  .human-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: none;
    margin: 0;
  }

  .human-story {
    padding: 22px 0 0;
  }

  .human-story__label {
    margin-bottom: 14px;
  }

  .human-story--primary .section-lead {
    font-size: 1.04rem;
    line-height: 1.7;
  }

  .human-story--secondary {
    padding-bottom: 4px;
  }

  /* 08 / Contact — true mobile form */
  .contact .section-heading {
    margin-bottom: 34px;
  }

  #contact-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.25rem, 10vw, 3.05rem);
    line-height: 1.06;
    text-wrap: pretty;
  }

  .contact,
  .contact .container,
  .contact-lower,
  .contact-intro,
  .contact-form {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .contact {
    overflow: clip;
  }

  .contact-lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .contact-intro {
    gap: 20px;
  }

  .contact-points {
    gap: 11px;
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 20px 16px;
    border-radius: 18px;
    overflow: hidden;
  }

  .form-field--full,
  .contact-verification,
  .contact-submit,
  .contact-form-note,
  .contact-status {
    grid-column: 1;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px;
  }

  .form-field textarea {
    min-height: 132px;
  }

  .contact-verification {
    flex-direction: column;
    gap: 16px;
  }

  .turnstile-shell {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 65px;
    overflow: hidden;
  }

  .contact-consent {
    position: relative;
    display: grid;
    flex: none;
    grid-template-columns: 24px 1fr;
    gap: 11px;
    margin: 0;
    max-width: none;
    cursor: pointer;
    color: var(--rdev-text-soft);
    font-size: .78rem;
    line-height: 1.55;
  }

  .contact-consent .contact-consent__check {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1px solid rgba(105, 239, 208, .36);
    border-radius: 7px;
    background: rgba(105, 239, 208, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
  }

  .contact-consent .contact-consent__check:hover {
    border-color: rgba(105, 239, 208, .62);
  }

  .contact-consent .contact-consent__check:focus-visible {
    outline: 2px solid var(--rdev-accent);
    outline-offset: 3px;
  }

  .contact-consent .contact-consent__check:checked {
    border-color: var(--rdev-accent);
    background-color: var(--rdev-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306110e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    box-shadow: 0 0 0 5px rgba(105, 239, 208, .07);
  }

  .contact-submit {
    min-height: 52px;
  }
}

@media (max-width: 380px) {
  .community .archive-gallery__secondary {
    grid-template-columns: 1fr;
  }
}

/* 13 — Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .timeline::after {
    display: none;
  }

  .hero h1 em {
    background-position: 0 0;
  }

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

/* ==========================================================
   15 — Final visual balance / icons / mentorship / community / contact
   Keeps approved motion and transitions intact.
   ========================================================== */

/* Reusable Lucide icon treatments */
.icon-accent,
.icon-badge,
.icon-inline {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-inline {
  width: 1.15em;
  height: 1.15em;
  color: var(--rdev-accent);
  vertical-align: -.16em;
}

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

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--rdev-accent);
  background: rgba(105, 239, 208, .075);
  border: 1px solid rgba(105, 239, 208, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 28px rgba(0, 0, 0, .12);
}

.icon-badge svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.icon-badge--blue {
  color: var(--rdev-accent-2);
  background: rgba(120, 185, 255, .075);
  border-color: rgba(120, 185, 255, .18);
}

/* Give dark chapters a soft atmospheric anchor without replacing their identity. */
#historia::before,
.community::after,
.mentorship::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(44px);
}

#historia::before {
  width: min(48vw, 720px);
  aspect-ratio: 1;
  right: -18vw;
  top: 18%;
  background: radial-gradient(circle, rgba(120, 185, 255, .075), rgba(105, 239, 208, .025) 40%, transparent 70%);
}

.mentorship::after {
  width: min(44vw, 620px);
  aspect-ratio: 1;
  left: -16vw;
  bottom: -22%;
  background: radial-gradient(circle, rgba(105, 239, 208, .07), rgba(120, 185, 255, .025) 42%, transparent 72%);
}

.community::after {
  width: min(50vw, 760px);
  aspect-ratio: 1;
  right: -20vw;
  top: 12%;
  background: radial-gradient(circle, rgba(120, 185, 255, .07), rgba(105, 239, 208, .022) 44%, transparent 72%);
}

/* DE COMPETIDOR A MENTOR — stronger hierarchy and mint emphasis. */
.mentorship {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.mentor-heading {
  margin-bottom: clamp(42px, 5vw, 70px);
}

.mentor-heading .section-index {
  color: var(--rdev-accent);
}

.mentor-heading h2 {
  max-width: 900px;
}

.mentor-body {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.55fr);
  gap: clamp(46px, 6vw, 86px);
  align-items: center;
}

.mentor-copy {
  min-width: 0;
}

.mentor-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 11px;
  margin: 0 0 24px;
  color: var(--rdev-accent);
  font-size: .72rem;
  line-height: 1.35;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.mentor-stages span,
.mentor-stages li {
  color: var(--rdev-accent);
}

.mentor-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--rdev-accent-3);
  font: 500 .78rem/1.4 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mentor-kicker svg {
  width: 18px;
  height: 18px;
  color: var(--rdev-accent);
}

.mentor-copy>p:first-of-type {
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  color: #d8e4ec;
}

.mentor-copy strong,
.mentor-copy .accent {
  color: var(--rdev-accent);
}

.mentorship .source-links {
  gap: 12px 18px;
  margin-top: 28px;
}

.mentorship .external-link {
  gap: 9px;
  color: #dfe9f0;
}

.mentorship .external-link:hover {
  color: var(--rdev-accent);
}

/* ==========================================================
   Mentor — mobile authoritative layout
   Must remain after all desktop Mentor declarations.
   ========================================================== */
@media (max-width: 767px) {

  /* ==========================================================
     Mentoría — composición móvil final
     ========================================================== */

  .mentorship {
    margin-top: 34px;
    padding: 24px 0 0;
  }

  .mentor-heading {
    margin-bottom: 22px;
  }

  .mentor-heading h2 {
    max-width: 100%;
    font-size: clamp(2rem, 8.6vw, 2.7rem);
  }

  .mentor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  /* Imagen */
  .mentor-visual {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }

  .mentor-visual picture {
    display: block;
    width: 100%;
    height: auto;
  }

  .mentor-visual__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  /* Copy */
  .mentor-copy {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .mentor-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .7rem;
  }

  .mentor-mobile-summary {
    display: block !important;
    margin: 0 0 22px;
    color: #d9e5ec;
    font-size: 1rem;
    line-height: 1.65;
  }

  .mentor-mobile-extra {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
  }

  .mentor-mobile-extra>.d-flex.flex-wrap.gap-2 {
    order: 1;
  }

  .mentor-mobile-extra>p {
    margin: 0 0 20px;
    font-size: .98rem;
    line-height: 1.75;
  }

  .mentor-mobile-extra>.expandable {
    order: 3;
  }

  .mentor-mobile-extra>.source-links {
    order: 4;
  }

  /* La progresión completa pertenece al layout desktop.
   En móvil priorizamos los hitos reales. */
  .mentor-mobile-extra>.tech-label:first-child {
    display: none !important;
  }

  /* Hitos principales */
  .mentor-mobile-extra>.d-flex.flex-wrap.gap-2 {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0 !important;

    width: 100%;
    margin: 4px 0 28px !important;

    border-top: 1px solid rgba(190, 211, 230, .14);
  }

  .mentor-mobile-extra .tech-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-height: 52px;

    padding: 13px 2px;
    gap: 11px;

    border: 0;
    border-bottom: 1px solid rgba(190, 211, 230, .14);
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    color: var(--rdev-text-soft);
    font-size: .66rem;
    line-height: 1.4;
  }

  .mentor-mobile-extra .tech-chip:first-child {
    color: var(--rdev-accent);
  }

  .mentor-mobile-extra .tech-chip .icon-inline {
    width: 20px;
    margin: 0;
    flex: 0 0 20px;

    color: var(--rdev-accent);
  }


  /* Relato */
  .mentor-mobile-extra>p {
    margin: 0 0 18px;
    font-size: .98rem;
    line-height: 1.75;
  }

  /* Ver más */
  .mentor-mobile-extra .expandable {
    margin-top: 8px;
  }

  .mentor-mobile-extra .expandable-toggle {
    margin-top: 0;
  }

  /* Fuentes */
  .mentor-mobile-extra .source-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 22px;
  }

  .mentor-mobile-extra .external-link {
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
  }

}
