/* home.css - YouthClimbing.com homepage only.
   Linked from /index.html alone. Every rule is scoped to body.home,
   so no other page can pick these styles up. */

/* ========== TOKENS ========== */
body.home{
  --hb-paper:var(--tint-50);
  --hb-sheet:#ffffff;
  --hb-field:var(--tint-100);
  --hb-deep:var(--tint-900);
  --hb-teal:#0f4c45;
  --hb-ink:var(--tint-900);
  --hb-soft:var(--tint-700);
  --hb-on-deep:var(--tint-50);
  --hb-on-deep-soft:var(--tint-200);
  --hb-accent:#b84416;
  --hb-accent-ink:#b84416;
  --hb-tone:var(--tint-200);
  --hb-pad:var(--space-5);
  --hb-t1:clamp(1.75rem,4.4vw,3.75rem);
  --hb-t2:clamp(1.5rem,2.8vw,2.375rem);
  --hb-t3:clamp(1.375rem,2.2vw,1.875rem);
  --hb-gap-sec:clamp(4.5rem,10vw,9rem);
  --hb-ease:cubic-bezier(0.22,1,0.36,1);
  --hb-zig:polygon(0% 9px,3.571% 0,7.143% 9px,10.714% 0,14.286% 9px,17.857% 0,21.429% 9px,25% 0,28.571% 9px,32.143% 0,35.714% 9px,39.286% 0,42.857% 9px,46.429% 0,50% 9px,53.571% 0,57.143% 9px,60.714% 0,64.286% 9px,67.857% 0,71.429% 9px,75% 0,78.571% 9px,82.143% 0,85.714% 9px,89.286% 0,92.857% 9px,96.429% 0,100% 9px,100% calc(100% - 9px),96.429% 100%,92.857% calc(100% - 9px),89.286% 100%,85.714% calc(100% - 9px),82.143% 100%,78.571% calc(100% - 9px),75% 100%,71.429% calc(100% - 9px),67.857% 100%,64.286% calc(100% - 9px),60.714% 100%,57.143% calc(100% - 9px),53.571% 100%,50% calc(100% - 9px),46.429% 100%,42.857% calc(100% - 9px),39.286% 100%,35.714% calc(100% - 9px),32.143% 100%,28.571% calc(100% - 9px),25% 100%,21.429% calc(100% - 9px),17.857% 100%,14.286% calc(100% - 9px),10.714% 100%,7.143% calc(100% - 9px),3.571% 100%,0% calc(100% - 9px));
  --hb-zig-bottom:polygon(0 0,100% 0,100% calc(100% - 9px),96.429% 100%,92.857% calc(100% - 9px),89.286% 100%,85.714% calc(100% - 9px),82.143% 100%,78.571% calc(100% - 9px),75% 100%,71.429% calc(100% - 9px),67.857% 100%,64.286% calc(100% - 9px),60.714% 100%,57.143% calc(100% - 9px),53.571% 100%,50% calc(100% - 9px),46.429% 100%,42.857% calc(100% - 9px),39.286% 100%,35.714% calc(100% - 9px),32.143% 100%,28.571% calc(100% - 9px),25% 100%,21.429% calc(100% - 9px),17.857% 100%,14.286% calc(100% - 9px),10.714% 100%,7.143% calc(100% - 9px),3.571% 100%,0% calc(100% - 9px));
  background:var(--hb-paper);
  color:var(--hb-ink);
}
@media(min-width:768px){body.home{--hb-pad:var(--space-8);}}
[data-theme="dark"] body.home{
  --hb-paper:var(--tint-900);
  --hb-sheet:var(--tint-800);
  --hb-field:#16302c;
  --hb-deep:var(--tint-950);
  --hb-teal:#0a2a26;
  --hb-ink:var(--tint-100);
  --hb-soft:var(--tint-300);
  --hb-accent-ink:#f09555;
  --hb-tone:var(--tint-700);
}

