.sc-showcase,.sc-case {
  --sc-ink:#101b31; --sc-muted:#4b5b71; --sc-brand:#194df0; --sc-rule:#d5dce5;
  --sc-ease:cubic-bezier(.22,.8,.24,1); background:#fff; color:var(--sc-ink);
}
.sc-showcase { padding-block:clamp(72px,8vw,128px) clamp(80px,9vw,144px); }
.sc-showcase.sc-showcase--home { padding-block-start:clamp(35px,4.4vw,72px); }
.sc-case { padding-block:clamp(40px,5vw,80px) clamp(72px,8vw,128px); }
.sc-wrap { position:relative; }
.sc-showcase h1,.sc-showcase h2,.sc-showcase h3,.sc-case h1,.sc-case h2,
.sc-showcase p,.sc-case p,.sc-showcase figure,.sc-case figure { margin:0; }
.sc-showcase a,.sc-case a { color:inherit; }
.sc-showcase a:focus-visible,.sc-case a:focus-visible { outline:3px solid var(--sc-brand); outline-offset:6px; }
.sc-arrow { width:1.15em; height:1.15em; flex:none; }
.sc-heading-row,.sc-case-heading-row {
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:12px 24px;
}
.sc-showcase .sc-heading {
  font-size:clamp(2.65rem,1.5rem + 3.5vw,5rem); font-weight:var(--weight-semibold);
  letter-spacing:var(--tracking-display); line-height:1.04; text-wrap:balance;
}
.sc-heading,.sc-story p,.sc-detail h2 { overflow-wrap:anywhere; }
.sc-index-link,.sc-back,.sc-visit {
  display:inline-flex; align-items:center; gap:10px; width:fit-content;
  min-height:44px; text-decoration:none;
}
.sc-index-link,.sc-visit { font-size:1rem; line-height:1.4; font-weight:var(--weight-semibold); }
.sc-showcase .sc-index-link,.sc-case .sc-visit { color:var(--sc-brand); }
.sc-back { margin-bottom:clamp(28px,4vw,64px); font-size:.875rem; font-weight:var(--weight-semibold); }
.sc-case .sc-back { color:var(--sc-muted); }

