/* ── Work sphere (below the fold, not the hero) ── */

.page-wrap {
  position: relative;
  background-color: var(--bg);
  min-height: calc(100vh - 73px);
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
}

.grid-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 6%,
    rgba(255, 255, 255, 0.85) 12%,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0) 86%,
    #ffffff 100%
  );
  pointer-events: none;
}

.work-scene-section {
  position: relative;
  background-color: #f0ebe4;
  overflow: hidden;
}

.work-scene {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-sphere {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: sphere-spin 42s linear infinite;
}

@keyframes sphere-spin {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.hero-card {
  position: absolute;
  width: 130px;
  height: 180px;
  left: -65px;
  top: -90px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hero-sphere {
    animation: none;
  }
}

@media (max-width: 900px) {
  .work-scene {
    min-height: 46vh;
  }

  .hero-card {
    width: 100px;
    height: 138px;
    left: -50px;
    top: -69px;
  }
}


.hero-lead {
  margin-top: clamp(24px, 3vw, 32px);
  max-width: 42ch;
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
}

/* ── Work ── */

.work {
  position: relative;
  z-index: 5;
  padding: 80px 64px 120px;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #ffffff;
}

.work-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}

.work-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 64px);
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.work-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.work-item__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
}

.work-item__link:hover {
  opacity: 0.75;
}

.work-item__media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2.2 / 1;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
  margin-bottom: clamp(20px, 3vw, 28px);
}

.work-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item__link:hover .work-item__media img {
  transform: scale(1.03);
}

.work--featured .work-item__link:hover {
  opacity: 1;
}

.work--featured .work-item__media {
  position: relative;
}

.work--featured .work-item__media img {
  transform: none;
}

.work--featured .work-item__img {
  position: absolute;
  inset: 0;
}

.work--featured .work-item__img--default {
  position: relative;
  z-index: 0;
}

.work--featured .work-item__img--hover {
  z-index: 1;
  -webkit-mask-image: linear-gradient(135deg, #000 50%, transparent 50%);
  mask-image: linear-gradient(135deg, #000 50%, transparent 50%);
  -webkit-mask-size: 220% 220%;
  mask-size: 220% 220%;
  -webkit-mask-position: 100% 100%;
  mask-position: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: -webkit-mask-position 1.1s cubic-bezier(0.45, 0, 0.15, 1),
    mask-position 1.1s cubic-bezier(0.45, 0, 0.15, 1);
}

.work--featured .work-item__link:hover .work-item__img--hover {
  -webkit-mask-position: 0% 0%;
  mask-position: 0% 0%;
}

@media (prefers-reduced-motion: reduce) {
  .work--featured .work-item__img--hover {
    transition: none;
  }
}

.work-item__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  text-align: left;
}

.work-item__title {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.work-item__meta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.work-item__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  margin-top: clamp(14px, 2vw, 18px);
}

.work-item__stat {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  padding: 0 clamp(12px, 2vw, 18px);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.work-item__stat:first-child {
  padding-left: 0;
}

.work-item__stat:last-child {
  border-right: none;
}

.work-item__stat-num {
  color: var(--black);
  font-weight: 500;
}

.work-item__case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 32px);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.work--featured {
  padding-top: clamp(48px, 8vw, 80px);
}

.work--featured .work-list {
  max-width: 1240px;
}

.work__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 64px);
}

.work__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s ease;
}

.work__cta:hover {
  opacity: 0.55;
}

.about--cta {
  padding-top: 0;
}

.about--cta .headline {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  max-width: 18ch;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.about--cta.about--simple {
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(80px, 10vw, 120px);
  background-color: var(--bg);
}

.about--page .about__text + .about__text {
  margin-top: clamp(20px, 3vw, 28px);
}

.about--simple {
  padding-top: clamp(32px, 4vw, 48px);
}

.about--simple .about__inner {
  max-width: 720px;
  margin: 0 auto;
}

.about--simple .about__headline {
  max-width: 18ch;
}

.about--simple .about__text {
  max-width: 52ch;
}

.about--simple .about__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 40px);
}

.about--simple .about__link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.about--simple .about__link-secondary:hover {
  opacity: 1;
}

.hero--about + .about--simple {
  padding-top: 0;
}

.about--split {
  padding-top: clamp(48px, 6vw, 80px);
}