/* ========== SHARED PIECES, HOMEPAGE ONLY ========== */
body.home .btn{border-radius:0;font-size:1rem;letter-spacing:0;transition:background 160ms ease,color 160ms ease,transform 140ms var(--hb-ease);}
body.home .btn:hover{transform:translateY(-2px);box-shadow:none;}
body.home .btn:active{transform:translateY(1px);}
body.home .btn-sm{font-size:0.9375rem;}
body.home .btn-accent{background:var(--hb-accent);color:#fff;}
body.home .btn-accent:hover{background:#9a3812;color:#fff;}
body.home .container,
body.home .header-inner{max-width:90rem;}
body.home .header-inner{padding-inline:var(--hb-pad);}
body.home .btn-lg{font-size:1.125rem;padding:1.05rem 2.25rem;}
body.home .btn-secondary{border:0;background:var(--hb-sheet);color:var(--hb-ink);}
body.home .btn-secondary:hover{background:var(--hb-tone);color:var(--hb-ink);}
body.home .mobile-sticky-cta{border-radius:0;box-shadow:none;transition:transform 260ms var(--hb-ease),visibility 260ms;}
body.home .mobile-sticky-cta.hb-sticky-off{transform:translateY(180%);visibility:hidden;}
body.home main p,body.home main li,body.home main figcaption{max-width:none;}
body.home main :focus-visible{outline:3px solid var(--color-primary);outline-offset:3px;border-radius:0;}
body.home .hb-hero :focus-visible,
body.home .hb-hard :focus-visible,
body.home .hb-cta-next :focus-visible{outline-color:#fff;}

body.home .hb-sec{padding-block:var(--hb-gap-sec);}
body.home .hb-h2{font-family:var(--font-display);font-weight:500;font-size:var(--hb-t1);line-height:1.05;letter-spacing:-0.022em;color:inherit;}

/* Index tab: the section name, cut like the tab of a handbook divider. */
body.home .hb-tab{display:inline-block;width:auto;margin:0 0 1.25rem;padding:0.45rem 1.5rem 0.4rem;font-family:var(--font-body);font-size:0.9375rem;font-weight:600;line-height:1.3;background:var(--hb-ink);color:var(--hb-paper);clip-path:polygon(0.7rem 0,calc(100% - 0.7rem) 0,100% 100%,0 100%);}
body.home .hb-tab-accent{background:var(--hb-accent);color:#fff;}
/* Divider tabs stand on the top edge of their section, in its colour,
   the way a tab stands above its page in a ring binder. */
body.home .hb-sec,
body.home .hb-cta{position:relative;scroll-margin-top:calc(54px + 0.75rem);}
body.home .hb-divider{position:absolute;z-index:1;top:0;left:max(var(--hb-pad),calc((100% - 90rem) / 2 + var(--hb-pad)));margin:0;padding:0 1.6rem;height:46px;line-height:46px;font-size:1rem;transform:translateY(-100%);white-space:nowrap;}
body.home .hb-hard .hb-divider,
body.home .hb-cta .hb-divider{background:var(--hb-deep);color:var(--hb-on-deep);}
body.home .hb-proof .hb-divider{background:var(--hb-field);color:var(--hb-ink);}
body.home .hb-method .hb-divider{background:var(--hb-teal);color:#fff;}
body.home .hb-faq .hb-divider{background:var(--hb-paper);color:var(--hb-ink);}

/* ========== HERO: THE COVER ========== */
body.home .hb-hero{position:relative;z-index:2;overflow-x:clip;background:var(--hb-deep);color:var(--hb-on-deep);}
body.home .hb-hero-grid{display:grid;grid-template-columns:minmax(0,1fr);padding:1.75rem var(--hb-pad) 0;max-width:90rem;margin:0 auto;}
body.home .hb-hero-copy{display:contents;}
body.home .hb-hero-title{order:1;font-family:var(--font-display);font-weight:600;font-size:clamp(2.5rem,11.6vw,3.4rem);line-height:0.98;letter-spacing:-0.03em;color:var(--hb-on-deep);text-wrap:balance;}
body.home .hb-hero-lead{order:2;margin-top:0.9rem;font-family:var(--font-display);font-style:italic;font-weight:400;font-size:var(--hb-t3);line-height:1.25;color:var(--hb-on-deep);max-width:22em;}
body.home .hb-hero-actions{order:3;display:flex;flex-wrap:wrap;align-items:center;gap:0.75rem 1.5rem;margin-top:1.4rem;}
body.home .hb-hero-hint{order:4;margin-top:0.7rem;font-size:0.9375rem;color:var(--hb-on-deep-soft);}
body.home .hb-hero-plates{order:5;position:relative;margin:1.5rem calc(var(--hb-pad) * -1) 0;}
body.home .hb-hero-sub{order:6;margin-top:4.25rem;font-size:1.125rem;line-height:1.55;color:var(--hb-on-deep);max-width:34em;}
body.home .hb-hero-audience{order:7;margin-top:0.9rem;font-size:1rem;line-height:1.55;color:var(--hb-on-deep-soft);max-width:34em;}
body.home .hb-hero-audience strong{color:var(--hb-on-deep);font-weight:600;}
body.home .hb-hero-meta{order:8;margin:1.1rem 0 2.75rem;font-size:1rem;color:var(--hb-on-deep-soft);}
body.home .hb-hero-secondary,
body.home .hb-hero-meta a{color:var(--hb-on-deep);font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--hb-accent);transition:text-decoration-color 160ms ease,color 160ms ease;}
body.home .hb-hero-secondary{display:inline-flex;align-items:center;min-height:44px;font-size:1.125rem;}
body.home .hb-hero-meta a{display:inline-block;padding-block:0.6rem;font-weight:500;}
body.home .hb-hero-secondary:hover,
body.home .hb-hero-meta a:hover{color:#fff;text-decoration-color:#fff;}
body.home .hb-hero-photo{overflow:hidden;aspect-ratio:4/3;background:var(--tint-800);}
body.home .hb-hero-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%;}
body.home .hb-hero-card{position:absolute;right:var(--hb-pad);bottom:-3rem;width:min(42vw,13rem);padding:0.4rem;background:var(--tint-50);transform:rotate(3deg);transform-origin:60% 100%;}
body.home .hb-hero-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;}
body.home .hb-hero-card .hb-tab{position:absolute;left:0.75rem;bottom:100%;margin:0;white-space:nowrap;font-size:0.9375rem;padding:0.4rem 1.1rem 0.35rem;}

@media(min-width:600px){
  body.home .hb-hero-title{font-size:clamp(2.75rem,7.4vw,7.4rem);}
}
@media(min-width:960px){
  /* The title runs across the cover like a masthead. Copy sits under it on
     the left, the photo runs off the right edge and down to the fold. */
  body.home .hb-hero-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto repeat(6,auto) 1fr;column-gap:clamp(2.5rem,5vw,5rem);padding-top:clamp(2rem,4.5vh,3.25rem);}
  body.home .hb-hero-title{order:0;grid-column:1 / -1;grid-row:1;white-space:nowrap;}
  body.home .hb-hero-lead{order:0;grid-column:1;grid-row:2;margin-top:clamp(2.25rem,6vh,3.75rem);}
  body.home .hb-hero-sub{order:0;grid-column:1;grid-row:3;margin-top:1.25rem;font-size:1.125rem;}
  body.home .hb-hero-actions{order:0;grid-column:1;grid-row:4;margin-top:1.9rem;}
  body.home .hb-hero-hint{order:0;grid-column:1;grid-row:5;}
  body.home .hb-hero-audience{order:0;grid-column:1;grid-row:6;margin-top:1.6rem;}
  body.home .hb-hero-meta{order:0;grid-column:1;grid-row:7;margin:0.6rem 0 3rem;}
  body.home .hb-hero-plates{order:0;grid-column:2;grid-row:2 / span 7;margin:clamp(1.75rem,4.5vh,2.75rem) calc(var(--hb-pad) * -1) 0 0;min-height:clamp(26rem,calc(100svh - 18.5rem),40rem);}
  body.home .hb-hero-photo{position:absolute;inset:0;aspect-ratio:auto;}
  body.home .hb-hero-card{right:auto;left:calc(clamp(2.5rem,5vw,5rem) * -1 + 0.75rem);bottom:-2.75rem;width:clamp(13rem,19vw,17rem);padding:0.5rem;transform:rotate(-3deg);transform-origin:40% 100%;}
  body.home .hb-hero-card .hb-tab{font-size:0.9375rem;}
}

/* ========== CLASSES: TITLE, NOTE, AGES ROW ========== */
body.home .hb-classes{position:relative;z-index:1;background:var(--hb-paper);padding-top:calc(var(--hb-gap-sec) + 1rem);}
body.home .hb-classes-top{display:grid;gap:1.5rem;}
body.home .hb-classes-note{font-size:1.125rem;line-height:1.6;color:var(--hb-ink);max-width:36em;}
body.home .hb-ages{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.25rem 1.5rem;margin-top:3.5rem;padding:0;}
body.home .hb-age-fig{font-family:var(--font-display);font-weight:500;font-size:var(--hb-t1);line-height:1;letter-spacing:-0.025em;color:var(--hb-ink);white-space:nowrap;font-variant-numeric:lining-nums;}
body.home .hb-age-note{margin-top:0.7rem;font-size:1rem;line-height:1.5;color:var(--hb-soft);max-width:19em;}
body.home .hb-note{display:grid;gap:1.5rem;margin-top:4rem;padding:1.75rem var(--hb-pad);margin-inline:calc(var(--hb-pad) * -1);background:var(--hb-field);}
body.home .hb-note h3{font-family:var(--font-display);font-weight:500;font-size:var(--hb-t3);line-height:1.15;letter-spacing:-0.015em;}
body.home .hb-note p{margin-top:0.5rem;font-size:1.125rem;color:var(--hb-ink);max-width:34em;}
body.home .hb-note-actions{display:flex;flex-wrap:wrap;gap:0.75rem;}
@media(max-width:599px){body.home .hb-note-actions .btn{flex:1 1 100%;}}
@media(min-width:960px){
  body.home .hb-classes-top{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;align-items:end;}
  body.home .hb-classes-top .hb-h2{grid-column:1 / span 7;}
  body.home .hb-classes-note{grid-column:9 / span 4;font-size:1.125rem;}
  body.home .hb-ages{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem;margin-top:6rem;}
  body.home .hb-note{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3rem;margin:5.5rem 0 0;padding:2.25rem 2.5rem;}
}

/* ========== THE HARD PART ========== */
body.home .hb-hard{background:var(--hb-deep);color:var(--hb-on-deep);padding-bottom:calc(var(--hb-gap-sec) * 0.6 + 54px);}
body.home .hb-hard .hb-h2{max-width:17em;}
body.home .hb-lead{margin-top:1.5rem;font-family:var(--font-display);font-style:italic;font-size:clamp(1.125rem,1.6vw,1.375rem);line-height:1.5;color:var(--hb-on-deep);max-width:24em;}
body.home .hb-hard-list{display:grid;gap:2.25rem;margin-top:3rem;}
body.home .hb-hard-list h3{font-family:var(--font-display);font-weight:500;font-size:var(--hb-t3);line-height:1.15;letter-spacing:-0.015em;color:var(--hb-on-deep);}
body.home .hb-hard-list p{margin-top:0.5rem;font-size:1.125rem;line-height:1.55;color:var(--hb-on-deep-soft);max-width:32em;}
@media(min-width:960px){
  body.home .hb-hard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;}
  body.home .hb-hard-head{display:contents;}
  body.home .hb-hard-head .hb-h2{grid-column:1 / span 10;grid-row:2;}
  body.home .hb-lead{grid-column:1 / span 4;grid-row:3;margin-top:4.5rem;}
  body.home .hb-hard-list{grid-column:6 / span 7;grid-row:3;margin-top:4.5rem;gap:3rem;}
  body.home .hb-hard-list article{display:grid;grid-template-columns:13rem minmax(0,1fr);column-gap:2rem;align-items:baseline;}
  body.home .hb-hard-list p{margin-top:0;}
}

/* ========== START HERE: THE TABBED PATH ========== */
body.home .hb-path{position:relative;background:var(--hb-paper);padding-top:0;padding-bottom:clamp(2.5rem,5vw,4rem);}
body.home .hb-path > .container{position:relative;}
body.home .hb-path-tabs{position:absolute;left:var(--hb-pad);right:var(--hb-pad);bottom:100%;display:flex;align-items:flex-end;gap:3px;}
body.home .hb-path-tabnav{display:flex;align-items:flex-end;gap:3px;min-width:0;}
body.home .hb-path-tab{display:flex;align-items:center;justify-content:center;gap:0.5rem;min-width:46px;height:46px;margin:0;padding:0 0.9rem;font-family:var(--font-body);font-size:1rem;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;color:var(--hb-ink);background:var(--hb-tone);clip-path:polygon(0.6rem 0,calc(100% - 0.6rem) 0,100% 100%,0 100%);transition:background 180ms ease,color 180ms ease,height 220ms var(--hb-ease);}
body.home .hb-path-tab-label{height:54px;padding:0 1.35rem;font-size:1.125rem;background:var(--hb-accent);color:#fff;}
body.home a.hb-path-tab:hover{background:var(--hb-field);color:var(--hb-ink);height:52px;}
body.home a.hb-path-tab.is-active{background:var(--hb-paper);color:var(--hb-ink);height:54px;}
body.home a.hb-path-tab:focus-visible{outline:3px solid var(--hb-accent);outline-offset:-6px;}
body.home .hb-path-tab-n{font-family:var(--font-display);font-size:1.125rem;font-weight:600;}
body.home .hb-path-tab-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(min-width:720px){
  body.home .hb-path-tab{padding:0 1.35rem;}
  body.home .hb-path-tab-t{position:static;width:auto;height:auto;overflow:visible;clip-path:none;}
  body.home .hb-path-tab-n{color:var(--hb-soft);}
}
body.home .hb-path-head{display:grid;gap:1.25rem;padding-top:clamp(3.5rem,8vw,6.5rem);}
body.home .hb-path-intro{font-size:1.125rem;line-height:1.6;color:var(--hb-ink);max-width:36em;}
body.home .hb-steps{position:relative;list-style:none;margin:clamp(2.5rem,6vw,5rem) 0 0;padding:0;--hb-progress:0;}
body.home .hb-steps::before,
body.home .hb-steps::after{content:"";position:absolute;left:1.25rem;top:1rem;bottom:2rem;width:4px;margin-left:-2px;background:var(--hb-tone);}
body.home .hb-steps::after{background:var(--hb-accent);transform-origin:50% 0;transform:scaleY(var(--hb-progress));}
body.home .hb-step{position:static;display:grid;grid-template-columns:2.5rem minmax(0,1fr);column-gap:1.25rem;padding-bottom:3.5rem;scroll-margin-top:5.5rem;}
body.home .hb-step:last-child{padding-bottom:1rem;}
body.home .hb-step-num{position:relative;z-index:1;align-self:start;width:2.5rem;padding:0.2rem 0 0.5rem;font-family:var(--font-display);font-weight:600;font-size:var(--hb-t2);line-height:1;text-align:center;background:var(--hb-paper);color:var(--hb-soft);font-variant-numeric:lining-nums;transition:color 240ms ease;}
body.home .hb-step.is-active .hb-step-num,
body.home .hb-step.is-done .hb-step-num{color:var(--hb-accent-ink);}
body.home .hb-step-body h3{font-family:var(--font-display);font-weight:500;font-size:var(--hb-t2);line-height:1.1;letter-spacing:-0.02em;color:var(--hb-ink);}
body.home .hb-step-payoff{margin-top:0.8rem;font-size:1.125rem;line-height:1.5;color:var(--hb-ink);max-width:30em;}
body.home .hb-step-age{margin-top:0.7rem;font-size:1rem;line-height:1.55;color:var(--hb-soft);max-width:34em;}
body.home .hb-step-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0.25rem 1.75rem;margin-top:1rem;}
body.home .hb-guide,
body.home .hb-all{display:inline-block;padding-block:0.55rem;font-size:1.125rem;line-height:1.35;}
body.home .hb-guide{font-weight:600;color:var(--hb-ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--hb-accent-ink);transition:color 160ms ease;}
body.home .hb-guide::after{content:"\2192";content:"\2192" / "";display:inline-block;margin-left:0.45rem;text-decoration:none;transition:transform 200ms var(--hb-ease);}
body.home .hb-guide:hover{color:var(--hb-accent-ink);}
body.home .hb-guide:hover::after{transform:translateX(5px);}
body.home .hb-all{font-size:1rem;color:var(--hb-soft);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;}
body.home .hb-all:hover{color:var(--hb-ink);}
body.home .hb-step-fig{grid-column:2;margin-top:1.5rem;}
body.home .hb-step-frame img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:50% 25%;background:var(--hb-field);}
body.home .hb-step-frame img.is-missing{display:none;}
body.home .hb-step-frame a{display:block;overflow:hidden;}
body.home .hb-step-frame a img{transition:transform 500ms var(--hb-ease);}
body.home .hb-step-frame a:hover img{transform:scale(1.03);}
body.home .hb-step-frame figcaption{margin-top:0.7rem;font-size:0.9375rem;line-height:1.5;color:var(--hb-soft);}
body.home .hb-step-frame figcaption a{display:inline;color:var(--color-primary);font-weight:600;}
@media(min-width:700px) and (max-width:959px){
  body.home .hb-step{grid-template-columns:2.5rem minmax(0,1fr) minmax(0,17rem);}
  body.home .hb-step-fig{grid-column:3;margin-top:0.4rem;}
}
@media(min-width:960px){
  body.home .hb-path-head{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;align-items:end;}
  body.home .hb-path-head .hb-h2{grid-column:1 / span 7;}
  body.home .hb-path-intro{grid-column:9 / span 4;font-size:1.125rem;}
  body.home .hb-steps::before,
  body.home .hb-steps::after{left:1.75rem;}
  body.home .hb-step{grid-template-columns:3.5rem minmax(0,1fr) minmax(0,22rem);column-gap:2rem;padding-bottom:4.5rem;}
  body.home .hb-step-num{width:3.5rem;}
  body.home .hb-step-fig{grid-column:3;margin-top:0;}
  /* With script: one fixed frame on the right, the photo follows the step. */
  html.hb-js body.home .hb-step{grid-template-columns:3.5rem minmax(0,1fr);width:50%;min-height:19rem;}
  html.hb-js body.home .hb-step:last-child{min-height:24rem;}
  html.hb-js body.home .hb-step-fig{position:absolute;top:0;right:0;bottom:0;width:44%;margin:0;opacity:0;visibility:hidden;transition:opacity 240ms ease,visibility 240ms;}
  html.hb-js body.home .hb-step.is-active .hb-step-fig{opacity:1;visibility:visible;}
  html.hb-js body.home .hb-step-frame{position:sticky;top:6.5rem;}
}

