/* From the professional portfolio. See DESIGN-SYSTEM.md. */
:root {
  --black: #000;
  --black-2: #101010;
  --black-3: #232323;
  --white: #fff;
  --white-2: #fafafa;
  --border-light: #f0f0f0;
  --border-light-2: #dedede;
  --gray-2: #6a6a6a;
  --gray-3: #8c8c8c;
  --gray-4: #999;
  --gray-5: #b8b8b8;
  --contrast: #ff9c4b;
  --warm-bg: #fefbf9;
  --container: min(1200px, calc(100vw - 48px));
  --radius-card: 12px;
  --radius-pill: 100px;
  --font-sans: "SF Pro", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black-2);
  background: var(--white);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
}

button,
a {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

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

.brand,
.nav-links a,
.nav-contact,
.button,
.small-button,
.chip,
.project-link,
.carousel-controls button,
.nav-toggle {
  cursor: pointer;
}

.brand *,
.brand::before,
.brand::after,
.nav-links a *,
.nav-links a::before,
.nav-links a::after,
.nav-contact *,
.nav-contact::before,
.nav-contact::after,
.button *,
.button::before,
.button::after,
.small-button *,
.small-button::before,
.small-button::after,
.chip *,
.chip::before,
.chip::after,
.project-link *,
.project-link::before,
.project-link::after,
.carousel-controls button *,
.carousel-controls button::before,
.carousel-controls button::after,
.nav-toggle *,
.nav-toggle::before,
.nav-toggle::after {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  border: 0;
}

main {
  overflow: clip;
}

[hidden] {
  display: none !important;
}

html[data-i18n-pending] body {
  visibility: hidden;
}

[data-motion] {
  opacity: 1;
}

.site-header {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  width: calc(100vw - 24px);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 16px;
  border-radius: 28px;
  border: 1px solid var(--black-3);
  color: var(--white);
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.28), 0 16px 32px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  transform-origin: top center;
  transition:
    width 0.5s ease-in-out,
    padding 0.5s ease-in-out,
    border-color 0.5s ease-in-out,
    background 0.5s ease-in-out,
    box-shadow 0.5s ease-in-out;
}

.nav-fix,
.nav-scroll {
  display: flex;
  align-items: center;
}

.nav-fix {
  width: 100%;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-fixed-actions,
.locale-switch {
  display: flex;
  align-items: center;
}

.nav-fixed-actions {
  gap: 28px;
}

.locale-switch {
  flex: 0 0 auto;
  gap: 6px;
  color: #868686;
  font-size: 13px;
  line-height: 1;
}

.locale-switch button {
  min-width: 26px;
  min-height: 36px;
  padding: 0;
  color: #a3a3a3;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.locale-switch button[aria-pressed="true"] {
  color: var(--white);
  font-weight: 600;
}

.locale-switch button:hover {
  color: var(--white);
}

.nav-scroll {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--black-3);
  border-radius: 20px;
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.28), 0 16px 32px rgba(0, 0, 0, 0.4);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  height: 36px;
  width: 127px;
  flex: 0 0 127px;
}

.brand img {
  width: 127px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 16px;
  line-height: 16px;
  color: var(--white);
}

.nav-links-fix {
  display: none;
}

.nav-links-scroll {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  font-size: 14px;
  line-height: 14px;
}

.nav-links a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  opacity: 0.9;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav-links-scroll a {
  padding: 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  opacity: 1;
}

.nav-divider {
  display: none;
  width: 1px;
  align-self: stretch;
  background: var(--black-3);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--border-light-2);
  border-radius: var(--radius-pill);
  color: var(--black);
  background: var(--white);
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: -0.2px;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-contact:hover {
  background: var(--border-light-2);
}

.nav-contact img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-project-back {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--black-3);
  border-radius: 50%;
  color: var(--white-2);
  background: var(--black-2);
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
}

.nav-toggle {
  display: inline-flex;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  line-height: 1;
}

.site-header[data-nav-type="project"] .nav-shell {
  width: 56px;
  padding: 5px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-header[data-nav-type="project"] .nav-fix,
.site-header[data-nav-type="project"] .nav-scroll,
.site-header[data-nav-type="project"] .nav-toggle {
  display: none;
}

.site-header[data-nav-type="project"] .nav-project-back {
  display: grid;
}

.section-dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #050505;
}

