/* Homepage walkthrough: a large player beside an editorial step timeline. */
body[data-page=home] .how-section {
  border-color: var(--line);
  padding: 28px 0 24px;
  text-align: left;
}
body[data-page=home] .how-section > .eyebrow {
  color: var(--green);
  letter-spacing: .24em;
  margin-bottom: 20px;
}
body[data-page=home] .how-section > h2 {
  font-size: clamp(30px, 3vw, 42px);
  margin-bottom: 54px;
}
.how-demo { min-width: 0; margin: 0; }
.how-demo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101b24;
  box-shadow: 0 10px 28px #102b450c;
}
.how-demo figcaption {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
}
.how-instructions { min-width: 0; }
.how-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.how-timeline li { min-width: 0; }
.how-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  font: 23px/1 var(--serif);
}
.how-timeline h3 {
  font: 400 clamp(20px, 1.45vw, 24px)/1.2 var(--serif);
  letter-spacing: -.035em;
  margin: 8px 0 10px;
}
.how-timeline p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.how-instructions .how-create {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 54px;
  margin-top: 26px;
  padding: 14px 26px;
  font-size: 17px;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
body[data-page=home] .home-hero { padding-bottom: 24px; min-height: 600px; }
body[data-page=home] .studio-footer { margin-top: 12px; }
body[data-page=home] .hero-actions .watch-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  font: 14px var(--serif);
  cursor: pointer;
}
.demo-play { display: grid; place-items: center; width: 34px; height: 34px; padding-left: 2px; border: 1px solid var(--green); border-radius: 50%; font: 11px Arial, sans-serif; }
.watch-video:hover .demo-play { background: var(--wash); }
.watch-video:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 4px; }
@media (max-width: 1000px) { body[data-page=home] .home-hero { min-height: 0; } }
.walkthrough-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 48px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg, #faf7ef); color: var(--ink); }
.walkthrough-dialog::backdrop { background: rgb(0 0 0 / .7); }
.walkthrough-dialog video { max-height: calc(100dvh - 160px); }
.walkthrough-close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink); font-size: 26px; cursor: pointer; }
body.walkthrough-open { overflow: hidden; }
@media (max-width: 900px) { .how-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  body[data-page=home] .how-section { padding: 24px 0; }
  body[data-page=home] .how-section > .eyebrow { font-size: 9px; letter-spacing: .15em; }
  body[data-page=home] .how-section > h2 { font-size: 30px; margin-bottom: 32px; }
  .how-timeline { grid-template-columns: 1fr; gap: 24px; }
  .how-timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
  .how-number { width: 44px; height: 44px; font-size: 19px; }
  .how-timeline h3 { font-size: 20px; margin-top: 4px; }
  .how-timeline p { font-size: 14px; }
}

body[data-page=home] .cv-guide-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
body[data-page=home] .cv-guide-link:hover {
  text-decoration-thickness: 2px;
}
body[data-page=home] .cv-guide-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Illustrated steps: crisp paper artwork beside each numbered description. */
.how-timeline { gap: 24px; }
.how-timeline li { display: grid; grid-template-columns: minmax(80px, 34%) minmax(0, 1fr); align-items: center; gap: 14px; }
.how-illustration { display: block; width: 100%; height: auto; max-width: 140px; }
.how-timeline .how-number { width: 48px; height: 48px; font-size: 21px; }
.how-timeline h3 { font-size: clamp(18px, 1.35vw, 23px); margin: 8px 0 10px; }
.how-timeline p { font-size: 13px; }
@media (max-width: 1100px) { .how-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 540px) {
  .how-timeline { grid-template-columns: 1fr; }
  .how-timeline li { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; }
  .how-timeline .how-number { width: 40px; height: 40px; font-size: 19px; }
  .how-timeline h3 { font-size: 20px; }
  .how-timeline p { font-size: 14px; }
}
