.case-section {
  position: relative;
  overflow: hidden;
  color: var(--light-text);
  background:
    linear-gradient(90deg, rgba(21, 70, 105, 0.055) 1px, transparent 1px) 50% 0 / 88px 88px,
    #edf5fa;
}

.case-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(28, 124, 198, 0.34), transparent);
}

.case-section .section-head h2 {
  color: var(--light-text);
}

.case-section .section-head h2 span {
  color: #397290;
}

.case-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
}

.case-home-feature,
.case-home-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 82, 118, 0.16);
  background: #07192b;
  box-shadow: 0 24px 64px rgba(18, 55, 82, 0.12);
}

.case-home-feature {
  min-height: 540px;
}

.case-home-feature img,
.case-home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.case-home-feature::after,
.case-home-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 11, 21, 0.02) 28%, rgba(2, 11, 21, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 11, 21, 0.34), transparent 58%);
}

.case-home-feature:hover img,
.case-home-card:hover img {
  transform: scale(1.025);
}

.case-home-copy {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  left: 30px;
  color: #f7fbff;
}

.case-index {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
  color: #9edff7;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.case-home-copy h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.case-home-copy p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #c5d8e7;
  font-size: 15px;
  line-height: 1.75;
}

.case-home-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
}

.case-home-card {
  min-height: 168px;
}

.case-home-card .case-home-copy {
  right: 20px;
  bottom: 18px;
  left: 20px;
}

.case-home-card .case-index {
  margin-bottom: 8px;
}

.case-home-card h3 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.case-home-card p {
  display: none;
}

.case-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(31, 90, 128, 0.15);
  padding-top: 22px;
}

.case-home-footer p {
  max-width: 710px;
  margin: 0;
  color: #617a8d;
  font-size: 14px;
  line-height: 1.7;
}

.case-text-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #267daf;
  color: #0c4f78;
  font-size: 14px;
  font-weight: 750;
  transition: color 180ms ease, border-color 180ms ease;
}

.case-text-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.case-text-link:hover,
.case-text-link:focus-visible {
  color: #087cac;
  border-color: #08a8d7;
}

.case-page {
  background: #eaf2f7;
}

.case-page .home-header {
  position: fixed;
}

.case-page .home-nav a[aria-current="page"] {
  color: #ecf8ff;
}

.case-page .home-nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 76px;
  background:
    linear-gradient(90deg, rgba(81, 162, 215, 0.055) 1px, transparent 1px) 50% 0 / 88px 88px,
    linear-gradient(rgba(81, 162, 215, 0.055) 1px, transparent 1px) 50% 0 / 88px 88px,
    #03101e;
}

.case-hero::after {
  position: absolute;
  right: -15vw;
  bottom: -280px;
  width: 820px;
  height: 520px;
  border: 1px solid rgba(97, 220, 255, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 80px rgba(39, 130, 205, 0.035),
    0 0 0 180px rgba(39, 130, 205, 0.02);
}

.case-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: 62px;
}

.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  color: #7792a8;
  font-size: 12px;
}

.case-breadcrumb a {
  color: #a8c3d7;
}

.case-hero-copy .section-kicker {
  margin-bottom: 24px;
}

.case-hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.7vw, 76px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.case-hero h1 span {
  display: block;
  color: #76dcff;
}

.case-hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #afc4d5;
  font-size: 17px;
  line-height: 1.85;
}

.case-hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(123, 210, 255, 0.24);
  background: #07192b;
  box-shadow: 0 36px 100px rgba(0, 4, 12, 0.5);
}

.case-hero-visual img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.case-hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(2, 11, 21, 0.86) 100%);
}

.case-hero-note {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
}

.case-hero-note strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.case-hero-note span {
  color: #a8c0d2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.case-proof {
  color: #0a2238;
  background: #dbeaf3;
}

.case-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.case-proof-item {
  min-height: 128px;
  border-right: 1px solid rgba(28, 82, 118, 0.15);
  padding: 28px 30px;
}

.case-proof-item:first-child {
  border-left: 1px solid rgba(28, 82, 118, 0.15);
}

.case-proof-item strong {
  display: block;
  color: #0a4e76;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.case-proof-item span {
  display: block;
  margin-top: 10px;
  color: #557084;
  font-size: 13px;
  line-height: 1.55;
}

.case-archive {
  min-height: 800px;
  padding: 92px 0 120px;
  color: #10283d;
  background:
    linear-gradient(90deg, rgba(31, 90, 128, 0.045) 1px, transparent 1px) 50% 0 / 96px 96px,
    #f3f8fb;
}

.case-archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.case-archive-head h2 {
  max-width: 760px;
  margin: 0;
  color: #0a2136;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.case-archive-head h2 span {
  color: #397491;
}