.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: grayscale(1) saturate(0) contrast(1.08);
  pointer-events: none;
}

.mesh-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(72vw, 1050px);
  height: 380px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 34%, transparent 68%),
    radial-gradient(ellipse at bottom, rgba(255, 156, 75, 0.2), transparent 64%);
  filter: blur(38px);
  opacity: 0.75;
  pointer-events: none;
}

.hero .mesh-glow {
  left: -177px;
  top: -65.25px;
  width: 1254.12px;
  height: 638.5px;
  transform: none;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(123.98px);
  opacity: 1;
}

.final-cta .mesh-glow {
  left: 414px;
  top: 108.6px;
  width: 912px;
  height: 464.32px;
  transform: none;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(90.16px);
  opacity: 1;
}

.hero {
  min-height: 780px;
  height: clamp(760px, 86vh, 860px);
  display: grid;
  place-items: center;
  padding: 128px 24px 64px;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 140px;
}

.hero-content {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--black-3);
  border-radius: var(--radius-pill);
  background: var(--black-2);
  color: var(--white);
  font-size: 14px;
  line-height: 24px;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.15), 0 6px 5px rgba(0, 0, 0, 0.08);
}

.availability > span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2d2117;
}

.availability > span[aria-hidden]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--contrast);
  animation: availability-pulse 1.6s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

h1 {
  font-size: clamp(52px, 9vw, 82px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -1px;
}

h1 span {
  display: block;
  color: var(--gray-5);
}

.hero-content h1 {
  margin-top: 40px;
}

.hero-copy {
  max-width: 720px;
  margin-top: 20px;
  color: var(--white);
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.36;
  letter-spacing: -0.4px;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.button,
.small-button,
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light-2);
  white-space: nowrap;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.45);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button {
  width: 180px;
  min-height: 50px;
  padding: 16px 24px;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -0.2px;
}

.button:hover,
.small-button:hover,
.chip:hover {
  transform: none;
}

.button-primary {
  color: var(--black);
  background: var(--white);
  border-color: var(--border-light-2);
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
}

.button-primary:hover {
  background: var(--border-light-2);
}

.button-ghost {
  color: var(--white);
  border-color: var(--black-3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(50px);
}

.button-ghost:hover {
  background: rgba(222, 222, 222, 0.1);
}

.button-outline {
  color: var(--black);
  border-color: var(--border-light-2);
  background: var(--white);
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
}

.button-outline:hover {
  background: var(--white-2);
}

.hero-meta {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 50px;
}

.hero-stats-content {
  display: contents;
}

.company-strip {
  display: flex;
  align-items: center;
  padding-inline: 24px 0;
}

.company-strip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  background: var(--white);
  margin-left: -9px;
}

.company-strip img:first-child {
  margin-left: 0;
}

.experience {
  width: 134px;
  display: flex;
  flex-direction: column;
  color: var(--border-light);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.4px;
}

.experience strong {
  color: var(--white);
}