/* ========== ALL GUIDE TOPICS ========== */
body.home .hb-topics{background:var(--hb-paper);padding-bottom:var(--hb-gap-sec);scroll-margin-top:5rem;}
body.home .hb-topic-index{background:var(--hb-field);}
body.home .hb-topic-index summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.25rem;padding:0.75rem 1.5rem;font-family:var(--font-display);font-weight:500;font-size:var(--hb-t3);cursor:pointer;list-style:none;color:var(--hb-ink);transition:background 160ms ease;}
body.home .hb-topic-index summary::-webkit-details-marker{display:none;}
body.home .hb-topic-index summary:hover{background:var(--hb-tone);}
body.home .hb-topic-plus{position:relative;flex:none;width:1.125rem;height:1.125rem;transition:transform 240ms var(--hb-ease);}
body.home .hb-topic-plus::before,
body.home .hb-topic-plus::after{content:"";position:absolute;background:currentColor;}
body.home .hb-topic-plus::before{left:0;right:0;top:50%;height:3px;margin-top:-1.5px;}
body.home .hb-topic-plus::after{top:0;bottom:0;left:50%;width:3px;margin-left:-1.5px;}
body.home .hb-topic-index[open] .hb-topic-plus{transform:rotate(45deg);}
body.home .hb-topic-panel{padding:0.25rem 1.5rem 1.75rem;}
body.home .hb-topic-lead{font-size:1rem;color:var(--hb-soft);max-width:40em;}
body.home .hb-topic-nav{margin-top:1rem;columns:2;column-gap:1.5rem;}
body.home .hb-topic-nav a{display:flex;align-items:center;min-height:44px;break-inside:avoid;font-size:1.125rem;font-weight:600;color:var(--hb-ink);text-decoration:none;transition:color 160ms ease,transform 200ms var(--hb-ease);}
body.home .hb-topic-nav a:hover{color:var(--hb-accent-ink);transform:translateX(4px);}
@media(min-width:720px){body.home .hb-topic-nav{columns:4;column-gap:2rem;}}

