@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Variable.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-heading: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --heading-weight: 700;
  --heading-tracking: -0.02em;

  --primary: #1762d4;
  --primary-hover: #1352b1;
  --primary-soft: #eef4fd;
  --accent: #4338ca;
  --accent-soft: #eef0fb;

  --bg: #ffffff;
  --bg-panel: #f5f7fa;
  --bg-dark: #0e0932;
  --surface: #ffffff;

  --text: #101828;
  --text-muted: #475467;
  --text-subtle: #667085;
  --text-on-dark: #f1eef9;
  --text-muted-on-dark: #b3abd3;

  --border: #e4e7ec;
  --border-strong: #d0d5dd;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 48px rgba(16, 24, 40, 0.12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p,
ul,
ol,
blockquote,
figure {
  margin: 0 0 1.1em;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 8px 16px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

/* --btn-bg: fill behind white text. Defaults to the brand color; dark mode sets a deeper blue
   so white text keeps a 4.5:1 contrast. */
.btn-primary {
  background: var(--btn-bg, var(--primary));
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--btn-bg-hover, var(--primary-hover));
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: " \2192";
}

.link-external::after {
  content: " \2197";
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo img {
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-panel);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn {
  padding: 11px 18px;
}

.social-link {
  display: inline-flex;
  color: var(--text-subtle);
  padding: 6px;
}

.social-link:hover {
  color: var(--primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(60% 80% at 0% 0%, var(--primary-soft) 0%, transparent 70%),
    var(--bg);
}

/* 45/55: the screenshot gets the wider column, so it shows close to its real size. */
.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.2;
}

.hero h1 .hero-big {
  font-size: 1.45em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--primary);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .hero-big {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero h1 .hero-big::selection {
    -webkit-text-fill-color: var(--text);
  }
}

.hero .nowrap {
  white-space: nowrap;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-shot {
  width: fit-content;
  max-width: 100%;
  justify-self: end;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Desktop: the screenshot shows at its own pixel size (1:1); it scales down only when the column is narrower.
   Up to 960 px, <picture> swaps in a full-size capture, so phones with 2-3x screens get enough pixels. */
.hero-shot picture {
  display: block;
}

.hero-shot img {
  width: auto;
  max-width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(50% 120% at 0% 0%, var(--primary-soft) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

.section {
  padding: 88px 0;
}

.section-panel {
  background: var(--bg-panel);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.section-foot {
  text-align: center;
  margin-top: 40px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-muted);
}

.card-link {
  display: flex;
  flex-direction: column;
}

.card-link .link-arrow {
  margin-top: auto;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-logo {
  align-self: flex-start;
  object-fit: contain;
}

.result-card .client-logo {
  height: 40px;
  width: auto;
}

.result-card blockquote {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}

.result-card .result {
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  color: var(--text);
  margin: 0;
}

.result-card .note {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin: 0;
}

.result-card .link-row {
  margin-top: auto;
}

.service-card h3 {
  font-size: 1.3rem;
}

.feature img {
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-panel);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.split + .split {
  border-top: 1px solid var(--border);
}

.split-media img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.split:nth-of-type(even) .split-media {
  order: -1;
}

.stat {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.stat p {
  margin: 0 0 8px;
  color: var(--text);
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat a {
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.quote-callout {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-callout p {
  margin: 0 0 8px;
  color: var(--text);
}

.quote-callout a {
  font-size: 0.88rem;
}

.cta-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 28px;
}

.cta-band p {
  color: var(--text-muted-on-dark);
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted-on-dark);
  font-size: 0.92rem;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-band + .site-footer {
  padding-top: 0;
  border-top: 0;
}

.cta-band + .site-footer .footer-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 26px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 320px;
}

.site-footer a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose > :first-child {
  margin-top: 0;
}

.service {
  padding: 72px 0;
}

.service + .service {
  border-top: 1px solid var(--border);
}

.service-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.service-intro h2 {
  margin-bottom: 16px;
}

.service-intro .subhead {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.service-intro .body p {
  color: var(--text-muted);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--btn-bg, var(--primary));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.service-label {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.service-label .eyebrow {
  margin: 0;
}

.subgrid .card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.subgrid .card p {
  font-size: 0.97rem;
}

.subgrid .card a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.areas {
  display: grid;
  gap: 20px;
}

.area {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
}

.area-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.area p {
  color: var(--text-muted);
}

.area p:first-of-type {
  color: var(--text);
}

.case {
  padding: 72px 0;
}

.case + .case {
  border-top: 1px solid var(--border);
}

.case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.case-intro .client-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.case-intro > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.case-intro .access-note {
  margin: 10px 0 0;
  max-width: 380px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

.case-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.case-image img {
  width: 100%;
}

.case-body {
  display: block;
  align-items: start;
}

.case-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pull {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}

.aside-diagram {
  margin: 0 0 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.aside-diagram img {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.aside-diagram figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231762d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.quote-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.quote-card img.photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-card blockquote {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 20px;
}

.person-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.person-title {
  color: var(--text-subtle);
  margin: 0;
}

.quote-card .client-logo {
  height: 32px;
  width: auto;
  margin-top: 16px;
}

.team {
  display: grid;
  gap: 32px;
}

.team-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.team-pair .person {
  grid-template-columns: 1fr;
  gap: 24px;
}

.team-pair .person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.team-pair .person h2 {
  font-size: 1.4rem;
}

.team-pair .person .role {
  font-size: 1rem;
  margin-bottom: 8px;
}

.team-pair .person p {
  font-size: 0.93rem;
  line-height: 1.6;
}

.person {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.person-photo {
  width: 240px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.person h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.person .role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.person .social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
}

.person .social svg {
  width: 16px;
  height: 16px;
}

.person p {
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-grid address {
  font-style: normal;
  line-height: 1.8;
}

.contact-grid .company-ids {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.phases {
  counter-reset: phase;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}

.phases li {
  counter-increment: phase;
  position: relative;
  padding-left: 72px;
}

.phases li::before {
  content: counter(phase);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phases h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.phases p {
  color: var(--text-muted);
}

.muted {
  color: var(--text-subtle);
}

@media (max-width: 1100px) {
  .site-nav a {
    padding: 8px 7px;
    font-size: 0.88rem;
  }

  .social-link {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 32px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
  }

  .site-nav.open {
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.1rem;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: none;
    color: var(--primary);
  }

  .site-nav .nav-cta {
    margin-top: 24px;
    border: 0;
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 14px 22px;
  }

  .site-nav .nav-cta:hover {
    color: #ffffff;
  }

  .header-actions {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-grid,
  .service-intro,
  .case-body,
  .case-head,
  .split {
    grid-template-columns: 1fr;
  }

  .case-head {
    gap: 32px;
  }

  .hero-grid {
    gap: 40px;
  }

  .split {
    gap: 24px;
  }

  .split:nth-of-type(even) .split-media {
    order: 0;
  }

  .split-media img {
    max-width: 360px;
  }

  .case-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 961px) {
  .site-nav .nav-cta,
  .site-nav .nav-home {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero p.lead {
    font-size: 1.0625rem;
  }

  .hero h1 {
    font-size: 7.2vw;
  }

  .hero h1 .hero-big {
    font-size: 1.38em;
  }

  .page-hero {
    padding: 44px 0 32px;
  }

  .grid-2,
  .grid-3,
  .contact-grid,
  .team-pair {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .case-head {
    grid-template-columns: 1fr;
  }

  .person,
  .quote-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .person-photo {
    width: 160px;
  }

  .quote-card img.photo {
    width: 88px;
    height: 88px;
  }

  .area {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .phases li {
    padding-left: 0;
    padding-top: 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-row {
    gap: 10px;
  }

  .btn-row .btn {
    flex: 1 1 140px;
    padding: 12px 12px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-nav {
    transition: none;
  }
}

.intro {
  font-size: 1.15rem;
}

.center {
  text-align: center;
}

.spaced {
  margin-top: 40px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.byline-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.byline p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-subtle);
}

.byline strong {
  color: var(--text);
}

.section-panel .stat {
  background: var(--surface);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.result-card .link-row {
  gap: 10px;
}

.team-pair .person-photo {
  margin: 0 auto;
}

.team-pair .person h2,
.team-pair .person .role {
  text-align: center;
}

.team-pair .person .social {
  display: flex;
  justify-content: center;
}

.logo .logo-dark {
  display: none;
}

.theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-subtle);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

@media (max-width: 960px) {
  .theme-toggle {
    order: 2;
    margin-left: auto;
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    order: 3;
    margin-left: 8px;
  }

  .site-nav {
    order: 4;
  }
}

.site-nav a {
  white-space: nowrap;
}

.header-inner {
  gap: 16px;
}

@media (max-width: 1240px) and (min-width: 961px) {
  .logo img {
    height: 24px;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 0.86rem;
  }

  .header-actions .btn {
    padding: 10px 14px;
  }
}

/* Hero: always uses the dark-mode look (navy fading to the page background),
   in light and dark mode. The variables below are the dark-mode values from dark.css. */
.hero {
  --primary: #4d8ff0;
  --primary-hover: #74a8f5;
  --primary-soft: rgba(77, 143, 240, 0.14);
  --accent: #8f8aff;
  --bg: #0b1020;
  --surface: #141c36;
  --text: #e8ebf4;
  --text-muted: #b5bdd0;
  --border: #232c4d;
  --border-strong: #34406a;
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
  --btn-bg: #2563eb;
  --btn-bg-hover: #1d4ed8;
  color: var(--text);
  background: linear-gradient(180deg, #111a33 0%, #0b1020 100%);
}

.hero .btn-primary,
.hero .btn-primary:hover {
  color: #ffffff;
}

/* Home testimonials: panel background (light gray in light mode, the lighter dark panel in dark mode). */
.section-brand {
  background: var(--bg-panel);
}

.section-brand .card {
  box-shadow: var(--shadow);
}

.service-card {
  border-top: 4px solid var(--service-color, var(--primary));
}

.service-card .eyebrow {
  color: var(--service-color, var(--primary));
}

.grid-3 .service-card:nth-child(1) {
  --service-color: #4338ca;
}

.grid-3 .service-card:nth-child(2) {
  --service-color: #1762d4;
}

.grid-3 .service-card:nth-child(3) {
  --service-color: #2a8fe0;
}

/* The light sky blue is too pale for small text on white; the label uses a deeper shade (5:1). */
.grid-3 .service-card:nth-child(3) .eyebrow {
  color: #1a73b8;
}

.case-body .prose::after {
  content: "";
  display: table;
  clear: both;
}

.case-body .prose > h2,
.case-body .prose > h3,
.case-body .prose > p,
.case-body .prose > ul {
  max-width: 760px;
}

.case-float {
  float: right;
  clear: right;
  width: 480px;
  max-width: calc(100% - 300px);
  margin: 0 0 32px 48px;
}

.case-highlights {
  float: right;
  clear: right;
  width: 300px;
  margin: 0 0 32px 48px;
  display: grid;
  gap: 14px;
}

.case-body .prose > h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 960px) {
  .case-float,
  .case-highlights {
    float: none;
    width: auto;
    max-width: none;
    margin: 0 0 28px;
  }
}

@media (min-width: 961px) {
  .site-nav .nav-meta {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-nav {
    padding: 24px 24px 32px;
    background:
      radial-gradient(70% 45% at 100% 0%, rgba(124, 192, 255, 0.22), transparent 70%),
      radial-gradient(70% 50% at 0% 100%, rgba(67, 56, 202, 0.4), transparent 70%),
      var(--bg-dark);
    border-top: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-on-dark);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a::after {
    content: "\2192";
    font-weight: 400;
    opacity: 0.35;
    transition: transform 0.15s, opacity 0.15s;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: #9cc8ff;
    background: none;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: translateX(4px);
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 32px;
    font-size: 1rem;
    border-bottom: 0;
  }

  .site-nav .nav-cta::after {
    content: none;
  }

  .site-nav .nav-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
  }

  .site-nav .nav-meta a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted-on-dark);
    padding: 4px 0;
    border-bottom: 0;
  }

  .site-nav .nav-meta a::after {
    content: none;
  }

  .site-nav.open > a,
  .site-nav.open .nav-meta {
    animation: nav-in 0.35s ease both;
  }

  .site-nav.open > a:nth-child(2) { animation-delay: 0.03s; }
  .site-nav.open > a:nth-child(3) { animation-delay: 0.06s; }
  .site-nav.open > a:nth-child(4) { animation-delay: 0.09s; }
  .site-nav.open > a:nth-child(5) { animation-delay: 0.12s; }
  .site-nav.open > a:nth-child(6) { animation-delay: 0.15s; }
  .site-nav.open > a:nth-child(7) { animation-delay: 0.18s; }
  .site-nav.open > a:nth-child(8) { animation-delay: 0.21s; }
  .site-nav.open > a:nth-child(9) { animation-delay: 0.24s; }
  .site-nav.open .nav-meta { animation-delay: 0.27s; }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav.open > a,
  .site-nav.open .nav-meta {
    animation: none;
  }
}

.menu-toggle span {
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.browser-frame {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.1);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  background: #f2f4f7;
  border-bottom: 1px solid var(--border);
}

.browser-url {
  font-size: 0.68rem;
  line-height: 1;
  color: #667085;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 14px;
}

.browser-frame img {
  display: block;
  width: 100%;
}

.aside-diagram.shot {
  padding: 0;
  border: 0;
  background: none;
}

.aside-diagram.shot figcaption {
  padding: 0 4px;
}


.case-float.aside-diagram:not(.shot) {
  padding: 0;
  border: 0;
  background: none;
}

.case-float.aside-diagram:not(.shot) figcaption {
  padding: 0 4px;
}

.testimonial-link {
  clear: both;
  margin-top: 32px;
}

/* Dark frame for the dark-theme screenshot: the hero's surface color with a lighter edge. */
.hero-shot {
  padding: 10px;
  background: var(--surface);
  border-color: var(--border-strong);
}

.hero-shot img {
  border-radius: 8px;
}

.case-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.case-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.case-title-row .client-logo {
  height: 46px;
  width: auto;
}

@media (max-width: 960px) {
  .case-body .prose {
    display: flex;
    flex-direction: column;
  }

  .case-body .prose > .o-1 {
    order: 1;
  }

  .case-body .prose > .o-2 {
    order: 2;
  }

  .case-body .prose > .o-3 {
    order: 3;
  }

  .case-body .prose > .o-4 {
    order: 4;
  }

  .case-body .prose > .o-5 {
    order: 5;
  }

  .case-body .prose > .o-6 {
    order: 6;
  }

  .case-body .prose > .o-7 {
    order: 7;
  }

  .case-body .prose > .o-8 {
    order: 8;
  }

  .case-body .prose > .o-9 {
    order: 9;
  }

  .case-body .prose > .o-10 {
    order: 10;
  }
}

@media (max-width: 720px) {
  .case-title-row .client-logo {
    height: 32px;
  }
}

.case-title-row .client-logo.logo-tinx {
  height: 36px;
}

@media (max-width: 720px) {
  .case-title-row .client-logo.logo-tinx {
    height: 25px;
  }
}

.areas {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.section .container > .intro,
.section .container > .areas + p,
.section .container > .areas + p + p {
  max-width: 780px;
}

@media (max-width: 960px) {
  .areas {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] {
  color-scheme: dark;

  --primary: #4d8ff0;
  --primary-hover: #74a8f5;
  --primary-soft: rgba(77, 143, 240, 0.14);
  --accent: #8f8aff;
  --accent-soft: rgba(143, 138, 255, 0.14);
  --btn-bg: #2563eb;
  --btn-bg-hover: #1d4ed8;

  --bg: #0b1020;
  --bg-panel: #10172d;
  --bg-dark: #070a16;
  --surface: #141c36;

  --text: #e8ebf4;
  --text-muted: #b5bdd0;
  --text-subtle: #8f98ae;
  --text-on-dark: #eef0f8;
  --text-muted-on-dark: #a9b1c8;

  --border: #232c4d;
  --border-strong: #34406a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 16, 32, 0.94);
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover {
  color: #ffffff;
}

[data-theme="dark"] .logo .logo-light {
  display: none;
}

[data-theme="dark"] .logo .logo-dark {
  display: block;
}

[data-theme="dark"] .client-logo {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  box-sizing: content-box;
}

[data-theme="dark"] .aside-diagram img {
  background: #ffffff;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .grid-3 .service-card:nth-child(1) {
  --service-color: #8f8aff;
}

[data-theme="dark"] .grid-3 .service-card:nth-child(2) {
  --service-color: #4d8ff0;
}

[data-theme="dark"] .grid-3 .service-card:nth-child(3) {
  --service-color: #7cc0ff;
}

[data-theme="dark"] .grid-3 .service-card:nth-child(3) .eyebrow {
  color: var(--service-color);
}

[data-theme="dark"] .browser-bar {
  background: #1b2340;
}

[data-theme="dark"] .browser-url {
  background: #10172d;
  color: #a9b1c8;
}
