html {
  scroll-behavior: smooth;
}
#goTop {
  width: 42px;
  height: 42px;
  background: #e83e8c;
  border-radius: 3px;
  display: flex;
  border: 0;
  align-items: center;
  justify-content: center;

  font-size: 18px;
}
#goTop i{
  color: #fff;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.center-indicator {
  animation: bounce 2s infinite;
  cursor: pointer;
}
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: "Inter", Arial, sans-serif;
    color: #1d1d1d;
  }

  html[lang="zh-Hant"] .case-page,
  html[lang="zh-Hant"] .case-page h1,
  html[lang="zh-Hant"] .case-page h2,
  html[lang="zh-Hant"] .case-page h3,
  html[lang="zh-Hant"] .case-page p,
  html[lang="zh-Hant"] .case-page a,
  html[lang="zh-Hant"] .case-page button,
  html[lang="zh-Hant"] .case-page dt,
  html[lang="zh-Hant"] .case-page dd,
  html[lang="zh-Hant"] .case-page li,
  html[lang="zh-Hant"] .case-page span,
  html[lang="zh-Hant"] .case-page strong {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
  }
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 100vh;
    background-image: url("../img/bg.jpg");
    background-position: bottom;
    background-size: cover;
  }
  .hero-left {
    align-content: center;
    padding: 80px 90px;
    background-image: radial-gradient(#c4c4c4 1px, transparent 1px);
    background-size: 22px 22px;
  }
  .intro h1{
    font-family: Georgia, serif;
    font-size: 5rem;
    margin: 12px 0 24px;
  }

  .intro p,   .intro p span{
    font-size: 28px;
    margin-bottom: 20px;
  }

  .intro .desc{
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 520px;
  }
  .intro small {
    font-size: 14px;
    color: #777;
  }

  .typing {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .desc {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 32px;
  }
  .about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
    text-decoration: none;

  }
 .about-btn .icon{
  animation: shakeUpDown 0.8s infinite; 
 }
  @keyframes shakeUpDown {
    0% { transform: translateY(0); }
    75% { transform: translateY(5px); }
    100% { transform: translateY(0); }
  }


  .about-btn span {
    width: 42px;
    height: 42px;
    background: #e83e8c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
  }
  .hero-right {
    position: relative;
  }
  .hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .menu {
    z-index: 3;
    position: fixed;
    top: 24px;
    right: 24px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
  }
  .menu i {
    color: #666;
  }
  .center-indicator {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 36px;
    background: #e83e8c;
    border-radius: 72px 72px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    z-index: 10;
    cursor: pointer;
  }
  .work {
    padding: 120px 0;
    background: #fff;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .background-text {
    font-family: Georgia, serif;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15rem;
    font-weight: bold;
    color: #f0f0f0;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
  }
  .work-inner {
    gap: 30px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  .work-inner img {
    width: 100%;
  }
  .work-text h2 {
    font-family: Georgia, serif;
    font-size: 48px;
    margin-bottom: 24px;
  }
  .bring-item h3 {
    margin-bottom: 4px;
    font-size: 1rem;
  }
  .bring-item p {
    margin-bottom: 12px;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .bring-summary {
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
  }
  .portfolio-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
  }
  .portfolio-header h1 {
    font-family: Georgia, serif;
    font-size: 3rem;
    margin-bottom: 5px;
  }
  .portfolio-header p {
    color: #888;
    margin-top: 0;
  }
  .filter-menu {
    margin: 40px 0;
    text-align: center;
  }
  .filter-menu button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    margin: 0 5px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
  }
  .filter-menu button.active {
    background-color: #e83e8c;
    color: #fff;
    border-radius: 4px;
  }
  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
  }
  .image-wrapper img {
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0);
    outline: 2px solid #fff;
    outline-offset: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
  }
  .image-wrapper:hover::after {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
  }
  .project-title {
    margin-bottom: 10px;
    position: relative;
    padding-top: 40px;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
  }
  .project-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 30px;
    background-color: #d65a92;
  }
  .project-item {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 20px;
    transition: opacity 0.3s, transform 0.3s;
  }
  .project-item p {
    max-width: 310px;
    margin: 0 auto;
    color: #666;
    line-height: 1.7;
  }
  .project-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
  }
  .about {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .about .container {
    align-items: center;
    z-index: 2;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    padding: 50px;
  }
  .about-image {
    border-radius: 8px;
    width: 33%;
  }
  .text-section {

    z-index: 2;
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
  }
  .text-section h1 {
    font-family: Georgia, serif;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  .text-section p {
    font-size: 1rem;
    line-height: 2;
  }
  .btn {
    margin-right: 20px;
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #e83f8d;
    color: #fff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .btn-2{
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .btn-2:hover{
    background-color: #e83f8d;
  }
  .btn:hover {
    background-color: #0056b3;
  }
  .footer-note {
    margin: 0 auto;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    color: #777;
  }
  .site-footer {
    background: #1d1d1d;
    color: #fff;
    padding: 64px 50px;
  }
  .site-footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .site-footer p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.2;
  }
  .site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
  }
  .site-footer-links a {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .site-footer-links a:hover,
  .site-footer-links a:focus-visible {
    color: #e83f8d;
    border-color: currentColor;
  }
  @media (max-width: 700px) {
    .site-footer {
      padding: 48px 24px;
    }
    .site-footer-inner {
      align-items: flex-start;
      flex-direction: column;
    }
  }
  .image-container {
    flex: 1;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .full-screen-list {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 29, 0.7);
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items:baseline;
    padding: 80px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .full-screen-list.show {
    display: flex;
    opacity: 1;
  }
  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    z-index: 1000;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  .close-btn:hover {
    background-color: #999;
  }
  .list-item {
    font-size: 4rem;
    line-height: 1;
    margin: 20px 0;
    color: #d0d0d0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    
  }
  .list-item a{
    font-weight: bold;
    color: #d0d0d0;
    text-decoration: unset;
  }
  .list-item a:hover{
    color: #e83e8c;
  }
  .full-screen-list.show .list-item {
    opacity: 1;
    transform: translateY(0);
  }
  @media(max-width: 768px) {
    .about-btn{
      display: none;
    }
    .container {
      flex-direction: column;
      padding: 20px;
    }
    .text-section {
      padding-right: 0;
    }
    .nav-btn {
      left: -60px;
      right: auto;
    }
  }
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: 1fr;
    }
  }
@media(max-width: 768px) {
  
  .about .container{
    padding: 0;
  }
  .about-image {
    margin-top: 30px;
    width: 100%;
  }
  .hero{
    height: fit-content;
    background: unset;
  }
  .list-item {
    font-size: 3rem;
  }
  section{
    height: fit-content;
  }
  .work{
    padding: 80px 20px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    background-position: center;
  }
  .hero-left {
    background-position: right;
    background-size:cover;
    background-image: url("../img/bg.jpg");
    align-content: center;
    padding: 0;
  }
  .intro {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding: 50px;
    background: rgba(255, 255, 255, 0.8);
  }

  .intro p.desc {
    font-size: 14px;
  }
  .typing {
    font-size: 16px;
  }
  .work-inner {
    grid-template-columns: 1fr;
  }
  .background-text{
    font-size: 5rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .filter-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .filter-menu button {
    margin: 0;
    padding: 12px 20px;
    font-size: 14px;
  }
  .about {
    flex-direction: column;
    padding: 30px 20px;
  }
  .text-section {
    padding-right: 0;
  }
  .image-container {
    max-width: 100%;
    margin-top: 20px;
  }
}

@media(max-width: 480px) {
  .center-indicator {
    left: 50%;
    width: 80px;
    height: 45px;
    font-size: 12px;
  }
  .intro {
    padding: 42px 28px;
  }
  .intro h1 {
    font-size: 4rem;
  }
  .intro p,
  .intro p span {
    font-size: 22px;
  }
  .background-text {
    font-size: 4rem;
  }
}

.case-page {
  background: #f5f5f5;
  color: #20232d;
}

.case-nav {
  height: 76px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.case-logo {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  color: #20232d;
  text-decoration: none;
}

.case-back {
  color: #e83f8b;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dedede;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.language-toggle button {
  min-width: 54px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
}

.language-toggle button + button {
  border-left: 1px solid #dedede;
}

.language-toggle button.active {
  background: #e83f8b;
  color: #fff;
}

.case-hero {
  min-height: calc(100vh - 76px);
  padding: 80px 8%;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  background: #e7e7e7;
  color: #fff;
}

.case-kicker {
  color: #e83f8b;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.case-hero h1 {
  color: #20232d;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 24px;
}

.case-hero p {
  color: #20232d;
  line-height: 1.8;
  max-width: 620px;
}

.case-hero .case-hero-summary {
  color: #e8408b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.case-hero-meta {
  border-bottom: 1px solid rgba(32, 35, 45, 0.18);
  border-top: 1px solid rgba(32, 35, 45, 0.18);
  display: grid;
  gap: 22px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 0;
  max-width: 620px;
  padding: 22px 0;
}

.case-hero-meta dt {
  color: #666;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.case-hero-meta dd {
  color: #20232d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.case-hero-contribution {
  grid-column: 1 / -1;
}

.case-hero-contribution ul {
  display: grid;
  gap: 6px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-hero-contribution li::before {
  color: #e83f8b;
  content: "✓";
  margin-right: 7px;
}

.case-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.case-actions a {
  background: #e83f8b;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 3px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.case-actions a:nth-child(2) {
  background: transparent;
  border: 1px solid #e83f8b;
  color: #e83f8b;
}

.case-section-actions {
  margin-bottom: 32px;
  margin-top: 12px;
}

.case-live-note {
  align-items: center;
  color: #666 !important;
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin: -14px 0 0;
}

.case-live-note i {
  color: #e83f8b;
}

.case-hero-image img{
  width: 100%;
  display: block;
      background: #20232d;
    border: 8px solid #20232d;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(32, 35, 45, 0.14);
    overflow: hidden;
}
.case-wide-image,
.case-split img {
  width: 80%;
  display: block;
}

html {
  scroll-behavior: smooth;
}

.case-section-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  padding: 12px 24px;
  position: sticky;
  scrollbar-width: none;
  top: 76px;
  z-index: 20;
}

.case-section-tabs::-webkit-scrollbar {
  display: none;
}

.case-section-tabs a {
  border-radius: 999px;
  color: #555;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.case-section-tabs a:hover,
.case-section-tabs a:focus-visible {
  background: #e83f8b;
  color: #fff;
  outline: none;
}

.case-section[id] {
  scroll-margin-top: 140px;
}

.case-role-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 8%;
  display: grid;
  grid-template-columns: 120px minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.case-role-band span {
  color: #888;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-role-band strong {
  color: #20232d;
  font-size: 18px;
  line-height: 1.45;
}

.case-role-band p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.case-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 2%;
}

.case-section h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  margin-bottom: 24px;
}

.case-section h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.case-section p {
  color: #4b4b4b;
  line-height: 1.85;
}

.case-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
}

.case-meta {
  background: #fff;
  padding: 28px;
  border-left: 4px solid #e83f8b;
}

.case-meta div + div {
  margin-top: 20px;
}

.case-meta dt {
  color: #888;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.case-meta dd {
  margin: 0;
  font-weight: bold;
  line-height: 1.5;
}

.case-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-three article {
  background: #fff;
  padding: 28px;
  border-top: 4px solid #e83f8b;
}

.case-three .case-challenge-label {
  color: #e83f8b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.case-lead {
  max-width:100%;
  margin-bottom: 32px;
}

.case-responsive-grid {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.6fr) minmax(90px, 0.3fr);
}

