body {
  margin: 0;
  padding: 0;
  background: #f0f0ef;
  color: #212121;
  font-family: "Karla", sans-serif;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@font-face {
  font-family: "Gord Qucik";
  src: url("../assets/GordQucik.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Karla";
  src: url("../assets/Karla.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

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

/* === Header === */
.work-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(240, 240, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
}

.title-description {
  flex: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-bar .title-label {
  font-family: "Anton", sans-serif;
  font-size: 24px !important;
  line-height: 1.1;
  color: #212121;
}

.title-description > div:last-child {
  font-size: 16px;
  color: #212121;
}

.work-bar .back-Button,
.work-bar .share-Button {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.back-Button:hover,
.share-Button:hover {
  transform: rotate(360deg);
  transition: transform 0.6s ease;
}

#toast {
  visibility: hidden;
  min-width: 120px;
  background-color: #212121;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}

/* === Main === */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.main-content:has(> .case-grid) {
  min-height: calc(100vh - 120px);
  justify-content: center;
}

.main-content > .case-detail {
  max-width: 880px;
  width: 100%;
  align-self: center;
}

/* === Listing Grid === */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #21212115;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Badge (New / Coming soon) */
.case-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.case-card-badge--new {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.case-card-badge--soon {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.32);
}

/* Coming soon state */
.case-card--coming-soon {
  cursor: default;
}

.case-card--coming-soon .case-card-cover {
  filter: grayscale(100%);
  opacity: 0.85;
}

.case-card--coming-soon .case-card-body {
  opacity: 0.7;
}

.case-card--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* Disabled view button — full-width secondary style */
.view-button.view-button--disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  align-self: stretch;
  padding: 14px 32px;
  box-sizing: border-box;
  background-color: transparent;
  color: #828282;
  border: 1px solid #21212120;
  cursor: not-allowed;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.view-button.view-button--disabled::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center / contain no-repeat;
}

.view-button.view-button--disabled:hover {
  background-color: transparent;
  box-shadow: none;
}

.case-card .view-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.case-card-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #dbdbdb;
}

.case-card-cover--contain {
  object-fit: contain;
  object-position: center;
  padding: 16px;
  box-sizing: border-box;
  background: #d2d3d6;
}

.case-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.case-card-title {
  font-family: "Anton", sans-serif;
  font-size: 28px;
  margin: 0;
  color: #212121;
}

.case-card-lead {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: #4a4a4a;
}

.view-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  margin-top: auto;
  padding: 14px 32px;
  background-color: #212121;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: "Karla", sans-serif;
  border: none;
  border-radius: 56px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.view-button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/><polyline points='10 9 9 9 8 9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/><polyline points='10 9 9 9 8 9'/></svg>") center / contain no-repeat;
}

.view-button:hover {
  background-color: #4a4a4a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

/* === Pro Case Layout === */
.case-pro {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #21212115;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.04);
}

.case-pro-cover {
  width: 100%;
  aspect-ratio: 1440 / 780;
  height: auto;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  background: #dbdbdb;
}

.case-pro-body {
  padding: 64px 80px 88px;
  display: flex;
  flex-direction: column;
  gap: 72px;
  box-sizing: border-box;
  counter-reset: section;
}

.case-pro-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}

.case-pro-intro-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #828282;
  margin-bottom: -4px;
}

.case-pro-intro .case-pro-title {
  margin: 0;
}

.case-pro-intro .case-pro-lead {
  margin-top: 8px;
  line-height: 1.75;
}

.case-pro-title {
  font-family: "Anton", sans-serif;
  font-size: 32px;
  line-height: 1.55;
  margin: 0;
  color: #212121;
  letter-spacing: 0.005em;
}

.case-pro-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  transition: color 0.2s ease;
}

.case-pro-title a:hover {
  color: #4a4a4a;
}

.case-pro-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #212121;
  stroke-width: 2;
}

.case-pro-section h3 .case-pro-icon {
  width: 20px;
  height: 20px;
}

.case-pro-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-pro-hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-pro-lead {
  font-size: 18px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0;
}

.case-pro-hero-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
}

.case-pro-link {
  color: #212121;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  align-self: flex-start;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.case-pro-link:hover {
  color: #4a4a4a;
}

.case-pro-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #21212112;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.case-pro-meta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 24px;
  border-right: 1px solid #21212112;
  background: transparent;
}

.case-pro-meta-card:last-child {
  border-right: none;
}

