:root {
  --bg: #fbfbfc;
  --text: #243063;
  --muted: #6f78a0;
  --card: #dff2ff;
  --accent: #3c4173;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}

::view-transition-old(root) {
  animation-name: page-transition-out;
}

::view-transition-new(root) {
  animation-name: page-transition-in;
}

@keyframes page-transition-out {
  from { opacity: 1; }
  to { opacity: 0.96; }
}

@keyframes page-transition-in {
  from { opacity: 0.96; }
  to { opacity: 1; }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  cursor: url("img/flower-cursor.svg") 16 16, auto;
}

body.page-api {
  cursor: url("img/bee-cursor.svg") 16 16, auto;
}

body.page-nuno {
  cursor: default;
}

body.page-about {
  cursor: url("img/flower-cursor.svg") 16 16, auto;
}

body.page-home {
  overflow-x: hidden;
}

p {
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: url("img/flower-cursor.svg") 16 16, pointer;
}

body.page-api a,
body.page-api button {
  cursor: url("img/bee-cursor.svg") 16 16, pointer;
}

body.page-nuno a,
body.page-nuno button {
  cursor: pointer;
}

.page {
  width: min(100%, 375px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 24px 22px;
  background: var(--bg);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.about-enter-left,
.about-enter-right {
  opacity: 0;
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.about-enter-left {
  transform: translateX(-18px);
}

.about-enter-right {
  transform: translateX(18px);
}

.about-enter-left.is-visible,
.about-enter-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes nav-line-in {
  0% { opacity: 0; transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes hero-content-in {
  0% {
    opacity: 0;
    transform: translateX(-48px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-portrait-in {
  0% {
    opacity: 0;
    transform: translateX(48px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes quote-in {
  0% {
    opacity: 0;
    transform: translateY(-36px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes type-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.project-hero {
  overflow: hidden;
}

.project-hero img {
  transform-origin: center;
  transition: transform 220ms ease;
}

.project-hero:hover img {
  transform: scale(1.02);
}

.research-item,
.benchmark-card,
.persona-card,
.testing-step,
.testing-change,
.challenge-card,
.learning-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.research-item:hover,
.benchmark-card:hover,
.persona-card:hover,
.testing-step:hover,
.testing-change:hover,
.challenge-card:hover,
.learning-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(3, 15, 73, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .case-nav a,
  .case-nav a::before,
  .case-nav a.is-active::after {
    transition: none;
    animation: none;
  }

  .project-hero img,
  .project-card,
  .research-item,
  .benchmark-card,
  .persona-card,
  .testing-step,
  .testing-change,
  .challenge-card,
  .learning-card,
  .stat-card {
    transition: none;
  }
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(134, 144, 176, 0.18);
  border-radius: 999px;
  margin-bottom: 0;
  box-shadow: 0 10px 24px rgba(3, 15, 73, 0.08);
}

.page-home .navbar,
.page--case-study .navbar,
.page-about .navbar {
  view-transition-name: site-nav;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 30;
  gap: 6px;
  width: min(100%, 360px);
  min-height: 0;
  margin: 24px auto 0;
  padding: 6px;
  border: 1px solid rgba(134, 144, 176, 0.2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(3, 15, 73, 0.06);
}

.page-home .navbar__item,
.page--case-study .navbar__item,
.page-about .navbar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #8f9198;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 180ms ease;
}

.page-home .navbar__item:hover,
.page--case-study .navbar__item:hover,
.page-about .navbar__item:hover {
  color: #23262f;
}

.page-home .navbar__item--active,
.page--case-study .navbar__item--active,
.page-about .navbar__item--active {
  color: #191b22;
}

.page-home .navbar:not(.navbar--ready) .navbar__item--active,
.page--case-study .navbar:not(.navbar--ready) .navbar__item--active,
.page-about .navbar:not(.navbar--ready) .navbar__item--active {
  background: #f3f2f2;
}

.page-home .navbar__item--work,
.page--case-study .navbar__item--work,
.page-about .navbar__item--work {
  gap: 7px;
}

.page-home .navbar__dot,
.page--case-study .navbar__dot,
.page-about .navbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff5959;
  flex: 0 0 auto;
}

.navbar__indicator {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: #f3f2f2;
  z-index: 0;
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 420ms cubic-bezier(0.22, 1, 0.36, 1), height 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
  will-change: transform, width, height;
}

.navbar--measuring .navbar__indicator,
.navbar:not(.navbar--ready) .navbar__indicator {
  transition: none;
}

.navbar__links,
.navbar__cta {
  display: none;
}

.brand__mark {
  display: block;
  width: 42px;
  height: auto;
}

.brand__name {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 600;
  color: #4f5c86;
}

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
}

.menu-button span {
  width: 13px;
  height: 1.5px;
  margin-left: auto;
  border-radius: 999px;
  background: #5f678f;
}

.hero {
  display: grid;
  gap: 32px;
  min-height: calc(100vh - 40px);
  align-content: start;
  margin-top: 16px;
}

.hero__portrait {
  position: relative;
  display: flex;
  justify-content: stretch;
  align-items: center;
  min-height: 420px;
  width: 100%;
  animation: hero-portrait-in 700ms ease-out both;
}

.hero__portrait-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.hero__portrait-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 340px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(120, 128, 160, 0.18);
  box-shadow: 0 22px 40px rgba(27, 41, 87, 0.12);
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero__portrait-layer--back {
  transform: translate(-50%, -50%) rotate(9deg) translate(22px, -18px);
}

.hero__portrait-layer--mid {
  transform: translate(-50%, -50%) rotate(-8deg) translate(-16px, 20px);
}

.portrait-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: 280px;
  height: 340px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(120, 128, 160, 0.18);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 26px 48px rgba(27, 41, 87, 0.16);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero__portrait-stack:hover .hero__portrait-layer--back {
  transform: translate(-50%, -50%) rotate(12deg) translate(68px, -28px);
  box-shadow: 0 28px 44px rgba(27, 41, 87, 0.16);
}

.hero__portrait-stack:hover .hero__portrait-layer--mid {
  transform: translate(-50%, -50%) rotate(-11deg) translate(-64px, 24px);
  box-shadow: 0 28px 44px rgba(27, 41, 87, 0.16);
}

.hero__portrait-stack:hover .portrait-card {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 30px 52px rgba(27, 41, 87, 0.2);
}

.hero__content h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.08em;
  font-weight: 700;
  color: #030f49;
}

.hero__content {
  display: grid;
  gap: 12px;
  align-self: start;
  animation: hero-content-in 700ms ease-out both;
}

.hero__title-line {
  display: inline-block;
}

.hero__title-char {
  display: inline-block;
  transition: color 180ms ease, transform 180ms ease;
}

.hero__title-char:hover {
  color: #f28cab;
  transform: translateY(-2px);
}

.hero__title-space {
  display: inline-block;
  width: 0.28em;
}

.hero__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #5d678e;
}

.quote-section {
  position: relative;
  margin-top: 48px;
  padding: 52px 0;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: #f6f2ef;
  z-index: 0;
}

.quote-section > * {
  position: relative;
  z-index: 1;
}

.quote-section__text {
  margin: 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.08em;
  font-weight: 700;
  color: #081a63;
  opacity: 0;
  transform: translateY(-36px);
  transition: opacity 1400ms ease-out, transform 1400ms ease-out;
}

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

.quote-section__lead::after {
  content: " " attr(data-accent);
  display: inline;
  margin-top: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -1px;
  color: #ef3c8f;
}

.about-page {
  margin-top: 40px;
}

.about-page__grid {
  display: grid;
  gap: 20px;
}

.about-page__sidebar {
  display: grid;
  gap: 20px;
}

.about-page__sidebar .about-card {
  padding: 24px;
}

.about-card {
  border-radius: 28px;
  background: #f1f2f7;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 260ms cubic-bezier(0.22, 1.3, 0.36, 1), box-shadow 260ms ease;
}

.about-card.about-enter-left,
.about-card.about-enter-right {
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.about-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 34px rgba(15, 23, 73, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.about-card.about-enter-left.is-visible:hover,
.about-card.about-enter-right.is-visible:hover {
  transform: translateY(-8px) scale(1.01);
}

.project-card.work-enter-left,
.project-card.work-enter-right {
  opacity: 0;
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
  will-change: opacity, transform;
}

.project-card.work-enter-left {
  transform: translateX(-18px);
}

.project-card.work-enter-right {
  transform: translateX(18px);
}

.project-card.work-enter-left.is-visible,
.project-card.work-enter-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.project-card.work-enter-left.is-visible:hover,
.project-card.work-enter-right.is-visible:hover {
  transform: translateY(-4px);
}

.about-card--story {
  display: grid;
  gap: 28px;
}

.about-card--story h1 {
  margin: 0;
  font-size: 34px;
  line-height: 0.94;
  letter-spacing: -0.08em;
  color: #0f1629;
}

.about-story {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(143, 145, 152, 0.18);
}

.about-story h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #85878f;
}

.about-story p,
.about-card__copy,
.about-card--note p,
.about-track p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #666b78;
}

.about-card--profile,
.about-card--music,
.about-card--photo,
.about-card--podcast,
.about-card--tools {
  display: grid;
  gap: 18px;
}

.about-card--tools {
  grid-column: 1 / -1;
}

.about-card--profile {
  grid-column: 1 / -1;
}

.about-card--photo {
  display: none;
}

.about-profile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.about-profile img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.about-profile h3,
.about-track h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  color: #121722;
}

.about-profile p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #8f9198;
}

.about-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(163, 168, 182, 0.34);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #141924;
  background: #fff;
  transition: transform 220ms ease, border-color 220ms ease;
}

.about-card__action:hover,
.about-card__action:focus-visible {
  transform: scale(1.04);
  border-color: #f22c87;
  color: #f22c87;
}

.about-card__badge {
  justify-self: end;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #787d89;
}

.about-card--photo .about-card__badge {
  justify-self: center;
  text-align: center;
}

.about-album,
.about-poster {
  width: 210px;
  border-radius: 6px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
}

.about-album img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.about-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.about-photo-roll {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
}

.about-tools {
  display: grid;
  gap: 22px;
}

.about-tools__group {
  display: grid;
  gap: 14px;
}

.about-tools__group h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #030f49;
}

.about-tools__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
}

.about-tools__item {
  position: relative;
  display: inline-flex;
}

.about-tools__item::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 6px;
  background: #f6f6f9;
  border: 1px solid rgba(134, 144, 176, 0.22);
  color: #030f49;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.about-tools__item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-tools__grid--ai {
  width: fit-content;
}

.about-tools__grid img {
  display: block;
  width: 64px;
  max-width: 64px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 73, 0.12));
  transition: transform 240ms cubic-bezier(0.22, 1.3, 0.36, 1), filter 240ms ease;
}

.about-tools__item:hover img {
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 10px 16px rgba(15, 23, 73, 0.16));
}

.about-card--tools .about-album,
.about-card--tools .about-poster {
  width: 100%;
  max-width: none;
  margin: 0;
}

.about-photo.is-active {
  opacity: 1;
}

.about-poster {
  display: grid;
  place-items: center;
  min-height: 150px;
  background: transparent;
}

.about-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-poster span {
  font-size: 20px;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: #ff6d77;
}

.about-card--note {
  display: grid;
  align-items: center;
  min-height: 140px;
}

.page--case-study .project-hero {
  margin-top: 36px;
}

.project-hero img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.case-layout {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}

.case-nav {
  display: none;
}

.case-content {
  display: grid;
  gap: 80px;
}

.case-intro {
  display: grid;
  gap: 24px;
}

.case-intro__heading h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #030f49;
}

.case-intro__body {
  display: grid;
  gap: 16px;
}

.case-intro__body p {
  margin: 0;
  line-height: 1.7;
  color: #49567f;
}

.case-intro__body ul {
  margin: 0;
}

.case-intro__body li + li {
  margin-top: 10px;
}

.case-intro__meta-stats li {
  font-size: 14px;
  line-height: 1.7;
  color: #49567f;
}

.project-block {
  display: grid;
  gap: 44px;
  margin-top: 0;
}

.page-nuno #discovery.project-block {
  gap: 56px;
}

