:root {
  --navy-950: #031932;
  --navy-900: #082b58;
  --navy-800: #0c3c73;
  --teal: #10b8be;
  --teal-soft: #a9eef0;
  --violet: #6844c7;
  --ink: #10243a;
  --muted: #5f7082;
  --paper: #f5f8fb;
  --white: #fff;
  --line: rgba(8, 43, 88, .12);
  --shadow: 0 24px 70px rgba(3, 25, 50, .13);
  --shadow-soft: 0 14px 38px rgba(3, 25, 50, .09);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-150%); background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-sm { padding: 76px 0; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--navy-950); line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4.5rem); }
h3 { font-size: 1.35rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.7; }
.gradient-text { color: transparent; background: linear-gradient(100deg, var(--teal), #55dce0 42%, #9f82f1); background-clip: text; -webkit-background-clip: text; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(3,25,50,.9); backdrop-filter: blur(18px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo img { width: 190px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 700; }
.main-nav a { position: relative; text-decoration: none; }
.main-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--teal); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: transparent; color: #fff; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(100deg, var(--teal), #35cbd0); color: var(--navy-950); font-weight: 800; text-decoration: none; box-shadow: 0 14px 34px rgba(16,184,190,.22); cursor: pointer; transition: transform .22s ease, box-shadow .22s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(16,184,190,.32); }
.button-sm { min-height: 42px; padding-inline: 18px; font-size: .85rem; }
.button-outline { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); color: #fff; box-shadow: none; }
.button-dark { background: var(--navy-950); color: #fff; box-shadow: 0 14px 34px rgba(3,25,50,.2); }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--navy-900); font-weight: 800; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.hero { position: relative; min-height: 820px; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(104,68,199,.38), rgba(104,68,199,0) 69%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.hero-inner { position: relative; z-index: 2; min-height: 742px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; padding: 82px 0 70px; }
.hero h1 { color: #fff; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; color: rgba(255,255,255,.73); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; gap: 12px; align-items: center; margin-top: 32px; color: rgba(255,255,255,.64); font-size: .84rem; }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px rgba(16,184,190,.1); }
.showcase-window { position: relative; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; background: rgba(255,255,255,.08); box-shadow: 0 40px 100px rgba(0,0,0,.34); backdrop-filter: blur(18px); transform: rotate(1.5deg); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 10px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.32); }
.window-bar span { margin-left: 8px; color: rgba(255,255,255,.5); font-size: .68rem; }
.window-body { position: relative; min-height: 520px; overflow: hidden; padding: 38px; border-radius: 20px; background: linear-gradient(145deg, #f8fbfd, #e8f0f6); color: var(--ink); }
.window-body::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: linear-gradient(145deg, rgba(16,184,190,.26), rgba(104,68,199,.24)); }
.showcase-label { color: var(--violet); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.window-body > h2 { max-width: 410px; margin-top: 13px; font-size: clamp(2rem, 3.15vw, 3rem); }
.hero-services { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 27px; }
.hero-service { position: relative; min-height: 290px; display: flex; flex-direction: column; overflow: hidden; padding: 20px; border: 1px solid rgba(8,43,88,.08); border-radius: 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.hero-service:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(3,25,50,.15); }
.hero-service:focus-visible { outline-color: var(--navy-900); }
.website-service { background: linear-gradient(150deg, #0c3c73, #031932); color: #fff; }
.directory-service { background: rgba(255,255,255,.94); }
.hero-service-number { color: var(--teal); font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.directory-service .hero-service-number { color: var(--violet); }
.hero-service-copy { position: relative; z-index: 2; margin-top: 15px; }
.hero-service h3 { color: inherit; font-size: 1.18rem; letter-spacing: -.025em; }
.hero-service p { margin: 7px 0 0; color: inherit; font-size: .72rem; line-height: 1.45; opacity: .68; }
.service-visual { position: relative; display: block; margin-top: 16px; }
.browser-visual { height: 78px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.08); }
.browser-visual::before { content: ""; position: absolute; inset: 0 0 auto; height: 15px; background: rgba(255,255,255,.08); }
.browser-visual i { position: relative; z-index: 1; float: left; width: 4px; height: 4px; margin: 6px 0 0 4px; border-radius: 50%; background: rgba(255,255,255,.42); }
.browser-visual i:first-child { margin-left: 7px; }
.browser-visual b { position: relative; z-index: 1; display: inline-block; margin: 28px 0 0 6px; padding: 4px 5px; border-radius: 5px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.76); font-size: .47rem; }
.directory-visual { display: grid; gap: 8px; }
.directory-search { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(8,43,88,.13); border-radius: 10px; background: #f4f7fa; color: #718093; font-size: .57rem; }
.directory-search i { width: 10px; height: 10px; border: 2px solid var(--violet); border-radius: 50%; }
.directory-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.directory-pills b { padding: 4px 6px; border-radius: 999px; background: #eee9fb; color: #5940a8; font-size: .48rem; }
.hero-service-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid currentColor; font-size: .64rem; font-weight: 800; opacity: .78; }
.hero-service-link b { font-size: .9rem; }
.hero-strip { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.12); background: rgba(8,43,88,.76); }
.hero-stats { min-height: 78px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.hero-stats div { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { display: block; font-size: 1.08rem; }
.hero-stats span { color: rgba(255,255,255,.58); font-size: .75rem; }

.trust-row { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding: 32px 0; color: var(--muted); font-size: .82rem; }
.trust-row strong { color: var(--navy-900); }
.trust-row span { width: 1px; height: 28px; background: var(--line); }
.section-heading { max-width: 820px; margin-bottom: 56px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p:last-child { max-width: 680px; }
.section-heading.center p:last-child { margin-inline: auto; }

.service-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
.service-card { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.service-card.featured { grid-row: span 2; min-height: 738px; color: #fff; background: linear-gradient(150deg, var(--navy-900), var(--navy-950)); }
.service-card.featured h3 { color: #fff; font-size: clamp(2rem, 3vw, 3.25rem); }
.service-card.featured p { color: rgba(255,255,255,.65); }
.service-number { color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 50px; border-radius: 18px; background: #edf7f8; color: var(--teal); font-size: 1.5rem; font-weight: 800; }
.service-card.featured .service-icon { width: 82px; height: 82px; background: rgba(255,255,255,.08); }
.service-card p { margin-bottom: 0; color: var(--muted); }

.portfolio-section { overflow: hidden; background: #eaf0f5; }
.portfolio-top { display: flex; gap: 40px; align-items: end; justify-content: space-between; }
.portfolio-top .section-heading { margin-bottom: 40px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card { position: relative; min-height: 450px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border-radius: 28px; color: #fff; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; }
.project-card:nth-child(1), .project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 5; }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--project-bg, linear-gradient(145deg, #103c74, #031932)); }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(3,25,50,.94), rgba(3,25,50,.08) 75%); }
.project-art { position: absolute; width: 70%; height: 58%; top: 11%; right: -7%; border: 1px solid rgba(255,255,255,.23); border-radius: 24px 0 0 24px; background: rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.2); transform: rotate(-4deg); }
.project-art::before, .project-art::after { content: ""; position: absolute; border-radius: 18px; background: rgba(255,255,255,.16); }
.project-art::before { width: 60%; height: 18%; left: 10%; top: 12%; }
.project-art::after { width: 78%; height: 44%; left: 10%; bottom: 10%; }
.project-card:hover .project-art { transform: rotate(-1deg) translateY(-7px); transition: transform .35s ease; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: rgba(255,255,255,.66); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.project-card p { margin-bottom: 0; color: rgba(255,255,255,.68); }
.project-card.malasiqui { --project-bg: linear-gradient(145deg, #0c4d86, #072b55); }
.project-card.unifiber { --project-bg: linear-gradient(145deg, #0d767f, #052c56); }
.project-card.directory-card { --project-bg: linear-gradient(145deg, #6844c7, #18305d); }
.project-card.rrj { --project-bg: linear-gradient(145deg, #2e323d, #16191f); }

.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.process-list { border-top: 1px solid var(--line); }
.process-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-item span { color: var(--teal); font-size: .8rem; font-weight: 800; }
.process-item p { margin: 8px 0 0; color: var(--muted); }
.process-sticky { position: sticky; top: 120px; }

.cta-panel { position: relative; overflow: hidden; padding: clamp(46px, 8vw, 92px); border-radius: 34px; background: var(--navy-950); color: #fff; box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -130px; top: -170px; border-radius: 50%; background: linear-gradient(145deg, rgba(16,184,190,.3), rgba(104,68,199,.32)); filter: blur(4px); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 800px; color: #fff; }
.cta-panel p { max-width: 650px; color: rgba(255,255,255,.68); }

.site-footer { padding: 68px 0 24px; background: #021326; color: rgba(255,255,255,.68); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding-bottom: 50px; }
.footer-grid h3 { margin-bottom: 18px; color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; text-decoration: none; }
.footer-grid a:hover { color: var(--teal-soft); }
.footer-brand img { width: 205px; }
.footer-brand p { max-width: 390px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }

.page-hero { padding: 105px 0 82px; background: var(--navy-950); color: #fff; }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(3rem, 7vw, 6rem); }
.page-hero .lead { max-width: 720px; color: rgba(255,255,255,.68); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; }
.filter-button.active { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.all-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item { min-height: 370px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.portfolio-item[hidden] { display: none; }
.portfolio-thumb { min-height: 180px; position: relative; overflow: hidden; background: var(--thumb, linear-gradient(145deg, #0c4d86, #082b58)); }
.portfolio-thumb::before { content: ""; position: absolute; width: 74%; height: 72%; top: 17%; right: -10%; border: 1px solid rgba(255,255,255,.3); border-radius: 18px 0 0 0; background: rgba(255,255,255,.14); transform: rotate(-4deg); }
.portfolio-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.portfolio-body p { color: var(--muted); }
.portfolio-body .text-link { margin-top: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tag { padding: 5px 9px; border-radius: 999px; background: #edf4f8; color: var(--navy-800); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.notice { padding: 18px 20px; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; background: #e7f7f7; color: #35566a; font-size: .9rem; }

.quote-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: start; }
.quote-aside { position: sticky; top: 120px; }
.quote-aside ul { padding: 0; list-style: none; }
.quote-aside li { margin: 12px 0; color: var(--muted); }
.quote-aside li::before { content: "✓"; margin-right: 10px; color: var(--teal); font-weight: 900; }
.quote-form { padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: .82rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cbd8e2; border-radius: 12px; background: #fbfdff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { margin-top: 18px; color: var(--muted); font-size: .8rem; }
.form-success { margin-top: 18px; padding: 16px; border-radius: 12px; background: #e8f8f3; color: #17684e; }

.prose { max-width: 840px; }
.prose h2 { margin: 56px 0 18px; font-size: 2.1rem; }
.prose p, .prose li { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 78px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 26px 20px 34px; background: #031932; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; }
  .main-nav .button { margin-top: 12px; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .showcase-window { max-width: 680px; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 18px 0; }
  .hero-stats div { padding: 12px 18px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-row: auto; grid-column: 1 / -1; min-height: 470px; }
  .process-grid, .quote-layout { grid-template-columns: 1fr; gap: 50px; }
  .process-sticky, .quote-aside { position: static; }
  .all-projects { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .hero { min-height: auto; }
  .hero-inner { min-height: auto; gap: 45px; padding: 70px 0 60px; }
  .showcase-window { transform: none; }
  .window-body { min-height: 420px; padding: 26px; }
  .window-body > h2 { font-size: clamp(1.85rem, 9vw, 2.65rem); }
  .hero-services { grid-template-columns: 1fr; }
  .hero-service { min-height: 245px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .trust-row { align-items: flex-start; flex-direction: column; }
  .trust-row span { display: none; }
  .service-grid, .all-projects { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; }
  .portfolio-top { align-items: flex-start; flex-direction: column; }
  .project-card, .project-card:nth-child(n) { grid-column: span 12; min-height: 390px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .quote-form { padding: 24px 18px; }
}