.about--split .about__grid {
  width: 100%;
  max-width: 1180px;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
  justify-content: center;
}

.about--split .about__content {
  max-width: none;
}

.about--split .about__headline {
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.about--split .about__text {
  max-width: 52ch;
  margin-bottom: 0;
}

.about--split .about__text + .about__text {
  margin-top: clamp(12px, 1.5vw, 16px);
}

.about--split .about__links,
.about--simple .about__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 32px);
}

.about--split .about__link-secondary,
.about--simple .about__link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.about--split .about__link-secondary:hover,
.about--simple .about__link-secondary:hover {
  opacity: 1;
}

.about--split-reverse .about__grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}

.about--split .about__media {
  width: 100%;
  max-width: 420px;
  height: auto;
  min-height: 100%;
  align-self: stretch;
}

.about--split .about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about--split-reverse .about__media img {
  object-position: center 20%;
}

.about__media-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.about__media-wrap .about__media {
  flex: 1;
  min-height: 0;
  height: auto;
}

.about__media-caption {
  flex-shrink: 0;
  margin: clamp(12px, 1.5vw, 16px) 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

.testimonial--about {
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 64px;
  background-color: var(--bg);
  background-image: none;
}

/* ── Service pages ── */

.service-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(24px, 3vw, 32px);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-page__back:hover {
  color: var(--navy);
}

.hero--service .page-hero {
  min-height: auto;
  padding-top: clamp(64px, 10vh, 100px);
  padding-bottom: clamp(32px, 4vh, 48px);
}

.service-page .case-study__intro {
  padding-top: clamp(40px, 5vw, 56px);
}

.about__media--diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: clamp(280px, 36vw, 420px);
}

.about__media--diagram img {
  width: 100%;
  height: auto;
  max-height: clamp(280px, 36vw, 420px);
  object-fit: contain;
  box-shadow: none;
}

.about--process-stack .about__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  gap: clamp(8px, 1.5vw, 12px);
}

.about--process-stack .about__content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: center;
}

.about--process-stack .about__text {
  display: none;
}

.about--process-stack .about__media--diagram {
  width: 100%;
  min-height: 0;
  aspect-ratio: 960 / 250;
}

.about--process-stack .about__media--diagram img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.about--process-stack .about__media--diagram--workflow {
  aspect-ratio: 960 / 380;
}

.about.about--process-stack.about--process-stack--plain {
  background-color: #ffffff;
  background-image: none;
}

.about.about--process-stack.about--process-stack--plain::before {
  display: none;
}

.service-page__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 32px);
}

.service-page__link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-page__link-secondary:hover {
  color: var(--navy);
}

.case-study__results--service {
  position: relative;
  z-index: 5;
  max-width: none;
  width: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.case-study__results--service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 12%,
    rgba(255, 255, 255, 0) 88%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 0;
}

.case-study__results--service .case-study__section-label,
.case-study__results--service .case-study__headline {
  position: relative;
  z-index: 2;
}

.case-study__results--service .case-study__results-grid,
.case-study__results--service .case-study__results-diagram {
  position: relative;
  z-index: 1;
}

.case-study__results-diagram {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 1000 / 340;
}

.case-study__results--service .case-study__results-diagram {
  width: min(1320px, 100%);
  max-width: 1320px;
  margin: 0 auto;
}

.case-study__results--service .case-study__headline--center {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.case-study__results-diagram img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Process ── */

.process {
  position: relative;
  z-index: 5;
  padding: 80px 64px 120px;
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

.process-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  max-width: 720px;
  margin: 0 auto;
}

.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.process-item__step {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.process-item__title {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: clamp(12px, 2vw, 16px);
}

.process-item__text {
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
  max-width: 46ch;
}

/* ── FAQ ── */

.faq {
  position: relative;
  z-index: 5;
  padding: 80px 64px 120px;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #ffffff;
}

.faq-label {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}

.faq__inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item__heading {
  margin: 0;
  font-weight: inherit;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 24px);
  width: 100%;
  padding: clamp(20px, 3vw, 28px) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy);
  transition: color 0.2s ease;
}

.faq-item__trigger:hover {
  color: var(--navy-light);
}

.faq-item__question {
  flex: 1;
  min-width: 0;
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--navy);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item--open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item--open .faq-item__panel {
  max-height: var(--faq-panel-max, 16rem);
}

.faq-item__content {
  overflow: hidden;
}