/* ========== PROOF: THE CONTENTS SHEET ========== */
body.home .hb-proof{background:var(--hb-field);}
body.home .hb-proof-grid{display:grid;gap:3rem;margin-top:2rem;}
body.home .hb-proof-intro{font-size:1.125rem;line-height:1.6;color:var(--hb-ink);max-width:36em;}
body.home .hb-proof-intro a,
body.home .hb-faq-item p a,
body.home .hb-letter-links a,
body.home .cta-disclaimer a{color:var(--color-primary);font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;}
body.home .hb-proof-intro a:hover,
body.home .hb-faq-item p a:hover,
body.home .hb-letter-links a:hover{color:var(--hb-accent-ink);}
body.home .hb-examples{list-style:none;display:grid;gap:1.75rem;margin:2.75rem 0 0;padding:0;}
body.home .hb-examples li{display:grid;grid-template-columns:minmax(0,7.5rem) minmax(0,1fr);column-gap:1.25rem;align-items:baseline;}
body.home .hb-example-place{font-size:1rem;font-weight:600;line-height:1.4;color:var(--hb-soft);}
body.home .hb-examples a{display:inline-block;font-weight:600;font-size:1.125rem;line-height:1.35;color:var(--hb-ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--hb-accent-ink);transition:color 160ms ease;}
body.home .hb-examples a:hover{color:var(--hb-accent-ink);}
body.home .hb-examples li div p{margin-top:0.4rem;font-size:1rem;line-height:1.5;color:var(--hb-soft);max-width:30em;}
body.home .hb-sheet{background:var(--hb-sheet);color:var(--hb-ink);clip-path:var(--hb-zig);padding:2rem 1.25rem;}
body.home .hb-row{display:grid;grid-template-columns:auto minmax(1.5rem,1fr) auto;grid-template-areas:"kind kind kind" "title dots go" "desc desc desc";column-gap:0.6rem;align-items:baseline;padding:1rem 0.75rem;margin-inline:-0.75rem;color:var(--hb-ink);text-decoration:none;transition:background 160ms ease;}
body.home .hb-row:hover{background:var(--hb-field);color:var(--hb-ink);}
body.home .hb-row:focus-visible{outline-offset:-3px;}
body.home .hb-row-kind{grid-area:kind;font-size:0.9375rem;font-weight:600;color:var(--hb-soft);}
body.home .hb-row h3{grid-area:title;font-family:var(--font-display);font-weight:600;font-size:1.375rem;line-height:1.2;letter-spacing:-0.01em;}
body.home .hb-row-dots{grid-area:dots;align-self:end;height:0;margin-bottom:0.42em;border-bottom:4px dotted var(--hb-tone);}
body.home .hb-row-go{grid-area:go;font-size:1rem;font-weight:600;color:var(--color-primary);white-space:nowrap;}
body.home .hb-row-go::after{content:"\2192";content:"\2192" / "";display:inline-block;margin-left:0.4rem;transition:transform 200ms var(--hb-ease);}
body.home .hb-row:hover .hb-row-go::after{transform:translateX(5px);}
body.home .hb-row-desc{grid-area:desc;margin-top:0.3rem;font-size:1rem;line-height:1.5;color:var(--hb-soft);max-width:34em;}
body.home .hb-proof-actions{display:flex;flex-wrap:wrap;gap:0.75rem;margin-top:3.5rem;}
@media(max-width:479px){
  body.home .hb-row{grid-template-areas:"kind kind kind" "title title title" "desc desc desc" "go go go";}
  body.home .hb-row-dots{display:none;}
  body.home .hb-row-go{margin-top:0.5rem;}
  body.home .hb-proof-actions .btn{flex:1 1 100%;}
}
@media(min-width:720px){
  body.home .hb-sheet{padding:3rem 2.75rem;}
  body.home .hb-row{grid-template-columns:5.25rem auto minmax(2rem,1fr) auto;grid-template-areas:"kind title dots go" ". desc desc desc";}
}
@media(min-width:960px){
  body.home .hb-proof-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(2.5rem,5vw,5rem);margin-top:3.5rem;align-items:start;}
  body.home .hb-proof-side{position:sticky;top:6.5rem;}
  body.home .hb-proof-intro{font-size:1.125rem;}
}

