body.case-index,
body.case-blog {
  background: var(--paper);
}

.case-index .site-header,
.case-blog .site-header {
  position: sticky;
}

.case-index .nav,
.case-blog .nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin-left: auto;
}

.case-index .nav a,
.case-blog .nav a {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 700;
  transition: color 180ms ease-out;
}

.case-index .nav a:hover,
.case-blog .nav a:hover {
  color: var(--orange);
}

.back-link {
  color: var(--orange) !important;
}

.case-index main,
.case-blog main {
  min-height: calc(100dvh - var(--header-h));
}

.article-kicker,
.section-label,
.image-source,
.list-meta,
.article-app-name small {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  line-height: 1.55;
  text-transform: uppercase;
}

.article-kicker,
.section-label {
  color: var(--orange);
  font-weight: 700;
}

/* Index */
.index-intro {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(86px, 11vw, 150px) 0 72px;
}

.index-intro h1 {
  max-width: 1050px;
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(3.9rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: .88;
}

.index-intro > p:first-of-type {
  max-width: 760px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.95;
}

.index-note {
  max-width: 850px;
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--paper-strong);
  border-left: 4px solid var(--orange);
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.8;
}

.index-note strong {
  color: var(--ink);
}

.case-list {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  border-top: 1px solid var(--line-strong);
}

.case-list-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(190px, .3fr);
  gap: clamp(26px, 4vw, 62px);
  align-items: center;
  padding: clamp(34px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--line);
  transition: transform 220ms var(--ease);
}

.case-list-item:hover {
  transform: translateX(8px);
}

.list-app-icon {
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: 29px;
  box-shadow: 8px 8px 0 rgba(27, 27, 25, .1);
}

.roundup-icons {
  position: relative;
  display: block;
  width: 142px;
  height: 142px;
}

.roundup-icons img {
  position: absolute;
  width: 94px;
  height: 94px;
  object-fit: cover;
  border: 5px solid var(--paper);
  border-radius: 23px;
  box-shadow: 6px 6px 0 rgba(27, 27, 25, .1);
}

.roundup-icons img:first-child {
  top: 0;
  left: 0;
}

.roundup-icons img:last-child {
  right: 0;
  bottom: 0;
}

.case-list-item h2 {
  max-width: 760px;
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.3rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.case-list-item p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.8;
}

.list-meta {
  display: grid;
  gap: 7px;
  align-self: center;
  color: var(--muted);
}

.list-meta strong {
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .9;
}

.market-note {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 28px auto clamp(90px, 11vw, 150px);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.75;
}

/* Article hero */
.article-hero {
  display: grid;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  min-height: calc(100dvh - var(--header-h));
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .65fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
  margin-inline: auto;
  padding-block: clamp(68px, 8vw, 110px);
}

.article-hero-copy {
  min-width: 0;
}

.article-app-identity {
  display: grid;
  grid-template-columns: 84px minmax(120px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-app-identity .app-icon {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 5px 5px 0 rgba(27, 27, 25, .1);
}

.article-app-name {
  display: grid;
  gap: 3px;
}

.article-app-name strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: -.04em;
}

.article-app-name small {
  color: var(--muted);
}

.article-app-identity .case-revenue {
  display: grid;
  gap: 4px;
  text-align: right;
}

.article-app-identity .case-revenue small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .58rem;
  text-transform: uppercase;
}

.article-app-identity .case-revenue strong {
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}

.article-hero h1 {
  max-width: 940px;
  margin-top: 34px;
  font-family: var(--display);
  font-size: clamp(3rem, 5.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .93;
}

.article-deck {
  max-width: 760px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.9;
}

.case-blog .hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
}

.case-blog .hero-meta > div {
  min-height: 92px;
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
}

.case-blog .hero-meta > div + div {
  padding-left: 18px;
}

.case-blog .hero-meta > div:last-child {
  border-right: 0;
}

.case-blog .meta-value {
  display: block;
  margin-top: 9px;
  font-size: .84rem;
}

.article-visual {
  display: grid;
  min-height: 660px;
  place-items: center;
  padding: 34px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
}

.article-hero-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(27, 27, 25, .16));
}

/* Reading */
.article-reading-shell {
  padding-block: clamp(84px, 10vw, 148px);
  border-top: 1px solid var(--line);
}

