:root {
  --rectification-radius: 14px;
  --stat-width: 10rem;
  --stat-height: 8.5rem;
  --case-title-size: clamp(1.9rem, 3.2vw, 3rem);
  --case-subtitle-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-art .art-camera { width: 81%; height: 93%; left: 11%; }
.hero-art .art-drink { bottom: 0; height: 39%; left: 4%; }
.hero-art .art-resort { bottom: 0; height: 37%; right: 3%; }
.hero-art { margin-bottom: 1rem; }
.logo-track.is-moving { animation-duration: 150s; }

.phone-set {
  border-radius: var(--rectification-radius);
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  grid-template-rows: repeat(2, auto);
  align-content: center;
  justify-items: center;
  gap: .75rem .35rem;
  padding: 1.2rem .75rem;
  height: auto;
  min-height: 22rem;
}
.phone-set > .phone-link {
  grid-row: span 2;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-width: 12.75rem;
  rotate: -2deg;
}
.showcase:nth-child(2) .phone-link { rotate: 2deg; }
.phone-set .phone-screen { overflow: visible; }
.phone-set .phone-screen img { width: 100%; height: auto; }
.phone-set .phone-play { top: auto; bottom: .5rem; left: 50%; translate: -50% 0; width: 2.25rem; }
.stat-card {
  width: min(100%, var(--stat-width));
  min-width: 0;
  height: var(--stat-height);
  max-width: none;
  padding: .55rem .45rem;
  border: 0;
  border-radius: var(--rectification-radius);
  display: grid;
  grid-template-rows: 4rem 1fr;
  gap: .3rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  box-sizing: border-box;
  font-size: .78rem;
  line-height: 1.18;
}
.phone-set .metric { position: static; inset: auto; color: var(--wine); background: #fff; animation: none; }
.stat-card :is(strong, b) {
  width: 5.25rem;
  height: 4rem;
  display: grid;
  place-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font: 400 clamp(1.25rem, 2vw, 1.65rem)/1 var(--serif);
  white-space: nowrap;
}
.stat-card span { font: inherit; }
.project-badge.stat-card { right: .65rem; bottom: .65rem; }
.portfolio-group .project-visual:has(.supplied-phone) img { padding: .55rem; }
.portfolio-group .project-visual:has(.supplied-phone):has(.stat-card) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0, var(--stat-width));
  grid-template-rows: minmax(0,1fr);
  align-items: center;
  gap: .45rem;
  padding: .45rem;
}
.portfolio-group .project-visual:has(.supplied-phone) img { display: block; min-height: 0; }
.portfolio-group .project-visual:has(.supplied-phone) .stat-card { position: static; }

.testimonial-logo {
  display: grid;
  flex: 0 0 3.2rem;
  width: 3.2rem;
  height: 3.2rem;
  padding: .38rem;
  background: #fff;
  border: 1px solid #e7dce0;
  border-radius: .72rem;
}
main figcaption .testimonial-logo img { width: 100%; height: 100%; min-width: 0; object-fit: contain; border-radius: 0; }
#testimonial-slider > figure:nth-child(odd) { background: var(--wine); color: #fff; }
#testimonial-slider > figure:nth-child(even) { background: #fff; color: var(--ink); }

.project-story .case-project-title { margin-bottom: 1.1rem; font-size: var(--case-title-size); }
.project-story .case-subtitle { font-size: var(--case-subtitle-size); line-height: 1.18; margin-bottom: .5rem; }
.project-story .prose > .case-subtitle { margin-top: 1.3rem; }
.project-story.has-phone { align-items: start; grid-template-columns: minmax(0,1.5fr) minmax(0,.65fr); }
.project-phone img.supplied-phone { max-height: 31rem; }
.founder .shell.split-panel { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: start; gap: clamp(1.4rem,4vw,3.5rem); }
.founder .split-panel figure img { width: 100%; max-height: none; height: auto; object-fit: contain; }
.international .prose h2 + p { margin-top: 1rem; }
.social-grid .publication-image { border-radius: var(--rectification-radius); aspect-ratio: 4 / 5; }
.social-grid .publication-image img { height: 100%; width: 100%; object-fit: cover; }
.social-grid .publication-image:has(.review-play) img { object-position: center; }
.social-grid .publication-image:has(.review-play) .review-play { width: 3.25rem; height: 3.25rem; }
.social-grid li:last-child .publication-image img.food-preview { object-fit: cover; object-position: center bottom; transform: scale(1.7); transform-origin: center bottom; }

#management:not([hidden]) { grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); }
.service-panel .service-photos, .service-panel .service-photos:has(.service-inset) { width: 100%; max-width: none; margin: 0; }
.service-panel .service-photos .service-main { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; }
.service-panel .service-photos .service-inset { bottom: .65rem; right: .65rem; width: 34%; border-radius: var(--rectification-radius); }
.service-panel .review-phones { margin-block: 0; }
.service-panel .rendered-media img { border-radius: var(--rectification-radius); }

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1rem;
}
.publication-links li { list-style: none; }
a.publication-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  font-size: .85rem;
  text-decoration: underline;
}
.review-video.with-video-cover .post-image {
  aspect-ratio: 9 / 16;
  border-radius: var(--rectification-radius);
  overflow: hidden;
}
.review-video.with-video-cover .post-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .project-story.has-phone, #management:not([hidden]) { grid-template-columns: minmax(0,1fr); }
  .service-panel .service-photos { grid-row: auto; }
  .service-panel .service-photos .service-main { max-height: 30rem; aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .founder .shell.split-panel { grid-template-columns: minmax(0,1fr); }
  .phone-set { min-height: 0; }
  .project-phone img.supplied-phone { max-height: 24rem; }
}
@media (max-width: 420px) {
  :root { --stat-width: 8.25rem; --stat-height: 7.5rem; }
  .stat-card { grid-template-rows: 3.5rem 1fr; }
  .stat-card :is(strong,b) { height: 3.5rem; width: 4.8rem; }
}

