/* Count Alliance section blocks.
   Ported from the approved review build (Home, About, Contact) and the Figma library.
   Depends on the theme's design tokens + primitives (.wrap, .t-*, .btn, .link, .input, .panel, .photo, motion).
   Desktop canvas 1728, breakpoints 1279 / 1199 / 1023 / 759. */

/* ---------- integration with the floating site header ----------
   Page-opening sections run under the header; --ca-header-h is set by the theme. */
.hm-stage,.ab-hero,.ct{padding-top:var(--ca-header-h,116px)}
.ct{padding-top:0}
.ct .ct-grid{padding-top:calc(var(--ca-header-h,116px) + 64px)}

/* travelling photo: positioned in document coordinates by travel.js */
.ca-traveler{position:absolute;z-index:4;left:0;top:0;overflow:hidden;pointer-events:none;will-change:transform;transform-origin:0 0}
.ca-traveler img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}

/* decorative art loaded as <img> */
.hm-folds img,.hm-tile img{width:100%;height:100%;object-fit:cover;display:block}
.hm-card--pattern > img{object-position:top}
.hm-legend li span{display:block}

/* ================= Home ================= */
/* --u = one design pixel on the 1728 canvas, never larger than 1px */
:root{--u:min(1px, calc(100vw / 1728))}
.wrap--home{max-width:1624px}

/* hero */
.hm-hero{position:relative;background:var(--cool-white);padding-bottom:72px}
.hm-band{position:absolute;inset:0 0 72px 0;background:var(--ink);overflow:hidden}
.hm-atmos{position:absolute;inset:0;opacity:.3;background:linear-gradient(127deg,var(--ink) 10%,rgba(226,217,252,.055) 52%,var(--ink) 72%,rgba(226,217,252,.13) 87%)}
.hm-folds{position:absolute;inset:0;opacity:.25;overflow:hidden;contain:paint}
.hm-folds svg{width:100%;height:100%;overflow:hidden}
.hm-hero{overflow-x:clip}
.hm-stage{position:relative;z-index:2}
/* two columns: copy aligned to the logo, visual aligned to the nav button */
.hm-stage{display:grid;grid-template-columns:minmax(0,764px) min(728px,46%);justify-content:space-between;column-gap:48px;align-items:start}
.hm-copy{display:flex;flex-direction:column;gap:72px;padding-left:24px;padding-top:120px;padding-bottom:64px;min-width:0}
.hm-copy .head{display:flex;flex-direction:column;gap:24px}
.hm-copy .head > div{display:flex;flex-direction:column;gap:12px}
.hm-copy .t-eyebrow{color:var(--mint)}
.hm-copy h1{color:var(--white)}
.hm-copy .t-feature{color:var(--slate-pale);max-width:588px}
.hm-start{display:flex;flex-direction:column;gap:12px}
.hm-start > label{font-size:14px;line-height:22px;color:var(--white)}
.hm-start-row{display:flex;gap:8px;flex-wrap:wrap}
.hm-start-row .input{width:264px}
/* visual: illustration square + photo that drops 40px past the ink, caption beside it on the light strip */
.hm-visual{position:relative;align-self:stretch;margin-right:16px;padding-top:24px}
.hm-illus{position:relative;width:100%;aspect-ratio:1;margin-bottom:12%}
.hm-illus svg{width:100%;height:100%;overflow:visible}
.hm-photo{position:absolute;z-index:3;left:-9%;bottom:-40px;width:52%;aspect-ratio:382/316;height:auto;border-radius:var(--radius-16);box-shadow:0 16px 36px rgba(0,0,0,.22)}
.hm-caption{position:absolute;z-index:3;left:calc(43% + 24px);top:calc(100% + 16px);font-size:16px;line-height:24px;font-weight:500;color:var(--ink);white-space:nowrap}
@media (min-width:1200px) and (max-width:1439px){.hm-copy{padding-top:80px;gap:56px}}
@media (min-width:1200px) and (max-width:1599px){.hm-copy .t-h1xl{font-size:64px;line-height:68px}}
@media (max-width:1199px){
  .hm-hero{padding-bottom:0;background:var(--ink)}
  .hm-band{inset:0}
  .hm-stage{display:flex;flex-direction:column;padding-bottom:64px}
  .hm-copy{padding-left:0;padding-top:48px;padding-bottom:48px;gap:40px;max-width:720px}
  .hm-start-row{flex-direction:column}
  .hm-start-row .input,.hm-start-row .btn{width:100%}
  .hm-visual{margin-right:0;padding-top:0;min-height:0}
  .hm-illus{max-width:560px;margin-left:auto;margin-bottom:0}
  .hm-illus text{display:none}
  .hm-photo{position:relative;left:auto;bottom:auto;width:62%;max-width:382px;margin-top:-22%}
  .hm-caption{position:static;margin-top:16px;color:var(--slate-pale);white-space:normal}
}

