/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/
:root {
  --navy: #0E1330;
  --plum: #1E1147;
  --navy-2: #171D45;
  --ink: #141831;
  --body: #4F5572;
  --line: #E6E4EE;
  --paper: #fff;
  --mist: #F7F6FA;
  --blue: #00A0E8;
  --deep-blue: #0070C0;
  --purple: #4820A8;
  --lilac: #B098D8;
  --sky: #7CCBF2;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C4A;
  --whatsapp-ink: #0B3B20;
  --whatsapp-tint: #DFF7E8;

  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 49, .05), 0 12px 32px -16px rgba(20, 24, 49, .16);
  --shadow-lift: 0 2px 4px rgba(20, 24, 49, .06), 0 24px 48px -20px rgba(20, 24, 49, .28);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html.nav-locked, html.nav-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0313rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--purple); font-weight: 600; text-decoration: none; }
a:hover { color: var(--deep-blue); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: 1.125rem; letter-spacing: -.01em; }

p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

section { padding: 104px 0; }
.panel { background: var(--mist); }

.eyebrow {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mark { color: var(--purple); }

.section-title { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-title p:last-child { margin-bottom: 0; }
#team .section-title { margin-bottom: 0; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: #3A1A8A; color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--purple); background: transparent; color: var(--purple); }
.btn-small { padding: 9px 18px; font-size: .94rem; }

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/*--------------------------------------------------------------
# Photos
--------------------------------------------------------------*/
.photo { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.photo > img:first-child { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-wide { margin-bottom: 24px; }
.photo-wide > img:first-child { aspect-ratio: 3 / 1; object-position: 50% 42%; }

.photo-tag { position: absolute; left: 14px; bottom: 14px; }

/*--------------------------------------------------------------
# Logo lockup
--------------------------------------------------------------*/
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.lockup-text { display: flex; flex-direction: column; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.lockup-text small { color: var(--body); font-size: .68em; font-weight: 600; letter-spacing: .01em; }
.lockup-chip { padding: 8px 13px; border-radius: 9px; background: rgba(255, 255, 255, .96); }
.lockup-chip .lockup-text { font-size: .9rem; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 13px 0;
}
/* Colour and blur live on this layer: a backdrop-filter on #header itself would trap the fixed drawer inside it */
#header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--plum);
  border-bottom: 1px solid rgba(176, 152, 216, .18);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#header.scrolled::before {
  background: rgba(44, 20, 112, .66);
  box-shadow: 0 10px 28px -18px rgba(14, 19, 48, .6);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand, .brand:hover { flex: none; padding: 6px 12px; color: var(--ink); }
.brand .lockup-text { font-size: .98rem; }

#navbar ul { display: flex; align-items: center; gap: 30px; }
#navbar a i, .nav-extra, .nav-backdrop, .drawer-brand, .tabbar, .quick-actions, .swipe-dots { display: none; }
#navbar .btn i { display: inline; }
#navbar a:not(.btn) { color: var(--ink); font-size: .96rem; font-weight: 500; transition: color .2s; }
#navbar a:not(.btn):hover, #navbar a.active { color: var(--purple); }

@media (min-width: 901px) {
  #navbar a:not(.btn) { color: #fff; }
  #navbar a:not(.btn):hover, #navbar a.active { color: #fff; text-decoration: underline 2px; text-underline-offset: 7px; }
  #navbar .btn { background: #fff; color: var(--purple); }
  #navbar .btn:hover { background: #EFEAF8; color: var(--purple); }
}

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 104px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 86% 10%, rgba(72, 32, 168, .55), transparent 70%),
    radial-gradient(620px 460px at 4% 96%, rgba(0, 112, 192, .34), transparent 72%),
    var(--navy);
  color: #C8CCE2;
}
#hero-network { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 56px;
}
#hero h1 { color: #fff; }
#hero .eyebrow { color: var(--sky); }
.lead { max-width: 33em; margin: 22px 0 30px; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.fit-line { display: block; white-space: nowrap; }
.caps-word { color: var(--sky); transition: color .3s; }
.caps-word.on { color: var(--lilac); text-transform: uppercase; }

.keycap {
  position: relative;
  width: 122px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 4px 0 rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.keycap[aria-pressed="true"] { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
.keycap-led {
  position: absolute;
  top: 8px;
  left: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  transition: background .2s, box-shadow .2s;
}
.keycap[aria-pressed="true"] .keycap-led { background: #5FE0A5; box-shadow: 0 0 10px 2px rgba(95, 224, 165, .7); }
.keycap-label { position: absolute; left: 11px; bottom: 6px; font: 500 .72rem var(--mono); }

.hero-art { position: relative; }
.hero-art .photo { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.hero-art .photo > img:first-child { height: clamp(340px, 68svh, 760px); aspect-ratio: auto; object-position: 58% 50%; }
.hero-art .photo-tag { left: auto; right: 14px; bottom: auto; top: 14px; }

.code-card {
  position: absolute;
  left: -36px;
  bottom: -28px;
  width: 330px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(14, 19, 48, .94);
  box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .7);
}
.code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.code-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.code-bar em { margin-left: 8px; color: #8D93B3; font: 500 .72rem var(--mono); }
#code-typer { margin: 0; padding: 0 16px 15px; color: #E9EBF6; font: 500 .76rem/1.65 var(--mono); white-space: pre; overflow: hidden; }
#code-typer .k { color: var(--lilac); }
#code-typer .f { color: var(--sky); }
#code-typer .s { color: #9FE3C1; }
#code-typer .c { color: #8D93B3; }
#code-typer .untyped { visibility: hidden; }
#code-typer .cursor { box-shadow: 2px 0 0 var(--sky); }

/*--------------------------------------------------------------
# Split layouts
--------------------------------------------------------------*/
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 24px; }
.checks li { display: flex; gap: 10px; color: var(--ink); font-size: .97rem; font-weight: 500; line-height: 1.45; }
.checks i { flex: none; color: var(--purple); font-size: 1.15rem; line-height: 1.25; }

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .7s var(--ease);
}
.js .service.reveal.in-view:hover { transform: translateY(-4px); border-color: #D5CDEA; box-shadow: var(--shadow-lift); }
.service h3 { margin-bottom: 8px; }
.service p { margin: 0; font-size: .96rem; line-height: 1.6; }

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--deep-blue), var(--purple));
  color: #fff;
  font-size: 1.35rem;
}

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.pills li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
}
.pills i { color: var(--purple); }

/*--------------------------------------------------------------
# Process pipeline
--------------------------------------------------------------*/
.pipeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pipeline::before, .pipeline::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
}
.pipeline::before { background: var(--line); }
.pipeline::after {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 3s ease-in-out;
}
.pipeline.in-view::after { transform: scaleX(1); }
.js .pipeline:not(.in-view) li { opacity: .35; }

.pipeline li { position: relative; z-index: 1; text-align: center; transition: opacity .5s calc(var(--i) * .5s); }
.pipeline p { margin: 6px 0 0; font-size: .93rem; line-height: 1.5; }
.node {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font-size: 1.45rem;
}
.pipeline.in-view .node { animation: light .7s var(--ease) calc(var(--i) * .5s) both; }
@keyframes light {
  0% { border-color: var(--line); }
  50% { border-color: var(--purple); box-shadow: 0 0 0 7px rgba(72, 32, 168, .1); }
  100% { border-color: #D5CDEA; }
}

/*--------------------------------------------------------------
# CTA
--------------------------------------------------------------*/
#cta { padding: 0 0 104px; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 84px 32px;
  border-radius: 18px;
  background: var(--navy);
  color: #D5D8EA;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .3; }
.cta-card > :not(.circuit):not(.cta-bg) { position: relative; }
.cta-lockup { margin-bottom: 22px; text-align: left; }
.cta-card h2 { color: #fff; }
.cta-card p { max-width: 36em; margin: 0 auto 26px; }

.circuit { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linejoin: round; }
.traces { stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.pulses { stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 34 300; animation: pulse 4s linear infinite; }
.pulses path:nth-child(2) { animation: pulse 5.2s linear -2s infinite; }
.pads { fill: var(--sky); }
@keyframes pulse { from { stroke-dashoffset: 334; } to { stroke-dashoffset: 0; } }

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
#portfolio { padding-top: 0; }
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.work {
  grid-column: span 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .7s var(--ease);
}
.work:nth-child(-n+2) { grid-column: span 3; }
/* The Visit site link stretches over the whole card */
.work-link { position: relative; }
.work-link a::after { content: ""; position: absolute; inset: 0; }
.js .work-link.reveal.in-view:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.work-frame { background: var(--purple); }
.work-frame .code-bar { gap: 8px; padding: 11px 14px; }
.work-frame .code-bar span { position: relative; width: 14px; height: 14px; background: #FF5F57; color: #8A2A24; }
.work-frame .code-bar span:nth-child(2) { background: #FEBC2E; color: #85600F; }
.work-frame .code-bar span:nth-child(3) { background: #28C840; color: #0F6B21; }
/* Symbols are drawn, not typed, so they sit exactly in the centre */
.work-frame .code-bar span::before, .work-frame .code-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 2px;
  margin: auto;
  border-radius: 1px;
  background: currentColor;
}
.work-frame .code-bar span:nth-child(1)::before { transform: rotate(45deg); }
.work-frame .code-bar span:nth-child(1)::after { transform: rotate(-45deg); }
.work-frame .code-bar span:nth-child(2)::after { display: none; }
.work-frame .code-bar span:nth-child(3)::after { transform: rotate(90deg); }
.work-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #fff; }
.work-frame img.contain { object-fit: contain; object-position: center; padding: 14px; }
.work figcaption { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.work h3 { font-size: 1.03rem; }
.work p { margin: 2px 0 0; font-size: .92rem; }

/*--------------------------------------------------------------
# Packages
--------------------------------------------------------------*/
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.plan h3 { font-size: 1.3rem; }
.plan ul { margin: 18px 0 26px; }
.plan li { position: relative; padding: 7px 0 7px 26px; line-height: 1.45; }
.plan li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 3px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}
.plan .btn { justify-content: center; margin-top: auto; }
.plan-featured { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), var(--shadow-lift); }
.plan-badge {
  position: absolute;
  top: 0;
  left: 28px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  transform: translateY(-50%);
}

/*--------------------------------------------------------------
# FAQ
--------------------------------------------------------------*/
.faq-wrap { max-width: 800px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  color: var(--purple);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 4px 22px; }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-list { display: grid; gap: 22px; margin-top: 26px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list h3 { margin-bottom: 2px; font-size: 1rem; }
.contact-list p { margin: 0; }
.contact-list a { overflow-wrap: anywhere; }
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #EFEAF8;
  color: var(--purple);
  font-size: 1.3rem;
}
.contact-icon-whatsapp { background: var(--whatsapp-tint); color: var(--whatsapp-dark); }
#contact .split { align-items: stretch; }
.map { overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.map iframe { display: block; height: 100%; min-height: 320px; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer { padding-top: 64px; background: var(--navy); color: #A9AECB; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
#footer h3, #footer h4 { margin-bottom: 14px; color: #fff; font-size: 1.02rem; }
#footer a { color: #DDE0EF; font-weight: 500; overflow-wrap: anywhere; }
#footer a:hover { color: var(--sky); }
#footer li { padding: 4px 0; }
.footer-lockup { margin-bottom: 18px; }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-base p { margin: 0; font-size: .92rem; }
.social { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 20px 0 13px;
  border-radius: 27px;
  background: var(--whatsapp);
  box-shadow: 0 10px 24px -8px rgba(13, 90, 44, .6);
  color: var(--whatsapp-ink);
  font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: wa-ring 3.2s ease-out infinite;
}
.whatsapp-float svg { flex: none; color: #fff; }
.whatsapp-float span { white-space: nowrap; }
.whatsapp-float:hover { color: var(--whatsapp-ink); transform: translateY(-3px); box-shadow: 0 16px 28px -8px rgba(13, 90, 44, .7); }
@keyframes wa-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  55%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--purple);
  box-shadow: var(--shadow-lift);
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; transform: translateY(-3px); }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1700px) {
  .footer-base { padding-right: 240px; }
}

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work:nth-child(n) { grid-column: span 3; }
  .work:first-child { grid-column: span 6; }
}

@media (max-width: 900px) {
  section { padding: 72px 0; }
  #cta { padding-bottom: 72px; }


  /* Slide-in drawer */
  #header { transition: z-index 0s .35s; }
  #header.nav-open { z-index: 120; transition-delay: 0s; }

  .nav-toggle {
    position: relative;
    z-index: 3;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
  }
  .nav-toggle span {
    position: absolute;
    top: 21px;
    right: 9px;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .35s var(--ease), opacity .2s, width .35s var(--ease), background .2s;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-8px); }
  .nav-toggle span:nth-child(3) { width: 18px; transform: translateY(8px); }
  .nav-open .nav-toggle span { background: var(--ink); }
  .nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: translateX(10px); }
  .nav-open .nav-toggle span:nth-child(3) { width: 26px; transform: rotate(-45deg); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(14, 19, 48, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  #navbar {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(340px, 86vw);
    padding: 14px 22px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 20px 0 0 20px;
    background: #fff;
    box-shadow: -24px 0 48px -20px rgba(14, 19, 48, .45);
    visibility: hidden;
    transform: translateX(104%);
    transition: transform .4s var(--ease), visibility .4s;
  }
  .nav-open #navbar { visibility: visible; transform: none; }
  #navbar .drawer-brand { display: inline-flex; min-height: 44px; margin-bottom: 14px; border: 0; }
  #navbar ul { flex: 1; flex-direction: column; align-items: stretch; gap: 0; }
  #navbar li { opacity: 0; transform: translateX(28px); transition: opacity .3s, transform .3s; }
  .nav-open #navbar li {
    opacity: 1;
    transform: none;
    transition: opacity .45s var(--ease) calc(.1s + var(--i) * .04s), transform .45s var(--ease) calc(.1s + var(--i) * .04s);
  }
  #navbar .nav-extra { display: block; }
  #navbar a:not(.btn):not(.drawer-brand) {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-size: 1.08rem;
    font-weight: 600;
  }
  #navbar a i { display: inline; color: var(--purple); font-size: 1.3rem; }
  #navbar .btn { justify-content: center; width: 100%; min-height: 50px; margin-top: 18px; font-size: 1rem; }
  #navbar .btn-whatsapp { margin-top: 10px; background: var(--whatsapp); color: var(--whatsapp-ink); font-weight: 700; }
  #navbar .btn-whatsapp svg { color: #fff; }

  /* Bottom tab bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .whatsapp-float, .back-to-top { display: none; }
  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    height: 64px;
    padding-bottom: 9px;
    color: #6B7088;
    font-size: .7rem;
    font-weight: 600;
    transition: color .2s, transform .15s;
  }
  .tabbar a:active { transform: scale(.94); }
  .tabbar i { font-size: 1.4rem; line-height: 1.2; }
  .tabbar a.active { color: var(--purple); }
  .tabbar .tab-whatsapp { position: relative; color: var(--whatsapp-dark); }
  .tabbar .tab-whatsapp b {
    position: absolute;
    top: -16px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--whatsapp);
    box-shadow: 0 8px 16px -6px rgba(13, 90, 44, .6);
    color: #fff;
  }

  /* One-tap contact */
  .quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
  .quick-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    border-radius: 12px;
    background: #EFEAF8;
    color: var(--purple);
    font-size: .78rem;
    font-weight: 600;
  }
  .quick-actions i { font-size: 1.35rem; line-height: 1.1; }
  .quick-actions a:nth-child(2) { background: var(--whatsapp-tint); color: var(--whatsapp-dark); }
  .footer-base { padding-right: 0; }

  /* Photo becomes a full-screen backdrop so the hero fits one screen */
  #hero { align-items: flex-end; padding: 96px 0 calc(92px + env(safe-area-inset-bottom)); }
  .hero-grid { position: static; }
  .hero-copy { position: relative; z-index: 2; }
  #hero-network { z-index: 1; }
  .hero-art { position: absolute; inset: 0; }
  .hero-art .photo { height: 100%; border-radius: 0; box-shadow: none; }
  .hero-art .photo > img:first-child { height: 100%; object-position: 40% 50%; }
  .hero-art .photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 19, 48, .12) 0%, rgba(14, 19, 48, .5) 34%, rgba(14, 19, 48, .94) 58%, var(--navy) 100%);
  }
  .hero-art .photo-tag { z-index: 1; top: 86px; }
  .code-card { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .photo-wide > img:first-child { aspect-ratio: 2 / 1; }

  .pipeline { grid-template-columns: 1fr; gap: 26px; max-width: 420px; margin-inline: auto; }
  .pipeline::before, .pipeline::after { top: 12px; bottom: 12px; left: 31px; right: auto; width: 2px; height: auto; }
  .pipeline::after {
    background: linear-gradient(180deg, var(--blue), var(--purple));
    transform: scaleY(0);
    transform-origin: top;
  }
  .pipeline.in-view::after { transform: scaleY(1); }
  .pipeline li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; }
  .pipeline .node { grid-row: span 2; margin: 0; }
  .pipeline h3 { align-self: end; }
  .pipeline p { margin: 2px 0 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  h1 { font-size: 8.3vw; }
  .service-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .lead { margin: 14px 0 20px; font-size: 1rem; line-height: 1.6; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 18px; font-size: .95rem; }
  .cta-card { padding: 60px 22px; }
  .footer-base { flex-direction: column; text-align: center; }

  /* Swipe carousels */
  section { padding: 60px 0; }
  #cta { padding-bottom: 60px; }
  .section-title { margin-bottom: 30px; }
  h2 { font-size: 1.75rem; }
  .split { gap: 28px; }
  .map iframe { min-height: 240px; }
  .photo-wide { margin-bottom: 16px; }
  .service-grid, .work-grid, .plans {
    display: flex;
    gap: 12px;
    max-width: none;
    margin-inline: -18px;
    padding: 14px 18px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar, .work-grid::-webkit-scrollbar, .plans::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
  .service-grid > *, .work-grid > *, .plans > * { flex: 0 0 84%; scroll-snap-align: start; }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .swipe-dots span { width: 7px; height: 7px; border-radius: 4px; background: #D4D3DF; transition: width .25s, background .25s; }
  .swipe-dots span.on { width: 20px; background: var(--purple); }
  .pills { flex-wrap: nowrap; justify-content: flex-start; margin: 24px -18px 0; padding-inline: 18px; overflow-x: auto; scrollbar-width: none; }
  .pills li { flex: none; }
  .pipeline { gap: 18px; }
}

/* Short screens: small phones and phones held sideways */
@media (max-width: 900px) and (max-height: 640px) {
  #hero .eyebrow, .keycap { display: none; }
  .lead { margin: 10px 0 14px; font-size: .92rem; line-height: 1.5; }
  .hero-art .photo-tag { display: none; }
}

@media (max-width: 900px) and (max-height: 480px) {
  #hero { padding: 72px 0 calc(74px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.75rem; }
  .hero-art .photo::after { background: rgba(14, 19, 48, .78); }
}

/* Large monitors: scale the hero up with the screen */
@media (min-width: 1600px) and (min-height: 900px) {
  #hero .container, #header .container { width: min(1440px, 100% - 96px); }
  #hero h1 { font-size: 4.25rem; }
  .lead { font-size: 1.25rem; }
  .code-card { width: 380px; }
  #code-typer { font-size: .86rem; }
}

@media (min-width: 2200px) and (min-height: 1200px) {
  #hero .container, #header .container { width: min(1960px, 100% - 160px); }
  #hero h1 { font-size: 5.75rem; }
  #hero .eyebrow { font-size: 1rem; }
  .lead { font-size: 1.6rem; }
  .hero-actions .btn { padding: 18px 34px; font-size: 1.25rem; }
  .hero-art .photo > img:first-child { height: 72svh; max-height: 1100px; }
  .code-card { width: 500px; }
  #code-typer { font-size: 1.1rem; }
}

@media (max-width: 340px) {
  .hero-actions .btn { padding: 11px 13px; font-size: .88rem; }
}

@media (hover: none) {
  .js .service.reveal.in-view:hover, .js .work-link.reveal.in-view:hover, .btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .pulses { display: none; }
}