.article-reading-content {
  width: min(800px, 100%);
  margin-inline: auto;
}

.article-disclaimer {
  padding: 22px 24px;
  background: var(--paper-strong);
  border-left: 4px solid var(--orange);
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.8;
}

.article-disclaimer strong {
  color: var(--ink);
}

.article-section {
  margin-top: clamp(90px, 10vw, 140px);
}

.section-heading h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 780;
  letter-spacing: -.07em;
  line-height: .96;
}

.section-heading p,
.article-section > p:not(.image-source):not(.source-note),
.reading-copy p,
.case-list-inline p {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(.98rem, 1.25vw, 1.08rem);
  line-height: 1.95;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 54px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.metric-strip > div {
  min-height: 174px;
  padding: 24px 20px 24px 0;
  border-right: 1px solid var(--line);
}

.metric-strip > div + div {
  padding-left: 20px;
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip small,
.metric-strip span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1.55;
}

.metric-strip strong {
  display: block;
  margin: 25px 0 16px;
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .85;
}

.article-body-image {
  width: auto;
  max-width: min(430px, 100%);
  max-height: 760px;
  margin: 58px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(27, 27, 25, .14));
}

.image-source {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  text-transform: none;
}

.image-source a,
.source-note a,
.case-list-inline a {
  color: var(--orange);
  border-bottom: 1px solid currentColor;
}

.reading-copy {
  margin-top: 54px;
}

.reading-copy h3 {
  margin-top: 46px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.source-note {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.8;
}

.case-list-inline {
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}

.case-list-inline article {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.case-list-inline h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.article-cta-band {
  color: var(--ink);
  background: var(--orange);
}

.article-cta-inner {
  display: grid;
  min-height: 400px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.article-cta-inner h2 {
  max-width: 800px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .92;
}

.article-cta-inner p {
  max-width: 650px;
  margin-top: 20px;
  color: rgba(27, 27, 25, .74);
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 34px;
  padding: 0 22px;
  color: var(--orange);
  background: var(--paper-strong);
  font-size: .75rem;
  font-weight: 800;
  transition: color 180ms ease-out, background 180ms ease-out, transform 180ms var(--ease);
}

.cta-button:hover {
  color: var(--paper-strong);
  background: var(--ink);
  transform: translateY(-3px);
}

.case-index .footer-inner,
.case-blog .footer-inner {
  grid-template-columns: auto 1fr auto auto;
}

@media (max-width: 980px) {
  .article-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .article-visual {
    min-height: 600px;
  }

  .case-list-item {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .list-meta {
    grid-column: 2;
  }

  .case-index .footer-inner,
  .case-blog .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .case-index .nav,
  .case-blog .nav {
    display: none;
  }

  .case-index .language-switcher,
  .case-blog .language-switcher {
    margin-left: auto;
  }

  .index-intro h1 {
    font-size: clamp(3.5rem, 16vw, 5.6rem);
  }

  .case-list-item {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 20px;
  }

  .list-app-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .roundup-icons {
    width: 92px;
    height: 92px;
  }

  .roundup-icons img {
    width: 62px;
    height: 62px;
    border-width: 3px;
    border-radius: 15px;
  }

  .case-list-item h2 {
    font-size: 1.55rem;
  }

  .case-list-item p {
    grid-column: 1 / -1;
  }

  .list-meta {
    grid-column: 1 / -1;
    padding-left: 114px;
  }

  .article-hero {
    gap: 46px;
    padding-block: 58px 72px;
  }

  .article-app-identity {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .article-app-identity .app-icon {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .article-app-identity .case-revenue {
    grid-column: 1 / -1;
    text-align: left;
  }

  .article-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
  }

  .case-blog .hero-meta {
    grid-template-columns: 1fr;
  }

  .case-blog .hero-meta > div,
  .case-blog .hero-meta > div + div {
    min-height: 76px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-visual {
    min-height: 540px;
    padding: 24px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip > div,
  .metric-strip > div + div {
    min-height: 138px;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip > div:last-child {
    border-bottom: 0;
  }

  .article-cta-inner {
    min-height: 460px;
    grid-template-columns: 1fr;
    gap: 30px;
    align-content: center;
  }

  .cta-button {
    justify-self: start;
  }
}