.skills-marquee {
  position: relative;
  overflow: hidden;
  height: 36px;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.skills-marquee div {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.skills-marquee span {
  color: var(--border-light);
  font-size: 16px;
  line-height: 36px;
  white-space: nowrap;
}

.skills-marquee span::before {
  content: "· ";
}

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

.section {
  border-top: 1px solid var(--border-light);
  padding: 104px 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.split-grid {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.eyebrow {
  color: var(--gray-2);
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
  letter-spacing: 1.68px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.section-heading h2,
.section-header-row h2,
.services h2 {
  padding-top: 20px;
  color: var(--black-2);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -2.34px;
}

.about .section-heading {
  gap: 0;
}

.about-photo {
  width: min(357px, 100%);
  margin: 32px 0 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--white-2);
}

.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-body {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-body > p {
  color: var(--black-2);
  font-size: 18px;
  line-height: 30.6px;
  letter-spacing: -0.44px;
}

.about-body > p + p {
  margin-top: 18px;
}

.about-body .button {
  margin-top: 18px;
}

.skills-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.skills-grid h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.skills-grid p {
  margin-top: 2px;
  color: var(--gray-2);
  font-size: 14px;
  line-height: 24px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-description {
  max-width: 532px;
  margin-top: 16px;
  color: var(--gray-2);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.4px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}

.chip,
.small-button {
  min-height: 36px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  line-height: 14px;
  letter-spacing: -0.2px;
}

.chip {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-color: var(--border-light-2);
  background: var(--white);
  color: var(--black);
  font-weight: 400;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
}

.chip:hover {
  background: var(--white-2);
}

.small-button {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-color: var(--border-light-2);
  background: var(--white);
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
}

.small-button:hover {
  background: var(--white-2);
}

.chip.is-active {
  color: var(--white);
  background: var(--black-2);
  border-color: var(--border-light-2);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  padding-top: 40px;
}

.project-card {
  min-width: 0;
}

.project-link {
  display: block;
}

.project-preview {
  position: relative;
  aspect-ratio: 572 / 504;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--white-2);
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(16, 16, 16, 0.26);
  box-shadow: inset 0 0 56px rgba(255, 255, 255, 0.38);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview .project-badge {
  position: absolute;
  z-index: 2;
  top: 32px;
  right: 32px;
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black-2);
  font-size: 14px;
  line-height: 20px;
}

.project-hover-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black-2);
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -45%) scale(0.9);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: none;
}

.project-link:hover .project-preview::before,
.project-link:focus-visible .project-preview::before,
.project-link:hover .project-hover-icon,
.project-link:focus-visible .project-hover-icon {
  opacity: 1;
}

.project-link:hover .project-hover-icon,
.project-link:focus-visible .project-hover-icon {
  transform: translate(-50%, -50%) scale(1);
}

.project-info {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-top: 16px;
}

.project-info h3 {
  color: var(--black-2);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.project-info p {
  color: #8c8c8c;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.4px;
}

.project-info .project-corner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: opacity 220ms ease;
}

.project-link:hover .project-corner-icon,
.project-link:focus-visible .project-corner-icon {
  opacity: 0;
}

.project-empty {
  padding: 48px 0;
  color: var(--gray-2);
  text-align: center;
}

.center-action {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.center-action[hidden] {
  display: none;
}

.services {
  border-top: 0;
  background: var(--warm-bg);
}

.service-list {
  margin-top: 56px;
}

.service-item {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-item:last-child {
  border-bottom: 0;
}

.service-item span {
  color: var(--gray-4);
  font-size: 16px;
  line-height: 24px;
}

.service-item h3 {
  margin-top: 20px;
  color: var(--black-2);
  font-weight: 600;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: -0.44px;
}

.service-item p {
  max-width: 662px;
  font-size: 18px;
  line-height: 30.6px;
  letter-spacing: -0.44px;
}

.service-item small {
  display: block;
  margin-top: 18px;
  color: var(--gray-2);
  font-size: 14px;
  line-height: 20px;
}

.service-item strong {
  display: block;
  margin-top: 22px;
  padding-left: 12px;
  border-left: 2px solid var(--contrast);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.16px;
}

.process {
  border-top: 0;
  padding-top: 136px;
}

.sticky-copy {
  position: sticky;
  top: 128px;
}

.process .sticky-copy {
  gap: 0;
}

.steps-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  min-height: 105px;
  border-bottom: 1px solid var(--border-light);
}

.steps-list article:last-child {
  border-bottom: 0;
}

.steps-list span {
  padding-top: 2px;
  color: var(--gray-4);
  font-size: 16px;
  line-height: 24px;
}

.steps-list h3 {
  font-size: 24px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.54px;
}

.steps-list p {
  margin-top: 4px;
  color: var(--gray-2);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.4px;
}

.testimonials {
  padding-bottom: 124px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
}

.carousel-controls button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 1px 6px;
  border: 1px solid var(--border-light-2);
  border-radius: 24px;
  color: var(--black-3);
  background: var(--white);
  font-size: 20px;
  line-height: normal;
  letter-spacing: -0.45px;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.2);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.carousel-controls button:hover {
  background: var(--white-2);
}

.carousel-controls button:disabled {
  border-color: var(--border-light-2);
  background: var(--white-2);
  opacity: 0.26;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.7);
}

.testimonial-shell {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
}

.testimonial-shell.has-next {
  --edge-fade: clamp(32px, 7vw, 80px);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--edge-fade)), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--edge-fade)), transparent 100%);
}