/* ========== HOW THESE GUIDES ARE WRITTEN: THE LETTER ========== */
body.home .hb-method{background:var(--hb-teal);}
body.home .hb-method-photo{margin-left:calc(var(--hb-pad) * -1);}
body.home .hb-method-grid{display:grid;}
body.home .hb-method-photo{width:72%;margin:0;}
body.home .hb-method-photo img{display:block;width:100%;aspect-ratio:1;object-fit:cover;}
body.home .hb-letter{position:relative;margin-top:-3rem;padding:2rem 1.5rem 2.75rem;background:var(--hb-paper);color:var(--hb-ink);clip-path:var(--hb-zig-bottom);}
body.home .hb-letter .hb-h2{font-size:var(--hb-t2);margin-bottom:1.5rem;}
body.home .hb-letter > p:not(.hb-letter-sign){margin-top:1rem;font-size:1.125rem;line-height:1.6;max-width:34em;}
body.home .hb-letter-links{list-style:none;display:flex;flex-wrap:wrap;gap:0 1.75rem;margin:1.5rem 0 0;padding:0;font-size:1.125rem;}
body.home .hb-letter-links li{display:flex;align-items:center;gap:0.4rem;min-height:44px;}
body.home .hb-letter-note{color:var(--hb-soft);}
body.home .hb-letter-sign{margin-top:1.5rem;font-family:var(--font-display);font-style:italic;font-size:1.375rem;color:var(--hb-ink);}
@media(min-width:960px){
  body.home .hb-method-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;align-items:center;}
  body.home .hb-method-photo{grid-column:1 / span 4;grid-row:1;width:auto;align-self:end;margin-bottom:-3rem;}
  body.home .hb-letter{grid-column:5 / span 8;grid-row:1;margin:0 0 0 1.5rem;padding:3.5rem 4rem 4.5rem;}
}

