/* Bio Code Technology - Institutional section system */

:root {
  --institutional-ink: #142235;
  --institutional-muted: #5c6a79;
  --institutional-line: #ccd5de;
  --institutional-blue: #235f9d;
  --institutional-blue-dark: #0b2a49;
  --institutional-paper: #fbfaf7;
  --site-header-height: 132px;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 20px);
}

/* Full-width editorial bands with a consistent content grid. */
.section {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-top: 0;
  scroll-margin-top: calc(var(--site-header-height) + 20px);
}

.section > .reveal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  position: relative;
  padding-left: 1.25rem;
}

.section-header::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.15rem;
  left: 0;
  width: 3px;
  background: currentColor;
  opacity: 0.3;
}

/* Hero: deep executive surface and a precise architectural field. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #07111f;
  border-bottom: 0;
}

.hero-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle-rotator {
  min-height: 3.3em;
}

.hero-typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.18em;
  background: #65a0e3;
  vertical-align: -0.12em;
  animation: hero-caret-blink 0.8s steps(1, end) infinite;
}

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

@keyframes hero-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 41%;
  height: 100%;
  background: #0c1b2d;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -12rem;
  width: 29rem;
  height: 29rem;
  border: 1px solid #27425f;
  border-radius: 50%;
  opacity: 0.55;
}

.hero-brief {
  position: relative;
  padding: 1.8rem 1.75rem 0;
  background: #0a1727;
  border: 1px solid #29405a;
  border-left: 3px solid #568bc4;
}

.hero-brief-footer {
  margin-right: -1.75rem;
  margin-left: -1.75rem;
  padding-right: 1.75rem;
  padding-left: 1.75rem;
}

/* Shared light-surface typography. Scoped variables also repair inline legacy styles. */
#about,
#clients,
#services,
#social-impact,
#servicenow,
#specialist,
#contact {
  --text-primary: var(--institutional-ink);
  --text-secondary: var(--institutional-muted);
  --text-tertiary: #74808c;
  --card-bg: #ffffff;
  --card-bg-hover: #ffffff;
  --border-color: #d3dae1;
  --border-color-hover: #aebdca;
  --primary: var(--institutional-blue);
  --primary-light: var(--institutional-blue);
  --accent: #315f83;
  color: var(--institutional-ink);
}

:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .section-eyebrow {
  color: #315f83;
}

:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) h2,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .section-header h2 {
  color: var(--institutional-ink);
  -webkit-text-fill-color: currentColor;
}

:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .section-desc,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .about-text,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) p {
  color: var(--institutional-muted);
}

:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .tech-item h4,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .client-card h3,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .service-card h3,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .impact-card h3,
:is(#about, #clients, #services, #social-impact, #servicenow, #specialist, #contact) .specialist-card h3 {
  color: var(--institutional-ink);
}

/* 01 - Capability: warm paper and a tall editorial cut. */
#about {
  background: #f3efe7;
}

#about::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 21%;
  height: 100%;
  background: #e5ded1;
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
}

#about .about-text {
  max-width: 760px;
  margin-bottom: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: #fffdf8;
  border-left: 3px solid #9f6c3c;
}

#about .tech-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#about .tech-item {
  background: #fffdf9;
  border-color: #d8d0c4;
  border-radius: 2px;
}

#about .tech-item:hover {
  background: #ffffff;
  border-color: #a9957e;
}

#about .tech-item h4 i {
  color: #8a5a2f;
}

/* 02 - Engagements: blue-gray field and offset evidence cards. */
#clients {
  background: #e8eef3;
}

#clients::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 34%;
  height: 8px;
  background: #315f83;
  opacity: 1;
}

#clients .clients-grid {
  align-items: stretch;
}

#clients .client-card {
  position: relative;
  min-height: 270px;
  padding: 2rem;
  background: #f9fbfc;
  border: 0;
  border-bottom: 4px solid #aab9c6;
  border-radius: 0;
}

#clients .client-card:nth-child(even) {
  margin-top: 2rem;
  border-bottom-color: #315f83;
}

#clients .client-logo,
#clients .client-logo i {
  color: #315f83;
}

/* 03 - Services: white grid with restrained circular geometry. */
#services {
  background: #ffffff;
}

#services::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: -13rem;
  right: -9rem;
  width: 31rem;
  height: 31rem;
  background: transparent;
  border: 5rem solid #f0f4f7;
  border-radius: 50%;
  opacity: 1;
}