.case-archive-head p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #60798c;
  line-height: 1.8;
}

.case-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.case-filter button {
  min-height: 44px;
  border: 1px solid rgba(34, 94, 132, 0.2);
  border-radius: 999px;
  padding: 0 18px;
  color: #4c6a7e;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.case-filter button:hover,
.case-filter button:focus-visible {
  border-color: #1c83b5;
  color: #0d638d;
}

.case-filter button[aria-pressed="true"] {
  border-color: #0b6b9a;
  color: #fff;
  background: #0b6b9a;
}

.case-count {
  margin: 32px 0 18px;
  color: #6b8293;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.case-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-archive-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 87, 121, 0.16);
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 61, 88, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.case-archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 126, 174, 0.38);
  box-shadow: 0 26px 58px rgba(23, 61, 88, 0.13);
}

.case-archive-card.is-hidden {
  display: none;
}

.case-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09203a;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.case-archive-card:hover .case-visual img {
  transform: scale(1.025);
}

.case-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(2, 12, 22, 0.5));
}

.case-visual.is-portrait img {
  object-position: 50% 46%;
}

.case-visual-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  color: #8bdcf8;
  background:
    radial-gradient(circle at 68% 28%, rgba(75, 190, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #061526, #0d3659);
}

.case-visual-placeholder::before,
.case-visual-placeholder::after {
  position: absolute;
  width: 68%;
  height: 68%;
  border: 1px solid rgba(110, 221, 255, 0.26);
  border-radius: 50%;
  content: "";
}

.case-visual-placeholder::after {
  width: 42%;
  height: 42%;
  transform: rotate(56deg);
  border-radius: 0;
}

.case-visual-placeholder span {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.case-card-body {
  min-height: 244px;
  padding: 24px 24px 22px;
}

.case-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #6a8293;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.case-card-meta span:first-child {
  color: #0a75a4;
  font-weight: 700;
}

.case-card-body h3 {
  margin: 0;
  color: #0b2237;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.case-card-body p {
  margin: 13px 0 18px;
  color: #60778a;
  font-size: 14px;
  line-height: 1.75;
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-card-tags span {
  border: 1px solid rgba(25, 93, 133, 0.14);
  border-radius: 4px;
  padding: 6px 8px;
  color: #4e7187;
  background: #f4f8fa;
  font-size: 11px;
  font-weight: 650;
}

.case-source-note {
  margin: 34px 0 0;
  border-left: 2px solid #7dcfe9;
  padding-left: 14px;
  color: #73899a;
  font-size: 12px;
  line-height: 1.7;
}

.case-page .site-footer {
  background: #03101e;
}

@media (max-width: 1040px) {
  .case-home-grid {
    grid-template-columns: 1fr;
  }

  .case-home-side {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .case-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .case-hero-copy {
    max-width: 760px;
  }

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

@media (max-width: 760px) {
  .case-home-feature {
    min-height: 440px;
  }

  .case-home-side {
    grid-template-columns: 1fr;
  }

  .case-home-card {
    min-height: 220px;
  }

  .case-home-footer,
  .case-archive-head {
    align-items: flex-start;
  }

  .case-home-footer {
    display: flex;
    flex-direction: column;
  }

  .case-archive-head {
    grid-template-columns: 1fr;
  }

  .case-hero {
    padding: 118px 0 54px;
  }

  .case-hero-visual,
  .case-hero-visual img {
    min-height: 360px;
    height: 360px;
  }

  .case-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-proof-item:nth-child(2) {
    border-right: 0;
  }

  .case-proof-item:nth-child(n + 3) {
    border-top: 1px solid rgba(28, 82, 118, 0.15);
  }

  .case-filter {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .case-home-feature {
    min-height: 410px;
  }

  .case-home-copy {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .case-home-copy h3 {
    font-size: 25px;
  }

  .case-home-copy p {
    font-size: 14px;
  }

  .case-home-footer {
    gap: 12px;
  }

  .case-hero h1 {
    font-size: 43px;
  }

  .case-hero-lead {
    font-size: 16px;
  }

  .case-hero-visual,
  .case-hero-visual img {
    min-height: 300px;
    height: 300px;
  }

  .case-hero-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .case-proof-item {
    min-height: 112px;
    padding: 24px 18px;
  }

  .case-proof-item strong {
    font-size: 27px;
  }

  .case-archive {
    padding: 72px 0 90px;
  }

  .case-archive-grid {
    grid-template-columns: 1fr;
  }

  .case-card-body {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-home-feature img,
  .case-home-card img,
  .case-archive-card,
  .case-visual img {
    transition: none;
  }

  .case-home-feature:hover img,
  .case-home-card:hover img,
  .case-archive-card:hover,
  .case-archive-card:hover .case-visual img {
    transform: none;
  }
}