/* what members do together */

/* section 2 — inside the alliance (library section-hero, "Section 2" 01–04).
   Scroll-scrubbed on desktop: hero photo travels into the large image, then title (from left), copy (from right), small photo (lift). */
.hm-inside{position:relative;background:linear-gradient(var(--cool-white) 254px,var(--lavender) 254px);padding-top:64px;padding-bottom:88px;overflow:hidden}
.hm-ins-head{display:flex;flex-direction:column;gap:20px;padding-left:46px}
.hm-ins-body{display:grid;grid-template-columns:min(960px,55.6vw) minmax(0,362px);justify-content:space-between;align-items:start;margin-top:18px;padding-right:max(110px,env(safe-area-inset-right,0px))}
.hm-ins-big{margin-top:97px;aspect-ratio:960/695;border-radius:0 var(--radius-16) var(--radius-16) 0;overflow:hidden;background:var(--ink)}
.hm-ins-big img{width:100%;height:100%;object-fit:cover}
.hm-ins-side{display:flex;flex-direction:column;gap:92px}
.hm-ins-small{aspect-ratio:362/234;border-radius:var(--radius-8);overflow:hidden}
.hm-ins-small img{width:100%;height:100%;object-fit:cover}
.hm-ins-text{display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.ca-traveler--home{box-shadow:0 16px 36px rgba(0,0,0,.22)}
body.ca-travel-home .hm-photo{visibility:hidden}
body.ca-travel-home .hm-ins-big.is-waiting{opacity:0}
.js-motion .ca-traveler--home{animation:trIn .8s var(--ease-out) .64s both}
@keyframes trIn{from{opacity:0}to{opacity:1}}
.hm-scrub{will-change:transform,opacity}
@media (max-width:1199px){
  .hm-inside{background:linear-gradient(var(--cool-white) 200px,var(--lavender) 200px);padding-bottom:64px}
  .hm-ins-head{padding-left:0}
  .hm-ins-body{grid-template-columns:1fr;gap:40px;padding-right:max(var(--gutter),env(safe-area-inset-right,0px));margin-top:32px}
  .hm-ins-big{margin-top:0;width:calc(100% - var(--gutter))}
  .hm-ins-side{gap:32px;padding-left:max(var(--gutter),env(safe-area-inset-left,0px))}
  .hm-ins-small{max-width:362px}
}

.m-only{display:none}
.hm-legend{display:none}
/* desktop keeps the scroll scrub; the mobile reveal attributes are neutralised there */
.js-motion body.ca-travel-home .hm-scrub[data-reveal]{transition:none}
.js-motion body.ca-travel-home .hm-ins-big[data-reveal]{transform:none;transition:none;opacity:1}
.js-motion body.ca-travel-home .hm-ins-big[data-reveal].is-waiting{opacity:0}
@media (max-width:1199px){
  .d-only{display:none}.m-only{display:inline}
  /* 01 hero — study: Home / Mobile study / Diagram + photo handoff */
  .hm-stage{padding-bottom:32px}
  .hm-copy{gap:24px;padding-bottom:32px}
  /* legend sits to the left of the diagram, each label pointing in with a short leader + key dot */
  .hm-visual{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:0;max-width:560px}
  .hm-illus{width:calc(100% + var(--gutter) + 24px);max-width:400px;margin:0 0 0 -8px;order:2}
  .hm-illus .callouts,.hm-illus text{display:none}
  .hm-photo,.hm-caption{display:none}
  .hm-legend{order:1;position:relative;z-index:1;display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none;color:var(--off-white);font-size:16px;line-height:24px;text-align:right}
  .hm-legend li{display:flex;align-items:center;justify-content:flex-end;gap:8px}
  .hm-legend li::after{content:"";flex:none;width:16px;height:1px;background:var(--slate-pale-45)}
  .hm-legend li::before{content:"";order:2;flex:none;width:8px;height:8px;border-radius:50%;background:var(--dot)}
  /* photo handoff: ink continues 64px behind the photo, then lavender */
  .hm-inside{display:flex;flex-direction:column;gap:0;padding-top:0;padding-bottom:48px;background:linear-gradient(var(--ink) 64px,var(--lavender) 64px)}
  .hm-ins-body,.hm-ins-side{display:contents}
  .hm-ins-big{order:-1;width:auto;margin:0 max(var(--gutter),env(safe-area-inset-right,0px)) 0 max(var(--gutter),env(safe-area-inset-left,0px));aspect-ratio:342/244;border-radius:var(--radius-16)}
  .hm-ins-small{display:none}
  .hm-inside > .wrap{padding-top:32px}
  .hm-ins-head{gap:8px}
  .hm-ins-text{padding:24px max(var(--gutter),env(safe-area-inset-right,0px)) 0 max(var(--gutter),env(safe-area-inset-left,0px));gap:8px}
  .hm-ins-lead{font-size:24px;line-height:32px}
  .hm-ins-text .t-p{font-size:16px;line-height:24px}
  .hm-ins-text .link{margin-top:8px}
}
@media (max-width:759px){
  .hm-copy .t-feature{font-size:16px;line-height:24px;font-weight:400;color:var(--off-white)}
  .hm-copy .head{gap:16px}
}
.hm-benefits{padding-block:var(--section-y)}
.hm-benefits .head{display:flex;flex-direction:column;gap:16px;margin-bottom:48px}
.hm-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:start}
.hm-card{position:relative;aspect-ratio:474/620;border-radius:var(--radius-16);overflow:hidden;background:var(--cool-white);max-width:100%}
.hm-card:nth-child(odd){margin-top:60px}
.hm-card > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease-out)}
.hm-card--pattern{background:var(--mint)}
.hm-card--pattern > svg{position:absolute;inset:0;width:100%;height:100%}
.hm-card--pattern::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(223,247,225,0) 57%,var(--mint) 72%)}
.hm-inset{position:absolute;z-index:2;left:20px;right:20px;bottom:24px;display:flex;flex-direction:column;padding:24px;border-radius:var(--radius-8);background:var(--chip);color:var(--ink)}
.hm-card--pattern .hm-inset{border:1px solid var(--green-deep)}
.hm-more{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .5s var(--ease-out),opacity .4s var(--ease-out)}
.hm-more > div{overflow:hidden;display:flex;flex-direction:column;gap:8px}
.hm-more > div > p{padding-top:16px}
.hm-more svg{width:24px;height:24px}
.hm-card.is-open .hm-more,.hm-card:focus-within .hm-more{grid-template-rows:1fr;opacity:1}
@media (hover:hover){
  .hm-card:hover > img{transform:scale(1.03)}
}