.faq-item__answer {
  margin: 0;
  padding-bottom: clamp(20px, 3vw, 28px);
  max-width: 56ch;
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel,
  .faq-item__chevron {
    transition: none;
  }
}

.services--compact .services__inner {
  min-height: 100vh;
}

.page-hero {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 160px);
  padding: clamp(120px, 14vh, 160px) 64px clamp(240px, 32vh, 340px);
  max-width: 1440px;
  margin: 0 auto;
}

.hero--work,
.hero--about {
  min-height: auto;
}

.hero--work .page-hero,
.hero--about .page-hero {
  min-height: auto;
  padding-top: clamp(64px, 10vh, 100px);
  padding-bottom: clamp(32px, 4vh, 48px);
}

.hero--work + .work {
  padding-top: clamp(32px, 4vw, 48px);
}

.hero--work .hero-content,
.hero--about .hero-content {
  margin-left: 0;
  margin-right: auto;
  transform: none;
  text-align: left;
}

.hero--work .headline,
.hero--about .headline {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  max-width: 18ch;
}

.hero--work .hero-lead,
.hero--about .hero-lead {
  max-width: 46ch;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto;
  transform: translateX(clamp(36px, 5vw, 80px));
}

.hero-headline {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: clamp(10px, 1.6vw, 18px);
  width: 100%;
  margin: 0;
  font-weight: inherit;
}

.hero-headline__row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
  width: 100%;
  position: relative;
  isolation: isolate;
}

.hero-headline__row--start {
  justify-content: flex-start;
  z-index: 1;
  padding-top: clamp(48px, 7vh, 88px);
  padding-left: clamp(24px, 4vw, 56px);
}

.hero-headline__row--center {
  justify-content: center;
  z-index: 3;
  padding: clamp(6px, 1vw, 10px) 0;
}

.hero-headline__row--end {
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 1;
  padding-right: clamp(24px, 4vw, 56px);
}

.hero-headline__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 16px);
}

.hero-headline__word {
  font-family: var(--sans);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--black);
  text-transform: lowercase;
  position: relative;
  z-index: 2;
}

.hero-headline__word--accent {
  font-family: var(--sans);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-transform: lowercase;
}

.hero-headline__thumb {
  display: block;
  flex-shrink: 0;
  width: clamp(220px, 28vw, 400px);
  height: clamp(118px, 14.5vw, 210px);
  overflow: hidden;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.14));
}

.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 18px);
  max-width: 38ch;
}

.hero-foot .hero-lead {
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
}

.hero-foot .cta {
  margin-top: 0;
}

.headline {
  font-family: var(--sans);
  font-size: clamp(3.25rem, 6.25vw, 6.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--navy);
  max-width: 100%;
}

.headline-light {
  font-weight: 400;
}

.headline strong,
.headline-bold {
  display: inline;
  font-weight: 700;
  color: var(--navy);
}

.headline-accent {
  display: inline;
  font-weight: 700;
  color: var(--navy);
}

/* ── Contact page ── */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  width: 100%;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 32px);
  padding-top: clamp(8px, 1.5vw, 16px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: clamp(28px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 31, 60, 0.1);
  box-shadow: var(--shadow-card);
}

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

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-form__optional {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-muted);
}

.contact-form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(26, 31, 60, 0.15);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--navy);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%231a1f3c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.contact-form__submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form-panel {
  width: 100%;
}

.contact-form--sent {
  justify-content: center;
  min-height: clamp(320px, 42vw, 420px);
}

.contact-success__headline {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: clamp(14px, 2vw, 18px);
}

.contact-success__text {
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-success__text a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-success__text a:hover {
  opacity: 0.65;
}

.contact-aside {
  margin-top: clamp(16px, 3vw, 32px);
  text-align: left;
}

.contact-aside__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-aside__email {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-aside__email:hover {
  opacity: 0.65;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s ease;
}

.cta:hover {
  opacity: 0.55;
}

.cta-arrow {
  font-size: 1rem;
  line-height: 1;
}

.cta,
.about__cta,
.work__cta,
.testimonial__cta,
.service-card__link,
.work-item__case-link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* ── Hero Images (inner pages) ── */

.hero-images {
  position: absolute;
  top: clamp(340px, 44vh, 450px);
  right: 64px;
  width: 780px;
  max-width: calc(55% - 32px);
  height: 340px;
  z-index: 1;
  pointer-events: none;
}

.image-card {
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}

.hero-images .image-card {
  position: absolute;
  pointer-events: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.14));
}