.case-responsive-device {
  margin: 0;
  text-align: center;
}

.case-responsive-screen {
 
}

.case-responsive-screen img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.case-responsive-desktop .case-responsive-screen {
  aspect-ratio: 2920 / 1478;
}

.case-responsive-tablet .case-responsive-screen {
  aspect-ratio: 766 / 1024;
}

.case-responsive-mobile .case-responsive-screen {
  aspect-ratio: 628 / 1362;
  border-radius: 20px;
}

.case-responsive-device figcaption {
  color: #20232d;
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
}

.case-ux-list {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}

.case-ux-list li {
  color: #4b4b4b;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  line-height: 1.85;
}

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

.case-ux-list li::before {
  content: attr(data-type);
  font-weight: 700;
}

.case-product-redesign {
  border-top: 1px solid #e5e5e5;
}

.case-section-intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
  margin-bottom: 52px;
}

.case-section-label {
  color: #e83f8b !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.case-design-notes {
  display: block;
}

.case-design-notes article {
  border: 0;
  padding: 0;
}

.case-design-notes article + article {
  margin-top: 24px;
}

.case-version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

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

@media(min-width: 901px) {
  .case-version-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  }

  .case-version-grid-two {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.case-version-grid figure {
  background: #fff;

  margin: 0;
  padding: 14px;
}

.case-version-grid figure.is-final {
  border-color: #e83f8b;
  box-shadow: 0 18px 45px rgba(32, 35, 45, 0.1);
}

.case-version-label {
  align-items: center;
  color: #20232d !important;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.03em;
  margin: 2px 0 14px;
  text-transform: uppercase;
}

.case-version-label::before {
  content: attr(data-step);
  color: #e83f8b;
  font-size: 12px;
}

.case-version-grid img {
  display: block;
  width: 100%;
}

.ez-loan-screen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 52px;
}