/* this quarter */
.hm-quarter{background:var(--off-white);padding-block:64px;min-height:820px}
.hm-q-inner{display:grid;grid-template-columns:minmax(240px,444fr) minmax(0,990fr);gap:60px}
.hm-q-intro{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.hm-q-list{display:flex;flex-direction:column;min-width:0;container-type:inline-size}
.hm-q > *{min-width:0}
/* rows: peach / mint / lilac when active (library: section-4, conversation rows 01–03) */
.hm-q{--row-bg:var(--peach-40);--row-line:var(--peach);--pv-bg:var(--peach-40);--pv-line:var(--peach);display:grid;grid-template-columns:minmax(0,430px) minmax(0,1fr);gap:32px;padding:32px 24px;border:1px solid transparent;border-bottom-color:var(--slate-pale);border-radius:0;cursor:pointer;transition:background-color .5s var(--ease-out),border-color .5s var(--ease-out)}
.hm-q:nth-child(2){--row-bg:rgba(223,247,225,.4);--row-line:rgba(55,99,69,.1);--pv-bg:var(--mint);--pv-line:rgba(55,99,69,.1)}
.hm-q:nth-child(3){--row-bg:rgba(226,217,252,.2);--row-line:var(--lavender);--pv-bg:rgba(226,217,252,.4);--pv-line:rgba(55,99,69,.1)}
.hm-q:has(+ .hm-q.is-active){border-bottom-color:transparent}
.hm-q .copy{display:flex;flex-direction:column;gap:16px}
.hm-q .copy .body,.hm-q .copy .link{display:none}
.hm-q .aside .preview{display:none}
.hm-q h3 button{all:unset;cursor:pointer}
.hm-q h3 button:focus-visible{outline:2px solid var(--violet-line);outline-offset:4px}
.hm-q.is-active{background:var(--row-bg);border-color:var(--row-line);border-radius:var(--radius-16);padding:24px;cursor:default}
.hm-q.is-active .copy .body{display:block}
.hm-q.is-active .copy .link{display:inline-flex}
.hm-q.is-active .aside .summary{display:none}
.hm-q.is-active .aside .preview{display:flex}
.preview{flex-direction:column;gap:16px;min-height:232px;padding:24px;border-radius:var(--radius-8);background:var(--pv-bg);border:1px solid var(--pv-line)}
.hm-q.is-active .copy,.hm-q.is-active .preview{animation:qIn .5s var(--ease-out) both}
@container (max-width:760px){.hm-q{grid-template-columns:minmax(0,1fr);gap:16px}.hm-q.is-active{gap:24px}}
@media (prefers-reduced-motion:reduce){.hm-q.is-active .copy,.hm-q.is-active .preview{animation:none}}
@keyframes qIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* invitation into footer */
.hm-invite{position:relative;background:linear-gradient(var(--cool-white) 570px,var(--ink) 570px)}
.hm-inv-inner{position:relative;padding-top:84px;padding-bottom:220px;min-height:940px}
.hm-inv-head{display:flex;flex-direction:column;gap:16px;padding-left:56px;max-width:904px;position:relative;z-index:2}
.hm-inv-head .t-eyebrow,.hm-join .t-eyebrow{color:var(--green-deep)}
.hm-tile{position:absolute;top:240px;right:calc(56px + var(--gutter));width:552px;height:600px;max-width:40%;border-radius:var(--radius-16);overflow:hidden;background:var(--lavender)}
.hm-tile svg{width:100%;height:100%;display:block}
.hm-tile svg{width:100%;height:100%}
.hm-join{position:relative;z-index:2;display:flex;flex-direction:column;gap:32px;width:min(1048px,calc(100% - 56px));margin-left:56px;margin-top:72px;padding:40px 48px}
.hm-steps{display:flex;flex-direction:column;gap:16px;list-style:none;margin:0;padding:0}
.hm-steps li{display:grid;grid-template-columns:36px 276px minmax(0,1fr);gap:24px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--slate-pale-45)}
.hm-steps .n{font-size:18px;line-height:28px;color:var(--slate);font-variant-numeric:tabular-nums}
.hm-steps .b{color:var(--slate)}
.hm-join-act{display:flex;align-items:center;gap:24px}
.hm-join-act .form-note{max-width:600px}
.hm-invite + .site-footer{margin-top:-1px}

