.case-top {
  border-bottom: 1px solid var(--line);
}

.case-top-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.case-top .brand-dot {
  color: var(--cobalt);
}

.case-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
}

.case-nav a {
  text-decoration: none;
}

.case-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-intro {
  padding-block: clamp(32px, 4.5vw, 66px) clamp(30px, 3vw, 44px);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.case-back:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-intro h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.case-location {
  margin-top: 18px;
  color: var(--cobalt);
  font-size: 15px;
  font-weight: 600;
}

.case-description {
  max-width: 59ch;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
}

@media (min-width: 960px) {
  .case-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
  }

  .case-intro h1 {
    font-size: clamp(48px, 5.45vw, 76px);
  }

  .case-copy .case-description:first-child {
    margin-block-start: 0;
  }
}

.case-art .project-visual,
.case-art .project-card-visual {
  border-radius: 14px;
  text-decoration: none;
  touch-action: manipulation;
}

.case-art .project-visual {
  padding-inline: clamp(24px, 7vw, 96px);
}

.case-art .breya-visual {
  padding-block: clamp(34px, 5vw, 64px);
}

.case-art .project-visual .portfolio-browser {
  max-width: 920px;
  margin-inline: auto;
}

.case-art .project-card-visual {
  aspect-ratio: 1.92;
}

.case-art.yuma-editorial .project-card-visual {
  display: grid;
  place-items: center;
  min-height: 478px;
  aspect-ratio: 1.92;
  padding: 38px 24px 46px;
}

.case-art .yuma-browser {
  position: relative;
  inset: auto;
  width: min(74%, 720px);
  margin-inline-start: 7%;
}

.case-art .yuma-collage > img {
  display: block;
}

.case-art .tlc-browser-content > img {
  height: clamp(212px, 24vw, 320px);
}

.case-art .global-browser-hero {
  height: clamp(265px, 32vw, 405px);
}

.case-art .global-side-note {
  right: auto;
  left: 25px;
}

.case-art .tlc-sticker {
  bottom: 49px;
}

.case-art .project-open-chip {
  z-index: 4;
}

.case-art .project-visual:focus-visible .project-open-chip,
.case-art .project-card-visual:focus-visible .project-open-chip {
  opacity: 1;
  transform: none;
}

.case-bottom {
  justify-content: flex-end;
  gap: 0;
  margin-block: 28px 58px;
}

.case-site-footer {
  border-top: 1px solid var(--line);
  padding-block: 23px 30px;
  color: var(--muted);
  font-size: 13px;
}

.project-list-page .section-space {
  padding-block: clamp(42px, 6vw, 86px) 64px;
}

.project-list-page .section-intro h1 {
  max-width: none;
}

.project-list-page .section-intro .cobalt-text {
  display: inline-block;
}

.project-list-page .project-card-visual,
.project-list-page .project-visual {
  text-decoration: none;
}

.project-list-page :is(.project-caption, .featured-project-copy) .project-index {
  text-wrap: balance;
}

.preview-note {
  color: var(--muted);
  font-size: 13px;
}

.preview-case:not(:target),
.preview-case:target ~ .project-list-page {
  display: none;
}

.preview-case {
  scroll-margin-block-start: 0;
}

html:has(.preview-case) {
  scroll-padding-top: 0;
}

.portfolio-motion[data-scene-visible="false"] :is(.portfolio-browser, .portfolio-main-image) {
  animation-play-state: paused !important;
}

html[data-motion="off"] .portfolio-browser,
html[data-motion="off"] .project-card-visual,
html[data-motion="off"] .portfolio-main-image {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .case-art.yuma-editorial .project-card-visual {
    min-height: 390px;
    padding-block: 28px 42px;
  }
}

@media (max-width: 640px) {
  .case-top-inner {
    min-height: 64px;
  }

  .case-intro {
    padding-block: 27px 25px;
  }

  .case-back {
    margin-bottom: 18px;
  }

  .case-intro h1 {
    font-size: clamp(30px, 9vw, 55px);
  }

  .case-location {
    margin-top: 14px;
  }

  .case-description {
    margin-top: 12px;
  }

  .case-art .project-visual {
    padding-inline: 18px;
  }

  .case-art .project-card-visual {
    aspect-ratio: 1.32;
  }

  .case-art.yuma-editorial .project-card-visual {
    min-height: 352px;
    padding: 22px 16px 34px;
  }

  .case-art .yuma-browser {
    width: min(83%, 380px);
    margin-inline-start: 10%;
  }

  .case-art .yuma-browser-copy > strong {
    font-size: 25px;
  }

  .case-art .yuma-side-note {
    bottom: 4%;
  }

  .case-art .tlc-browser-content {
    padding-inline: 11px;
  }

  .case-art .tlc-browser-content strong {
    font-size: clamp(17px, 5vw, 24px);
  }

  .case-art .tlc-browser-content > img {
    height: 185px;
  }

  .case-art .tlc-browser-nav {
    padding-inline: 11px;
  }

  .case-art .tlc-browser-nav > img {
    width: min(115px, 50%);
  }

  .case-art .tlc-editorial-visual {
    padding-bottom: 72px;
  }

  .case-art .tlc-sticker {
    right: 22px;
    bottom: 37px;
  }

  .case-art .global-browser-wording strong {
    font-size: clamp(20px, 6vw, 30px);
  }

  .case-bottom {
    margin: 24px 0 42px;
    align-items: flex-start;
  }
}

.work-bottom > .text-link[data-booking] {
  justify-content: space-between;
  gap: 24px;
  min-width: 224px;
  min-height: 58px;
  padding: 14px 19px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.work-bottom > .text-link[data-booking]:hover {
  transform: translate(1px, 1px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 2px 3px 0 var(--ink);
}

.work-bottom > .text-link[data-booking]:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 5px;
}

@media (max-width: 640px) {
  .work-bottom > .text-link[data-booking] {
    width: 100%;
    min-width: 0;
    max-width: 340px;
    margin-inline-start: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-bottom > .text-link[data-booking] {
    transition: none;
  }
}