:root {
  --primary: #d4af37;
  --primary-soft: rgba(212, 175, 55, 0.12);
  --background: #0f1419;
  --foreground: #f5f5f5;
  --card: #1a2332;
  --card-elevated: #1f2a3d;
  --accent-foreground: #0f1419;
  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-muted: rgba(212, 175, 55, 0.12);
  --text-muted: rgba(245, 245, 245, 0.78);
  --text-soft: rgba(245, 245, 245, 0.62);
  --font-display: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
  --section-gap: clamp(4rem, 8vw, 6rem);
  --content-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@keyframes glow-drift {
  0%,
  100% {
    opacity: 0.78;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(-1.5rem, 1rem, 0) scale(1.08);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
  }
}

@keyframes arrow-flow-down {
  0%,
  100% {
    opacity: 0.48;
    transform: translateX(-50%) translateY(-0.1rem);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0.12rem);
  }
}

@keyframes arrow-flow-side {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.9;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a[href] {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--foreground);
  letter-spacing: -0.02em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.08;
  font-weight: 700;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 700;
}

h4 {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--accent-foreground);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--border-muted);
  background: rgba(15, 20, 25, 0.88);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  min-width: 0;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: opacity 0.25s ease;
}

.logo:hover,
.desktop-nav a:hover,
.mobile-nav a:hover,
.text-link:hover {
  color: rgba(212, 175, 55, 0.85);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--foreground);
  padding: 0.5rem;
}

.mobile-menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.close-icon,
.mobile-menu-button[aria-expanded="true"] .menu-icon {
  display: none;
}

.mobile-menu-button[aria-expanded="true"] .close-icon {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-muted);
  background: var(--card);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 3rem;
}

.hero-glow {
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 68%
  );
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
}

.hero-main {
  max-width: 52rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.small {
  margin-bottom: 0.625rem;
  font-size: 0.6875rem;
}

.hero-lead {
  max-width: 40rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
}

.hero-copy,
.large-copy,
.section-intro p,
.section-lead,
.contact-inner > p,
.three-column p,
.card p,
.bullet-list,
.arrow-list,
.decision-card p,
.highlight-card p,
.expertise-card > p,
.feature-points p,
.feature-note,
.project-meta dd {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.section-lead {
  max-width: 42rem;
  font-size: 1.0625rem;
}

.button-row,
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.button-row {
  margin-bottom: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: var(--accent-foreground);
}

.button-outline {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--primary);
  background: transparent;
}

.button-outline:hover {
  background: var(--primary-soft);
}

.button-primary:hover {
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
}

.button-compact {
  min-height: auto;
  padding: 0.75rem 1.375rem;
}

.proof-grid {
  display: grid;
  gap: 1.25rem;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.proof-grid div {
  padding-left: 1rem;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
}

.proof-grid dt {
  color: var(--foreground);
  font-weight: 500;
}

.proof-grid dd {
  margin-top: 0.25rem;
}

.positioning {
  display: none;
  padding: 1.75rem;
  border-radius: 0.75rem;
  background: rgba(26, 35, 50, 0.55);
}

.positioning ul {
  display: grid;
  gap: 0.875rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section {
  padding: var(--section-gap) 0;
}

.section-tinted {
  background: linear-gradient(
    180deg,
    rgba(26, 35, 50, 0.22) 0%,
    rgba(26, 35, 50, 0.38) 100%
  );
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-intro.flush {
  margin-bottom: 2rem;
}

#case-study {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

#case-study .section-intro {
  margin-bottom: 2rem;
}

.section-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-muted);
}

.block-heading {
  margin-bottom: 0.75rem;
}

.block-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.role {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 500;
}

.large-copy {
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
}

.case-hero {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  max-width: 78rem;
}

.case-hero-copy {
  max-width: 36rem;
}

.architecture-figure {
  margin: 0;
  width: min(100%, 22rem);
  justify-self: center;
}

.architecture-diagram {
  --diagram-gap: clamp(1.3rem, 3.5vw, 1.65rem);

  width: 100%;
  padding: clamp(1.1rem, 3.5vw, 1.45rem);
  border: 1px solid var(--border-muted);
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--background) 90%, #000 10%);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.architecture-title {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--primary);
  font-size: clamp(0.625rem, 2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.architecture-flow {
  display: grid;
  gap: var(--diagram-gap);
  overflow: visible;
}

.architecture-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(3rem, 10vw, 3.55rem);
  align-content: center;
  justify-items: center;
  padding: 0.7rem clamp(0.75rem, 4vw, 1.25rem);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 0.625rem;
  background: linear-gradient(180deg, var(--card-elevated), var(--card));
  color: var(--foreground);
  text-align: center;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.architecture-node:hover {
  border-color: rgba(212, 175, 55, 0.72);
  transform: translateY(-2px);
}

.architecture-node:not(:last-child)::before,
.architecture-node:not(:last-child)::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
  z-index: 2;
}

.architecture-node:not(:last-child)::before {
  top: calc(100% + 0.25rem);
  width: 1px;
  height: calc(var(--diagram-gap) - 0.85rem);
  background: rgba(212, 175, 55, 0.55);
}

.architecture-node:not(:last-child)::after {
  top: calc(100% + var(--diagram-gap) - 0.72rem);
  border-right: 0.35rem solid transparent;
  border-left: 0.35rem solid transparent;
  border-top: 0.7rem solid var(--primary);
  animation: arrow-flow-down 2.6s ease-in-out infinite;
}

.architecture-node strong,
.architecture-node span,
.architecture-node em {
  display: block;
}

.architecture-node strong {
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  line-height: 1.2;
}

.architecture-node span,
.architecture-node em {
  margin-top: 0.18rem;
  font-size: clamp(0.69rem, 2.15vw, 0.78rem);
  line-height: 1.3;
}

.architecture-node span {
  color: var(--text-muted);
}

.architecture-node em {
  color: rgba(212, 175, 55, 0.88);
  font-style: normal;
}

.architecture-node-cloud {
  border-color: var(--primary);
  background: linear-gradient(135deg, #243044, var(--card));
  animation: node-pulse 3.8s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.16),
    0 0 20px rgba(212, 175, 55, 0.32);
}

.architecture-figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.image-grid {
  display: grid;
  gap: 1rem;
}

.image-grid img {
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5);
}