#services .service-card {
  background: #f7f9fa;
  border-color: #d9e0e5;
  border-radius: 0;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

#services .service-card:hover {
  background: #ffffff;
  border-color: #9dafbd;
  box-shadow: 0 16px 34px rgba(33, 64, 91, 0.1);
}

#services .intelligence-service-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 2rem;
  padding: 2rem;
  background: #eef4f8;
  border-color: #b9cbd9;
  border-left: 4px solid #235f9d;
}

#services .intelligence-service-card:hover {
  background: #eef4f8;
  border-color: #9dafbd;
  border-left-color: #235f9d;
}

.service-intelligence-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.service-intelligence-heading .service-icon {
  flex: 0 0 auto;
  margin: 0;
}

.service-intelligence-heading span {
  color: #315f83;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intelligence-governance {
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid #c7d4de;
}

.intelligence-governance h4 {
  margin: 0 0 0.85rem;
  color: #17283d;
  font-size: 0.9rem;
}

.intelligence-governance ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intelligence-governance li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: #394756;
  font-size: 0.83rem;
  line-height: 1.45;
}

.intelligence-governance li i {
  margin-top: 0.18rem;
  color: #3f7254;
}

#services .intelligence-governance p {
  margin-top: 1rem;
  padding-top: 0.9rem;
  color: #657383;
  font-size: 0.78rem;
  line-height: 1.5;
  border-top: 1px solid #d9e0e5;
}

#services .service-icon,
#services .service-card .service-icon,
#services .service-card .service-icon i {
  background: #e5edf3;
  border-color: #c4d1db;
  color: #235f9d !important;
}

#services .service-card .service-icon {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

#services .service-card:hover .service-icon {
  background: #e5edf3;
  border-color: #8fadc5;
  box-shadow:
    0 8px 18px rgba(35, 95, 157, 0.14),
    0 0 0 4px rgba(35, 95, 157, 0.07);
  color: #235f9d !important;
  transform: none;
}

#services .service-card:hover .service-icon i {
  background: transparent;
  color: #235f9d !important;
  transform: none;
}

/* 04 - Social impact: muted civic green and connected card pair. */
#social-impact {
  background: #e4ebe5;
}

#social-impact::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  right: -6%;
  bottom: -5rem;
  width: 48%;
  height: 18rem;
  background: #d1ded4;
  border-radius: 12rem 0 0 0;
  opacity: 1;
}

#social-impact .impact-card {
  background: #f9fbf8;
  border-color: #c3d0c5;
  border-radius: 18px 2px 18px 2px;
}

#social-impact .impact-card:nth-child(even) {
  border-radius: 2px 18px 2px 18px;
}

#social-impact .impact-card-header i,
#social-impact .feature i,
#social-impact .impact-connection strong {
  color: #3d6a4b;
}

#social-impact .impact-badge,
#social-impact .feature {
  background: #edf3ee;
  border-color: #c5d3c8;
  color: #365943;
}

#social-impact .impact-connection {
  background: #d5e0d7;
  border-color: #b8c8bb;
  color: #314b38;
}

#social-impact .garage-play-cta,
#social-impact .social-impact-cta {
  background: #365f43;
  border-color: #365f43;
  color: #ffffff;
}

/* 05 - Portfolio: dark slate, denser and deliberately technical. */
#projects {
  --card-bg: #162435;
  --card-bg-hover: #192a3d;
  --border-color: #304155;
  --border-color-hover: #54708d;
  background: #111b27;
}

#projects::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto auto;
  width: 36%;
  height: 100%;
  background-color: #142131;
  background-image: linear-gradient(#23364b 1px, transparent 1px), linear-gradient(90deg, #23364b 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

#projects .project-card,
#projects .hft-card {
  background: #162435;
  border-color: #304155;
  border-radius: 2px;
}

#projects .project-card:hover {
  background: #192a3d;
  border-color: #54708d;
}

/* 06 - Financial product: its own authoritative blue domain. */
.biopay-section {
  --card-bg: #0c3158;
  --card-bg-hover: #0d375f;
  --border-color: #2d5d87;
  --border-color-hover: #5887af;
  background: #0a2a49;
}

.biopay-section::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 43%;
  height: 100%;
  background: #0d3459;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
}

.biopay-section .biopay-teaser-card {
  background: #0c3158;
  border-color: #35668f;
  border-radius: 2px 28px 2px 2px;
}

.biopay-section .biopay-video-wrapper {
  background: #071c31;
  border-color: #3b678e;
  border-radius: 2px;
}