.project-block .project-section {
  margin-top: 0;
}

.case-meta {
  display: grid;
  gap: 28px;
}

.case-meta h3,
.case-meta h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #030f49;
}

.case-meta p {
  margin: 0;
  line-height: 1.6;
  color: #5d678e;
}

.case-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

.case-meta a:hover,
.case-meta a:focus-visible {
  color: #f22c87;
}

.case-meta__inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.case-meta__inline h3,
.case-meta__inline h4 {
  margin: 0;
}

.case-meta__stack {
  display: grid;
  gap: 12px;
}

.case-meta__methods {
  display: grid;
  gap: 12px;
}

.case-meta__group {
  display: grid;
  gap: 8px;
}

.case-meta__group h3,
.case-meta__group h4 {
  margin: 0;
}

.case-meta--compact {
  gap: 20px;
}

.case-meta--compact .case-meta__stack,
.case-meta--compact .case-meta__methods {
  gap: 8px;
}

.challenges {
  display: grid;
  gap: 24px;
}

.project-section {
  display: grid;
  gap: 20px;
  margin-top: 0;
}

.project-section__body h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #030f49;
}

.project-section__body {
  display: grid;
  gap: 40px;
}

.page-nuno .project-section__body {
  gap: 24px;
}

#ideation .project-section__body {
  gap: 44px;
}