.hero-headline__thumb.image-card {
  position: relative;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
}

.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card--back {
  bottom: 0;
  left: 0;
  width: 420px;
  height: 260px;
  z-index: 1;
}

.image-card--front {
  top: 0;
  right: 0;
  width: 440px;
  height: 280px;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18));
}

.hero-images--single {
  top: clamp(340px, 44vh, 450px);
  width: 440px;
  max-width: calc(55% - 32px);
  height: 280px;
}

/* ── Services (stacked wallet) ── */

.services {
  position: relative;
  z-index: 5;
  background-color: #ffffff;
}

/* ── Ticker ── */

.ticker {
  position: relative;
  z-index: 6;
  background-color: #f0ebe4;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}

.ticker__viewport {
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: clamp(22px, 3vw, 36px) 0;
}

.ticker__item {
  flex-shrink: 0;
  padding: 0 clamp(24px, 3.5vw, 44px);
  font-family: var(--sans);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

.services--stack {
  text-align: center;
  overflow: hidden;
}

.services--stack .services__inner {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.services--stack:not(.services--compact) {
  margin-top: clamp(-32px, -3vw, -16px);
}

.services--stack:not(.services--compact) .services__inner {
  padding-top: clamp(36px, 4.5vw, 52px);
  padding-bottom: 0;
  min-height: 100vh;
}

.services--stack:not(.services--compact) .services-label {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.services--stack:not(.services--compact) .services-stack {
  flex: 1;
  height: auto;
  min-height: clamp(720px, 86vh, 920px);
}

.services__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 80px) clamp(32px, 4vw, 64px) clamp(48px, 6vw, 64px);
}

.services-label {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: clamp(32px, 5vw, 48px);
  padding: 0 clamp(32px, 4vw, 64px);
}

.services-stack {
  position: relative;
  width: 100%;
  height: clamp(780px, 90vh, 980px);
  margin: 0;
  overflow: hidden;
}

.service-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  text-align: left;
  will-change: transform;
  transform-origin: center top;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 48px rgba(0, 0, 0, 0.1);
}

.service-card__header {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 24px);
  flex-shrink: 0;
  padding: clamp(28px, 4vw, 40px) clamp(32px, 5vw, 64px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.service-card__num {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.service-card__title {
  font-family: var(--sans);
  font-size: clamp(3.25rem, 6.25vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-transform: uppercase;
}

.service-card__body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) clamp(32px, 5vw, 64px) clamp(36px, 4.5vw, 52px);
  min-height: 0;
}

.service-card__body:has(.service-card__media--diagram) {
  min-height: min-content;
  flex-shrink: 0;
  overflow: visible;
}

.service-card__body:has(.service-card__media--diagram) .service-card__content {
  align-self: center;
}

.service-card__body:has(.service-card__media--diagram img[src*="lead-intake-automation"]),
.service-card__body:has(.service-card__media--ai-diagram) {
  grid-template-columns: 1fr;
}

.service-card__media--diagram:has(img[src*="lead-intake-automation"]),
.service-card__media--ai-diagram {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  filter: none;
}

.service-card__media--diagram:has(img[src*="lead-intake-automation"]) img,
.service-card__media--ai-diagram img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0;
  object-fit: unset;
}

@media (min-width: 1025px) {
  .service-card__body:has(.service-card__media--diagram img[src*="lead-intake-automation"]),
  .service-card__body:has(.service-card__media--ai-diagram) {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .service-card__media--diagram:has(img[src*="lead-intake-automation"]),
  .service-card__media--ai-diagram {
    aspect-ratio: 730 / 400;
    justify-self: end;
    width: calc(100% - clamp(20px, 3vw, 40px));
    margin-left: clamp(24px, 4vw, 48px);
  }

  .service-card__media--diagram:has(img[src*="lead-intake-automation"]) img,
  .service-card__media--ai-diagram img {
    padding: clamp(4px, 0.8vw, 8px);
  }
}

.service-card__media {
  overflow: hidden;
  width: 100%;
  height: clamp(280px, 38vh, 420px);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
  will-change: clip-path;
}

.service-card__media--diagram {
  height: auto;
  filter: none;
}

.service-card__media--diagram:has(img[src*="seo-process-wheel"]),
.service-card__media--seo-wheel {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.services--static .service-card__media {
  clip-path: none !important;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

.service-card__media--diagram img {
  object-fit: contain;
}

.service-card__media--diagram:has(img[src*="seo-process-wheel"]) img,
.service-card__media--seo-wheel img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0;
  object-fit: unset;
}

.service-card__text {
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
  max-width: 42ch;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.service-card__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 14px);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.service-card__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
}

.service-card__points li::before {
  content: '✓';
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s ease;
}

.service-card__link:hover {
  opacity: 0.55;
}

.service-card--reverse .service-card__media {
  order: 2;
}

.service-card--reverse .service-card__content {
  order: 1;
}

/* ── Case study ── */

.case-study {
  background: var(--white);
}

.case-study__hero {
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 64px) clamp(56px, 7vw, 80px);
  max-width: 1440px;
  margin: 0 auto;
}

.case-study__hero-inner {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.case-study__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(28px, 4vw, 40px);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-study__back:hover {
  color: var(--navy);
}

.case-study__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.case-study__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: clamp(12px, 2vw, 16px);
}

.case-study__title-light {
  font-weight: 400;
}

.case-study__title strong {
  font-weight: 700;
}

.case-study__meta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(28px, 4vw, 36px);
}

