/* Layout, type, responsive styling, and motion come from the shared Webflow export.
   Homepage LTK binds to the export's unused e-64 tile target (a-28).
   The case study uses Meta's hero and nav triggers (a-29 / a-30 / a-31). */
.ltk-page .textdiv-2 > .paragraph-7 + .paragraph-7 {
  margin-top: 22px;
}

/* Empty project media keeps the existing dark card treatment until artwork is added. */
.ltk-placeholder {
  min-height: 360px;
  background-color: #ffffff0d;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
}
.ltk-placeholder .subheader { margin-bottom: 12px; }
.ltk-placeholder .paragraph-7 { column-count: 1; }

/* The public reel stays sharp, including behind the shared password screen. */
.ltk-lock .background-video,
.ltk-lock .background-video video { filter: none; }

@media (max-width: 767px) {
  .ltk-placeholder { min-height: 240px; padding: 24px; }
}

/* Frost the existing password form; keep its shared centering and sizing. */
.ltk-lock .utility-page-form {
  background-color: #1119;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

/* Reuse Meta's metric cards, allowing room for each measurement period. */
.ltk-metrics .impact-wrapper {
  height: auto;
  min-height: 260px;
  padding-bottom: 32px;
}
.ltk-metrics .body-7.b { margin-bottom: 12px; }
@media (max-width: 479px) {
  .ltk-metrics .impact-wrapper { min-height: 240px; }
}

/* Present the three-year outcomes together, stacking at smaller widths. */
.ltk-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ltk-metrics .impact-wrapper { padding-left: 32px; padding-right: 32px; }
@media (max-width: 767px) {
  .ltk-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ltk-metrics .impact-wrapper { padding-left: 24px; padding-right: 24px; }
}

/* Contain oversized export canvases at the viewport, not the gallery edge. */
.ltk-page .bodywrap { overflow-x: clip; }

/* Slide 28's original device artwork, arranged responsively. */
.ltk-discovery-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding: 0;
  margin-top: 32px;
  border-radius: 24px;
  background: transparent;
  overflow: visible;
}
.ltk-discovery-device { margin: 0; min-width: 0; text-align: center; }
.ltk-discovery-device img {
  display: block;
  width: 142.05%;
  max-width: none;
  height: auto;
  margin-left: -21.025%;
  margin-top: -14.21%;
  /* Use the original transparent device silhouette, preserving its corners. */
  -webkit-mask-image: url('../images/ltk-discovery/for-you.png');
  mask-image: url('../images/ltk-discovery/for-you.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
  margin-bottom: -27.9%;
}
.ltk-discovery-device figcaption { color: #ccc; font-size: 18px; line-height: 1.4; padding: 12px 8px 0; }
@media (max-width: 767px) {
  .ltk-discovery-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 479px) {
  .ltk-discovery-gallery { grid-template-columns: 1fr; padding: 0; }
  .ltk-discovery-device { width: 100%; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 479px) {
  .ltk-metrics { gap: 12px; }
  .ltk-metrics .impact-wrapper { min-width: 0; min-height: 0; padding: 20px 16px; }
  .ltk-metrics .body-7.b { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
  .ltk-metrics .paragraph-7 { font-size: 14px; line-height: 1.4; }
  .ltk-metrics .circle-icon { width: 56px; height: 56px; }
  .ltk-metrics .emoji-icon { font-size: 30px; line-height: 56px; }
}

/* Place the recording inside the original screen, retaining its bezel and island. */
.ltk-discovery-recording {
  position: relative;
  width: 142.05%;
  margin: -14.21% 0 -27.9% -21.025%;
  aspect-ratio: 540 / 939;
}
.ltk-discovery-recording img {
  width: 100%;
  margin: 0;
}
.ltk-discovery-recording video {
  position: absolute;
  left: 17.96%;
  top: 7.35%;
  width: 64.08%;
  height: 79.77%;
  object-fit: cover;
  border-radius: 14.5% / 6.7%;
}
.ltk-discovery-recording .ltk-device-island {
  position: absolute;
  inset: 0;
  clip-path: inset(8.3% 39.5% 88.05% 39.6% round 20px);
  pointer-events: none;
}

.ltk-project-subsection { margin-top: 48px; }
.ltk-subsection-title { font-size: 28px; line-height: 1.2; }
.ltk-project-video { margin-top: 32px; border-radius: 24px; overflow: hidden; }
.ltk-project-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #171717; }
@media (max-width: 479px) {
  .ltk-project-subsection { margin-top: 36px; }
  .ltk-subsection-title { font-size: 24px; }
  .ltk-project-video { border-radius: 16px; }
}

.ltk-project-video .ltk-apple-video { aspect-ratio: auto; }

/* Primary project titles sit above the subsection heading level. */
#personalization-title,
#redesign-title,
#video-title,
#lists-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

/* Preserve the slide’s device outline while removing its white export canvas. */
.ltk-watch-device { width: 100%; max-width: 520px; margin: 24px auto 0; }
.ltk-watch-device img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: url('../images/ltk-discovery/for-you.png');
  mask-image: url('../images/ltk-discovery/for-you.png');
  -webkit-mask-size: 103.55% 102.78%;
  mask-size: 103.55% 102.78%;
  -webkit-mask-position: 50% 25.35%;
  mask-position: 50% 25.35%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}

.ltk-watch-device { position: relative; }
.ltk-watch-device video {
  position: absolute;
  left: 16.72%;
  top: 6.81%;
  width: 66.39%;
  height: 82.16%;
  object-fit: cover;
  border-radius: 15.3% / 7%;
}
/* Cover the screen recording indicator within the black Dynamic Island. */
.ltk-watch-device::after {
  content: "";
  position: absolute;
  left: 38.7%;
  top: 8.35%;
  width: 4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  pointer-events: none;
}