#challenges .project-section__body {
  gap: 28px;
}

#architecture .project-section__body {
  gap: 32px;
}

#defining-problem .project-section__body {
  gap: 48px;
}

.project-section__intro {
  display: grid;
  gap: 16px;
}

.page-kvn .project-section__intro {
  gap: 24px;
}

.project-section__intro ul {
  margin: 0;
}

.project-section__copy-group {
  display: grid;
  gap: 14px;
  font-size: 14px;
  margin: 0;
  padding-left: 20px;
}

.project-section__copy-block {
  display: grid;
  gap: 16px;
}

.project-section__copy-block--flush p {
  margin: 0;
  line-height: 1.7;
}

.project-section__copy-group strong {
  color: #030f49;
}

#testing .project-section__intro {
  gap: 24px;
}

.project-section__body p {
  margin: 0;
  line-height: 1.7;
  color: #49567f;
}

.project-gallery {
  display: grid;
  gap: 20px;
  margin-top: 0;
}

.project-gallery h2 {
  margin: 0;
}

.project-gallery img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.user-flows-section {
  display: grid;
  gap: 44px;
}

.user-flows-section__group {
  display: grid;
  gap: 20px;
}

.user-flows-section__gallery {
  display: grid;
  gap: 20px;
}

#design-system.user-flows-section__group {
  gap: 40px;
}

.user-flows-section__group h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #030f49;
}

.user-flows-section__image img {
  display: block;
  width: 100%;
}

.stats-grid {
  display: grid;
  gap: 16px;
}