/* ========== FAQ ========== */
body.home .hb-faq{background:var(--hb-paper);}
body.home .hb-faq-grid{display:grid;gap:3rem;}
body.home .hb-faq-list{display:grid;gap:0.5rem;margin-top:2.5rem;}
body.home .hb-faq-item summary{position:relative;display:flex;align-items:center;min-height:3.25rem;padding:0.5rem 2.75rem 0.5rem 0;font-family:var(--font-display);font-weight:500;font-size:var(--hb-t3);line-height:1.25;letter-spacing:-0.01em;color:var(--hb-ink);cursor:pointer;list-style:none;transition:color 160ms ease;}
body.home .hb-faq-item summary::-webkit-details-marker{display:none;}
body.home .hb-faq-item summary:hover{color:var(--hb-accent-ink);}
body.home .hb-faq-item summary::after{content:"";position:absolute;right:0.5rem;top:50%;width:0.7rem;height:0.7rem;margin-top:-0.55rem;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg);transition:transform 240ms var(--hb-ease);}
body.home .hb-faq-item[open] summary::after{transform:translateY(0.3rem) rotate(-135deg);}
body.home .hb-faq-item p{padding:0.25rem 0 1.25rem;font-size:1.125rem;line-height:1.6;color:var(--hb-ink);max-width:36em;}
body.home .hb-faq-photo{margin:0;}
body.home .hb-faq-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%;}
@media(min-width:960px){
  body.home .hb-faq-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;}
  body.home .hb-faq-main{grid-column:1 / span 7;}
  body.home .hb-faq-photo{grid-column:9 / span 4;margin-top:calc(var(--hb-gap-sec) * -1);margin-bottom:-3rem;}
  body.home .hb-faq-photo img{aspect-ratio:3/4;height:100%;}
}