.biopay-section .biopay-section-badge,
.biopay-section .biopay-teaser-live,
.biopay-section .biopay-teaser-proofs span {
  background: #123c63;
  border-color: #3c6c96;
  color: #c6ddf2;
}

.biopay-authorship {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  margin-top: 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: #071c31;
  border: 1px solid #35668f;
  border-left: 4px solid #6fa3d6;
  border-radius: 2px;
}

.biopay-authorship-heading {
  align-self: start;
}

.biopay-authorship-eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  color: #83b2df;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.biopay-authorship-heading h3 {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.biopay-authorship-heading p {
  margin: 0;
  color: #9fb6cb;
  font-size: 0.95rem;
  line-height: 1.65;
}

.biopay-authorship-content {
  min-width: 0;
}

.biopay-authorship-content p {
  color: #dce7f2;
  font-size: 1rem;
  line-height: 1.75;
}

.biopay-authorship-lead {
  margin: 0 0 1.5rem;
}

.biopay-authorship-facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biopay-authorship-facts li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.75rem;
  color: #bfd0df;
  border-top: 1px solid #244764;
  font-size: 0.96rem;
  line-height: 1.65;
}

.biopay-authorship-facts li::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 0.25rem;
  width: 7px;
  height: 7px;
  background: #5f9d82;
  border-radius: 50%;
}

.biopay-authorship-closing {
  margin: 1.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid #35668f;
}

@media (max-width: 900px) {
  .biopay-authorship {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .biopay-authorship {
    padding: 1.25rem;
  }

  .biopay-authorship-content p,
  .biopay-authorship-facts li {
    font-size: 0.95rem;
  }
}

/* 07 - Case study: cool engineering canvas and a strong left rail. */
#servicenow {
  background: #edf1f4;
}

#servicenow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: #6a7e8d;
}

#servicenow .glass-card {
  background: #ffffff;
  border-color: #ccd5dc;
  border-radius: 0 24px 0 0;
}

#servicenow .tech-item {
  background: #f5f7f8;
  border-color: #d5dde2;
  border-radius: 2px;
}

#servicenow .tech-card-mini {
  background: #f5f7f8 !important;
  border-color: #d5dde2 !important;
}

#servicenow .tech-card-mini:hover {
  background: #ffffff !important;
  border-color: #9fb0bc !important;
}

#servicenow .tech-card-mini h4 {
  color: var(--institutional-ink) !important;
}

/* 08 - Technical practice: mineral charcoal and a horizontal frame. */
#live-coding {
  --card-bg: #26323e;
  --card-bg-hover: #2a3744;
  --border-color: #435362;
  --border-color-hover: #607587;
  background: #202a34;
}

#live-coding::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 11rem;
  background: #26333f;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 72%);
  opacity: 1;
}

#live-coding .video-container {
  border-color: #586978 !important;
  border-radius: 2px !important;
}

#live-coding .video-description {
  background: #26323e !important;
  border-color: #435362 !important;
  border-radius: 2px !important;
}

#live-coding hr {
  border-color: #465665 !important;
}

/* 09 - Specialist: warm neutral with an offset portrait panel. */
#specialist {
  background: #f4f1eb;
}

#specialist::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 31%;
  height: 100%;
  background: #dfe5e7;
  opacity: 1;
}

#specialist .specialist-card {
  background: #fffdfa;
  border-color: #d7d0c6;
  border-radius: 2px;
}

#specialist .specialist-figure {
  background: #e6ebed;
  border-color: #c4ced3;
  border-radius: 2px 2px 32px 2px;
}

#specialist .pill {
  background: #eef1f2;
  border-color: #cbd3d7;
  color: #3f5667;
}

#specialist .specialist-notes {
  border-top-color: #d6d0c8;
}

#specialist .specialist-notes a,
#specialist .note-item i {
  color: #235f9d;
}

#specialist .cta-outline {
  border-color: #8c9aa6;
  color: #25394b;
}

#specialist .cta-outline:hover {
  background: #e9eef1;
  border-color: #60788b;
}

#specialist figcaption,
#specialist figcaption strong,
#specialist figcaption small {
  color: #344655 !important;
}

/* 10 - Contact: quiet blue close and a diagonal invitation field. */
#contact {
  background: #dfe9f1;
}

#contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -5%;
  bottom: 0;
  width: 46%;
  height: 100%;
  background: #cbdbe7;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}

#contact .contact-container {
  background: #f9fbfc;
  border: 0;
  border-left: 5px solid #315f83;
  border-radius: 0;
  box-shadow: 0 18px 45px rgba(32, 59, 79, 0.1);
}

