/* Climbing logbook page: hero phone, "Scroll through a real logbook", steps (website-logbook-page-refresh). */
.logbook-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; align-items: center; }
.logbook-hero-text { min-width: 0; max-width: 560px; }
.logbook-hero .logbook-free-note { margin-top: 12px; font-size: 14px; line-height: 1.55; color: #4c443b; max-width: 440px; }
/* The sample logbook link under the hero button (website-links-the-sample-logbook). */
.hero-sample-link { display: flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; line-height: 1.4; color: #4c443b; text-decoration: underline; text-underline-offset: 4px; }
.hero-sample-link:hover { color: #1c1a17; }
@media (max-width: 767px) { .hero-sample-link { justify-content: center; } }

.phone-frame { box-sizing: border-box; width: min(340px, 88vw, 100%); margin-inline: auto; padding: 14px; border-radius: 44px; background: #0b1020; box-shadow: 0 18px 48px rgba(28, 26, 23, .22); }
.phone-screen { position: relative; height: 660px; overflow: hidden; border-radius: 32px; background: #0b1020; }
.phone-screen img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; max-width: none; transform: translateY(var(--pan-start, 0%)); will-change: transform; }

.logbook-scroll { padding: 40px 0 8px; border-top: 1px solid #e5decf; }
.logbook-scroll > h2 { margin: 0 0 8px; font: 700 clamp(26px, 3vw, 36px)/1.2 "Space Grotesk", sans-serif; color: #1c1a17; }
.logbook-showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 32px 0; }
.logbook-showcase-text { min-width: 0; }
.logbook-showcase-text h3 { margin: 0 0 8px; font: 700 clamp(22px, 2.4vw, 28px)/1.25 "Space Grotesk", sans-serif; color: #1c1a17; }
.logbook-showcase-text p { margin: 0 0 12px; color: #6f6658; line-height: 1.65; font-size: 16px; }
.logbook-showcase-media { min-width: 0; }
.logbook-card { box-sizing: border-box; width: 100%; max-width: 460px; margin-inline: auto; overflow: hidden; border-radius: 22px; background: #0b1020; box-shadow: 0 18px 48px rgba(28, 26, 23, .22); }
.logbook-card img { display: block; width: 100%; height: auto; }

@media (min-width: 900px) {
  .logbook-showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .logbook-showcase-media { order: 1; }
  .logbook-showcase-text { order: 2; }
  .logbook-showcase--flip .logbook-showcase-media { order: 2; }
  .logbook-showcase--flip .logbook-showcase-text { order: 1; }
}
@media (max-width: 899px) {
  .logbook-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .logbook-hero .phone-frame { margin-top: 0; }
}

.logbook-walkthrough { padding: 34px 0; border-top: 1px solid #e5decf; }
.logbook-walkthrough h2 { margin: 0; font: 700 clamp(26px, 3vw, 36px)/1.2 "Space Grotesk", sans-serif; color: #1c1a17; }
.logbook-walkthrough p { color: #6f6658; line-height: 1.65; }
.logbook-walkthrough ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; padding: 0; list-style: none; }
.logbook-walkthrough li { padding: 18px; border: 1px solid #e5decf; border-radius: 12px; background: #fffdf9; }
.logbook-walkthrough h3 { margin: 0 0 8px; font: 700 17px/1.35 "Space Grotesk", sans-serif; color: #1c1a17; }
.logbook-walkthrough li p { margin: 0; }
.logbook-walkthrough a { color: #166534; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .logbook-walkthrough ol { grid-template-columns: 1fr; } }

/* Pan: about 40 px per second, about 1.5 s pause at each end. Distances and durations are for a
   312 px wide screen (capture shown at 0.3768 of its 828 px width); percentages follow the shown height. */
@keyframes logbook-pan-hero {
  0%, 7.01% { transform: translateY(0%); }
  50%, 57.01% { transform: translateY(-25.96%); }
  100% { transform: translateY(0%); }
}
@keyframes logbook-pan-list {
  0%, 10.37% { transform: translateY(-37.23%); }
  50%, 60.37% { transform: translateY(calc(660px - 100%)); }
  100% { transform: translateY(-37.23%); }
}
@keyframes logbook-pan-projects {
  0%, 1.41% { transform: translateY(0%); }
  50%, 51.41% { transform: translateY(calc(660px - 100%)); }
  100% { transform: translateY(0%); }
}
.phone-screen img.pan-hero { animation: logbook-pan-hero 21.4s linear infinite; }
.phone-screen img.pan-list { --pan-start: -37.23%; animation: logbook-pan-list 14.5s linear infinite; }
.phone-screen img.pan-projects { animation: logbook-pan-projects 106.2s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .phone-screen img.pan-hero, .phone-screen img.pan-list, .phone-screen img.pan-projects { animation: none; transform: translateY(var(--pan-start, 0%)); }
}