.case-pro-meta-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #212121;
}

.case-pro-meta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.case-pro-meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #828282;
}

.case-pro-meta-value {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #212121;
}

.case-pro-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 1024;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: #dbdbdb;
}

.case-pro-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-increment: section;
}

.case-pro-section h2 {
  position: relative;
  font-family: "Anton", sans-serif;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  padding-top: 28px;
  color: #212121;
  letter-spacing: 0.01em;
}

.case-pro-section h2::before {
  content: counter(section, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Karla", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b5b5b3;
}

.case-pro-section h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: #212121;
  margin-top: 14px;
  border-radius: 2px;
}

.case-pro-section h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Anton", sans-serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  color: #212121;
  letter-spacing: 0.01em;
}

.case-pro-section p,
.case-pro-section li {
  line-height: 1.75;
  color: #2a2a2a;
  font-size: 16px;
  margin: 0;
}

.case-pro-narrow > p:first-child:not(:has(+ ul)) {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #212121;
}

.case-pro-section p:has(+ ul) {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #212121;
  margin-top: 12px;
  margin-bottom: -4px;
}

.case-pro-section p:first-child:has(+ ul) {
  margin-top: 0;
}

.case-pro-section ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-pro-narrow ul {
  padding-left: 0;
  list-style: none;
}

.case-pro-narrow ul li {
  position: relative;
  padding-left: 22px;
}

.case-pro-narrow ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #212121;
}

.case-pro-narrow {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.case-pro-callout {
  margin-top: 12px;
  padding: 16px 20px;
  border-left: 3px solid #212121;
  background: #f5f5f3;
  border-radius: 0 10px 10px 0;
  font-weight: 500;
  color: #212121 !important;
}

.case-pro-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.case-pro-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Wireframes with labels */
.case-pro-wire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-pro-wire-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-pro-wire-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a4a;
}

/* Iterations */
.case-pro-iteration-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.case-pro-iteration-row:first-of-type {
  margin-top: 0;
}

.case-pro-iteration-decision {
  padding: 14px 18px;
  border-left: 3px solid #212121;
  background: #f5f5f5;
  border-radius: 0 8px 8px 0;
  margin: 0;
  font-size: 15px;
}

.case-pro-compare-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #828282;
  margin-bottom: 6px;
}

.case-pro-compare-block p {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
}

.case-pro-soft-card {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid #21212115;
  background: #ffffff;
  line-height: 1.6;
  color: #212121;
}

.case-pro-block-image {
  width: 100%;
  aspect-ratio: 1440 / 1024;
  object-fit: cover;
  margin: 0;
  border-radius: 16px;
  display: block;
  background: #dbdbdb;
}

.case-pro-wire-img {
  width: 100%;
  aspect-ratio: 1440 / 1024;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #21212115;
  background: #dbdbdb;
  display: block;
}

.case-pro-compare-block {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #21212115;
  background: #ffffff;
  font-weight: 500;
}

.case-pro-final {
  padding: 16px 20px;
  border-left: 3px solid #212121;
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

.case-pro-decision-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-pro-decision-card {
  padding: 20px 24px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #21212115;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-pro-decision-card strong {
  font-family: "Anton", sans-serif;
  font-size: 20px;
  color: #212121;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.case-pro-stat-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #21212115;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.case-pro-takeaway {
  position: relative;
  padding: 48px 56px;
  border-radius: 20px;
  background: #f5f5f3;
  border: 1px solid #21212112;
  color: #212121;
  margin: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}

.case-pro-takeaway-mark {
  flex-shrink: 0;
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 80px;
  line-height: 0.7;
  color: #212121;
  opacity: 0.18;
  margin-top: 4px;
}

.case-pro-takeaway-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.case-pro-takeaway-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.case-pro-takeaway-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
  font-style: normal;
  font-weight: 400;
}

.case-pro-takeaway-lead {
  font-size: 24px !important;
  line-height: 1.45 !important;
  color: #212121 !important;
  font-weight: 600 !important;
}

.case-pro-takeaway-signature {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #828282;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .case-pro-takeaway {
    padding: 40px;
    gap: 24px;
  }
  .case-pro-takeaway-lead {
    font-size: 18px !important;
  }
}

