.ep-case {
  color: var(--ink, #172136);
  background: var(--paper, #fff);
  overflow: clip;
}
.ep-case-wrap {
  width: 100%;
  max-width: 1512px;
  margin-inline: auto;
  padding-inline: var(--gutter, clamp(20px, 4.5vw, 76px));
}
.ep-case-header {
  position: relative;
  isolation: isolate;
  color: #f4f7ff;
  padding-block: clamp(27px, 3.8vw, 64px) clamp(30px, 3.5vw, 60px);
}
.ep-case-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw) -1px;
  z-index: -1;
  background: #0b1322;
}
.ep-case-header nav, .ep-case-header p, .ep-case-credits {
  line-height: 1.5;
}
.ep-case-header nav {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin-bottom: clamp(15px, 2vw, 29px);
  font-size: .92rem;
  font-weight: 600;
  color: #c3d0e4;
}
.ep-case-header nav a { display: inline-flex; align-items: center; min-height: 28px; }
.ep-case-header nav a:hover, .ep-case-credits a:hover { text-decoration: underline; text-underline-offset: .25em; }
.ep-case-header nav span:last-child { color: #a7c3ff; }
.ep-case-header nav::before {
  content: ""; width: 25px; height: 3px; background: #6794ff;
}
.ep-case-header h1 {
  max-width: 100%;
  font-size: clamp(2.55rem, 5.7vw, 5.65rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.058em;
  text-wrap: balance;
  word-break: keep-all;
}
.ep-case-header p {
  margin-top: clamp(14px, 1.7vw, 24px);
  font-size: clamp(1rem, 1.4vw, 1.27rem);
  font-weight: 500;
  color: #c3d0e4;
}
.ep-case-header p strong { margin-right: .75rem; color: white; font-size: .9em; }
.ep-case-header .ep-case-summary-en {
  margin-top:.45rem;
  max-width:75ch;
  color:#afc3df;
  font:400 clamp(.95rem,1.17vw,1.16rem)/1.5 var(--font-body,Arial,sans-serif);
  letter-spacing:0;
  word-break:normal;
}
.ep-case-header .ep-case-story-link { margin-top: 12px; color: #aec8ff; }
.ep-case-header .ep-case-story-link:hover { color: white; }
.ep-case-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px);
}
.ep-case-photo { grid-column: span 6; min-width: 0; margin: 0; }
.ep-case-photo:nth-child(1), .ep-case-photo:nth-child(4) { grid-column: 1 / -1; }
.ep-case-photo:nth-child(2), .ep-case-photo:nth-child(8) { grid-column: span 7; }
.ep-case-photo:nth-child(3), .ep-case-photo:nth-child(7) { grid-column: span 5; }
.ep-case-photo a {
  display: block;
  overflow: hidden;
  background: #e7eaf0;
  cursor: zoom-in;
  aspect-ratio: 1.58;
}
.ep-case-photo:nth-child(1) { background: #0b1322; box-shadow: 0 0 0 100vmax #0b1322; clip-path: inset(0 -100vmax); }
.ep-case-photo:nth-child(1) a { aspect-ratio: auto; background: #0b1322; }
.ep-case-photo:nth-child(1) img { height: auto; max-height: max(56vh, 435px); object-fit: contain; }
.ep-case-photo:nth-child(4) a { aspect-ratio: 2.25; }
.ep-case-photo:nth-child(2) a, .ep-case-photo:nth-child(8) a { aspect-ratio: 1.88; }
.ep-case-photo:nth-child(3) a, .ep-case-photo:nth-child(7) a { aspect-ratio: 1.34; }
.ep-case-photo img { width: 100%; height: 100%; object-fit: cover; }
.ep-case-credits {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .35rem 1.4rem;
  padding-block: 1.1rem;
  color: var(--muted, #4d5c70);
  font-size: .92rem;
}
.ep-case-credits p { margin-right: auto; }
.ep-case-credits p span { margin-right: .45rem; font-weight: 650; color: var(--ink, #172136); }
.ep-case-credits a { display: inline-flex; align-items: center; gap: .25em; min-height: 34px; }
.ep-case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line, #dce1e9);
  padding-block: clamp(22px, 3.2vw, 48px) clamp(38px, 5vw, 72px);
}
.ep-case-mail {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
  min-height: 45px;
  padding: .55rem 1rem;
  border: 1px solid currentColor;
  color: var(--blue, #174bd9);
  font-weight: 650;
  white-space: nowrap;
}
.ep-case-mail:hover { background: var(--blue, #174bd9); border-color: var(--blue, #174bd9); color: white; }
.ep-case-next { padding: .3rem 0 .3rem 1rem; text-align: right; }
.ep-case-next span { display: block; font-size: .9rem; color: var(--muted, #4d5c70); }
.ep-case-next strong { font-size: clamp(1.05rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.ep-case-next:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.ep-case a:focus-visible { outline: 3px solid var(--blue, #174bd9); outline-offset: 3px; }
.ep-case-header a:focus-visible, .ep-case-cover a:focus-visible { outline: 3px solid #a5c5ff; outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .ep-case-photo img { transition: transform .45s ease; }
  .ep-case-photo:not(:first-child) a:hover img { transform: scale(1.025); }
}
@media (max-width: 640px) {
  .ep-case-header h1 { font-size: clamp(2.12rem, 8vw, 3.25rem); }
  .ep-case-header nav { margin-bottom: .8rem; }
  .ep-case-header p { line-height: 1.65; }
  .ep-case-gallery { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .ep-case-gallery > .ep-case-photo:nth-child(n) { grid-column: 1; }
  .ep-case-gallery > .ep-case-photo:nth-child(n) a { aspect-ratio: auto; }
  .ep-case-gallery > .ep-case-photo:nth-child(n) img { height: auto; }
  .ep-case-cover { margin-inline: calc(-1 * var(--gutter, 20px)); }
  .ep-case-credits { gap: .4rem; font-size: .86rem; }
  .ep-case-mail { gap: .7em; }
}