/* ---------- below desktop ---------- */
@media (max-width:1023px){
  .hm-cards{grid-template-columns:1fr;gap:24px}
  .hm-card:nth-child(odd){margin-top:0}
  .hm-card{aspect-ratio:auto;height:min(560px, 130vw)}
  .hm-quarter{min-height:0}
  .hm-q-inner{grid-template-columns:1fr;gap:32px}
  .hm-q{grid-template-columns:1fr;gap:16px;padding:24px 16px}
  .hm-q.is-active{padding:24px 16px}
  .hm-invite{background:linear-gradient(var(--cool-white) 420px,var(--ink) 420px)}
  .hm-inv-inner{padding-top:64px;padding-bottom:64px;min-height:0}
  .hm-inv-head{padding-left:0}
  .hm-tile{position:relative;top:auto;right:auto;width:72%;max-width:none;height:280px;margin:32px 0 0 auto}
  .hm-join{width:100%;margin:-200px 0 0;padding:32px 24px}
  .hm-steps li{grid-template-columns:32px minmax(0,1fr);gap:4px 12px;padding-bottom:12px}
  .hm-steps .b{grid-column:2}
  .hm-join-act{flex-direction:column;align-items:stretch;gap:16px}
  .hm-join-act .btn{width:100%}
}
@media (max-width:759px){
  .hm-copy{padding-top:40px;gap:32px}
  .hm-copy .head{gap:16px}
  .hm-benefits .head{margin-bottom:32px}
}