.case-study__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  list-style: none;
}

.case-study__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-study__stat-num {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--navy);
}

.case-study__hero-media {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  will-change: clip-path;
}

.case-study__hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-study__hero-media--natural img {
  aspect-ratio: auto;
  object-fit: initial;
}

.case-study__intro,
.case-study__block {
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
}

.case-study__block--alt {
  background: var(--bg);
}

.case-study__intro-grid,
.case-study__block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.case-study__section-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.case-study__headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.case-study__headline-light {
  font-weight: 400;
}

.case-study__headline strong {
  font-weight: 700;
}

.case-study__headline--center {
  text-align: center;
  max-width: 18ch;
  margin: 0 auto clamp(40px, 5vw, 56px);
}

.case-study__intro-text,
.case-study__block-text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
}

.case-study__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 14px);
  margin-top: clamp(8px, 1vw, 12px);
}

.case-study__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.case-study__list li::before {
  content: '✓';
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--navy);
  font-weight: 500;
}

.case-study__figure {
  margin: 0;
  padding: 0 clamp(24px, 4vw, 64px) clamp(64px, 8vw, 96px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  will-change: clip-path;
}

.case-study__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.case-study__results {
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
}

.case-study__results.case-study__results--service {
  max-width: none;
  width: 100%;
}

.about--split:has(+ .case-study__results--about) {
  padding-bottom: clamp(32px, 4vw, 48px);
}

.case-study__results--about {
  position: relative;
  z-index: 5;
  max-width: none;
  width: 100%;
  padding-top: clamp(32px, 4vw, 48px);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.case-study__results--about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 12%,
    rgba(255, 255, 255, 0) 88%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 0;
}

.case-study__results--about .case-study__headline,
.case-study__results--about .case-study__results-grid {
  position: relative;
  z-index: 1;
}

.case-study__results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 40px);
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
}

.case-study__result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3vw, 32px) clamp(16px, 2vw, 24px);
  background: var(--bg);
  border: 1px solid rgba(26, 31, 60, 0.08);
}

.case-study__result-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}

.case-study__result-label {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.case-study__quote .testimonial__inner {
  max-width: 720px;
}

.case-study__quote-meta {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.case-study__cta {
  padding-top: 0;
}

.services--static .services-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: auto;
}

.services--static .service-card {
  position: relative;
  inset: auto;
  transform: none !important;
}

/* ── About ── */

.about {
  position: relative;
  z-index: 5;
  padding: 80px 64px 120px;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #ffffff;
}

.about.about--process-stack {
  position: relative;
  z-index: 5;
  max-width: none;
  width: 100%;
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 64px);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.about.about--process-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 12%,
    rgba(255, 255, 255, 0) 88%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 0;
}

.about.about--process-stack .about__grid {
  position: relative;
  z-index: 1;
}

.about.about--process-stack .about__label {
  margin-bottom: clamp(16px, 2vw, 20px);
}

.about.about--process-stack .about__headline {
  margin-bottom: 0;
}

.service-page .case-study__intro:has(+ .about--process-stack) {
  padding-bottom: 0;
}