#contact .form-group label {
  color: #34495b;
}

#contact .form-group input,
#contact .form-group textarea {
  background: #ffffff;
  border-color: #becbd5;
  color: var(--institutional-ink);
}

#contact .form-group input:focus,
#contact .form-group textarea:focus {
  background: #ffffff;
  border-color: #315f83;
}

/* Footer returns to the corporate anchor without visually merging with contact. */
footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem 2rem 3rem;
  background: #06101b;
  border-top: 5px solid #2e638f;
}

footer .reveal {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  #about .tech-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #clients .client-card:nth-child(even) {
    margin-top: 0;
  }

  #specialist::before {
    width: 38%;
  }
}

@media (max-width: 768px) {
  #services .intelligence-service-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.35rem;
  }

  .intelligence-governance {
    padding: 1.1rem;
  }

  .section-header {
    padding-left: 0.9rem;
  }

  .hero::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 39%;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  }

  .hero-brief {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  .hero-brief-footer {
    margin-right: -1.2rem;
    margin-left: -1.2rem;
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

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

  #about::before {
    width: 13%;
  }

  #clients::before {
    width: 58%;
  }

  #services::before {
    top: -8rem;
    right: -10rem;
    width: 22rem;
    height: 22rem;
    border-width: 3.5rem;
  }

  #social-impact::before {
    width: 75%;
  }

  #projects::before {
    width: 58%;
  }

  .biopay-section::before {
    width: 65%;
  }

  #specialist::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 33%;
  }

  #contact::before {
    width: 70%;
  }

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

  .hero-proof-list span {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  #clients .client-card,
  #social-impact .impact-card,
  .biopay-section .biopay-teaser-card,
  #servicenow .glass-card,
  #specialist .specialist-card,
  #specialist .specialist-figure {
    border-radius: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-typewriter::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-subtitle-rotator {
    min-height: 4.95em;
  }
}

/* Mobile navigation: accessible institutional drawer with full-size targets. */
.nav-backdrop {
  display: none;
}