.stat-card {
  padding: 24px 20px;
  border: 1px solid rgba(3, 15, 73, 0.1);
  border-radius: 12px;
  background: #f7f9ff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.stat-card h3 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1;
  color: #030f49;
}

.stat-card p {
  margin: 0;
  line-height: 1.5;
  color: #5d678e;
}

.stat-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(3, 15, 73, 0.08);
}

.research-group {
  display: grid;
  gap: 36px;
}

.research-list {
  display: grid;
  gap: 16px;
}

.research-group > p {
  margin: 0;
}

.research-summary {
  display: grid;
  gap: 20px;
}

.research-summary__intro {
  display: grid;
  gap: 12px;
}

.research-summary p {
  margin: 0;
}

.research-summary__lead {
  line-height: 1.9;
}

.research-group h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #030f49;
}

.research-item {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(3, 15, 73, 0.12);
  border-radius: 16px;
  background: #f9fbff;
}

.research-item__metric {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #030f49;
}

.research-item__copy {
  display: grid;
  gap: 8px;
}

.research-item__copy h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.research-item__copy p {
  margin: 0;
  line-height: 1.6;
  color: #5d678e;
}

.research-list--full .research-item {
  display: block;
}

.research-list--full .research-item__copy {
  width: 100%;
}

.expectations-grid {
  display: grid;
  gap: 20px;
}

.expectations-card {
  display: grid;
  gap: 18px;
}

.expectations-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.expectations-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #49567f;
}

.expectations-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.benchmark-grid {
  display: grid;
  gap: 20px;
}

.benchmark-card {
  overflow: hidden;
  border: 1px solid rgba(3, 15, 73, 0.12);
  border-radius: 16px;
  background: #f9fbff;
}

.benchmark-card__brand {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 160px;
  padding: 20px;
  border-bottom: 1px solid rgba(3, 15, 73, 0.08);
}

.benchmark-card__brand h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  color: #030f49;
}

.benchmark-card__brand img {
  display: block;
  max-width: 110px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(3, 15, 73, 0.08));
}

.benchmark-card__body {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.benchmark-card__body p {
  margin: 0;
  font-size: 13px;
  color: #5d678e;
}

.benchmark-card__body ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #5d678e;
}

.benchmark-card__body li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.research-insight {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #030f49;
}

.research-insight--highlight {
  padding: 12px 0 12px 18px;
  border-left: 4px solid #202d6d;
  background: #f9fbff;
}

.problem-group {
  display: grid;
  gap: 20px;
}

.problem-group h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: #030f49;
}

.persona-list {
  display: grid;
  gap: 16px;
}

.persona-card {
  display: grid;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(3, 15, 73, 0.12);
  border-radius: 16px;
  background: #f9fbff;
}

.persona-card__header {
  display: grid;
  gap: 8px;
}

.persona-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.persona-card__meta {
  margin: 0;
  color: #8490b6;
}

.persona-card p {
  margin: 0;
  line-height: 1.7;
  color: #49567f;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.persona-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e9edf6;
  font-size: 13px;
  color: #5d678e;
}

.process-figure img {
  display: block;
  width: 100%;
}

.ideation-hmw {
  display: grid;
  gap: 24px;
  padding: 28px 20px;
  border-left: 4px solid #202d6d;
  border-radius: 0;
  background: #f9fbff;
}

.ideation-hmw h3,
.ideation-flows h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.ideation-hmw p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #030f49;
}

.ideation-business {
  display: grid;
  gap: 16px;
}

.ideation-business__group {
  display: grid;
  gap: 32px;
}

.ideation-business__content {
  display: grid;
  gap: 28px;
}

.ideation-business__copy {
  display: grid;
  gap: 32px;
}

.ideation-business h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.ideation-business h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #030f49;
}

.ideation-business p {
  margin: 0;
  line-height: 1.7;
  color: #49567f;
}

.ideation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ideation-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eef2fb;
  font-size: 14px;
  color: #1f2c69;
}

.brand-rationale-block {
  display: grid;
  gap: 24px;
  margin-top: 0;
}

.brand-rationale-block__intro {
  display: grid;
  gap: 28px;
}

.brand-rationale-block__copy {
  display: grid;
  gap: 14px;
}

.brand-rationale-block__palette-group {
  display: grid;
  gap: 28px;
}

.brand-rationale-block h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.brand-rationale-block p {
  margin: 0;
  line-height: 1.7;
  color: #49567f;
}

.brand-rationale-block em {
  font-style: italic;
}

.brand-rationale-block__figure img,
.brand-rationale-block__concept img,
.brand-rationale-block__palette img {
  display: block;
  width: 100%;
}

.brand-rationale-block__columns {
  display: grid;
  gap: 36px;
}

.brand-rationale-copy {
  display: grid;
  gap: 16px;
}

.brand-rationale-copy h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.brand-rationale-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-rationale-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2fb;
  font-size: 13px;
  color: #1f2c69;
}

.testing-steps {
  display: grid;
  gap: 16px;
}

.testing-group {
  display: grid;
  gap: 20px;
}