.ez-loan-screen-grid figcaption {
  color: #20232d;
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
}

.case-study-gallery {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-gallery figure {
  background: #fff;
  margin: 0;
  padding: 14px;
}

.case-study-gallery img {
  display: block;
  width: 100%;
}

.case-study-gallery figcaption {
  color: #20232d;
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
}

.merck-case-page .case-hero-image img {
  margin: 0 auto;
  max-width: 520px;
}

.merck-case-page .case-wide-image {
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
}

.merck-case-page .case-study-gallery {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

.case-split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.65fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
}

.case-split h3:not(:first-child) {
  margin-top: 28px;
}

.case-split + .case-split {
  margin-top: 42px;
}

.case-inline-link {
  color: #e83f8b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin-top: 18px;
  text-decoration: none;
}

.role-path-cards article {
  display: flex;
  flex-direction: column;
}

.role-path-cards .case-inline-link {
  margin-top: auto;
  padding-top: 20px;
}

.case-outcome {
  padding-bottom: 120px;
}

.muxi-case-hero {
  background: #303030;
}

.muxi-case-hero .case-kicker,
.muxi-case-hero .case-back {
  color: #fff;
}

.muxi-case-hero .case-actions a {
  background: #e83e8c;
}

.mylisting-case-hero {
  background: #17263c;
}

.mylisting-case-hero .case-kicker {
  color: #6fb6ff;
}

.mylisting-case-hero .case-actions a {
  background: #2f83d6;
}

.listingpage-case-hero {
  background: #143d59;
}

.listingpage-case-hero .case-kicker {
  color: #8bd3ff;
}

.listingpage-case-hero .case-actions a {
  background: #2c9edb;
}

.hotai-case-hero {
  background: #171717;
}

.hotai-case-hero .case-kicker {
  color: #fff;
}

.hotai-phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hotai-phone-gallery figure {
  margin: 0;
}

.hotai-phone-gallery img,
.hotai-phone-pair img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.16);
  background: #fff;
}