.sc-collection {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:1fr;
  gap:clamp(16px,1.75vw,28px); margin-top:clamp(22px,2.5vw,38px);
}
.sc-entry {
  --poster-gutter:clamp(16px,4.2cqi,30px); --reveal-delay:0ms;
  display:grid; min-width:0; container-type:inline-size;
}
.sc-entry-link {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 1fr; min-width:0;
  border:1px solid #d6dfed; border-radius:12px; text-decoration:none;
  background:#fff;
}
.sc-poster-head {
  display:flex; align-items:baseline; justify-content:space-between; gap:6px 18px;
  padding:clamp(22px,4.8cqi,34px) var(--poster-gutter) clamp(18px,4cqi,28px);
  border-radius:11px 11px 0 0; background:#f3f6fc;
}
.sc-showcase .sc-entry-title {
  color:var(--sc-ink); font-size:clamp(2.65rem,10cqi,4.4rem); font-weight:var(--weight-medium);
  line-height:1; letter-spacing:var(--tracking-display);
}
.sc-poster-category {
  max-width:19ch; color:#465774; font-size:clamp(.8125rem,2.4cqi,.975rem);
  line-height:1.3; font-weight:var(--weight-medium); text-align:end; text-wrap:balance;
}
.sc-preview {
  position:relative; min-width:0; margin-inline:0;
  padding-inline:clamp(7px,1.55cqi,11px); padding-bottom:clamp(7px,1.55cqi,11px);
  background:#f3f6fc;
}
.sc-frame { position:relative; isolation:isolate; overflow:hidden; border-radius:12px; background:#eef0f3; }
.sc-photo { display:block; width:100%; height:100%; object-fit:cover; }
.sc-preview .sc-frame { aspect-ratio:1.58; border-radius:5px; background:#e0e8f6; }
.sc-preview .sc-photo { position:absolute; inset:0; object-position:50% 48%; }
.sc-preview .sc-frame--respmed .sc-photo { object-position:50% 28%; }
.sc-fold {
  position:absolute; right:0; bottom:0; z-index:2; width:clamp(58px,14%,100px);
  aspect-ratio:1.87; pointer-events:none; transform-origin:bottom right;
  background:var(--sc-brand); clip-path:polygon(0 100%,100% 0,100% 100%);
}
.sc-fold::before {
  position:absolute; inset:0; content:"";
  background:#82a8ff; clip-path:polygon(0 0,100% 0,100% 26%,0 100%);
}
.sc-poster-copy {
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px 24px;
  padding:clamp(18px,3.8cqi,27px) var(--poster-gutter); border-top:1px solid #e1e7f1;
}
.sc-poster-copy .sc-poster-description {
  align-self:flex-start; max-width:39ch; color:var(--sc-ink);
  font-size:clamp(1rem,2.95cqi,1.23rem); line-height:1.45; text-wrap:pretty;
}
.sc-action-slot { display:inline-flex; flex:none; }
.sc-poster-action {
  position:relative; z-index:2; display:inline-flex; align-items:center; gap:8px;
  min-height:38px; padding:6px 14px; border-radius:99px; background:var(--sc-brand); color:white;
  font-size:clamp(.875rem,2.4cqi,.975rem); font-weight:var(--weight-semibold);
  line-height:1.3; white-space:nowrap; pointer-events:none;
}
@container (max-width:500px) {
  .sc-poster-copy { flex-direction:column; align-items:flex-start; }
  .sc-action-slot { margin-top:auto; }
}
@container (max-width:25em) {
  .sc-poster-head { flex-direction:column-reverse; align-items:flex-start; gap:6px; }
  .sc-poster-category { max-width:none; text-align:start; }
}
.sc-topics { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:var(--sc-muted); font-size:.875rem; line-height:1.45; font-weight:var(--weight-regular); }
.sc-topics > span { color:#8a95a4; }
.sc-case-heading-row > * { min-inline-size:0; max-inline-size:100%; }
.sc-case { padding-top:0; }
.sc-case > .sc-wrap { max-width:min(1232px,127svh); }
.sc-case .sc-case-figure {
  width:100%; max-width:100%; margin-inline:auto;
  aspect-ratio:1.65; border-radius:16px;
}
.sc-case .sc-case-figure .sc-photo {
  display:block; width:100%; height:100%; object-fit:cover; object-position:center;
}
.sc-case--respmed .sc-case-figure { aspect-ratio:1.59; }
.sc-case--respmed .sc-case-figure .sc-photo { object-position:50% 17%; }
.sc-case-heading { padding-block:clamp(8px,1vw,16px) clamp(16px,1.15vw,20px); }
.sc-case-tools,.sc-case-heading-row { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; }
.sc-case-tools .sc-back { margin:0; }
.sc-case-heading-row { margin-top:2px; align-items:flex-end; }
.sc-case h1 { font-size:clamp(3.5rem,2.25rem + 3.95vw,5.75rem); line-height:1.04; font-weight:var(--weight-semibold); letter-spacing:var(--tracking-display); }
.sc-case-heading-row .sc-visit { margin-bottom:2px; }
.sc-story { display:grid; grid-template-columns:1fr 2.05fr; gap:clamp(24px,5vw,80px); margin-block:clamp(64px,7.5vw,120px); }
.sc-story h2 { padding-top:5px; font-size:1.125rem; line-height:1.45; font-weight:var(--weight-semibold); color:var(--sc-muted); }
.sc-story p { max-width:30ch; font-size:clamp(1.55rem,1.2rem + 1.55vw,2.6rem); line-height:1.35; letter-spacing:-.015em; font-weight:var(--weight-regular); text-wrap:pretty; }
.sc-detail { display:grid; grid-template-columns:minmax(0,.87fr) minmax(0,1.9fr); gap:clamp(32px,5vw,80px); align-items:start;
  padding-block:clamp(32px,5vw,64px) 0; border-top:1px solid var(--sc-rule); }
.sc-detail h2 { font-size:clamp(1.9rem,1.25rem + 2.5vw,3.7rem); line-height:1.1; font-weight:var(--weight-semibold); letter-spacing:var(--tracking-title); text-wrap:balance; }
.sc-detail-copy p { margin-top:20px; color:var(--sc-muted); font-size:1rem; line-height:1.65; text-wrap:pretty; }
.sc-document { padding:clamp(12px,2.1vw,32px); background:#edf0f5; border-radius:12px; }
.sc-document img { width:100%; height:auto; display:block; border:1px solid #d8dfe6; border-radius:5px; }
.sc-detail figcaption { margin-top:10px; color:var(--sc-muted); font-size:.875rem; line-height:1.45; }
.sc-next { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 24px; align-items:center; border-block:1px solid var(--sc-rule);
  margin-top:clamp(64px,8.5vw,136px); padding-block:clamp(24px,3.5vw,48px); text-decoration:none; }
.sc-next span { grid-column:1; color:var(--sc-muted); font-size:.875rem; }
.sc-next strong { grid-column:1; font-size:clamp(2.5rem,1.5rem + 4vw,6rem); font-weight:var(--weight-semibold); line-height:1.06; letter-spacing:var(--tracking-display); }
.sc-next .sc-arrow { grid-column:2; grid-row:1/3; width:clamp(32px,5vw,72px); height:auto; color:var(--sc-brand); }
@media (hover:hover) and (pointer:fine) {
  .sc-index-link:hover,.sc-back:hover,.sc-visit:hover,.sc-next:hover strong { color:var(--sc-brand); text-decoration:underline; text-underline-offset:.2em; }
  .sc-entry-link:hover { border-color:#a2b8e7; }
  .sc-entry-link:hover .sc-poster-action { background:#143fca; }
}
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .sc-poster-action {
    transform:translate(0,0);
    transition:transform .36s cubic-bezier(.22,.75,.22,1),background-color .18s;
  }
  .sc-poster-action[data-follow="track"] { transition-duration:75ms,.18s; }
}
@media (hover:none) and (pointer:coarse) {
  .sc-poster-copy { position:relative; }
  .sc-action-slot {
    position:absolute; z-index:2; left:var(--poster-gutter); bottom:calc(100% + var(--poster-gutter));
    pointer-events:none;
  }
  .sc-entry-link:active { border-color:#a2b8e7; }
  .sc-entry-link:active .sc-poster-action { background:#143fca; }
  .sc-next:active strong { color:var(--sc-brand); }
  @media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
    @keyframes sc-settle-action { from { transform:translate(32px,-32px); } to { transform:none; } }
    @supports ((animation-timeline:view()) and (animation-range:entry)) {
      .sc-entry-link { view-timeline-name:--project-cover; }
      .sc-action-slot {
        animation:sc-settle-action auto linear both;
        animation-timeline:--project-cover;
        animation-range:entry 20% entry 95%;
      }
    }
    @supports not ((animation-timeline:view()) and (animation-range:entry)) {
      .sc-entry-link:has(.sc-frame.arrived) .sc-action-slot {
        animation:sc-settle-action .55s var(--sc-ease) var(--reveal-delay) backwards;
      }
    }
    .sc-fold { transition:transform .22s var(--sc-ease); }
    .sc-entry-link:active .sc-fold { transform:scale(1.08); }
  }
}
@media (forced-colors:active) {
  .sc-entry-link,.sc-poster-action { border:1px solid LinkText; }
}
@media (prefers-reduced-motion:no-preference) {
  .sc-entry-link { transition:border-color .25s; }
  .sc-preview [data-project-reveal].arrived { animation:none; }
  .sc-entry-link:not([data-case-active]) .sc-frame.arrived::before,
  .sc-entry-link:not([data-case-active]) .sc-frame.arrived::after {
    content:""; position:absolute; z-index:1; inset:-1px; pointer-events:none;
    clip-path:polygon(0 0,100% 0,100% 20%,0 82%); background:#dbe7ff;
    animation:sc-open-upper .62s cubic-bezier(.3,.06,.22,1) var(--reveal-delay) both;
  }
  .sc-entry-link:not([data-case-active]) .sc-frame.arrived::after {
    clip-path:polygon(0 81.5%,100% 19.5%,100% 100%,0 100%); background:var(--sc-brand);
    animation-name:sc-open-lower; animation-delay:calc(var(--reveal-delay) + 55ms);
  }
  @keyframes sc-open-upper { from {transform:none} to {transform:translate(-18%,-104%);visibility:hidden} }
  @keyframes sc-open-lower { from {transform:none} to {transform:translate(18%,104%);visibility:hidden} }
  @media (min-width:761px) { .sc-entry--respmed { --reveal-delay:85ms; } }
  @media (hover:hover) and (pointer:fine) {
    .sc-fold { transition:transform .38s var(--sc-ease); }
    .sc-entry-link:is(:hover,:focus-visible) .sc-fold { transform:scale(1.08); }
  }
}
@media (max-width:760px) {
  .sc-showcase { padding-block:64px 80px; }
  .sc-collection { grid-template-columns:minmax(0,1fr); gap:22px; }
  .sc-case { padding-block:0 64px; }
  .sc-story,.sc-detail { grid-template-columns:1fr; gap:20px; }
  .sc-story p { max-width:38ch; }
  .sc-detail-copy p { margin-top:12px; }
}
@media (max-width:520px) {
  .sc-heading-row { flex-wrap:nowrap; align-items:center; gap:12px; }
  .sc-heading-row .sc-index-link { flex:none; gap:5px; font-size:.875rem; }
  .sc-showcase .sc-heading { font-size:clamp(2.125rem,1.65rem + 2.5vw,2.65rem); }
  .sc-preview .sc-frame { aspect-ratio:1.48; }
  .sc-topics { gap:7px; }
  .sc-case-heading-row { flex-wrap:wrap; gap:8px 16px; }
  .sc-case h1 { font-size:clamp(3.2rem,1.4rem + 9vw,5rem); }
  .sc-next { margin-top:48px; }
}
@media (max-width:760px) {
  .sc-case .sc-case-figure { aspect-ratio:1.24; border-radius:12px; }
  .sc-case--karkeo .sc-case-figure .sc-photo { object-position:75% center; }
  .sc-case--respmed .sc-case-figure .sc-photo { object-position:58% center; }
  .sc-case-tools { flex-wrap:wrap; gap:4px 20px; }
}