.testing-group__intro {
  margin: 0;
  color: #49567f;
}

.testing-step {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid rgba(3, 15, 73, 0.12);
  border-radius: 8px;
  background: #f9fbff;
}

.testing-step span {
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: #536395;
}

.testing-changes h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.testing-step h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.testing-tasks h4,
.testing-feedback h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.testing-step p {
  margin: 0;
  color: #49567f;
}

.testing-copy {
  display: grid;
  gap: 28px;
}

.testing-content {
  display: grid;
  gap: 32px;
}

.testing-copy p {
  margin: 0;
  color: #49567f;
}

.testing-tasks {
  display: grid;
  gap: 24px;
}

.testing-tasks__lists {
  display: grid;
  gap: 24px;
}

.testing-tasks ul,
.testing-feedback ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #49567f;
}

.testing-tasks li,
.testing-feedback li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.testing-feedback {
  display: grid;
  gap: 16px;
}

.testing-quote {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid #202d6d;
  background: #f9fbff;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  font-weight: 500;
  color: #030f49;
}

.testing-changes {
  display: grid;
  gap: 16px;
}

.testing-changes__list {
  display: grid;
  gap: 12px;
}

.testing-change {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(3, 15, 73, 0.12);
  border-radius: 8px;
  background: #f9fbff;
}

.testing-change h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.testing-change p {
  margin: 0;
  color: #49567f;
}

.challenge-list {
  display: grid;
  gap: 20px;
}

.challenge-card {
  display: grid;
  gap: 20px;
  padding: 24px 20px;
  border: 1px solid rgba(3, 15, 73, 0.12);
  border-radius: 16px;
  background: #f9fbff;
}

.challenge-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  color: #030f49;
}

.challenge-card p {
  margin: 0;
  color: #49567f;
}

.learning-grid {
  display: grid;
  gap: 20px;
}

.learnings-group {
  display: grid;
  gap: 28px;
}

.learning-card {
  display: grid;
  gap: 16px;
  padding: 24px 22px;
  border-left: 8px solid #202d6d;
  background: #f9fbff;
}

.learning-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: #030f49;
}

.learning-card p {
  margin: 0;
  color: #49567f;
}

.more-projects {
  display: grid;
  gap: 40px;
  margin-top: 120px;
}

.more-projects h2 {
  margin: 0;
  letter-spacing: -1px;
}

.more-projects__grid {
  display: grid;
  gap: 24px;
}

.more-projects__card {
  display: grid;
  gap: 0;
}

.more-projects__card .project-card__art {
  height: 240px;
}

.more-projects__card .project-card__body {
  padding-top: 16px;
}


.case-study {
  margin-top: 74px;
  display: grid;
  gap: 64px;
}

.case-study__group {
  display: grid;
}

.case-study__group:first-child {
  margin-top: 40px;
}

.case-study__grid {
  display: grid;
  gap: 24px;
}

.case-study .section-title {
  margin-bottom: 24px;
}

.section-label {
  margin: 0 0 16px;
  font-size: 16px;
  color: #7580a5;
}

.section-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #030f49;
}

.project-card {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.project-card[data-href] {
  cursor: pointer;
}

.project-card--desktop-only {
  display: none;
}

.project-card__art {
  height: 240px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
}

.project-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  transition: transform 220ms ease;
}

.project-card__body {
  padding: 11px 0 0;
}

.project-card__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  margin-bottom: 8px;
}

.project-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #32417d;
  margin: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #32417d;
}

.project-card__body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #030f49;
}

.project-card__body p:not(.project-card__eyebrow) {
  margin: 0 0 12px;
  line-height: 1.55;
  color: #49567f;
}

.pill-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: #202d6d;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  width: fit-content;
  transition: gap 220ms ease;
}