/* ========== NEXT STEP AND THE BELAY REPLY CARD ========== */
body.home .hb-cta{position:relative;z-index:2;background:var(--hb-deep);color:var(--hb-on-deep);padding-block:var(--hb-gap-sec);}
body.home .hb-cta-grid{display:grid;gap:3rem;}
body.home .hb-cta-next .hb-h2{font-size:var(--hb-t2);}
body.home .hb-cta-next > p:not(.hb-tab){margin:1rem 0 1.75rem;font-size:1.125rem;line-height:1.55;color:var(--hb-on-deep-soft);max-width:26em;}
body.home .hb-reply{background:var(--hb-paper);color:var(--hb-ink);padding:2.25rem 1.5rem 2rem;clip-path:polygon(0% 9px,3.571% 0,7.143% 9px,10.714% 0,14.286% 9px,17.857% 0,21.429% 9px,25% 0,28.571% 9px,32.143% 0,35.714% 9px,39.286% 0,42.857% 9px,46.429% 0,50% 9px,53.571% 0,57.143% 9px,60.714% 0,64.286% 9px,67.857% 0,71.429% 9px,75% 0,78.571% 9px,82.143% 0,85.714% 9px,89.286% 0,92.857% 9px,96.429% 0,100% 9px,100% 100%,0 100%);}
body.home .hb-reply h2{font-family:var(--font-display);font-weight:500;font-size:var(--hb-t2);line-height:1.1;letter-spacing:-0.02em;color:var(--hb-ink);}
body.home .hb-reply > p:not(.cta-disclaimer){margin-top:0.8rem;font-size:1.125rem;line-height:1.55;color:var(--hb-ink);}
body.home .hb-reply .cta-form{display:grid;grid-template-columns:minmax(0,1fr);gap:0.6rem;margin:1.5rem 0 0;max-width:none;}
body.home .hb-reply .cta-form input{width:100%;min-width:0;min-height:54px;padding:0.75rem 1rem;font-size:1.125rem;background:var(--hb-sheet);color:var(--hb-ink);border:2px solid var(--hb-ink);border-radius:0;}
body.home .hb-reply .cta-form input::placeholder{color:var(--hb-soft);}
body.home .hb-reply .cta-form input:focus{outline:3px solid var(--hb-accent-ink);outline-offset:2px;border-color:var(--hb-ink);}
body.home .hb-reply .cta-form .btn{width:100%;min-height:54px;font-size:1.125rem;}
body.home .hb-reply .cta-disclaimer{margin-top:0.9rem;font-size:0.9375rem;color:var(--hb-soft);text-align:left;}
body.home .hb-cta-photo{display:none;margin:0;}
@media(min-width:720px){body.home .hb-reply{padding:3rem 2.75rem 2.5rem;}}
@media(min-width:960px){
  body.home .hb-cta{padding-bottom:0;}
  body.home .hb-cta-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;align-items:start;}
  body.home .hb-cta-next{grid-column:1 / span 4;padding-bottom:var(--hb-gap-sec);}
  body.home .hb-reply{grid-column:5 / span 5;margin:0 0 -3rem 1.5rem;align-self:end;}
  body.home .hb-cta-photo{display:block;grid-column:10 / span 3;align-self:stretch;margin-top:calc(var(--hb-gap-sec) * -1);}
  body.home .hb-cta-photo img{display:block;width:100%;height:100%;min-height:26rem;object-fit:cover;object-position:50% 35%;}
}

