:root {
  --ink: #17212b;
  --muted: #5d6978;
  --line: #dfe6ee;
  --panel: #ffffff;
  --mist: #f5f8fb;
  --blue: #2f83d3;
  --blue-dark: #1760a3;
  --green: #1f9d78;
  --coral: #e86d4f;
  --gold: #d9a441;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--panel);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 112px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 6px;
  color: #394858;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 13px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #edf5fc;
  color: var(--blue-dark);
}

.site-nav .nav-cta {
  background: var(--blue);
  color: white;
  margin-left: 6px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--blue-dark);
  color: white;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(72px, 13vh, 140px) clamp(20px, 5vw, 72px) clamp(24px, 5vh, 56px);
  color: white;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 25, 39, 0.92), rgba(9, 25, 39, 0.68) 48%, rgba(9, 25, 39, 0.2)),
    linear-gradient(180deg, rgba(9, 25, 39, 0.06), rgba(9, 25, 39, 0.74)),
    url("assets/hero.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(790px, 100%);
  padding-bottom: clamp(64px, 11vh, 120px);
}

.eyebrow,
.kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee8c6;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.3rem);
  font-weight: 820;
}

h3 {
  font-size: 1.22rem;
  font-weight: 780;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
}

.hero-actions,
.section-heading {
  display: flex;
  gap: 12px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 800;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-stats div {
  padding: 18px;
  background: rgba(7, 20, 31, 0.46);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 5px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 850;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.proof-band {
  padding: 0 clamp(20px, 5vw, 72px);
  background: #10202f;
  color: white;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-grid article {
  min-height: 218px;
  padding: 30px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-grid span,
.project-proof span {
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.proof-grid span {
  color: #8ee8c6;
  margin-bottom: 18px;
}

.proof-grid strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.15;
}

.proof-grid p {
  color: rgba(255, 255, 255, 0.72);
  margin: 14px 0 0;
}

.section-heading {
  flex-direction: column;
  max-width: 820px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-heading p:last-child,
.intro-grid p,
.about-copy p,
.contact-grid p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.intro-band {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.45fr 1.25fr 0.8fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-card {
  min-height: 280px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #b8d8f2;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 28px;
}

.service-card p,
.work-card p,
.process-list p {
  grid-column: 2;
  color: var(--muted);
  margin: 12px 0 0;
}

.tech-section {
  padding-top: 0;
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(480px, 1.32fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
  padding-top: clamp(52px, 7vw, 78px);
  border-top: 1px solid var(--line);
}

.tech-copy h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.capability-stack {
  display: grid;
  gap: 14px;
}

.capability-stack article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.capability-stack h3 {
  font-size: 0.92rem;
  line-height: 1.2;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tech-item {
  display: grid;
  grid-template-rows: 54px auto;
  align-items: center;
  justify-items: center;
  width: 104px;
  min-height: 92px;
  margin: 0;
  padding: 12px 10px 10px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfd;
}

.tech-item img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.tech-item figcaption {
  align-self: end;
  color: #465464;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-height: 92px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfcfd;
  color: #465464;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 10px 12px;
  text-align: center;
}

.work-band {
  background: #10202f;
  color: white;
}

.work-band .section-heading p:last-child,
.work-card p {
  color: rgba(255, 255, 255, 0.72);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: grid;
  overflow: hidden;
  background: #182c3e;
  border-color: rgba(255, 255, 255, 0.12);
}

.work-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #e8eef5;
}

.work-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  background: #182c3e;
}

.feature-work {
  grid-column: span 3;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.feature-work img {
  height: 100%;
  aspect-ratio: auto;
}

.hpsc-work {
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
}

.project-logo-panel,
.project-screenshot-panel {
  display: grid;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 20% 20%, rgba(142, 232, 198, 0.14), transparent 34%),
    #f6f9fc;
}

.project-logo-panel img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  aspect-ratio: auto;
}

.project-screenshot-panel {
  padding: 0;
  overflow: hidden;
  background: #f6f9fc;
}

.project-screenshot-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: left top;
}

.work-card strong {
  display: block;
  color: #ffcb62;
}

.project-proof {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.project-proof span {
  color: rgba(255, 255, 255, 0.64);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.project-tags li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 9px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 18px;
  border-bottom: 2px solid rgba(142, 232, 198, 0.62);
  color: white;
  font-size: 0.88rem;
  font-weight: 850;
}

.project-link:hover,
.project-link:focus-visible {
  border-bottom-color: #8ee8c6;
  color: #8ee8c6;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.process-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.process-list span {
  color: var(--coral);
  font-weight: 850;
}

.client-band {
  background: var(--mist);
}

.compact-heading {
  max-width: 680px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.logo-grid img {
  width: 100%;
  height: 104px;
  object-fit: contain;
  padding: 22px;
  background: white;
  filter: grayscale(1);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
}

.about-copy {
  display: grid;
  gap: 18px;
}

.contact-section {
  background: #f9fbfd;
  border-top: 1px solid var(--line);
}

.contact-copy {
  display: grid;
  align-content: start;
  gap: 22px;
}

.contact-copy .kicker {
  margin-bottom: 2px;
}

.contact-copy h2 {
  margin-bottom: 4px;
}

.contact-copy > p:not(.kicker) {
  max-width: 720px;
}

address {
  display: grid;
  gap: 22px;
  margin-top: 34px;
  color: var(--muted);
  font-style: normal;
}

address a {
  color: var(--blue-dark);
  font-weight: 850;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #394858;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd9e4;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 131, 211, 0.16);
}

.form-note {
  min-height: 24px;
  color: var(--muted);
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 96px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .intro-grid,
  .service-grid,
  .proof-grid,
  .tech-layout,
  .process-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proof-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .capability-stack article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-work {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .feature-work > img,
  .feature-work .project-screenshot-panel {
    grid-row: 1;
  }

  .feature-work .work-content {
    grid-row: 2;
  }

  .project-screenshot-panel img {
    min-height: 280px;
  }

  .sticky-heading {
    position: static;
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand img {
    width: 96px;
  }

  .hero {
    min-height: 720px;
    padding-top: 70px;
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .hero-stats,
  .work-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .tech-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-item,
  .tech-badge {
    width: 100%;
  }

  .tech-item {
    min-height: 96px;
  }

  .feature-work {
    grid-column: span 1;
  }

  .feature-work > img {
    height: auto;
    min-height: 0;
  }

  .project-screenshot-panel img {
    min-height: 220px;
  }

  .hero-stats div {
    padding: 14px 16px;
  }

  .service-card {
    min-height: auto;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-list p {
    grid-column: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
