:root {
  --blue: #0048a8;
  --blue-2: #1463e0;
  --cyan: #7fd3ff;
  --ink: #07111f;
  --ink-2: #102033;
  --paper: #f4f7fb;
  --white: #ffffff;
  --muted: #5d6d82;
  --line: rgba(7, 17, 31, 0.1);
  --shadow: 0 24px 60px rgba(7, 17, 31, 0.16);
  --header: 76px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue-2));
  z-index: 40;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7, 17, 31, 0.08);
  transition: box-shadow .35s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 32px rgba(7, 17, 31, 0.1); }
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 54px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  color: #102033;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"] { color: var(--blue); }
.nav-cta {
  background: var(--blue-2);
  color: white !important;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--ink);
}
.nav-toggle-bars,
.nav-toggle-bars:before,
.nav-toggle-bars:after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle-bars:before,
.nav-toggle-bars:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars:before { top: -6px; }
.nav-toggle-bars:after { top: 6px; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(20, 99, 224, 0.45), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(0, 72, 168, 0.55), transparent 55%),
    var(--ink);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3.2rem 1.25rem 6.5rem;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.hero-photo { margin: 0; justify-self: end; width: min(420px, 100%); }
.hero-frame { position: relative; }
.hero-frame img {
  width: 100%;
  height: auto;
  background: transparent;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  max-width: 16ch;
  margin: 0.4rem 0 1rem;
}
.hero h1 span {
  display: block;
  color: var(--cyan);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.6rem;
}
.hero .eyebrow { color: var(--cyan); }
.lede {
  max-width: 42rem;
  font-size: 1.15rem;
  color: #c9d6ea;
  margin: 0 0 1.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(120deg, #1a74ff, #0048a8);
  color: white;
  box-shadow: 0 10px 30px rgba(20, 99, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  color: white;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
}
.btn-ghost.dark {
  color: var(--ink);
  border-color: rgba(7,17,31,.2);
  background: white;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 1.4rem 0 0;
  margin: 0;
}
.hero-pills li {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-wave {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 34%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.orb-a {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(127, 211, 255, 0.7), transparent 68%);
  animation: float 9s ease-in-out infinite;
}
.orb-b {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 18%;
  background: radial-gradient(circle, rgba(20, 99, 224, 0.8), transparent 70%);
  animation: float 11s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
  pointer-events: none;
}
.scroll-cue {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.marquee {
  overflow: hidden;
  background: var(--blue);
  color: white;
  border-top: 1px solid rgba(255,255,255,.15);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  padding: 0.85rem 0;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.marquee-track span { white-space: nowrap; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}
.band.narrow { max-width: 820px; }
.band-ink {
  max-width: none;
  background: var(--ink);
  color: white;
}
.band-ink .section-head,
.band-ink .service-grid,
.band-ink .work-grid { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 1.8rem; }
.section-head h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); max-width: 18ch; }
.band-ink .eyebrow { color: var(--cyan); }
.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.text-link.light { color: var(--cyan); }
.text-link:hover { text-decoration: underline; }
.store-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.store-links .text-link { margin-top: 0.7rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pillar {
  background: white;
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.pillar .num {
  font-family: var(--display);
  color: var(--blue);
  font-size: 1.4rem;
}
.pillar h3 { font-size: 1.7rem; margin: 0.6rem 0; }
a.pillar { text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
a.pillar:hover { transform: translateY(-6px); }
.lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.logo-grid li {
  background: white;
  border-radius: 18px;
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
}
.logo-grid img { max-height: 92px; width: auto; max-width: 100%; object-fit: contain; }
.logo-dark { background: #07111f !important; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.about-strip .about-photo img {
  height: 420px;
  object-fit: cover;
  object-position: center 28%;
}
.apps-grid { grid-template-columns: repeat(3, 1fr); }
.work-card.is-app .browser-shot {
  height: 460px;
  object-fit: contain;
  background: #07111f;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: white;
  color: var(--ink);
  border-radius: 20px;
  padding: 1.15rem;
  min-height: 230px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease;
}
.band-ink .service-card { background: #12233a; color: white; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 72, 168, 0.1);
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.band-ink .service-icon { background: rgba(127, 211, 255, 0.12); color: var(--cyan); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.service-card p { margin: 0; color: var(--muted); flex: 1; }
.band-ink .service-card p { color: #b7c6da; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.work-stack { grid-template-columns: 1fr; }
.work-card {
  display: grid;
  text-decoration: none;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .25s ease;
}
.work-card:hover { transform: translateY(-6px); }
.work-card.is-featured { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  background: #0d1828;
  color: #9eb0c8;
  font-size: 0.78rem;
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #355072;
}
.browser-bar em { margin-left: 0.4rem; font-style: normal; }
.browser-shot {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
  background: #e7eef8;
}
.work-card.is-featured .browser-shot { height: 340px; }
.work-card.is-app.is-featured .browser-shot {
  height: 340px;
  object-fit: contain;
  background: #07111f;
}
.work-copy { padding: 1.1rem 1.2rem 1.3rem; }
.work-copy h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.work-copy p { margin: 0; color: var(--muted); }
.kicker { margin: 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 700; }

.quote-band {
  background:
    linear-gradient(120deg, rgba(0,72,168,.92), rgba(7,17,31,.88)),
    url("../img/mark.png") right 8% center / 180px no-repeat;
  color: white;
  padding: 4.5rem 1.25rem;
}
.quote-band blockquote { max-width: 900px; margin: 0 auto; }
.quote-band p {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0;
}
.quote-band footer { margin-top: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }

.band-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: start;
}
.prose, .prose-block p { font-size: 1.08rem; color: #243246; }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.places li {
  background: white;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 30px rgba(7,17,31,.06);
}
.places strong { display: block; font-family: var(--display); font-size: 1.25rem; }
.places span { color: var(--muted); }

.page-hero {
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(20,99,224,.45), transparent 60%),
    var(--ink);
  color: white;
  padding: 4.2rem 1.25rem 3.2rem;
}
.page-hero .lede { color: #c9d6ea; }
.page-hero h1, .page-hero .lede, .page-hero .eyebrow, .page-hero .cta-row {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 { max-width: 16ch; }

.contact-form, .admin-form {
  display: grid;
  gap: 0.85rem;
}
.contact-form label, .admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(20, 99, 224, 0.35);
  border-color: var(--blue);
}
.hp { position: absolute; left: -9999px; }
.notice {
  background: #e7f6ee;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.notice.is-error { background: #fde8e8; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.contact-aside {
  background: white;
  border-radius: 22px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.big-link {
  font-family: var(--display);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--blue);
}
.subhead { margin: 2rem 0 0.6rem; font-size: 1.4rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.inline-links a {
  display: inline-block;
  text-decoration: none;
  background: white;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}

.site-footer {
  background: #050b14;
  color: #d5deea;
  padding: 3rem 1.25rem 1.4rem;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 1.5rem;
}
.footer-logo {
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 0.8rem;
  background: white;
  border-radius: 16px;
  padding: 0.55rem 0.7rem;
}
.site-footer h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.site-footer a { color: white; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.25rem 0; }
.legal { max-width: 1180px; margin: 2rem auto 0; color: #8ea0b8; font-size: 0.9rem; }

html.motion .reveal,
html.motion .page-hero > * {
  opacity: 0;
  transform: translateY(42px);
  animation: none;
  transition:
    opacity .7s ease,
    transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0ms);
}
html.motion .reveal.from-left { transform: translateX(-84px); }
html.motion .reveal.from-right { transform: translateX(84px); }
html.motion .reveal.pop { transform: translateY(28px) scale(.9); }
html.motion .reveal.is-in,
html.motion .page-hero > *.is-in {
  opacity: 1;
  transform: none;
  transition-duration: .7s, .28s;
  transition-delay: 0ms;
}
html.motion .work-card.reveal.is-in:hover,
html.motion a.pillar.reveal.is-in:hover,
html.motion .service-card.reveal.is-in:hover { transform: translateY(-8px); }
html.motion .hero-split > div > .reveal:nth-child(2) { --d: 90ms; }
html.motion .hero-split > div > .reveal:nth-child(3) { --d: 160ms; }
html.motion .hero-split > div > .reveal:nth-child(4) { --d: 230ms; }
html.motion .hero-photo.reveal { --d: 140ms; }
html.motion .lanes > .reveal:nth-child(2) { --d: 90ms; }
html.motion .lanes > .reveal:nth-child(3) { --d: 170ms; }
html.motion .lanes > .reveal:nth-child(4) { --d: 250ms; }
html.motion .service-grid > .reveal:nth-child(2) { --d: 80ms; }
html.motion .service-grid > .reveal:nth-child(3) { --d: 150ms; }
html.motion .service-grid > .reveal:nth-child(4) { --d: 220ms; }
html.motion .apps-grid > .reveal:nth-child(2) { --d: 110ms; }
html.motion .apps-grid > .reveal:nth-child(3) { --d: 210ms; }
html.motion .logo-grid > .reveal:nth-child(2) { --d: 70ms; }
html.motion .logo-grid > .reveal:nth-child(3) { --d: 130ms; }
html.motion .logo-grid > .reveal:nth-child(4) { --d: 190ms; }
html.motion .logo-grid > .reveal:nth-child(5) { --d: 250ms; }
html.motion .logo-grid > .reveal:nth-child(6) { --d: 310ms; }
html.motion .page-hero > :nth-child(2) { --d: 80ms; }
html.motion .page-hero > :nth-child(3) { --d: 150ms; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .pillars, .lanes, .service-grid, .footer-grid, .band-split, .work-card.is-featured, .apps-grid, .logo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .work-stack { grid-template-columns: 1fr; }
  .work-stack .work-card.is-featured { grid-column: auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #07111f;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { text-align: center; }
  .pillars, .lanes, .service-grid, .work-grid, .apps-grid, .logo-grid, .footer-grid, .band-split, .form-row, .work-card.is-featured, .hero-split {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 3rem; align-items: center; }
  .scroll-cue { display: none; }
  .brand img { height: 44px; }
  .hero-photo { order: -1; width: min(300px, 86%); margin: 0 auto; }
  .site-nav a { color: #e8eef8; }
  .site-nav a[aria-current="page"] { color: var(--cyan); }
  .browser-shot, .work-card.is-featured .browser-shot { height: 190px; }
  html.motion .reveal.from-left { transform: translateX(-32px); }
  html.motion .reveal.from-right { transform: translateX(32px); }
  .quote-band { background-size: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .page-hero > *,
  html.motion .work-card .browser { opacity: 1; transform: none; clip-path: none; }
  html { scroll-behavior: auto; }
}