.pill-button::after {
  content: "";
  width: 0;
  height: 16px;
  opacity: 0;
  overflow: hidden;
  flex: 0 0 auto;
  background: url("img/arrow-right.svg") center / 16px 16px no-repeat;
  transform: translateX(-4px);
  transition: width 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.project-card__body .pill-button {
  display: flex;
  margin-left: auto;
  margin-right: 6px;
  margin-bottom: 12px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.case-back-button {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.project-card:hover .project-card__art img {
  transform: scale(1.04);
}

.project-card:hover .project-card__body .pill-button {
  transform: scale(1.06);
}

.project-card:hover .project-card__body .pill-button::after,
.pill-button:hover::after {
  width: 16px;
  opacity: 1;
  transform: translateX(0);
}

.project-card:hover .project-card__body .pill-button,
.pill-button:hover {
  gap: 8px;
}

.contact-envelope {
  position: relative;
  display: grid;
  gap: 80px;
  margin-top: 96px;
  padding: 24px 0 0;
}

.contact-brief {
  display: grid;
  gap: 28px;
  margin-top: 120px;
}

.contact-brief__copy {
  display: grid;
  gap: 36px;
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 900ms ease-out, transform 900ms ease-out;
}

.contact-brief__copy.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-brief__intro {
  display: grid;
  gap: 18px;
}

.contact-brief__copy h2 {
  margin: 0;
  font-size: 48px;
  line-height: 0.96;
  letter-spacing: -0.08em;
  color: #030f49;
}

.contact-brief__copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #030f49;
}

.contact-brief__lead {
  display: grid;
  gap: 4px;
}

.contact-brief__details {
  display: grid;
  gap: 8px;
  max-width: 44ch;
}

.contact-brief__details p {
  font-size: 15px;
}

.contact-brief__lead p {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -1px;
}

.contact-brief__accent {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-style: italic;
  font-weight: 500;
  color: #f22c87;
}

.contact-brief__lead .contact-brief__accent {
  color: #f22c87;
}

.contact-brief__accent.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 6px;
  vertical-align: -0.08em;
  background: currentColor;
  animation: type-caret-blink 900ms steps(1) infinite;
}

.contact-brief__copy strong {
  color: #030f49;
}

.contact-brief__form {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(160, 167, 190, 0.28);
  border-radius: 24px;
  background: #fffbfc;
  box-shadow: 0 18px 40px rgba(15, 23, 73, 0.08);
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 900ms ease-out, transform 900ms ease-out, box-shadow 220ms ease;
}

.contact-brief__form.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-brief__form.is-visible:hover {
  transform: translateX(0) scale(1.015);
  box-shadow: 0 24px 48px rgba(15, 23, 73, 0.12);
}

.contact-brief__grid {
  display: grid;
  gap: 18px;
}

.contact-brief__form label {
  display: grid;
  gap: 10px;
}

.contact-brief__form label:has(select) {
  position: relative;
}

.contact-brief__form label:has(select)::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  background: url("img/arrow-down.svg") center / 20px 20px no-repeat;
  pointer-events: none;
}

.contact-brief__form span {
  font-size: 14px;
  color: #6e7386;
}

.contact-brief__form input,
.contact-brief__form select,
.contact-brief__form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #efefef;
  font: inherit;
  font-size: 14px;
  color: #121212;
}

.contact-brief__form input:focus,
.contact-brief__form select:focus,
.contact-brief__form textarea:focus {
  border-color: #f22c87;
  outline: none;
}

.contact-brief__form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-brief__form select {
  min-height: 48px;
  padding: 0 42px 0 14px;
  appearance: none;
  cursor: pointer;
  font-size: 14px;
  color: #6e7386;
}

.contact-brief__form textarea {
  padding: 14px 14px 34px;
  resize: vertical;
}

.contact-brief__message {
  position: relative;
}

.contact-brief__counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #9c6a62;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.contact-brief__counter[data-state="valid"] {
  color: #2f6f4e;
}

.contact-brief__submit {
  justify-self: end;
  min-width: 102px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #ec1763;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-brief__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-brief__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #3d332f;
  font-size: 0.95rem;
}

.contact-brief__status[data-state="success"] {
  color: #2f6f4e;
}

.contact-brief__status[data-state="error"] {
  color: #a3392f;
}

.contact-brief__submit:hover {
  transform: scale(1.05);
}

.contact-envelope::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: url("img/fondo.png") center top / contain no-repeat;
  z-index: 0;
  pointer-events: none;
}

.contact-envelope > * {
  position: relative;
  z-index: 1;
}

.contact-envelope__header {
  display: grid;
  gap: 10px;
}

.contact-envelope__eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #6f3fd6;
}

.contact-envelope__header h2 {
  margin: 0;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: #171717;
}

.contact-envelope__stage {
  position: relative;
  min-height: 480px;
  padding-top: 94px;
}

.contact-envelope__back {
  position: absolute;
  inset: auto 0 150px;
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 260ms ease;
}

.contact-envelope__form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  width: min(100%, 860px);
  margin: -24px auto 0;
  padding: 28px 22px 126px;
  border-radius: 22px;
  background: #eeeeee;
  box-shadow: 0 18px 40px rgba(31, 53, 107, 0.18);
}

.contact-envelope__form label {
  display: grid;
  gap: 8px;
}

.contact-envelope__form span {
  font-size: 16px;
  color: #2e2a22;
}

.contact-envelope__form strong {
  color: #f05a5a;
}

.contact-envelope__form input,
.contact-envelope__form textarea {
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px dashed rgba(55, 62, 91, 0.42);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #2e2a22;
  outline: none;
  resize: none;
}

.contact-envelope__form input::placeholder,
.contact-envelope__form textarea::placeholder {
  color: #8c8777;
}

.contact-envelope__submit {
  justify-self: center;
  min-width: 112px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: #ec1763;
  box-shadow: 0 10px 22px rgba(236, 23, 99, 0.28);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #fff6dd;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-envelope__submit:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 26px rgba(236, 23, 99, 0.34);
}

.contact-envelope__front {
  position: absolute;
  inset: auto 0 -24px;
  width: 100%;
  height: 300px;
  z-index: 3;
  pointer-events: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 260ms ease;
}

.contact-envelope:hover .contact-envelope__back,
.contact-envelope:hover .contact-envelope__front {
  transform: scale(1.03);
}

.footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 196px;
  padding-bottom: 10px;
}

