/* HOME — desktop is the 1440 Figma canvas (scaled); below 900px it reflows */
.home{height:3716px;overflow:visible}
.home section{position:absolute;left:0;width:1440px}
.sec-scroll{top:1895px;height:99px;z-index:3}
.sec-results{top:1994px;height:801px;z-index:2}
.sec-feat{top:2795px;height:921px}
.blend-darken{mix-blend-mode:darken}
.blend-burn{mix-blend-mode:color-burn}
.deco{pointer-events:none;z-index:1}
.pen3{z-index:4}

/* intro stage: pinned for one screen while the page scrolls through four card states (JS sets --tex, the extra scroll) */
.hero-track{left:0;top:0;width:1440px;height:calc(907px + var(--hd,0px) + var(--tex,0px))}
.dots-bg{position:sticky;top:calc(var(--nav-h) / var(--z,1));height:calc(907px + var(--hd,0px));isolation:isolate;z-index:0;
  /* the paper texture rides along with the dots, so both stay still while the card changes */
  background:var(--paper) url("../images/paper-tile.webp?v=82b1c0bc") 0 0/calc(439px / var(--z,1)) calc(614px / var(--z,1)) repeat}
.dots-bg>img{width:100%;height:100%;object-fit:cover;max-width:none;mix-blend-mode:darken}
/* pens sit on the still layer: the set slides off to the left when the bio card comes in, the single pen slides up into place */
.pen-layer{position:absolute;left:calc(50% - 720px);top:0;width:1440px;height:100%;pointer-events:none}
.hd-half{position:absolute;left:-579.75px;top:412.18px;width:967.54px;height:831.74px;max-width:none}
.hd-full{position:absolute;left:904px;top:436px;width:894.05px;height:497.99px;max-width:none;transform:translate(22%,125%)}
.hd-half,.hd-full,.anim .hd-half.rv-fade,.anim .hd-full.rv-fade{transition:transform .9s var(--ease-out),opacity 1.2s cubic-bezier(.25,.6,.3,1)}
.hero-track[data-state]:not([data-state="0"]) .hd-half{transform:translate(-430px,-150px)}
.hero-track[data-state]:not([data-state="0"]) .hd-full{transform:none}
@media (prefers-reduced-motion:reduce){.hd-half,.hd-full{transition:none}}
.home .sec-hero{position:sticky;top:calc(var(--nav-h) / var(--z,1));z-index:2;height:calc(907px + var(--hd,0px));margin-top:calc(-907px - var(--hd,0px))}
.hero-name{left:173px;top:273px;width:1094px;font-family:var(--font-display);font-size:30px;line-height:34px;letter-spacing:.11em;text-transform:uppercase;color:#000;
  -webkit-text-stroke:1px #000;text-shadow:.25px .25px .5px #f4f0eb,-.25px -.25px .25px rgba(0,0,0,.73)}
.hero-panel{left:173px;top:327px;width:1094px;height:314px;display:grid;grid-template-columns:minmax(0,1fr);isolation:isolate}
.hero-panel::before,.stat::before,.feat::before{content:"";position:absolute;z-index:-1;background:center/100% 100% no-repeat}
.hero-panel::before{inset:-4px -4.5px -5px -4px;background-image:url("../images/home-panel-hero.webp?v=f8ce2144")}
.hp-state{grid-area:1 / 1;position:relative;transition:opacity .45s ease,visibility 0s linear .45s,translate .55s var(--ease-out)}
.hp-intro{display:flex;align-items:center;justify-content:center}
.hero-panel h1{margin:0;font-family:var(--font-display);font-weight:700;font-size:89px;line-height:102px;text-align:center;letter-spacing:0;text-transform:uppercase;
  background:url("../images/paper-tile.webp?v=82b1c0bc") center/cover;-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(.25px .25px .5px #f4f0eb) drop-shadow(-.25px -.25px .25px rgba(0,0,0,.73))}
/* the card shows one state at a time */
.sec-hero[data-state="0"] .hp-bio,.sec-hero:not([data-state="0"]) .hp-intro{opacity:0;visibility:hidden;translate:0 10px}
.sec-hero[data-state="0"] .hp-intro,.sec-hero:not([data-state="0"]) .hp-bio{transition:opacity .45s ease .1s,visibility 0s,translate .55s var(--ease-out) .1s}
.bio-cutout{position:absolute;left:38px;top:-18px;width:270px;height:327px;filter:drop-shadow(0 0 2px rgba(0,0,0,.25))}
.bio-cutout img{width:100%;height:100%;max-width:none}
.bio-tabs{position:absolute;left:300px;top:94.6px;width:162px;display:flex;flex-direction:column;align-items:flex-end;gap:26.5px}
.bio-tabs button{font:400 20px/1.19 var(--font-body);color:#a8a8a8;background:none;border:0;padding:0;cursor:pointer;text-align:right;white-space:nowrap;
  transform-origin:right center;transition:transform .25s var(--ease-out),color .25s ease}
.bio-tabs button:hover,.bio-tabs button:focus-visible{transform:scale(1.08);color:#d6d6d6}
.bio-tabs button[aria-selected="true"]{font-weight:700;color:#fff}
.bio-tabs button:focus-visible{outline:2px solid var(--label);outline-offset:4px}
.bio-divider{position:absolute;left:484px;top:79px;width:1px;height:156px;background:#fff}
.bio-texts{position:absolute;left:506.7px;top:89.5px;width:540px;display:grid}
.bio-text{grid-area:1 / 1;margin:0;font-weight:400;font-size:18px;line-height:1.19;color:#fff;opacity:0;visibility:hidden;translate:0 6px;
  transition:opacity .35s ease,visibility 0s linear .35s,translate .45s var(--ease-out)}
.bio-text .y{color:var(--yellow)}
.sec-hero[data-state="1"] .bio-text[data-i="1"],.sec-hero[data-state="2"] .bio-text[data-i="2"],.sec-hero[data-state="3"] .bio-text[data-i="3"]{
  opacity:1;visibility:visible;translate:none;transition:opacity .35s ease .08s,visibility 0s,translate .45s var(--ease-out) .08s}
/* buttons sit under the card while the bio shows */
.hero-btns{left:421px;top:691px;width:598px;display:flex;gap:30px;opacity:0;visibility:hidden;translate:0 8px;
  transition:opacity .4s ease,visibility 0s linear .4s,translate .5s var(--ease-out)}
.sec-hero:not([data-state="0"]) .hero-btns{opacity:1;visibility:visible;translate:none;transition:opacity .4s ease .15s,visibility 0s,translate .5s var(--ease-out) .15s}
.hero-btns .pill-btn{width:284px;min-height:50px;padding:12px 0;border:4px solid #000;border-radius:33px;font-size:16px;letter-spacing:.11em}
.hb-outline{color:#000}
.hb-outline:hover{background:#000;color:#fff}
.hb-fill{color:#fff;background:#000 url("../images/nav-bg.webp?v=4f35360a") center/cover}
.hb-fill:hover{filter:url(#tx-rough-s) brightness(1.25)}
@media (prefers-reduced-motion:reduce){.hp-state,.bio-text,.hero-btns{transition:none!important;translate:none!important}}

/* scroller: background stays, text loops */
.sec-scroll{background:#1c1c1f url("../images/home-scroller-bg.webp?v=3badefd5") center/100% 100%;overflow:hidden;display:flex;align-items:center}
.marquee{width:100%;overflow:hidden}
.marquee-track{display:flex;width:max-content;animation:marq 48s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-item{flex:none;padding-right:34px;font-style:italic;font-weight:500;font-size:20px;line-height:30px;text-transform:uppercase;color:#f5f5fb;white-space:nowrap}
.marquee-item b{font-weight:500;color:var(--yellow)}
@keyframes marq{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.marquee-track{animation:none}}

/* results */
.results-bg{left:-117px;top:1.5px;width:1674px;height:798px;filter:drop-shadow(2px 2px 2px rgba(0,0,0,.25))}
.sec-title{font-family:var(--font-display);font-style:italic;font-weight:700;font-size:64px;line-height:72px;text-transform:uppercase;color:#000;white-space:nowrap}
.results-title{left:147px;top:155px}
.stat{width:380px;height:342px;top:329px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:35px 21px;
  isolation:isolate;filter:drop-shadow(2px 2px 1.5px rgba(0,0,0,.25))}
.stat::before{inset:0 -1px -1px 0;background-image:url("../images/home-card-results.webp?v=5f966d5e")}
.stat-label{font-weight:700;font-size:32px;line-height:41px;color:#f5f5fb}
.stat-value{font-family:var(--font-display);font-weight:700;font-size:96px;line-height:111px;color:var(--yellow);mix-blend-mode:screen}
.stat-value span{color:#fff}
.stat-value{font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.anim .ch{opacity:0;transition:opacity .22s ease}
.anim .ch.on{opacity:1}
/* Growth Marketing's letters are cut out of the paper texture, so they appear by visibility rather than fading */
.anim .hero-panel h1 .ch{opacity:1;visibility:hidden;transition:none}
.anim .hero-panel h1 .ch.on{visibility:visible}
@media (prefers-reduced-motion:reduce){.anim .ch{opacity:1}}

/* featured */
.feat-title{left:117px;top:169.5px}
.feat{top:297.5px;width:380px;height:342px;padding:35px 21.3px;display:flex;flex-direction:column;gap:18px;text-decoration:none;color:#fff;
  isolation:isolate}
.feat::before{inset:-3.25px;background-image:url("../images/home-card-featured.webp?v=2d6a295f")}
.feat:hover{box-shadow:0 14px 28px rgba(0,0,0,.28)}
.feat-logo{height:117px;display:flex;align-items:center;justify-content:center}
.feat-logo img{max-height:117px;width:auto}
.feat h3{font-weight:700;font-size:21px;line-height:27px}
.feat p{font-weight:500;font-size:16px;line-height:1.3;color:#ededed}
.feat-more{left:581.5px;top:695.5px}
.btn-outline-k{width:277px;color:#000;border:4px solid #000;font-style:italic;padding:12px 0}
.btn-outline-k:hover{background:#000;color:#fff}

/* desktop: the hero fills the window it opens in. JS sets --hd (design px added to or taken from the 907px hero);
   hero content stays centered and everything below moves with it */
@media (min-width:900px){
  .home{height:calc(2728px + var(--hd,0px) + var(--rd,0px) + var(--tex,0px))}
  .hero-name,.hero-panel,.hero-btns,.hd-half,.hd-full{margin-top:calc(var(--hd,0px) / 2)}
  /* everything after the intro starts where its pinned scroll ends (988px was the old about section) */
  .sec-scroll,.sec-results{margin-top:calc(var(--hd,0px) + var(--tex,0px) - 988px)}
  /* results also fill the window (JS sets --rd the same way); its content stays centered */
  .sec-results{height:calc(801px + var(--rd,0px))}
  .results-bg{height:calc(798px + var(--rd,0px))}
  .results-title,.stat{margin-top:calc(var(--rd,0px) / 2)}
  .sec-feat,.pen3{margin-top:calc(var(--hd,0px) + var(--rd,0px) + var(--tex,0px) - 988px)}
}

/* ≥1441: let the full-bleed bands continue past the 1440 canvas */
@media (min-width:1441px){
  .sec-scroll{left:50%!important;width:100vw!important;transform:translateX(-50%)}
  .results-bg{left:50%;width:max(1674px,100vw);transform:translateX(-50%);object-fit:cover}
  .dots-bg{margin-left:calc(720px - 50vw);width:100vw}
}

/* ---------- below 900px: reflowed layout ---------- */
@media (max-width:899px){
  .home{width:auto;height:auto}
  .home section{position:relative;left:auto;top:auto;width:auto;height:auto}
  .home .abs{position:relative;left:auto;top:auto}
  .home .hero-track{position:relative;width:auto;height:calc(var(--screen,100svh) + var(--tex,0px))}
  .dots-bg{top:var(--nav-h);height:var(--screen,100svh);background-size:439px 614px;margin:0;width:auto}
  .home .sec-hero{top:var(--nav-h);height:var(--screen,100svh);margin-top:calc(-1 * var(--screen,100svh));padding:24px 16px;display:flex;flex-direction:column;justify-content:center;gap:14px}
  .hero-name{width:auto;font-size:clamp(14px,3.9vw,22px);line-height:1.2}
  .hero-panel{width:auto;height:auto;padding:28px 16px;border-radius:5px}
  .hero-panel h1{font-size:clamp(26px,8.6vw,72px);line-height:1.1;white-space:nowrap}
  /* mid-size: photo centered, tabs in a row under it, then the text */
  .hp-bio{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;row-gap:18px}
  .bio-cutout{position:relative;left:auto;top:auto;width:clamp(150px,30vw,220px);height:auto;aspect-ratio:274/332;margin-top:-44px}
  .bio-tabs{position:relative;left:auto;top:auto;width:auto;flex-direction:row;align-items:baseline;justify-content:center;gap:clamp(18px,5vw,40px)}
  .bio-tabs button{font-size:20px;transform-origin:center bottom}
  .bio-divider{display:none}
  .bio-texts{position:relative;left:auto;top:auto;width:100%;max-width:560px;justify-self:center;padding:16px 4px 4px;border-top:1px solid rgba(255,255,255,.6)}
  .bio-text{font-size:17px;line-height:1.3}
  .hero-btns{width:auto;justify-content:center;gap:12px;margin-top:6px}
  .hero-btns .pill-btn{width:auto;flex:1;max-width:200px;min-height:40px;padding:8px 10px;border-width:3px;font-size:13px}
  .sec-scroll{height:72px}
  .marquee-item{font-size:17px}
  .sec-results{padding:48px 16px 56px;overflow:hidden;min-height:calc(100vh - var(--nav-h));min-height:calc(100svh - var(--nav-h));display:flex;flex-direction:column;justify-content:center}
  .results-bg{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover;z-index:-1}
  .sec-title{font-size:clamp(38px,10vw,56px);line-height:1.1;white-space:normal}
  .results-title,.feat-title{margin-bottom:24px;width:100%;text-align:center}
  .stats{display:flex;flex-direction:column;gap:16px;align-items:center}
  .stat{width:100%;max-width:380px;height:auto;aspect-ratio:380/300;gap:10px}
  .stat-label{font-size:26px}
  .stat-value{font-size:72px;line-height:1.1}
  .sec-feat{padding:56px 16px 64px}
  .feats{display:flex;flex-direction:column;gap:16px;align-items:center}
  .feat{width:100%;max-width:380px;height:auto;min-height:300px}
  .feat-more{display:flex;justify-content:center;margin-top:32px}
  .feat-logo{height:auto;min-height:80px}
  .feat-logo img{max-width:100%;height:auto;max-height:117px}
}
.stats,.feats{display:contents}
.s1{left:116.7px}.s2{left:530px}.s3{left:943.3px}
.f1{left:117px}.f2{left:530.3px}.f3{left:943.6px}
@media (max-width:899px){.stats{display:flex}.feats{display:flex}}

/* phones: the pens tucked mostly off the edges */
@media (max-width:899px){
  .home .sec-results{z-index:2}.home .sec-scroll{z-index:3}
  .home .deco{position:absolute;margin:0;height:auto}
  .pen-layer{left:0;width:100%}
  .home .pen3{display:none}
  .home .deco.hd-half{left:-56vw;top:calc(var(--screen,100svh) - 62vw);width:104vw}
  .hero-track[data-state]:not([data-state="0"]) .hd-half{transform:translate(-52vw,-12vw)}
  .home .deco.hd-full{left:50vw;top:calc(var(--screen,100svh) - 40vw);width:96vw}
}

/* phones: tighter, tabs stacked on the left with the photo on the right */
@media (max-width:599px){
  .hp-bio{grid-template-columns:minmax(0,1fr) auto;justify-items:stretch;align-items:center;column-gap:12px;row-gap:14px}
  .bio-tabs{grid-column:1;grid-row:1;flex-direction:column;align-items:flex-start;gap:12px;padding-left:4px}
  .bio-tabs button{font-size:18px;text-align:left;transform-origin:left center}
  .bio-cutout{grid-column:2;grid-row:1;width:clamp(108px,34vw,150px);margin-top:-36px}
  .bio-texts{grid-column:1 / -1;max-width:none;padding:12px 4px 2px}
  .bio-text{font-size:15.5px}
}

/* mid-size: keep the intro card narrow and portrait, like the phone layout scaled up */
@media (min-width:600px) and (max-width:899px){
  .hero-name,.hero-panel,.hero-btns{width:100%;max-width:470px;margin-left:auto;margin-right:auto}
  .bio-cutout{width:clamp(120px,21vw,150px);margin-top:-40px}
  .bio-tabs{gap:26px}
  .bio-tabs button{font-size:19px}
  .bio-text{font-size:16px}
}

/* GROWTH MARKETING: paper grain under a fine halftone screen, with Figma's hairline highlight and shadow over worn edges */
.hero-panel h1{background:url("../images/texture-halftone.webp?v=a412e34a") 0 0/6px 6px,url("../images/paper-tile.webp?v=82b1c0bc") center/420px auto;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:url(#tx-rough) drop-shadow(.25px .25px .5px #f4f0eb) drop-shadow(-.25px -.25px .25px rgba(0,0,0,.73))}