.hotai-phone-gallery figcaption {
  color: #555;
  font-weight: bold;
  margin-top: 14px;
  text-align: center;
}

.hotai-flow {
  align-items: start;
}

.hotai-phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media(max-width: 900px) {
  .case-nav {
    padding: 0 24px;
    gap: 14px;
  }
  .case-hero,
  .case-role-band,
  .case-summary,
  .case-section-intro,
  .case-split,
  .case-three {
    grid-template-columns: 1fr;
  }
  .case-section-intro {
    gap: 24px;
  }
  .case-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-hero {
    padding: 56px 24px;
  }
  .case-hero h1 {
    font-size: 44px;
  }
  .case-section {
    padding: 64px 24px;
  }
  .case-role-band {
    padding: 28px 24px;
  }
  .hotai-phone-gallery,
  .hotai-phone-pair {
    grid-template-columns: 1fr;
  }
  .case-responsive-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.65fr) minmax(70px, 0.35fr);
  }
}

@media(max-width: 620px) {
  .case-section-tabs {
    justify-content: flex-start;
    top: 76px;
  }
  .case-hero-meta,
  .case-design-notes,
  .case-version-grid {
    grid-template-columns: 1fr;
  }
  .case-hero-contribution {
    grid-column: auto;
  }
  .case-hero-contribution ul {
    grid-template-columns: 1fr;
  }
  .case-responsive-grid {
    align-items: start;
    grid-template-columns: 1fr;
  }
  .case-study-gallery {
    grid-template-columns: 1fr;
  }
  .case-responsive-tablet {
    margin: 0 auto;
    width: min(68%, 360px);
  }
  .case-responsive-mobile {
    margin: 0 auto;
    width: min(38%, 210px);
  }
}