/* ================= About ================= */
.canvas{position:relative;width:calc(1728 * var(--u));margin-inline:auto}

/* hero + offerings: one continuous scene */
.ab-scene{position:relative;background:var(--off-white)}
.ab-hero{background:var(--lavender-wash);position:relative}
.ab-hero .canvas{min-height:calc(980 * var(--u) - 116px)}
.ab-opening.wrap{max-width:none}
.ab-opening{display:flex;align-items:center;min-height:calc(980 * var(--u) - 116px);padding-block:48px 84px}
.ab-copy{display:flex;flex-direction:column;gap:32px;width:min(744px, 50vw)}
.ab-copy .head{display:flex;flex-direction:column;gap:24px}
.ab-copy .t-feature,.ab-intro{color:var(--slate);max-width:520px}
.ab-photos{position:absolute;top:calc(108 * var(--u));left:calc(946 * var(--u));width:calc(718 * var(--u));height:calc(620 * var(--u))}
.ab-photos .fg{position:absolute;right:0;top:0;width:calc(524 * var(--u));height:100%;z-index:2}
.ab-photos .tr-slot{position:absolute;left:0;top:calc(246 * var(--u));width:calc(330 * var(--u));aspect-ratio:1;border-radius:var(--radius-16)}
.ab-photos .tr-static{display:none}

.ab-offer{position:relative;padding-top:84px;height:calc(432px + 512 * var(--u));background-color:var(--cool-white);transition:background-color .4s var(--ease-out)}
/* hovering a tile washes the whole offerings section in that tile's colour at 20% (library: count/about/hero-offerings, active=…) */
@media (hover:hover) and (min-width:1024px){
  .ab-offer:has(.ab-tile[data-wash="mint"]:hover){background-color:color-mix(in srgb,var(--mint) 20%,var(--cool-white))}
  .ab-offer:has(.ab-tile[data-wash="lavender"]:hover){background-color:color-mix(in srgb,var(--lavender) 20%,var(--cool-white))}
  .ab-offer:has(.ab-tile[data-wash="peach"]:hover){background-color:color-mix(in srgb,var(--peach) 20%,var(--cool-white))}
}
.ab-offer-head{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;max-width:1000px;margin-inline:auto}
.ab-offer-head .t-p{max-width:900px}
.ab-collage{position:absolute;inset:0}
.ab-tile{position:absolute;margin:0;left:calc((100% - 1728 * var(--u)) / 2 + var(--x) * var(--u));top:calc(344px + (var(--y) - 344) * var(--u));width:calc(var(--w) * var(--u));height:calc(var(--h) * var(--u));z-index:1}
.ab-tile .photo{width:100%;height:100%;isolation:isolate;clip-path:inset(0 round var(--radius-16))}
.ab-tile .photo img{border-radius:inherit}
.ab-tile .photo::after{content:"";position:absolute;inset:0;background:var(--tint);mix-blend-mode:multiply;opacity:0;transition:opacity .3s var(--ease-out)}
.ab-chip{position:absolute;left:-24px;top:-28px;display:inline-flex;align-items:center;gap:16px;padding:16px;border-radius:var(--radius-16);background:var(--chip-bg);color:var(--chip-fg);font-size:18px;line-height:28px;white-space:nowrap;opacity:0;transform:translateY(8px);transition:opacity .3s var(--ease-out),transform .3s var(--ease-out);pointer-events:none}
.ab-chip svg{width:24px;height:24px;flex:none}
@media (hover:hover) and (min-width:1024px){
  .ab-tile:hover,.ab-tile:focus-visible{z-index:5}
  .ab-tile:hover .photo::after{opacity:.28}
  .ab-tile:hover .ab-chip,.ab-tile:focus-visible .ab-chip{opacity:1;transform:none}
}
.ab-tile--peer.is-waiting .photo{opacity:0}
.ab-carousel-ui{display:none}