/* ========== MOTION ========== */
@media(prefers-reduced-motion:no-preference){
  /* Cover: the title rises, the copy follows, the photo settles, the card lands. */
  body.home .hb-hero-title{animation:hb-title 800ms var(--hb-ease) both;}
  body.home .hb-hero-lead{animation:hb-rise 700ms var(--hb-ease) 140ms both;}
  body.home .hb-hero-actions{animation:hb-rise 700ms var(--hb-ease) 220ms both;}
  body.home .hb-hero-hint{animation:hb-rise 700ms var(--hb-ease) 280ms both;}
  body.home .hb-hero-sub{animation:hb-rise 700ms var(--hb-ease) 200ms both;}
  body.home .hb-hero-audience,
  body.home .hb-hero-meta{animation:hb-rise 700ms var(--hb-ease) 340ms both;}
  body.home .hb-hero-photo img{animation:hb-settle 1400ms var(--hb-ease) both;}
  body.home .hb-hero-card{animation:hb-card 900ms var(--hb-ease) 450ms both;}

  /* Sections: parts arrive in reading order once the script marks them. */
  html.hb-js body.home [data-rise]{opacity:0;transform:translateY(22px);}
  html.hb-js body.home [data-rise].is-in{opacity:1;transform:none;transition:opacity 700ms var(--hb-ease),transform 700ms var(--hb-ease);transition-delay:calc(var(--hb-i,0) * 75ms);}
  html.hb-js body.home .hb-sheet[data-rise] .hb-row{opacity:0;transform:translateX(-14px);}
  html.hb-js body.home .hb-sheet[data-rise].is-in .hb-row{opacity:1;transform:none;transition:opacity 500ms var(--hb-ease),transform 500ms var(--hb-ease),background 160ms ease;}
  html.hb-js body.home .hb-sheet.is-in .hb-row:nth-child(1){transition-delay:120ms,120ms,0s;}
  html.hb-js body.home .hb-sheet.is-in .hb-row:nth-child(2){transition-delay:190ms,190ms,0s;}
  html.hb-js body.home .hb-sheet.is-in .hb-row:nth-child(3){transition-delay:260ms,260ms,0s;}
  html.hb-js body.home .hb-sheet.is-in .hb-row:nth-child(4){transition-delay:330ms,330ms,0s;}
  html.hb-js body.home .hb-sheet.is-in .hb-row:nth-child(5){transition-delay:400ms,400ms,0s;}
  html.hb-js body.home .hb-sheet.is-in .hb-row:nth-child(6){transition-delay:470ms,470ms,0s;}
  html.hb-js body.home .hb-method-photo[data-rise],
  html.hb-js body.home .hb-faq-photo[data-rise]{transform:scale(0.96);transform-origin:50% 100%;}
  body.home .hb-steps::after{transition:transform 160ms linear;}

  /* The cover photo drifts a little as the page starts to scroll. */
  @supports (animation-timeline:scroll()){
    body.home .hb-hero-photo img{animation:hb-settle 1400ms var(--hb-ease) both,hb-drift linear both;animation-timeline:auto,scroll(root);animation-range:normal,0 90vh;}
  }
}
@keyframes hb-title{from{opacity:0;transform:translateY(0.35em);}to{opacity:1;transform:none;}}
@keyframes hb-rise{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:none;}}
@keyframes hb-settle{from{scale:1.08;}to{scale:1;}}
@keyframes hb-drift{from{translate:0 0;}to{translate:0 -5%;}}
@keyframes hb-card{from{opacity:0;translate:0 -28px;rotate:6deg;}to{opacity:1;translate:0 0;rotate:0deg;}}
@media(prefers-reduced-motion:reduce){
  html.hb-js body.home [data-rise],
  html.hb-js body.home .hb-sheet[data-rise] .hb-row{opacity:1;transform:none;}
  body.home .hb-guide::after,
  body.home .hb-row-go::after,
  body.home .hb-step-frame a img,
  body.home .btn{transition:none;}
  body.home .btn:hover,
  body.home .hb-step-frame a:hover img,
  body.home .hb-topic-nav a:hover{transform:none;}
}