@media (max-width: 640px) {
  .case-pro-takeaway {
    padding: 32px 24px;
    gap: 12px;
    flex-direction: column;
  }
  .case-pro-takeaway-mark {
    margin-top: 0;
    margin-bottom: -8px;
  }
  .case-pro-takeaway-lead {
    font-size: 18px !important;
  }
  .case-pro-takeaway-content p {
    font-size: 16px;
  }
}

/* Final UI larger grid */
.case-pro-grid-final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.case-pro-final-img {
  width: 100%;
  aspect-ratio: 1440 / 1024;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #21212115;
  background: #dbdbdb;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-pro-final-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* Zoomable images */
.case-pro-cover,
.case-pro-wire-img,
.case-pro-block-image {
  cursor: zoom-in;
}

/* Sticky Sub-header Progress Nav (below main header) */
.case-pro-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 88px;
  z-index: 500;
  background-color: rgba(240, 240, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #21212115;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.case-pro-nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.case-pro-nav-inner {
  width: 100%;
  margin: 0;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 14px;
  font-size: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-inline: 60px;
}

.case-pro-nav-inner::-webkit-scrollbar {
  display: none;
}

.case-pro-nav a {
  color: #828282;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.case-pro-nav a:hover {
  color: #4a4a4a;
}

.case-pro-nav a.active {
  color: #212121;
  font-weight: 700;
}

.case-pro-nav-sep {
  flex-shrink: 0;
  width: 18px;
  height: 1px;
  background: #21212130;
}

@media (max-width: 1024px) {
  .case-pro-nav {
    top: 80px;
  }
  .case-pro-nav-inner {
    font-size: 12px;
    gap: 10px;
    padding: 12px 20px;
  }
  .case-pro-nav-sep {
    width: 12px;
  }
}

@media (max-width: 640px) {
  .case-pro-nav {
    top: 72px;
  }
  .case-pro-nav-inner {
    font-size: 12px;
    gap: 8px;
    padding: 10px 16px;
    scroll-padding-inline: 32px;
  }
  .case-pro-nav-sep {
    width: 8px;
  }
}

/* Image Modal */
.image-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-modal .modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  cursor: zoom-out;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

/* === Detail === */
.case-detail {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #21212115;
}

.case-cover {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  background: #dbdbdb;
}

.case-body {
  padding: 48px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  flex-wrap: wrap;
}

.case-title {
  font-family: "Anton", sans-serif;
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
  color: #212121;
}

.case-lead {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: #4a4a4a;
}

.case-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  transition: color 0.2s ease;
}

.case-title a:hover {
  color: #4a4a4a;
}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-section h3 {
  font-family: "Anton", sans-serif;
  font-size: 20px;
  margin: 0;
  color: #212121;
}

.case-section p,
.case-section ul {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #212121;
}