.testimonial-track {
  display: flex;
  gap: 16px;
  width: max-content;
  transition: transform 360ms ease;
}

.testimonial-card {
  width: 400px;
  min-height: 454px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.2);
}

.testimonial-card > span {
  font-size: 16px;
  line-height: 24px;
}

.testimonial-card blockquote {
  flex: 1;
  padding-top: 18px;
  color: var(--black-2);
  font-size: 18px;
  line-height: 30.6px;
  letter-spacing: -0.44px;
}

.testimonial-card footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card img,
.avatar-fallback {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--border-light-2);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--black-2);
  background: var(--white-2);
  font-size: 12px;
  font-weight: 700;
}

.testimonial-card strong {
  display: block;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.2px;
}

.testimonial-card footer p {
  padding-top: 2px;
  color: var(--gray-2);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.4px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light-2);
}

.carousel-dots .is-active {
  background: var(--black-2);
}

.final-cta {
  min-height: 682px;
  display: grid;
  place-items: center;
  padding: 160px 24px 180px;
  text-align: center;
}

.final-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-content .eyebrow {
  color: var(--gray-4);
}

.final-content h2 {
  margin-top: 40px;
  color: var(--white);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -2.34px;
}

.final-content p:not(.eyebrow) {
  max-width: 818px;
  margin-top: 12px;
  color: var(--gray-4);
  font-size: 18px;
  line-height: 30.6px;
  letter-spacing: -0.44px;
}

.final-content .button {
  width: 200px;
  margin-top: 32px;
}

.site-footer {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  color: #545454;
  background: var(--black-2);
  font-size: 14px;
  line-height: 17px;
}

:focus-visible {
  outline: 2px solid var(--contrast);
  outline-offset: 4px;
}