/* travelling image (desktop only) */
.ca-traveler--about{border-radius:var(--radius-16)}
.js-motion .ca-traveler--about{animation:trIn .8s var(--ease-out) .52s both}
@keyframes trIn{from{opacity:0}to{opacity:1}}

/* why we exist */
.ab-why{background:var(--cool-white);padding-block:var(--section-y)}
.ab-why-inner{display:flex;flex-direction:column;align-items:flex-end;gap:48px}
.ab-why-row{display:grid;grid-template-columns:240px minmax(0,1312px);gap:48px;width:100%;justify-content:space-between}
.ab-why-row > .t-eyebrow{padding-top:8px}
.ab-story{display:flex;flex-direction:column;gap:24px;min-width:0}
.ab-story h2{max-width:1120px}
.rule{height:1px;background:var(--slate-pale)}
.ab-cols{display:grid;grid-template-columns:minmax(0,504px) minmax(0,680px);gap:72px}
.ab-cols .muted{display:flex;flex-direction:column;gap:16px;color:var(--slate)}
.ab-feature{display:grid;grid-template-columns:504px minmax(0,1fr);align-items:center;width:min(1312px,100%);background:var(--ink);color:var(--off-white);border-radius:var(--radius-24);overflow:hidden}
.ab-feature .photo{height:272px;border-radius:0}
.ab-feature-copy{display:flex;flex-direction:column;gap:16px;padding:24px 32px 24px 72px}
.ab-feature-copy .t-pm{max-width:572px}
.ab-feature-copy .t-h4,.ab-feature-copy .t-pm{display:block}
.ab-feature-copy > div{display:flex;flex-direction:column;gap:8px}

/* principles */
.ab-principles{background:var(--slate-deep);color:var(--off-white);padding-block:var(--section-y)}
.ab-pr-inner{display:flex;flex-direction:column;gap:64px}
.ab-pr-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:48px}
.ab-pr-intro > div{display:flex;flex-direction:column;gap:16px;max-width:800px}
.ab-pr-intro .t-eyebrow,.ab-pr-intro .t-p{color:var(--cool-white)}
.ab-pr-intro .t-p{max-width:600px}
.ab-pr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.ab-pr-tile{display:flex;flex-direction:column;gap:24px;min-height:340px;padding:32px;background:var(--ink-raised);border:1px solid var(--off-white-06);border-radius:var(--radius-24);transition:background-color .3s var(--ease-out),border-color .3s var(--ease-out)}
/* principle hover (library: Direct access, state=hover): fill drops to 50%, border brightens to 30% */
@media (hover:hover){.ab-pr-tile:hover{background:rgba(42,56,78,.5);border-color:rgba(252,252,252,.3)}}
.ab-pr-tile svg{width:32px;height:32px}
.ab-pr-tile svg [stroke-width]{stroke-width:1.5px}
.ab-pr-tile > div{display:flex;flex-direction:column;gap:16px}
.ab-pr-tile .t-pm{color:var(--slate-pale)}

