/* Strong chapter markers and a shared spacing rhythm. */
.chapter{padding:64px 0 56px}
#remaining-modules>.chapter{margin-top:32px}
#automation{padding:40px 36px;border-radius:24px}
.chapter .chapter-head,.chapter#automation .chapter-head{margin-bottom:36px;padding:0;gap:0 20px;grid-template-columns:48px minmax(0,1fr)}
.chapter .chapter-number,.chapter#automation .chapter-number{width:38px;height:38px;font-size:16px;border-radius:12px;margin-top:4px}
.chapter .chapter-head .eyebrow,.chapter#automation .chapter-head .eyebrow{font-size:clamp(32px,3.5vw,50px);font-weight:800;letter-spacing:-.04em;line-height:1.08}
.chapter .chapter-head h2{font-size:18px;font-weight:600;margin-top:12px}
.chapter .chapter-description{margin-top:18px;line-height:1.8}
.subhead{margin:48px 0 22px;padding-top:20px}
.subhead h3,.group-title h4{font-size:22px;font-weight:700;line-height:1.4}
.group-title{margin:40px 0 22px}
.project[data-project]{margin:32px 0 0;padding:0 0 36px}
.project[data-project]+.project[data-project]{margin-top:28px;padding-top:36px}
.project[data-project]:last-child{padding-bottom:0}
.project-title{margin-bottom:24px}
.project-title h3{font-weight:700}
.insight{margin:32px 0 0;padding:32px 0}
.insight:last-child{padding-bottom:0}
.insight-head h3{font-weight:700}
.swipe-controls{display:none}
@media(max-width:800px){
  .gallery.swipe-gallery{display:flex;position:relative;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--strip-inset,0px);scrollbar-width:none;padding-bottom:8px}
  .gallery.swipe-gallery::-webkit-scrollbar{display:none}
  .gallery.swipe-gallery .media-card:nth-child(n){flex:0 0 84%;width:auto;max-width:none;margin:0;padding:0;scroll-snap-align:start;scroll-snap-stop:always}
  .swipe-gallery:is(.poster-gallery,.proof-gallery,.phone-gallery,.website-gallery){--strip-inset:24px;padding:24px}
  .swipe-gallery:focus-visible{outline:2px solid currentColor;outline-offset:4px}
  .swipe-controls{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12px;color:var(--muted)}
  .swipe-hint{margin-right:auto;letter-spacing:.02em}
  .swipe-hint>span{margin-left:8px}
  .swipe-count{font-family:Arial,sans-serif;font-variant-numeric:tabular-nums;margin-right:5px;white-space:nowrap}
  .swipe-controls button{display:grid;place-items:center;width:36px;height:36px;border:1px solid currentColor;border-radius:50%;padding:0;background:transparent;font-size:19px;color:inherit;flex-shrink:0}
  .swipe-controls button:disabled{opacity:.28;cursor:default}
  #automation .swipe-controls{color:#d5dbce}
}
@media(max-width:600px){
  .intro{padding-bottom:16px}
  .chapter{padding:40px 0 32px}
  #remaining-modules>.chapter{margin-top:28px}
  #automation{padding:30px 18px;border-radius:22px}
  .chapter .chapter-head,.chapter#automation .chapter-head{margin-bottom:28px;grid-template-columns:36px minmax(0,1fr);gap:0 14px}
  .chapter .chapter-number,.chapter#automation .chapter-number{width:32px;height:32px;font-size:14px;border-radius:10px;margin-top:2px}
  .chapter .chapter-head .eyebrow,.chapter#automation .chapter-head .eyebrow{font-size:clamp(24px,6.5vw,34px);font-weight:800;letter-spacing:-.04em;line-height:1.1}
  .chapter .chapter-head h2{font-size:16px;font-weight:600;margin-top:10px}
  .chapter .chapter-description{font-size:14px;margin-top:16px}
  .subhead{margin:36px 0 20px;padding-top:18px}
  .subhead h3,.group-title h4{font-size:20px;font-weight:700}
  .group-title{margin:36px 0 20px}
  .project[data-project]{margin:28px 0 0;padding-bottom:28px}
  .project[data-project]+.project[data-project]{margin-top:24px;padding-top:28px}
  .project-title{margin-bottom:20px}
  .project-title h3{font-size:22px;font-weight:700;line-height:1.5}
  .insight{margin:28px 0 0;padding:28px 0}
  .insight-head h3{font-size:24px;font-weight:700}
  .gallery.swipe-gallery{gap:16px}
  .gallery.swipe-gallery:is(.poster-gallery,.proof-gallery,.phone-gallery,.website-gallery){--strip-inset:16px;padding:20px 16px}
  .swipe-controls{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.swipe-gallery{scroll-behavior:auto}}