.footer__label {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #a7b0d3;
}

.footer__mail {
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.08em;
  font-weight: 600;
  color: #32417d;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 1rem;
  font-weight: 700;
  color: #2f3d79;
}

@media (min-width: 640px) {
  .page {
    width: min(100%, 640px);
    padding: 0 40px 28px;
  }

  .navbar {
    min-height: 44px;
    margin-bottom: 0;
  }

  .page-home .navbar,
  .page--case-study .navbar,
  .page-about .navbar {
    width: min(100%, 420px);
    gap: 8px;
    padding: 7px;
  }

  .page-home .navbar__item,
  .page--case-study .navbar__item,
  .page-about .navbar__item {
    min-height: 42px;
    padding: 0 18px;
    font-size: 15px;
  }

  .brand__mark {
    width: 43px;
  }

  .brand__name {
    font-size: 8px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 24px;
    min-height: 360px;
  }

  .hero__portrait {
    order: 2;
    align-self: center;
  }

  .portrait-card {
    width: 280px;
    height: 340px;
  }

  .hero__content {
    order: 1;
    align-self: center;
  }

  .hero__content h1 {
    margin-bottom: 12px;
    font-size: 54px;
  }

  .hero__intro {
    font-size: 14px;
    line-height: 1.45;
    max-width: 420px;
  }

  .quote-section__text {
    font-size: 34px;
  }

  .case-study {
    margin-top: 111px;
    padding-left: 0;
  }

  .section-label {
    margin-bottom: 19px;
    font-size: 16px;
  }

  .section-title {
    margin-bottom: 19px;
  }

  .project-card {
    max-width: 549px;
  }

  .project-card__art {
    height: 320px;
  }

  .project-card__art img {
    object-fit: cover;
  }

  .project-card__body {
    padding-top: 8px;
  }

  .contact-envelope {
    margin-top: 116px;
  }

  .contact-brief {
    gap: 40px;
    margin-top: 104px;
  }

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

  .contact-envelope__header h2 {
    font-size: 52px;
  }

  .contact-envelope__stage {
    min-height: 500px;
    padding-top: 120px;
  }

  .contact-envelope__back {
    width: 100%;
  }

  .contact-envelope__form {
    padding: 36px 32px 136px;
  }

  .project-card__eyebrow {
    font-size: 14px;
  }

  .footer {
    margin-top: 252px;
    gap: 10px;
  }

  .footer__label {
    font-size: 32px;
  }

  .footer__mail {
    font-size: 32px;
  }

}

@media (min-width: 768px) {
  .page {
    width: min(100%, 768px);
    padding: 0 60px 28px;
  }

  .brand__mark {
    width: 56px;
  }

  .brand__name {
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr 240px;
    min-height: 320px;
  }

  .hero__portrait-layer,
  .portrait-card {
    width: 200px;
    height: 250px;
  }

  .hero__content h1 {
    font-size: 36px;
  }

  .quote-section__text {
    font-size: 34px;
  }

  .project-card {
    max-width: 100%;
  }

  .project-card__art {
    height: 360px;
  }

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

  .research-item {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
  }

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

}

@media (min-width: 1024px) {
  .page {
    width: min(100%, 1024px);
    padding: 8px 35px 32px;
  }

  .navbar {
    grid-template-columns: auto auto 1fr auto auto;
    column-gap: 10px;
    margin-bottom: 0;
  }

  .brand__mark {
    width: 78px;
  }

  .brand__name {
    font-size: 10px;
  }

  .navbar__links {
    display: flex;
    gap: 28px;
    justify-self: end;
    margin-right: 22px;
  }

  .navbar__links a {
    font-size: 10px;
    font-weight: 600;
    color: #30407a;
  }

  .navbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    background: #202d6d;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    justify-self: end;
  }

  .menu-button {
    display: none;
  }

  .hero {
    grid-template-columns: 540px minmax(250px, 1fr);
    min-height: 380px;
    gap: 0;
  }

  .hero__portrait-layer,
  .portrait-card {
    width: 220px;
    height: 270px;
  }

  .hero__content h1 {
    font-size: 56px;
    max-width: 538px;
    margin-bottom: 12px;
    letter-spacing: -0.09em;
  }

  .hero__intro {
    max-width: 470px;
    font-size: 16px;
    line-height: 1.45;
  }

  .quote-section__text {
    font-size: 38px;
  }

  .case-study {
    margin-top: 148px;
  }

  .section-label {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .project-card {
    max-width: none;
  }

  .case-study__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
  }

  .project-card__art {
    height: 285px;
  }

  .project-card__body {
    padding-top: 16px;
  }

  .project-card__eyebrow {
    font-size: 14px;
  }

  .project-card__body h2 {
    margin-bottom: 10px;
    font-size: 38px;
  }

  .project-card__body p:not(.project-card__eyebrow) {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .pill-button {
    min-height: 44px;
    padding: 14px 18px;
    font-size: 14px;
  }

  .about-page__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }

  .about-page__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .contact-brief {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 56px;
  }

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

  .contact-brief__copy p {
    font-size: 18px;
    line-height: 1.75;
  }

  .contact-brief__lead p {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -1px;
  }

  .contact-brief__details p {
    font-size: 16px;
  }

  .contact-brief__lead .contact-brief__accent {
    color: #f22c87;
  }

  .contact-brief__form {
    padding: 34px;
    border-radius: 28px;
  }

  .project-card--desktop-only {
    display: block;
  }

  .footer {
    margin-top: 118px;
  }

  .footer__label {
    font-size: 32px;
  }

  .footer__mail {
    font-size: 32px;
  }

  .project-section {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .case-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    margin-top: 72px;
  }

  .case-nav {
    display: grid;
    width: 200px;
    gap: 14px;
    position: sticky;
    top: 32px;
    align-content: start;
  }

  .case-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #9aa3c5;
    transition: color 260ms ease, transform 260ms ease;
  }

  .case-nav a.is-active {
    color: #030f49;
    font-weight: 600;
  }

  .case-nav a::before {
    content: "•";
    flex: 0 0 auto;
    color: currentColor;
    transform: translateY(-1px);
    transition: opacity 220ms ease;
  }

  .case-nav a:hover {
    color: #030f49;
    transform: translateX(2px);
  }

  .case-nav a.is-active::after {
    content: "";
    width: 18px;
    height: 2.5px;
    margin-right: 4px;
    background: #202d6d;
    order: -1;
    animation: nav-line-in 220ms ease;
  }

  .case-nav a.is-active::before {
    content: "";
    display: none;
  }

  .case-intro__heading h1 {
    font-size: 56px;
  }

  .case-intro__body {
    max-width: 860px;
  }

  .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

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

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

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

  .testing-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testing-tasks {
    gap: 20px;
  }

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

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

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

}