.about--process-stack + .case-study__block {
  padding-top: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px) auto;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.about__content {
  max-width: 520px;
}

.about__label {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.about__headline {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.about__headline-bold {
  color: var(--black);
}

.about__headline-accent {
  font-weight: 700;
  color: var(--accent);
}

.about__headline--sans {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.about__headline-light {
  font-weight: 400;
}

.about__headline--sans strong {
  font-weight: 700;
  color: var(--navy);
}

.about__text {
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.78);
  max-width: 46ch;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.about__text strong {
  font-weight: 600;
  color: var(--navy);
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s ease;
}

.about__cta:hover {
  opacity: 0.55;
}

.about__media {
  justify-self: start;
  width: clamp(340px, 32vw, 480px);
  height: clamp(528px, 50.4vw, 744px);
  overflow: hidden;
  will-change: clip-path;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.14));
}

.about__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about__media--crop-left img {
  object-position: 18% center;
}

.about__media--crop-far-left img {
  object-position: left center;
}

.about__media--crop-right img {
  object-position: 82% center;
}

.about.about--process-stack .about__media.about__media--diagram {
  justify-self: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 960 / 250;
  overflow: visible;
  filter: none;
}

.about.about--process-stack .about__media.about__media--diagram--workflow {
  aspect-ratio: 960 / 380;
}

.about.about--process-stack .about__media.about__media--diagram img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Testimonial ── */

.testimonial {
  position: relative;
  z-index: 5;
  padding: clamp(96px, 14vw, 160px) 64px clamp(80px, 10vw, 120px);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 14%,
    rgba(255, 255, 255, 0) 16%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 0;
}

.testimonial__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  margin: 0;
}

.testimonial__quote p {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--black);
}

.testimonial__cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 40px);
}

.testimonial__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s ease;
}

.testimonial__cta:hover {
  opacity: 0.55;
}

