:root {
  --ink: #131314;
  --muted: #a5a9ae;
  --line: #dfe4e6;
  --content-width: 896px;
  --page-gutter: 48px;
  --body-size: 24px;
  --body-line: 36px;
  --small-size: 18px;
  --small-line: 25px;
  --card-radius: 24px;
  --card-shadow: 0 2px 3px rgb(23 25 26 / 6%);
}

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

html {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
  font-weight: 500;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: 129px;
  background: #fff;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 129px;
  padding: 32px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.site-logo {
  width: 208px;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.48px;
  white-space: nowrap;
}

.telegram-link {
  width: 236px;
  min-height: 65px;
  padding: 19px 27px;
  border: 1px solid var(--ink);
  border-radius: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--small-size);
  line-height: var(--small-line);
  letter-spacing: -0.36px;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.telegram-link__mobile,
.telegram-link__icon {
  display: none;
}

.telegram-link:hover,
.telegram-link:focus-visible {
  color: #fff;
  background: var(--ink);
  outline: none;
}

.telegram-link:hover .telegram-link__icon,
.telegram-link:focus-visible .telegram-link__icon {
  filter: invert(1);
}

.home-main,
.case-main {
  width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.home-main {
  padding-bottom: 128px;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about h1,
.project-copy h2,
.content-section > p:not(.eyebrow),
.media-section > p:not(.eyebrow),
.outcome-section > p,
.insight-card,
.numbered-list {
  font-size: var(--body-size);
  line-height: var(--body-line);
  letter-spacing: -0.48px;
  font-weight: 500;
}

.about-divider {
  width: 100%;
  height: 1px;
  background: #d2d8dd;
}

.role-meta {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-meta p:first-child {
  font-size: var(--body-size);
  line-height: var(--body-line);
  letter-spacing: -0.48px;
}

.role-meta p:last-child,
.eyebrow {
  color: var(--muted);
  font-size: var(--small-size);
  line-height: var(--small-line);
  letter-spacing: -0.36px;
}

.featured-project,
.project-card {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.featured-project:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.project-card img,
.case-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-card img {
  aspect-ratio: 2688 / 2145;
  transition: transform 240ms ease, opacity 240ms ease;
}

.featured-project:hover .project-card img {
  transform: scale(0.995);
  opacity: 0.94;
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: space-between;
  gap: 16px;
  padding: 23px 63px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.metric-card strong {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.48px;
  font-weight: 500;
  white-space: nowrap;
}

.metric-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 25px;
  letter-spacing: -0.36px;
  white-space: nowrap;
}

.metric-card img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.case-main {
  padding-top: 10px;
  padding-bottom: 128px;
}

.case-article {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-title {
  font-size: 64px;
  line-height: 1.16;
  letter-spacing: -1.28px;
  font-weight: 500;
}

.case-image {
  aspect-ratio: 2688 / 2100;
}

.case-image.image-tall {
  aspect-ratio: 2688 / 2145;
}

.case-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--card-radius);
  background: transparent;
  cursor: zoom-in;
}

.case-image-zoom-icon {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.case-image-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

html.lightbox-open {
  overflow: hidden;
}

.lightbox-open body {
  position: fixed;
  top: var(--lightbox-scroll-top);
  width: 100%;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 40px 80px;
  border: 0;
  background: rgb(23 25 26 / 44%);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  overflow: auto;
  overscroll-behavior: contain;
}

.image-lightbox:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 32px 48px rgb(0 0 0 / 6%));
}

.image-lightbox__close {
  position: fixed;
  z-index: 1;
  top: 34px;
  right: 34px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.image-lightbox__close img {
  width: 32px;
  height: 32px;
  opacity: 0.65;
  transition: opacity 180ms ease;
}

.image-lightbox__close:hover img,
.image-lightbox__close:focus-visible img {
  opacity: 1;
}

.image-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 639px) {
  .case-image-zoom-icon {
    right: 16px;
    bottom: 16px;
  }

  .image-lightbox {
    padding: max(80px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  }

  .image-lightbox__close {
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
  }
}

@media (min-width: 1024px) {
  .overview-section { min-height: 324px; }
  .role-section { min-height: 529px; }
  .context-section { min-height: 659px; }
  .research-intro { min-height: 742px; }
  .cjm-intro { min-height: 229px; }
  .problem-section { min-height: 927px; }
  .user-flow-create { min-height: 908px; }
  .user-flow-read { min-height: 2422px; }
  .design-onboarding { min-height: 1911px; }
  .design-home { min-height: 1060px; }
  .design-note { min-height: 1977px; }
  .paywall-section { min-height: 1162px; }
  .version-mvp { height: 373px; flex: none; }
  .version-meetings { height: 613px; flex: none; }
  .version-sharing { height: 373px; flex: none; }
  .version-folders { height: 601px; flex: none; }
  .outcome-section { height: 580px; flex: none; }

  .research-jtbd { height: 457px; flex: none; }
  .research-jtbd .insight-card { height: 156px; }
  .competitor-conclusion { height: 192px; flex: none; }
  .version-mvp .insight-card,
  .version-meetings .insight-card { height: 192px; flex: none; }
  .version-sharing .insight-card { height: 120px; flex: none; }
  .version-folders .insight-card { height: 156px; flex: none; }
  .role-section > p:last-child { min-height: 216px; }
  .problem-section .numbered-list li:nth-child(2) { min-height: 144px; }
  .design-home > p:last-child { min-height: 108px; }
  .version-meetings > p:nth-of-type(3) { min-height: 180px; }
  .outcome-section > p:nth-of-type(2) { min-height: 180px; }
}

.content-section,
.media-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.media-section > p:not(.eyebrow) {
  margin-top: 0;
}

.media-section > img + p:not(.eyebrow),
.media-section > p:not(.eyebrow) + img {
  margin-top: 12px;
}

.research-details {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.chapter-title {
  min-height: 88px;
  padding-top: 32px;
  font-size: 48px;
  line-height: 1.16;
  letter-spacing: -0.96px;
  font-weight: 500;
}

.insight-card {
  width: 100%;
  padding: 24px;
  border: 0;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
}

.numbered-list {
  width: 100%;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.numbered-list li {
  min-height: 72px;
  padding: 0 0 0 40px;
  position: relative;
  counter-increment: item;
}

.numbered-list li + li {
  margin-top: 41px;
}

.numbered-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 40px;
  height: 1px;
  border-radius: 1px;
  background: var(--line);
}

.numbered-list li::before {
  content: counter(item) ".";
  position: absolute;
  top: inherit;
  left: 0;
  width: 24px;
  color: var(--muted);
  text-align: center;
}

.context-section > .numbered-list,
.research-intro > .numbered-list {
  margin-top: 12px;
}

.research-intro .numbered-list li:first-child {
  min-height: auto;
}

.paywall-section .numbered-list li {
  min-height: 0;
}

.compact-list li {
  min-height: 36px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px #dfe4e6, var(--card-shadow);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--muted) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  border-radius: 24px;
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--muted);
}

.expandable-table {
  position: relative;
  width: 100%;
}

.expandable-table__viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--card-shadow);
}

.js .expandable-table__viewport {
  max-height: 740px;
}

.expandable-table__control {
  display: none;
}

.js .expandable-table__control {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 224px;
  padding-bottom: 24px;
  border-radius: 0 0 24px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.table-blur-layer,
.expandable-table__control::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.table-blur-layer {
  -webkit-backdrop-filter: blur(var(--blur-radius));
  backdrop-filter: blur(var(--blur-radius));
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--blur-start), #000 var(--blur-solid), #000 var(--blur-end), transparent var(--blur-out));
  mask-image: linear-gradient(to bottom, transparent var(--blur-start), #000 var(--blur-solid), #000 var(--blur-end), transparent var(--blur-out));
}

.table-blur-layer:nth-child(6) {
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--blur-start), #000 var(--blur-solid));
  mask-image: linear-gradient(to bottom, transparent var(--blur-start), #000 var(--blur-solid));
}

.expandable-table__control::after {
  content: "";
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 100%);
}

.expandable-table.is-expanded .table-blur-layer,
.expandable-table.is-expanded .expandable-table__control::after {
  display: none;
}

.table-scroll--embedded {
  border-radius: 0;
  box-shadow: none;
}

.table-scroll--embedded:focus-visible {
  border-radius: 22px;
  outline-offset: -3px;
}

.table-toggle {
  position: relative;
  z-index: 1;
  min-width: 223px;
  min-height: 53px;
  padding: 14px 24px;
  border: 0;
  border-radius: 200px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: -0.36px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: color 180ms ease, background-color 180ms ease;
}

.table-toggle:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.table-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.table-toggle__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.table-toggle__icon::before,
.table-toggle__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.table-toggle__icon::after {
  transform: rotate(90deg);
}

.expandable-table.is-expanded .expandable-table__viewport {
  max-height: none;
}

.js .expandable-table.is-expanded .expandable-table__control {
  position: static;
  height: auto;
  margin-top: 24px;
  padding-bottom: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.expandable-table.is-expanded .table-toggle__icon::after {
  transform: none;
}

.data-table {
  width: 896px;
  min-width: 896px;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 24px;
  table-layout: fixed;
  background: #fff;
}

.data-table thead th:first-child { border-top-left-radius: 24px; }
.data-table thead th:last-child { border-top-right-radius: 24px; }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: 24px; }
.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: 24px; }

.data-table th,
.data-table td {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.data-table tr > :last-child { border-right: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table thead th {
  height: 47px;
  color: var(--muted);
  font-size: 18px;
  line-height: 25px;
  letter-spacing: -0.36px;
}

.data-table tbody th,
.data-table td {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.4px;
}

.audience-table col:nth-child(1) { width: 168px; }
.audience-table col:nth-child(2) { width: 239px; }
.audience-table col:nth-child(3) { width: 244px; }
.audience-table col:nth-child(4) { width: 245px; }

.audience-table__last-group {
  border-bottom: 0 !important;
  border-bottom-left-radius: 24px;
}

.competitor-table th:nth-child(1),
.competitor-table td:nth-child(1) { width: 276px; }
.competitor-table th:nth-child(2),
.competitor-table td:nth-child(2) { width: 260px; }
.competitor-table th:nth-child(3),
.competitor-table td:nth-child(3) { width: 360px; }

@media (min-width: 1024px) {
  .competitor-analysis { height: 1094px; flex: none; }
  .competitor-findings { height: 576px; flex: none; }
  .competitor-findings > p:last-child { min-height: 216px; }

  .design-home > .eyebrow + :is(.case-image, .case-image-trigger) { margin-top: -1px; }
}

.cjm-table th,
.cjm-table td {
  width: 179.2px;
}

.outcome-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.outcome-section .chapter-title {
  width: 100%;
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  :root {
    --page-gutter: 32px;
  }

  .site-header {
    height: 112px;
    padding-block: 24px;
  }

  .home-main {
    padding-top: 16px;
    gap: 96px;
  }

  .case-main {
    padding-top: 16px;
  }
}

@media (max-width: 639px) {
  :root {
    --page-gutter: 20px;
    --body-size: 20px;
    --body-line: 30px;
    --small-size: 14px;
    --small-line: 20px;
    --card-radius: 18px;
  }

  body {
    padding-top: 88px;
  }

  .site-header {
    height: 88px;
    padding-block: 20px;
    isolation: isolate;
    background: transparent;
  }

  .site-header::before,
  .site-header::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 103px;
    pointer-events: none;
  }

  .site-header::before {
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 82%) 36%,
      rgb(0 0 0 / 36%) 72%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 82%) 36%,
      rgb(0 0 0 / 36%) 72%,
      transparent 100%
    );
  }

  .site-header::after {
    background: linear-gradient(
      to bottom,
      rgb(255 255 255 / 82%) 0%,
      rgb(255 255 255 / 56%) 42%,
      rgb(255 255 255 / 20%) 74%,
      transparent 100%
    );
  }

  .site-header > * {
    position: relative;
    z-index: 1;
  }

  .site-logo {
    width: auto;
    flex: none;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.36px;
  }

  .telegram-link {
    width: 166px;
    height: 65px;
    min-height: 65px;
    padding: 20px 28px;
    gap: 10px;
    flex: none;
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.36px;
  }

  .telegram-link__desktop {
    display: none;
  }

  .telegram-link__mobile {
    display: inline;
  }

  .telegram-link__icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: none;
  }

  .home-main {
    padding-top: 20px;
    padding-bottom: 72px;
    gap: 72px;
  }

  .about {
    gap: 24px;
  }

  .about h1,
  .project-copy h2,
  .content-section > p:not(.eyebrow),
  .media-section > p:not(.eyebrow),
  .outcome-section > p,
  .insight-card,
  .numbered-list {
    letter-spacing: -0.4px;
  }

  .role-meta {
    gap: 20px;
  }

  .role-meta p:first-child {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.36px;
  }

  .role-meta p:last-child {
    text-align: right;
  }

  .featured-project,
  .project-card {
    gap: 24px;
  }

  .project-copy {
    gap: 6px;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 23px;
  }

  .metric-card strong {
    font-size: 20px;
    line-height: 26px;
  }

  .metric-card span {
    font-size: 14px;
    line-height: 22px;
  }

  .case-main {
    padding-top: 20px;
    padding-bottom: 72px;
  }

  .case-article,
  .research-details {
    gap: 40px;
  }

  .case-title {
    font-size: clamp(36px, 10.7vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.88px;
  }

  .content-section,
  .media-section {
    gap: 18px;
  }

  .media-section > p:not(.eyebrow) {
    margin-top: 6px;
  }

  .chapter-title {
    min-height: auto;
    padding-top: 16px;
    font-size: 34px;
    line-height: 1.16;
    letter-spacing: -0.68px;
  }

  .insight-card {
    padding: 18px;
  }

  .numbered-list li {
    min-height: auto;
    padding-left: 32px;
  }

  .numbered-list li + li {
    margin-top: 33px;
  }

  .numbered-list li:not(:last-child)::after {
    bottom: -17px;
    left: 32px;
  }

  .data-table th,
  .data-table td {
    padding: 10px;
  }

  .outcome-section .chapter-title {
    margin-bottom: 6px;
  }

  .paywall-section .case-image { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .telegram-link,
  .project-card img { transition: none; }
}