@media (min-width: 1280px) {
  .page {
    width: min(100%, 1280px);
    padding: 8px 60px 40px;
  }

  .navbar {
    margin-bottom: 0;
  }

  .hero {
    grid-template-columns: 720px minmax(250px, 1fr);
    min-height: calc(100dvh - 52px);
    gap: 0;
    margin-top: 0;
    align-content: normal;
    overflow: visible;
  }

  .hero__portrait-stack {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero__portrait-layer {
    width: 280px;
    height: 340px;
  }

  .portrait-card {
    width: 280px;
    height: 340px;
  }

  .hero__portrait {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: 0;
  }

  .hero__content {
    width: 720px;
    max-width: 720px;
    gap: 12px;
  }

  .hero__content h1 {
    font-size: 72px;
    max-width: 720px;
  }

  .hero__intro {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
  }

  .case-study {
    margin-top: 156px;
  }

  .project-card__art {
    height: 310px;
  }

  .footer {
    margin-top: 132px;
  }
}

@media (min-width: 1440px) {
  .page {
    width: min(calc(100% - 120px), 1200px);
    padding: 24px 0 40px;
  }

  .hero {
    margin-top: 0;
    align-content: normal;
  }

  .contact-brief {
    margin-top: 368px;
  }

  .page-home .navbar,
  .page--case-study .navbar,
  .page-about .navbar {
    width: min(100%, 500px);
    gap: 10px;
    padding: 8px;
    margin-top: 24px;
  }

  .page-home .navbar__item,
  .page--case-study .navbar__item,
  .page-about .navbar__item {
    min-height: 46px;
    padding: 0 22px;
    font-size: 16px;
  }

  .about-page {
    margin-top: 52px;
  }

  .quote-section__text {
    font-size: 44px;
  }

  .about-page__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 22px;
  }

  .about-page__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .about-card--photo {
    display: grid;
  }

  .about-card--profile {
    grid-column: auto;
  }

  .about-card {
    padding: 30px;
  }

  .about-card--story h1 {
    font-size: 48px;
  }

  .about-story p,
  .about-card__copy,
  .about-card--note p,
  .about-track p {
    font-size: 17px;
  }

  .section-title {
    margin-bottom: 44px;
    font-size: 44px;
  }

  .case-study .section-title {
    margin-bottom: 44px;
  }

  .case-study__grid {
    gap: 28px;
  }

  .page-api .research-group--compact-title {
    gap: 16px;
  }

  .project-card__art,
  .project-card__art img {
    border-radius: 16px;
  }

  .project-hero img {
    border-radius: 20px;
  }

  .project-card__eyebrow {
    margin-bottom: 0;
    font-size: 14px;
  }

  .hero {
    min-height: calc(100dvh - 114px);
  }

  .ideation-business__copy {
    gap: 16px;
  }

  .navbar {
    min-height: 90px;
  }

  .brand__name {
    font-size: 16px;
  }

  .navbar__links a {
    font-size: 16px;
  }

  .navbar__cta {
    font-size: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .project-card {
    max-width: none;
  }

  .project-card__art {
    height: 350px;
  }

  .case-study {
    column-gap: 24px;
  }

  .case-study__grid {
    column-gap: 28px;
  }

  .research-item__metric {
    font-size: 36px;
  }

  .benchmark-card__brand img {
    max-width: 130px;
    max-height: 68px;
  }
}