/* closing invitation */
.ab-invite{background:linear-gradient(var(--cool-white) 50%, var(--ink) 50%);padding-block:84px}
.ab-invite .wrap{padding-left:max(120px,env(safe-area-inset-left,0px));padding-right:max(120px,env(safe-area-inset-right,0px))}
.ab-inv-panel{display:flex;align-items:center;justify-content:space-between;gap:48px;padding:32px 48px;min-height:304px}
.ab-inv-copy{display:flex;flex-direction:column;gap:16px;max-width:600px}
.ab-inv-form{display:flex;flex-direction:column;gap:16px;width:min(712px,50%)}
.ab-inv-row{display:flex;gap:16px;align-items:flex-end}
.ab-inv-row .field{flex:1}
.ab-inv-row .btn{flex:none}

/* ---------- below desktop ---------- */
@media (max-width:1023px){
  .ab-hero .canvas,.canvas{width:auto}
  .ab-opening{display:block;min-height:0;padding-block:48px 40px}
  .ab-copy{width:auto;max-width:640px}
  .ab-photos{position:relative;left:auto;top:auto;width:auto;max-width:640px;height:auto;aspect-ratio:718/620;margin:0 max(var(--gutter),env(safe-area-inset-right,0px)) 64px max(var(--gutter),env(safe-area-inset-left,0px))}
  .ab-photos .fg{width:73%}
  .ab-photos .tr-slot{display:none}
  .ab-photos .tr-static{display:block;position:absolute;left:0;top:40%;width:46%;aspect-ratio:1;z-index:1}
  .ca-traveler--about{display:none}
  .ab-offer{height:auto;padding-block:64px}
  .ab-offer-head{text-align:left;align-items:flex-start}
  .ab-collage{position:relative;inset:auto;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);margin-top:40px;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);padding-top:4px;padding-bottom:8px;scrollbar-width:none}
  .ab-collage::-webkit-scrollbar{display:none}
  .ab-tile{position:relative;left:auto;top:auto;flex:0 0 min(272px,76%);width:min(272px,76%);height:auto;aspect-ratio:248/312;scroll-snap-align:start;order:var(--o)}
  .ab-carousel-ui{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}
  .ab-dots{display:flex;align-items:center;gap:8px}
  .ab-dot{width:8px;height:8px;padding:0;border:0;border-radius:4px;background:var(--slate-pale);cursor:pointer;transition:width .3s var(--ease-out),background-color .3s}
  .ab-dot[aria-current="true"]{width:24px;background:var(--ink)}
  .ab-dot::after{content:"";display:block;width:44px;height:44px;margin:-18px 0 0 -18px}
  .ab-arrows{display:flex;gap:8px}
  .ab-arrow{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--slate-pale);border-radius:50%;background:var(--off-white);color:var(--ink);cursor:pointer}
  .ab-arrow:disabled{opacity:.35;cursor:default}
  .ab-arrow svg{width:20px;height:20px}
  .ab-tile--peer.is-waiting .photo{opacity:1}
  .ab-chip{left:12px;top:auto;bottom:12px;opacity:1;transform:none;font-size:16px;line-height:24px;padding:8px 12px;gap:8px;border-radius:var(--radius-8)}
  .ab-chip svg{width:20px;height:20px}
  .ab-why-row{grid-template-columns:1fr;gap:16px}
  .ab-cols{grid-template-columns:1fr;gap:24px}
  .ab-feature{grid-template-columns:1fr;width:100%}
  .ab-feature .photo{height:auto;aspect-ratio:504/272}
  .ab-feature-copy{padding:32px}
  .ab-pr-intro{flex-direction:column;align-items:flex-start;gap:24px}
  .ab-pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-invite .wrap{padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}
  .ab-inv-panel{flex-direction:column;align-items:stretch;gap:32px}
  .ab-inv-form{width:100%}
}
@media (max-width:759px){
  .ab-opening{padding-block:40px 32px}
  .ab-photos{margin-bottom:48px}
  .ab-copy{gap:24px}
  .ab-copy .head{gap:16px}
  .ab-offer{padding-block:64px}
  .ab-why-inner{gap:40px}
  .ab-feature-copy{padding:24px}
  .ab-pr-inner{gap:40px}
  .ab-pr-grid{grid-template-columns:1fr;gap:16px}
  .ab-pr-tile{min-height:0;padding:24px;gap:16px}
  .ab-invite{padding-block:64px;background:linear-gradient(var(--cool-white) 60%, var(--ink) 60%)}
  .ab-inv-panel{padding:32px 24px}
  .ab-inv-row{flex-direction:column;align-items:stretch}
  .ab-inv-row .btn{width:100%}
}