@media (max-width: 1120px) {
  :root {
    --mobile-header-height: 104px;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  header {
    padding: 0.55rem 1rem;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  header nav {
    min-height: 87px;
  }

  .logo-img,
  .logo:hover .logo-img {
    height: 87px;
  }

  .mobile-menu-btn {
    position: relative;
    z-index: 1003;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    place-items: center;
    background: #102238;
    border: 1px solid #355474;
    border-radius: 4px;
    color: #f7f9fc;
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible,
  .mobile-menu-btn.is-active {
    background: #17304c;
    border-color: #65a0e3;
    color: #ffffff;
    outline: none;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 1000;
    top: var(--mobile-header-height);
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100vh - var(--mobile-header-height));
    height: calc(100dvh - var(--mobile-header-height));
    display: block;
    padding: 0;
    background: rgba(2, 9, 17, 0.72);
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    counter-reset: mobile-navigation;
    position: fixed;
    z-index: 1002;
    top: var(--mobile-header-height);
    right: 0;
    bottom: auto;
    width: min(88vw, 420px);
    height: calc(100vh - var(--mobile-header-height));
    height: calc(100dvh - var(--mobile-header-height));
    margin: 0;
    padding: clamp(1.35rem, 5vw, 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: #081a2f;
    border-top: 1px solid #294762;
    border-left: 1px solid #294762;
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.28);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links::before {
    content: "Navigation";
    display: block;
    margin: 0 0 0.65rem;
    color: #7fa8cf;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .nav-links.active {
    right: 0;
    transform: translate3d(0, 0, 0);
  }

  .nav-links li {
    counter-increment: mobile-navigation;
    width: 100%;
    opacity: 0;
    transform: translate3d(12px, 0, 0);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.04s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.07s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.13s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.16s;
  }

  .nav-links.active li:nth-child(6) {
    transition-delay: 0.19s;
  }

  .nav-links.active li:nth-child(7) {
    transition-delay: 0.22s;
  }

  .nav-links.active li:nth-child(8) {
    transition-delay: 0.25s;
  }

  .nav-links.active li:nth-child(9) {
    transition-delay: 0.28s;
  }

  .nav-links a,
  .page-main .nav-links a {
    display: flex;
    min-height: 56px;
    width: 100%;
    align-items: center;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-bottom-color: #1e3a55;
    border-radius: 4px;
    color: #d4deea;
    font-size: clamp(1.05rem, 4.2vw, 1.18rem);
    font-weight: 620;
    letter-spacing: -0.01em;
    line-height: 1.35;
    opacity: 1;
    transform: none;
    transition:
      background-color 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease;
  }

  .nav-links a::before {
    content: "0" counter(mobile-navigation);
    width: 2rem;
    flex: 0 0 2rem;
    color: #6fa3d6;
    font-family: "Courier New", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .page-main .nav-links a:hover,
  .page-main .nav-links a:focus-visible {
    background: #102a44;
    border-color: #335a7d;
    color: #ffffff;
    outline: none;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 100%;
    border-left: 0;
  }
}

@media (max-width: 1120px) and (max-height: 650px) {
  .nav-links {
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 0.2rem;
  }

  .nav-links::before {
    margin-bottom: 0.25rem;
  }

  .nav-links a,
  .page-main .nav-links a {
    min-height: 50px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-links li,
  .nav-backdrop {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}

/* Section motion language: one restrained transition pattern per editorial band. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .reveal {
    opacity: 0;
  }

  html.motion-ready .hero-copy {
    animation: institutional-hero-copy 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready .hero-brief {
    animation: institutional-hero-brief 820ms 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #about > .reveal.show {
    animation: institutional-rise 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #about .tech-item.reveal.show {
    animation: institutional-card-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #clients > .reveal.show {
    animation: institutional-wipe-right 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #clients .client-card.reveal.show:nth-child(odd) {
    animation: institutional-slide-left 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #clients .client-card.reveal.show:nth-child(even) {
    animation: institutional-slide-right 620ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #services > .reveal.show {
    animation: institutional-focus 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #services .service-card.reveal.show {
    animation: institutional-service-card 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #social-impact > .reveal.show {
    animation: institutional-soft-reveal 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #social-impact .impact-card.reveal.show:first-child {
    animation: institutional-slide-left 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #social-impact .impact-card.reveal.show:last-child {
    animation: institutional-slide-right 640ms 110ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #projects > .reveal.show {
    animation: institutional-project-field 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #projects .project-card.reveal.show {
    animation: institutional-project-card 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready .biopay-section > .reveal.show {
    animation: institutional-finance-wipe 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready .biopay-teaser-card.reveal.show {
    animation: institutional-finance-card 680ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #servicenow > .reveal.show {
    animation: institutional-case-study 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #servicenow .glass-card.reveal.show {
    animation: institutional-case-card 680ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #live-coding > .reveal.show {
    animation: institutional-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #live-coding .live-coding-content.reveal.show:nth-of-type(odd) {
    animation: institutional-slide-left 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #live-coding .live-coding-content.reveal.show:nth-of-type(even) {
    animation: institutional-slide-right 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #specialist > .reveal.show {
    animation: institutional-focus 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #specialist .specialist-card.reveal.show {
    animation: institutional-slide-left 660ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #specialist .specialist-figure.reveal.show {
    animation: institutional-slide-right 660ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready #contact > .reveal.show {
    animation: institutional-contact-band 740ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready #contact .contact-container.reveal.show {
    animation: institutional-contact-card 620ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.motion-ready footer .reveal.show {
    animation: institutional-footer 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #about .tech-item.reveal.show:nth-child(3n + 2),
  #services .service-card.reveal.show:nth-child(3n + 2),
  #projects .project-card.reveal.show:nth-child(3n + 2) {
    animation-delay: 70ms;
  }

  #about .tech-item.reveal.show:nth-child(3n),
  #services .service-card.reveal.show:nth-child(3n),
  #projects .project-card.reveal.show:nth-child(3n) {
    animation-delay: 140ms;
  }
}

@keyframes institutional-hero-copy {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-hero-brief {
  from {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-card-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-wipe-right {
  from {
    opacity: 0;
    clip-path: inset(0 18% 0 0);
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-slide-left {
  from {
    opacity: 0;
    transform: translate3d(-32px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-slide-right {
  from {
    opacity: 0;
    transform: translate3d(32px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-focus {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes institutional-service-card {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-soft-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes institutional-project-field {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-project-card {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-finance-wipe {
  from {
    opacity: 0;
    clip-path: polygon(0 0, 84% 0, 76% 100%, 0 100%);
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-finance-card {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-case-study {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 12%);
    transform: translate3d(28px, 0, 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-case-card {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-contact-band {
  from {
    opacity: 0;
    clip-path: inset(12% 0 0 0);
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-contact-card {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes institutional-footer {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