.testimonial.testimonial--about::before {
  display: none;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .case-study__intro-grid,
  .case-study__block-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 32px);
  }

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

  .page-hero {
    padding: 72px 40px 64px;
    min-height: auto;
  }

  .work {
    padding: 64px 40px 96px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .process {
    padding: 64px 40px 96px;
  }

  .faq {
    padding: 64px 40px 96px;
  }

  .process-item {
    grid-template-columns: 48px 1fr;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-headline__row--center {
    justify-content: center;
  }

  .hero-headline__row--end {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-images {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 72px;
    margin-left: auto;
    max-width: 620px;
    width: 100%;
    height: 280px;
  }

  .image-card--back {
    width: 340px;
    height: 210px;
  }

  .image-card--front {
    width: 360px;
    height: 225px;
  }

  .services--stack .services__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .services--stack:not(.services--compact) .services__inner {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .services--stack:not(.services--compact) .services-stack {
    min-height: clamp(540px, 64vh, 720px);
  }

  .services__inner {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .services-stack {
    height: clamp(720px, 88vh, 900px);
  }

  .service-card__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card__body:has(.service-card__media--diagram) .service-card__content {
    align-self: stretch;
  }

  .service-card__body:has(.service-card__media--diagram img[src*="lead-intake-automation"]),
  .service-card__body:has(.service-card__media--ai-diagram) {
    grid-template-columns: 1fr;
  }

  .service-card--reverse .service-card__media,
  .service-card--reverse .service-card__content {
    order: unset;
  }

  .service-card__media--diagram:has(img[src*="lead-intake-automation"]),
  .service-card__media--ai-diagram {
    justify-self: stretch;
    width: 100%;
    margin-left: 0;
    aspect-ratio: auto;
  }

  .about {
    padding: 64px 40px 96px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    width: 100%;
  }

  .about--split .about__grid,
  .about--split-reverse .about__grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
    width: 100%;
    max-width: 100%;
  }

  .about--split:not(.about--split-reverse) .about__content {
    order: 1;
  }

  .about--split:not(.about--split-reverse) .about__media {
    order: 2;
  }

  .about--split .about__media-wrap,
  .about--split-reverse .about__media-wrap {
    order: 1;
    max-width: min(360px, 100%);
    height: auto;
    min-height: 0;
    align-self: center;
  }

  .about--split .about__media,
  .about--split-reverse .about__media {
    order: unset;
    max-width: 100%;
    height: clamp(320px, 60vw, 480px);
    min-height: 0;
    align-self: center;
  }

  .about--split .about__content,
  .about--split-reverse .about__content {
    order: 2;
  }

  .about--split .about__text,
  .about--split-reverse .about__text {
    max-width: none;
  }

  .testimonial--about {
    padding: clamp(64px, 10vw, 96px) 40px;
  }

  .case-study__results--about {
    padding-left: 40px;
    padding-right: 40px;
  }

  .about--split .about__media img,
  .about--split-reverse .about__media img {
    height: 100%;
  }

  .about__content {
    max-width: none;
  }

  .about__media {
    justify-self: center;
    width: min(360px, 100%);
    height: clamp(456px, 84vw, 552px);
  }

  .about.about--process-stack .about__media.about__media--diagram {
    width: 100%;
    height: auto;
  }

  .testimonial {
    padding: 80px 40px 72px;
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
  }

  .contact-intro {
    padding-top: 0;
  }

  .case-study__results--service .case-study__headline--center {
    margin-bottom: clamp(24px, 4vw, 32px);
  }

  .case-study__results--service .case-study__results-diagram {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .case-study__results-grid {
    grid-template-columns: 1fr;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 56px 24px 48px;
  }

  .work {
    padding: 48px 24px 80px;
  }

  .process {
    padding: 48px 24px 80px;
  }

  .faq {
    padding: 48px 24px 80px;
  }

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

  .headline {
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1.15;
  }

  .hero--work .headline,
  .hero--about .headline {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: none;
  }

  .service-card__title {
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1.15;
  }

  .service-card__num {
    font-size: clamp(1.125rem, 5vw, 1.5rem);
  }

  .cta {
    margin-top: 32px;
  }

  .hero-images {
    position: relative;
    top: auto;
    right: auto;
    height: 220px;
    max-width: 100%;
    margin-top: 64px;
    margin-left: auto;
  }

  .hero-images--single {
    height: 220px;
    max-width: 100%;
  }

  .hero-images--single .image-card--front {
    width: min(100%, 440px);
    height: 175px;
    right: 0;
  }

  .image-card--back {
    width: 58%;
    height: 160px;
    left: 0;
  }

  .image-card--front {
    width: 62%;
    height: 175px;
    right: 0;
  }

  .services__inner {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .service-card__body {
    max-width: none;
  }

  .services-stack {
    height: auto;
  }

  .about {
    padding: 48px 24px 80px;
  }

  .about.about--process-stack {
    padding: clamp(48px, 8vw, 64px) 24px;
  }

  .about--split {
    padding-top: clamp(32px, 6vw, 48px);
  }

  .about--split .about__grid,
  .about--split-reverse .about__grid {
    gap: clamp(24px, 5vw, 32px);
  }

  .about--split .about__media-wrap,
  .about--split-reverse .about__media-wrap {
    max-width: 100%;
  }

  .about--split .about__media,
  .about--split-reverse .about__media {
    width: 100%;
    height: clamp(240px, 72vw, 360px);
  }

  .about__media {
    width: min(300px, 100%);
    height: clamp(432px, 102vw, 504px);
  }

  .about__headline,
  .about--split .about__headline {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    margin-bottom: clamp(16px, 4vw, 24px);
  }

  .about__label {
    margin-bottom: clamp(20px, 4vw, 28px);
    font-size: 0.875rem;
  }

  .about__text,
  .about--split .about__text {
    max-width: none;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .about.about--process-stack .about__media.about__media--diagram {
    width: 100%;
    height: auto;
  }

  .testimonial {
    padding: 64px 24px 56px;
  }

  .testimonial--about {
    padding: clamp(48px, 8vw, 64px) 24px;
  }

  .case-study__results--about {
    padding-left: 24px;
    padding-right: 24px;
  }

  .case-study__headline--center {
    max-width: none;
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    margin-bottom: clamp(28px, 5vw, 40px);
  }

  .hero--about .hero-lead {
    font-size: clamp(0.9375rem, 4vw, 1.0625rem);
    max-width: none;
  }

  .testimonial__quote p {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    line-height: 1.22;
  }

  .testimonial__cta-wrap {
    justify-content: center;
  }
}

/* Project stats — temporarily hidden */
.work-item__stats,
.case-study__stats,
.case-study__results:not(.case-study__results--service):not(.case-study__results--about) {
  display: none;
}