.case-screenshots {
  margin-bottom: 1rem;
}

.three-column,
.two-column {
  display: grid;
  gap: 2rem;
}

.three-column h3,
.two-column h3 {
  margin-bottom: 0.875rem;
}

.bullet-list {
  display: grid;
  gap: 0.625rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.125rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--primary);
}

.decision-stack {
  display: grid;
  gap: 1rem;
}

.decision-card {
  padding: 1.375rem 1.5rem;
  border-radius: 0.625rem;
  background: rgba(26, 35, 50, 0.45);
  transition: background 0.25s ease;
}

.decision-card:hover {
  background: rgba(31, 42, 61, 0.65);
}

.decision-card p {
  font-size: 0.9375rem;
}

.decision-card strong {
  color: var(--primary);
  font-weight: 700;
}

.tradeoffs p {
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.highlight-grid {
  display: grid;
  gap: 1rem;
}

.highlight-card {
  padding: 1.375rem 1.5rem;
  border-radius: 0.625rem;
  background: rgba(26, 35, 50, 0.35);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  background: rgba(31, 42, 61, 0.55);
}

.highlight-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--foreground);
}

.platform-lead,
.client-list span {
  color: var(--text-muted);
  line-height: 1.7;
}

.platform-card {
  margin-bottom: 3rem;
}

.platform-lead {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.work-subheading {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-muted);
}

.client-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.client-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: rgba(15, 20, 25, 0.35);
}

.client-list a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: color 0.25s ease;
}

.client-list a:hover {
  color: rgba(212, 175, 55, 0.85);
}

.client-list span {
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .client-list li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}

.highlight-card p {
  font-size: 0.875rem;
}

.split-feature {
  display: grid;
  gap: 2.5rem;
}

.feature-body {
  display: grid;
  gap: 2rem;
}

.feature-points {
  display: grid;
  gap: 1.5rem;
}

.feature-points h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-family: var(--font-body);
}