.case-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin-top: 8px;
  background: #dbdbdb;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .work-bar {
    padding: 16px 24px;
  }
  .work-bar .title-label {
    font-size: 24px !important;
  }
  .title-description > div:last-child {
    font-size: 14px;
  }
  .back-Button,
  .share-Button {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
  .main-content {
    padding: 32px 16px 64px;
    gap: 32px;
  }
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .case-body {
    padding: 32px 24px 32px;
  }
  .case-title {
    font-size: 24px;
  }
  .case-lead {
    font-size: 16px;
  }
  .case-cover {
    height: 240px;
  }

  .case-pro-body {
    padding: 48px 40px 56px;
    gap: 56px;
  }
  .case-pro-title {
    font-size: 32px;
  }
  .case-pro-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-pro-section h2 {
    font-size: 24px;
  }
  .case-pro-section h3 {
    font-size: 18px;
  }
  .case-pro-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .case-pro-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .case-pro-wire-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-pro-meta-grid {
    grid-template-columns: 1fr;
  }
  .case-pro-meta-card {
    border-right: none;
    border-bottom: 1px solid #21212112;
  }
  .case-pro-meta-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .work-bar {
    padding: 12px 16px;
  }
  .work-bar .title-label {
    font-size: 18px !important;
  }
  .title-description {
    gap: 4px;
  }
  .title-description > div:last-child {
    font-size: 12px;
  }
  .back-Button,
  .share-Button {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
  .main-content {
    padding: 24px 16px 48px;
    gap: 24px;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-body {
    padding: 24px 20px 24px;
  }
  .case-title {
    font-size: 22px;
  }
  .case-lead {
    font-size: 15px;
  }
  .case-cover {
    height: 200px;
  }
  .case-card-cover {
    height: 180px;
  }
  .case-card-title {
    font-size: 20px;
  }
  .case-section h3 {
    font-size: 18px;
  }
  .view-button {
    padding: 10px 18px;
  }

  .case-pro-body {
    padding: 32px 20px 40px;
    gap: 40px;
  }
  .case-pro-meta-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .case-pro-meta-card {
    border-right: none;
    border-bottom: 1px solid #21212112;
  }
  .case-pro-meta-card:last-child {
    border-bottom: none;
  }
  .case-pro-grid-final {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-pro-grid-3,
  .case-pro-wire-grid {
    grid-template-columns: 1fr;
  }
  .case-pro-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .case-pro-title {
    font-size: 24px;
  }
  .case-pro-lead {
    font-size: 16px;
  }
  .case-pro-grid-2,
  .case-pro-grid-3 {
    grid-template-columns: 1fr;
  }
  .case-pro-section h2 {
    font-size: 18px;
    padding-top: 24px;
  }
  .case-pro-section h2::after {
    width: 28px;
    height: 2px;
    margin-top: 10px;
  }
  .case-pro-section h3 {
    font-size: 16px;
  }
  .case-pro-section p:has(+ ul) {
    font-size: 16px;
  }
  .case-pro-narrow > p:first-child:not(:has(+ ul)) {
    font-size: 18px;
  }
  .case-pro-ba-cell {
    padding: 14px 18px;
    font-size: 16px;
  }
  .case-pro-ba-head .case-pro-ba-cell {
    padding: 10px 18px;
  }
  .case-pro-ba-row::after {
    display: none;
  }
  .case-pro-hero-image {
    aspect-ratio: 1440 / 1024;
  }
}

/* === Before / After Table === */
.case-pro-ba-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #21212115;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.case-pro-ba-head,
.case-pro-ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.case-pro-ba-row {
  position: relative;
}

.case-pro-ba-row + .case-pro-ba-row,
.case-pro-ba-head + .case-pro-ba-row {
  border-top: 1px solid #21212112;
}

.case-pro-ba-row:nth-child(odd) {
  background: #fafaf9;
}

.case-pro-ba-row::after {
  content: "→";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #212121;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 0 0 4px #ffffff;
}

.case-pro-ba-row:nth-child(odd)::after {
  box-shadow: 0 0 0 4px #fafaf9;
}

.case-pro-ba-cell {
  padding: 20px 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #212121;
  display: flex;
  align-items: center;
}

.case-pro-ba-cell + .case-pro-ba-cell {
  border-left: 1px solid #21212112;
}

.case-pro-ba-head .case-pro-ba-cell {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #828282;
  background: #f0f0ee;
  padding: 14px 28px;
}

.case-pro-ba-head .case-pro-ba-after {
  color: #212121;
}

.case-pro-ba-row .case-pro-ba-cell:first-child {
  color: #9a9a98;
  text-decoration: line-through;
  text-decoration-color: #21212130;
}

.case-pro-ba-row .case-pro-ba-cell:last-child {
  font-weight: 600;
  color: #212121;
}

/* === Competitor Cards === */
.case-pro-competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-pro-competitor-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #21212115;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-pro-competitor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #21212130;
}

.case-pro-competitor-card h3 {
  font-family: "Anton", sans-serif;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #21212115;
  color: #212121;
  letter-spacing: 0.01em;
}

.case-pro-proscons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-pro-proscons-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-pro-proscons-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #828282;
}

.case-pro-pros .case-pro-proscons-label {
  color: #2f7d4b;
}

.case-pro-cons .case-pro-proscons-label {
  color: #b3422b;
}

.case-pro-proscons-col ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-pro-proscons-col li {
  font-size: 16px;
  line-height: 1.55;
  color: #212121;
}

.case-pro-pros ul li::marker {
  color: #2f7d4b;
}

.case-pro-cons ul li::marker {
  color: #b3422b;
}

/* Takeaway list */
.case-pro-takeaway-list {
  margin: 4px 0 0 !important;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-pro-takeaway-list li {
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
}

@media (max-width: 1024px) {
  .case-pro-competitor-grid {
    grid-template-columns: 1fr;
  }
  .case-pro-ba-cell {
    padding: 14px 18px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .case-pro-ba-cell {
    padding: 12px 14px;
    font-size: 13px;
  }
  .case-pro-ba-head .case-pro-ba-cell {
    font-size: 11px;
  }
  .case-pro-competitor-card {
    padding: 20px;
  }
}