@media (min-width: 981px) {
  .split-grid,
  .service-item {
    gap: 100px;
  }

  .site-header {
    inset: 32px 0 auto;
  }

  .nav-shell {
    height: 56px;
    min-height: 56px;
    border: 0;
    overflow: hidden;
    transition:
      width 0.64s cubic-bezier(0.65, 0, 0.35, 1),
      padding 0.64s cubic-bezier(0.65, 0, 0.35, 1),
      background 0.45s ease-in-out,
      box-shadow 0.55s ease-in-out;
  }

  .nav-fix,
  .nav-scroll {
    position: absolute;
    inset: 0;
    transition:
      opacity 0.26s ease-in-out,
      transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: opacity, transform;
  }

  .nav-fix {
    padding: 8px 32px;
  }

  .nav-scroll {
    width: 100%;
    height: 56px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header[data-nav-type="fix"] .nav-shell {
    width: min(1740px, calc(100vw - 32px));
    padding: 0;
    background: rgba(5, 5, 5, 0.01);
    box-shadow: none;
  }

  .site-header[data-nav-type="scroll"] .nav-shell {
    width: min(674px, calc(100vw - 32px));
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }

  .nav-links-fix {
    display: flex;
    gap: 32px;
  }

  .site-header[data-nav-type="fix"] .nav-fix {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.22s, 0s;
  }

  .site-header[data-nav-type="fix"] .nav-scroll {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
  }

  .site-header[data-nav-type="scroll"] .nav-fix {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }

  .site-header[data-nav-type="scroll"] .nav-scroll {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 56px;
    padding: 8px 12px 8px 24px;
    border: 1px solid var(--black-3);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    border-radius: 28px;
    background: rgba(16, 16, 16, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.28);
    justify-content: flex-start;
    gap: 16px;
    transition-delay: 0.22s, 0s;
  }

  .site-header[data-nav-type="scroll"] .nav-links-scroll {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.4px;
  }

  .site-header[data-nav-type="scroll"] .nav-links-scroll a {
    height: 24px;
    padding: 0;
  }

  .site-header[data-nav-type="scroll"] .nav-divider {
    display: block;
    height: 100%;
    margin-left: auto;
  }

  .site-header[data-nav-type="scroll"] .nav-contact {
    height: 36px;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.2px;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100vw - 32px, 720px);
  }

  .nav-fixed-actions {
    display: none;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    min-height: 720px;
    padding-top: 112px;
    overflow: hidden;
  }

  .hero-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 72px;
    margin-top: 32px;
  }

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

  .hero-meta {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    overflow: hidden;
  }

  .hero-stats-content {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .skills-marquee {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .skills-marquee div {
    width: max-content;
    min-width: max-content;
    justify-content: flex-start;
    animation: marquee 24s linear infinite;
  }

  .company-strip {
    padding-inline: 0;
  }

  .experience {
    text-align: left;
  }

  .split-grid,
  .service-item,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-chips {
    padding-bottom: 0;
  }

  .project-preview {
    aspect-ratio: 572 / 504;
  }

  .sticky-copy {
    position: static;
  }

  .testimonial-card {
    width: min(400px, calc(100vw - 48px));
  }

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

  .nav-scroll {
    left: 0;
    right: auto;
    width: 100%;
    padding: 20px;
    background: rgba(16, 16, 16, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav-links-scroll {
    font-size: 20px;
    line-height: 24px;
  }

  .nav-scroll .nav-contact {
    position: relative;
    justify-content: center;
    min-height: 50px;
    padding: 16px 24px;
    font-size: 16px;
    line-height: 16px;
    order: 1;
  }

  .nav-scroll .nav-contact img {
    position: absolute;
    left: 16px;
  }

  .nav-scroll .locale-switch {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 12px 0;
    order: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --container: 100%;
  }

  .section {
    padding: 72px 24px;
  }

  .hero {
    min-height: 680px;
    padding: 80px 24px 64px;
  }

  .availability {
    align-items: center;
    max-width: 100%;
    text-align: left;
    font-size: 12px;
    line-height: 18px;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    gap: 0;
  }

  .hero-content h1 {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    font-size: 48px;
    line-height: 0.95;
    letter-spacing: -0.6px;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 20px;
    font-size: 18px;
    line-height: 24px;
    text-wrap: balance;
  }

  .cta-group {
    margin-top: 28px;
  }

  .cta-group,
  .button {
    width: 100%;
  }

  .brand {
    width: 112.85px;
    height: 32px;
    flex-basis: 112.85px;
  }

  .brand img {
    width: 112.85px;
    height: 32px;
  }

  .split-grid,
  .service-item {
    gap: 24px;
  }

  .process .split-grid {
    gap: 56px;
  }

  .company-strip {
    justify-content: center;
    padding-inline: 0;
  }

  .company-strip img {
    width: 33.312px;
    height: 33.312px;
    border-width: 1.832px;
    margin-left: -8px;
  }

  .experience {
    text-align: left;
  }

  .skills-marquee {
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .skills-marquee::before,
  .skills-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 80px;
    pointer-events: none;
  }

  .skills-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  }

  .skills-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  }

  .about-photo {
    width: 100%;
  }

  .about-photo img {
    height: 530px;
  }

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

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

  .section-heading h2,
  .section-header-row h2,
  .services h2,
  .final-content h2 {
    letter-spacing: -0.5px;
  }

  .project-grid {
    gap: 36px;
  }

  .project-preview {
    aspect-ratio: 1 / 1;
    min-height: 340px;
  }

  .project-preview .project-badge {
    top: 20px;
    right: 20px;
  }

  .project-info {
    align-items: flex-start;
  }

  .service-list {
    margin-top: 40px;
  }

  .steps-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .carousel-controls {
    display: none;
  }

  .testimonial-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .testimonial-viewport::-webkit-scrollbar {
    display: none;
  }

  .testimonial-track {
    transition: none;
  }

  .testimonial-card {
    scroll-snap-align: start;
    width: min(400px, calc(100vw - 72px));
    min-height: auto;
  }

  .testimonial-card blockquote {
    font-size: 16px;
    line-height: 26px;
  }

  .final-cta {
    min-height: 620px;
    padding-block: 120px;
  }

  .site-footer {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Commercial-only adjustments. Shared component definitions above are from the existing portfolio. */
:root{--font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,"Segoe UI",system-ui,sans-serif}
body{user-select:auto;-webkit-user-select:auto}
.skip{position:fixed;z-index:100;left:1rem;top:1rem;transform:translateY(-200%);background:#fff;color:#101010;padding:.6rem 1rem}.skip:focus{transform:none}
html{scroll-padding-top:88px}
.commercial-header .brand img{display:block;width:108px;max-width:100%;height:auto}
@media(max-width:900px){.commercial-header .brand img{width:76px}}
.commercial-header .nav-fix{gap:1rem}.commercial-header .nav-links a{min-height:44px}
.commercial-header--filled[data-nav-type=fix] .nav-shell{background:#101010;box-shadow:0 12px 24px #0004}
.commercial-menu{display:none}.commercial-menu summary{list-style:none;cursor:pointer;min-height:44px}.commercial-menu summary::-webkit-details-marker{display:none}
.commercial-menu-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;padding:1rem;border-radius:18px;background:#101010;border:1px solid #232323;box-shadow:0 16px 32px #0005}
.commercial-menu:not([open]) .commercial-menu-panel{display:none}
.hero--detail{height:auto;min-height:32rem;padding-top:110px}
.hero-content .back{color:#dedede;margin-bottom:1.1rem;text-decoration:underline}
.hero-content h1 span{padding-top:.08em}.hero .button,.final-content .button{width:auto;min-width:180px;white-space:normal}
.ambient-video{object-position:center}
.section-header-row{margin-bottom:2rem}
.section-intro,.section-description{font-size:18px;line-height:1.65;max-width:42rem}
.flow>*+*{margin-top:1rem}.roomy>*+*{margin-top:1.5rem}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.card{padding:1.5rem;border:1px solid var(--border-light-2);border-radius:var(--radius-card);min-width:0}.card a,.back{display:inline-flex;min-height:44px;align-items:center}.card a,.service-item a{text-decoration:underline;text-underline-offset:.16em}
.service-item a{margin-top:1rem;width:auto;min-width:180px;text-decoration:none}
.section .eyebrow,.project-info p{color:#6a6a6a}
.case-image{display:block;width:100%;height:auto;max-width:53rem;border-radius:var(--radius-card);background:var(--white-2)}
.project-preview .case-image{max-width:none;height:100%;object-fit:cover}
/* Homepage thumbnails use a complete landscape frame, including on phones. */
.project-grid--home .project-preview { aspect-ratio: 16 / 10; min-height: 0; }
.project-grid--home .project-preview .case-image { object-fit: contain; }
/* Match the laptop widths to Pitty without altering image files or detail cards. */
.project-grid--home [data-project-thumb="viajantes"] .case-image { scale: 1.64; transform-origin: 50% 45%; }
.project-grid--home [data-project-thumb="contactflow"] .case-image { scale: 1.53; transform-origin: 61.5% 45%; }
@media (hover: hover) and (pointer: fine) {
  .project-grid--home .project-link:hover .project-preview .case-image { transform: none; }
}
.final-content .eyebrow,.final-content p:not(.eyebrow){color:#b8b8b8}
.site-footer{color:#b8b8b8;flex-wrap:wrap}.site-footer a{text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.swatch{height:3rem;border:1px solid #dedede;border-radius:10px}.tint{background:#fafafa}
.section :focus-visible{outline-color:#101010}.section-dark :focus-visible,.site-header :focus-visible,.site-footer :focus-visible{outline-color:#ff9c4b}
@media(max-width:900px){.commercial-header .nav-fixed-actions{display:none}.commercial-menu{display:block}.commercial-menu summary.nav-toggle{display:inline-flex;align-items:center;justify-content:center}.commercial-header .nav-shell{display:flex}}
@media(min-width:901px) and (max-width:1100px){.commercial-header .nav-links-fix{display:flex}}
@media(max-width:640px){.hero .button,.final-content .button{width:100%}.section-header-row h2{overflow-wrap:anywhere}.site-footer{gap:8px 24px}}

/* Short, non-blocking motion. Use only transforms and opacity for entrances. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes commercial-arrive {
    from { transform: translateY(var(--reveal-distance, 8px)); opacity: .78; }
    to { transform: translateY(0); opacity: 1; }
  }
  .motion-entered:not(:focus-within) {
    animation: commercial-arrive 340ms cubic-bezier(.2,.65,.3,1) both;
  }
  .hero .cta-group:not(:focus-within) {
    --reveal-distance: 4px;
    animation: commercial-arrive 220ms cubic-bezier(.2,.65,.3,1) both;
  }
  .hero .button:active, .final-content .button:active {
    transform: scale(.98);
  }
  @media (hover: hover) and (pointer: fine) {
    .project-preview .case-image {
      transition: transform 260ms cubic-bezier(.2,.65,.3,1);
    }
    .project-grid:not(.project-grid--home) .project-link:hover .case-image {
      transform: scale(1.025);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-grid:not(.project-grid--home) .project-link:hover .case-image { transform: none; }
}

/* Give the shorter home headline more presence, without changing the rest of the page. */
.hero:not(.hero--detail) .hero-content h1 {
  font-size: clamp(3.5rem, 9.2vw, 5.625rem);
  letter-spacing: -.023em;
}
@media (min-width: 641px) {
  .hero:not(.hero--detail) .hero-content h1 { width: max-content; max-width: min(55rem, calc(100vw - 48px)); }
}
@media (max-width: 640px) {
  .hero:not(.hero--detail) .hero-content h1 { font-size: clamp(2.25rem, 11vw, 3.375rem); }
}

/* Key visual accents, reserved for benefit and specialist cards. */
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  border: 1px solid #f0e0d3;
  background: var(--warm-bg);
  color: var(--black-2);
}
.card-icon .icon-accent { stroke: #a54715; }

.service-accordion { margin-top: clamp(1.5rem,4vw,3rem); border-top: 1px solid var(--border-light-2); }
.service-disclosure { border-bottom: 1px solid var(--border-light-2); }
.service-summary {
  display: grid; grid-template-columns: 3ch minmax(0,1fr) 2.25rem; align-items: center;
  gap: clamp(.625rem,2vw,1.5rem); min-height: 64px; padding: .9rem .5rem;
  cursor: pointer; list-style: none; border-radius: 6px;
}
.service-summary::-webkit-details-marker { display: none; }
.service-number { color: var(--gray-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.service-name { font-size: clamp(1.15rem,2.8vw,1.75rem); font-weight: 500; line-height: 1.25; }
.service-indicator {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; position: relative;
  color: var(--black-2); background: var(--white); border: 1px solid var(--border-light-2); border-radius: 50%;
}
.service-indicator::before, .service-indicator::after {
  content: ""; grid-area: 1 / 1; width: .75rem; height: 1px; background: currentColor;
}
.service-indicator::after { transform: rotate(90deg); }
.service-disclosure[open] .service-indicator { background: var(--warm-bg); color: #9d4515; border-color: #eac9af; }
.service-disclosure[open] .service-indicator::after { visibility: hidden; }
.service-summary:focus-visible { outline: 2px solid var(--black-2); outline-offset: -3px; }
.service-panel {
  padding: 0 .5rem 1.4rem calc(.5rem + 3ch + clamp(.625rem,2vw,1.5rem));
  max-width: 48rem; color: #454545; line-height: 1.55;
}
.service-panel ul { margin: .6rem 0 0; padding-inline-start: 1.18rem; }
.service-panel li + li { margin-top: .35rem; }
@media (hover: hover) { .service-summary:hover { background: var(--warm-bg); } }
@media (max-width: 480px) { .service-panel { padding-inline-start: .5rem; } }

.commercial-menu summary.nav-toggle { min-width: 76px; }
.commercial-menu:not([open]) .menu-label-close,
.commercial-menu[open] .menu-label-open { display: none; }
.commercial-menu-contact { margin-top: .65rem; padding-top: .85rem; border-top: 1px solid var(--black-3); }
.commercial-menu-contact .button { display: flex; width: 100%; min-height: 48px; white-space: normal; text-align: center; }

/* Editorial project cover and related work, distinct from the commercial home hero. */
.case-detail { --case-gutter: clamp(1.5rem,4vw,3rem); }
.case-detail :is(.case-lead,.case-story > .container,.case-next > .container) {
  width: min(70rem,calc(100% - var(--case-gutter) - var(--case-gutter)));
  margin-inline: auto;
}
.case-lead { padding-top: clamp(1.5rem,4vw,3.5rem); }
.case-back { min-height: 44px; display: inline-flex; gap: .55rem; align-items: center; font-size: .875rem; color: #555; }
.case-back span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-light-2); border-radius: 50%; font-size: 1.25rem; color: #181818; }
.case-back:focus-visible { outline: 2px solid #181818; outline-offset: 4px; }
.case-back:hover { text-decoration: underline; }
.case-lead-heading { text-align: center; padding-block: clamp(2.25rem,5vw,4rem) clamp(1.75rem,5vw,3.5rem); }
.case-lead-heading .eyebrow { margin-bottom: clamp(.9rem,2.5vw,1.5rem); }
.case-lead h1 { margin-inline: auto; font-size: clamp(2.35rem,7vw,5rem); line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
.case-cover { background: var(--white-2); border: 1px solid var(--border-light-2); border-radius: var(--radius-card); overflow: hidden; }
.case-cover .case-image { max-width: none; border-radius: 0; }
.case-story-grid { display: grid; grid-template-columns: minmax(12rem,.85fr) minmax(0,1.5fr); gap: clamp(1.5rem,5vw,4rem); align-items: start; }
.case-story .section-heading h2 { padding-top: 0; }
.section.case-story { border-top: 0; padding-inline: 0; padding-block: clamp(2.75rem,7vw,6rem); }
.case-topic { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 1rem; padding-block: 1rem; }
.case-topic:first-child { padding-top: 0; }
.case-topic + .case-topic { border-top: 1px solid var(--border-light-2); }
.case-topic h3 { margin-bottom: .375rem; font-size: 1.125rem; }
.case-topic p { max-width: 37rem; line-height: 1.55; }
.case-topic .card-icon { margin: 0; }
.case-live-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; font-weight: 600; }
.section.case-next { padding-inline: 0; padding-block: clamp(2.75rem,7vw,6rem); }
.case-next .case-next-heading { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; text-align: left; }
.case-next-heading h2 { flex: 1; min-width: 0; line-height: 1.1; text-wrap: balance; }
.case-next-heading .case-carousel-controls { margin-inline-start: auto; }
.case-next .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,4vw,2.5rem); padding-top: 0; }
.case-next .project-preview { aspect-ratio: 16 / 10; min-height: 0; }
.case-carousel-controls { display: none; gap: .375rem; flex: none; }
.case-carousel-controls button { display: grid; place-items: center; width: 44px; height: 44px; color: #181818; background: #fff; border: 1px solid #cdcdcd; border-radius: 50%; font: inherit; font-size: 1.125rem; cursor: pointer; }
.case-carousel-controls button[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 700px) {
 .case-story-grid { grid-template-columns: minmax(0,1fr); }
 .case-topic { gap: .75rem; }
 .case-next.carousel-ready .case-carousel-controls { display: flex; }
 .case-next-heading h2 { font-size: clamp(1.4rem,6vw,2.5rem); }
 .case-carousel .project-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; margin-inline: -4px; padding: 4px 4px .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; }
 .case-carousel .project-card { scroll-snap-align: start; }
 .case-carousel .project-card:last-child { scroll-snap-align: end; }
}

/* Shorter home hero, with room below the actions for the moving service tags. */
.hero.hero--commercial-home {
  height: auto;
  min-height: calc(clamp(43.5rem,79svh,49rem) + 1rem);
  padding: 7.5rem 1.5rem 6.75rem;
}
.home-tags {
  position: absolute;
  z-index: 2;
  inset: auto 0 .75rem;
  width: min(100%, 96rem);
  margin-inline: auto;
  padding-inline: 1rem;
  color: #dedede;
}
.home-tags-window { overflow: auto hidden; scrollbar-width: thin; }
.home-tags-track { display: flex; width: max-content; }
.home-tags-group { display: flex; align-items: center; flex: none; gap: 1.25rem; padding-inline-end: 1.25rem; }
.home-tags-group span { white-space: nowrap; font-size: .875rem; line-height: 2.5rem; }
.home-tags-group span::before { content: ""; display: inline-block; vertical-align: .18em; margin-inline: .25rem .65rem; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.home-tags-copy { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .home-tags-window { overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
  .home-tags-copy { display: flex; }
  .home-tags-track { animation: commercial-tags 30s linear infinite; }
}
@media (max-width: 640px) {
  .hero.hero--commercial-home { min-height: calc(clamp(37rem,82svh,41rem) + 1rem); padding: 6.5rem 1.5rem 6.25rem; }
  .home-tags { inset-block-end: .625rem; padding-inline: .75rem; }
}

@keyframes commercial-tags { to { transform: translateX(calc(-100% / 3)); } }