.feature-aside {
  padding: 1.5rem;
  border-radius: 0.625rem;
  background: rgba(26, 35, 50, 0.5);
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tool-list li {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.feature-note {
  font-size: 0.875rem;
  font-style: italic;
}

.feature-cta {
  width: 100%;
  margin-top: 1.25rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  position: relative;
  border-radius: 0.75rem;
  background: rgba(26, 35, 50, 0.55);
  padding: 1.75rem;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(31, 42, 61, 0.7);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-arrow {
  color: rgba(212, 175, 55, 0.6);
  font-size: 1.125rem;
  transition: transform 0.25s ease;
}

.project-card:hover .card-arrow {
  transform: translate(2px, -2px);
}

.project-meta {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-meta dt {
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-meta dd {
  font-size: 0.9375rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag-row span {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(15, 20, 25, 0.45);
  color: var(--text-soft);
  font-size: 0.75rem;
}

.text-link {
  display: inline-flex;
  gap: 0.375rem;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.expertise-grid {
  display: grid;
  gap: 1.25rem;
}

.expertise-card {
  padding: 1.75rem;
  border-radius: 0.75rem;
  background: rgba(26, 35, 50, 0.4);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.expertise-card:hover {
  background: rgba(31, 42, 61, 0.58);
  transform: translateY(-2px);
}

.expertise-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.125rem;
  font-family: var(--font-body);
}

.expertise-card > p {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tags li {
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: rgba(15, 20, 25, 0.45);
  color: var(--text-soft);
  font-size: 0.75rem;
}

.contact-inner {
  max-width: 40rem;
  text-align: center;
}

.contact-inner > p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

.contact-actions {
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-meta {
  padding-top: 1.5rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

footer {
  border-top: 1px solid var(--border-muted);
  background: rgba(26, 35, 50, 0.35);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.analytics-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 40rem;
  margin: 0 auto;
  border-radius: 0.625rem;
  background: var(--card-elevated);
  padding: 1.25rem;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.65);
}

.analytics-banner[hidden] {
  display: none !important;
}

.analytics-banner p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.analytics-banner div {
  display: flex;
  gap: 0.75rem;
}

.analytics-banner .button {
  min-height: auto;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .card:hover,
  .highlight-card:hover,
  .button:hover,
  .architecture-node:hover,
  .expertise-card:hover {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .button-row,
  .contact-actions {
    flex-direction: row;
  }

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

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

  .wide-image {
    grid-column: span 2;
  }

  .three-column,
  .two-column,
  .card-grid.two,
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-button,
  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
  }

  .hero-lead {
    font-size: 1.375rem;
  }

  #case-study .section-intro {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .case-hero {
    max-width: 44rem;
    margin-right: auto;
    margin-left: auto;
    justify-items: center;
  }

  .case-hero-copy {
    justify-items: center;
    max-width: 36rem;
    text-align: center;
  }

  .architecture-figure {
    width: min(100%, 22rem);
  }

  .architecture-diagram {
    --diagram-gap: 1.35rem;

    padding: 1.3rem;
  }

  .feature-body {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    align-items: start;
  }

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

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

  .analytics-banner {
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .analytics-banner p {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1400px;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: end;
    gap: 4rem;
  }

  .case-hero {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(38rem, 1.28fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 4rem);
    justify-items: stretch;
    max-width: 82rem;
    margin-right: 0;
    margin-left: 0;
  }

  #case-study .section-intro {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .case-hero-copy {
    max-width: 31rem;
    padding-top: 0.25rem;
    text-align: left;
  }

  .architecture-figure {
    width: 100%;
    justify-self: stretch;
  }

  .architecture-diagram {
    --diagram-gap: 1.55rem;

    padding: 1.35rem;
  }

  .architecture-title {
    margin-bottom: 1.2rem;
  }

  .architecture-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.55rem 1.75rem;
  }

  .architecture-node {
    min-height: 5.05rem;
    padding: 0.7rem 0.9rem;
  }

  .architecture-node:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .architecture-node:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .architecture-node:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .architecture-node:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .architecture-node:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .architecture-node:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
  }

  .architecture-node:not(:last-child)::before,
  .architecture-node:not(:last-child)::after {
    top: 50%;
    left: auto;
    transform: translateY(-50%);
  }

  .architecture-node:not(:last-child)::after {
    border: 0;
    animation: arrow-flow-side 2.6s ease-in-out infinite;
  }

  .architecture-node:nth-child(1)::before,
  .architecture-node:nth-child(2)::before {
    left: calc(100% + 0.25rem);
    width: 1.05rem;
    height: 1px;
  }

  .architecture-node:nth-child(1)::after,
  .architecture-node:nth-child(2)::after {
    left: calc(100% + 1.25rem);
    border-top: 0.32rem solid transparent;
    border-bottom: 0.32rem solid transparent;
    border-left: 0.62rem solid var(--primary);
  }

  .architecture-node:nth-child(3)::before {
    top: calc(100% + 0.22rem);
    left: 50%;
    width: 1px;
    height: 1rem;
    transform: translateX(-50%);
  }

  .architecture-node:nth-child(3)::after {
    top: calc(100% + 1.1rem);
    left: 50%;
    border-right: 0.35rem solid transparent;
    border-left: 0.35rem solid transparent;
    border-top: 0.7rem solid var(--primary);
    transform: translateX(-50%);
  }

  .architecture-node:nth-child(4)::before,
  .architecture-node:nth-child(5)::before {
    right: calc(100% + 0.25rem);
    width: 1.05rem;
    height: 1px;
  }

  .architecture-node:nth-child(4)::after,
  .architecture-node:nth-child(5)::after {
    right: calc(100% + 1.25rem);
    border-top: 0.32rem solid transparent;
    border-right: 0.62rem solid var(--primary);
    border-bottom: 0.32rem solid transparent;
  }

  .architecture-node span,
  .architecture-node em {
    font-size: 0.74rem;
  }

  .positioning {
    display: block;
  }

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

  .split-feature {
    grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 4rem;
  }

  .split-feature .section-intro {
    margin-bottom: 0;
  }

  .feature-body {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (min-width: 1280px) {
  .footer-inner {
    flex-direction: row;
  }
}