/* ================= Contact ================= */
.ct{background:var(--mint)}
.ct-grid{display:grid;grid-template-columns:minmax(0,640px) minmax(0,720px);grid-template-areas:"intro form" "route form";column-gap:128px;justify-content:space-between;align-items:start;padding-top:64px;padding-bottom:120px}
.ct .wrap.ct-grid{padding-left:max(120px,env(safe-area-inset-left,0px));padding-right:max(120px,env(safe-area-inset-right,0px))}
.ct-intro{grid-area:intro;display:flex;flex-direction:column;gap:24px;padding-top:32px}
.ct-intro .t-eyebrow,.ct-route .t-eyebrow{color:var(--green-deep)}
.ct-intro .t-feature{max-width:480px}
.ct-route{grid-area:route;display:flex;flex-direction:column;gap:32px;width:min(544px,100%);padding-top:80px}
.ct-route .rule{background:rgba(55,99,69,.24)}
.ct-block{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.ct-block--support{gap:12px}
.ct-form{grid-area:form;display:flex;flex-direction:column;gap:24px;padding:48px;background:var(--off-white);border:1px solid var(--green-deep);border-radius:var(--radius-24)}
.ct-form .head{display:flex;flex-direction:column;gap:8px}
.ct-fields{display:flex;flex-direction:column;gap:24px}
.ct-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.ct-submit{display:flex;flex-direction:column;gap:16px}
.ct-submit .t-ps a{color:var(--green-deep);text-decoration:underline;text-underline-offset:3px}

@media (max-width:1279px){
  .ct-grid{column-gap:64px}
  .ct .wrap.ct-grid{padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}
}
@media (max-width:1023px){
  .ct-grid{grid-template-columns:1fr;grid-template-areas:"intro" "route" "form";row-gap:48px;padding-top:48px;padding-bottom:80px}
  .ct-intro{padding-top:0}
  .ct-route{padding-top:0;width:100%}
}
@media (max-width:759px){
  .ct-grid{row-gap:40px;padding-top:40px;padding-bottom:64px}
  .ct-intro{gap:16px}
  .ct-form{padding:24px;border-radius:var(--radius-16)}
  .ct-pair{grid-template-columns:1fr}
  .ct-route .btn{width:100%}
}

/* contact: Gravity Forms sits inside the card (field styling lives in the theme) */
.ct-form .gform_wrapper{margin:0}
.ct-note{font-size:14px;line-height:22px}
.ct-note a{color:var(--green-deep);text-decoration:underline;text-underline-offset:3px}
.ct-preview-note{padding:12px 16px;border-radius:var(--radius-8);background:var(--lavender-wash);font-size:14px;line-height:22px}
.ct-preview fieldset{border:0;margin:0;padding:0;min-width:0}

/* below 1200 the header is shorter; contact grid keeps its own top spacing */
@media (max-width:1023px){.ct .ct-grid{padding-top:calc(var(--ca-header-h,116px) + 48px)}}
@media (max-width:759px){.ct .ct-grid{padding-top:calc(var(--ca-header-h,116px) + 40px)}}

/* editor canvas: live preview is not interactive (edit in the sidebar) */
.ca-editor-preview a,.ca-editor-preview button,.ca-editor-preview input,.ca-editor-preview select,.ca-editor-preview textarea{pointer-events:none}
/* the editor's heading colour must not override section colours */
.ca-editor-preview :is(h1,h2,h3,h4,h5,h6){color:inherit}
.ca-editor-preview .hm-copy h1{color:var(--white)}
