/* ===================================================================
   Homepage (v2). Styles scoped to body.home so other pages keep
   the shared site.css look until they are reworked.
   Visual direction: the SoundLax deck. Flat dark navy and light grey
   sections, orange pill labels, big uppercase headlines, plain copy.
   Fonts come from site.css: Space Grotesk (headings) and Darker
   Grotesque (body).
   =================================================================== */

body.home{
  --h-navy:#0f151c;
  --h-navy-2:#18212b;
  --h-grey:#e3e6ea;
  --h-orange:#f4552a;
  --h-orange-dark:#d9431c;
  --h-charcoal:#2a2d31;
  --h-charcoal-hover:#43474d;
  --h-on-dark:#f3f4f6;
  --h-muted-dark:rgba(243,244,246,.8);
  --h-line-dark:rgba(255,255,255,.12);
  --h-ink:#0f151c;
  --h-muted-light:#4f5864;
  --h-line-light:rgba(15,21,28,.16);
  --h-head:var(--font-head);
  background:var(--h-navy);
  color:var(--h-on-dark);
}

/* ---------- shared pieces ---------- */
.home .h-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 13px;border-radius:999px;
  background:var(--h-orange);color:#fff;
  font-family:var(--font);font-size:.7rem;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;line-height:1.2;
  margin-bottom:clamp(20px,2.4vw,30px);
}
.home .h-pill.is-light{background:#fff;color:var(--h-ink);}

.home .h-head{
  font-family:var(--h-head);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:-.015em;
  line-height:.9;
  margin:0;
}
.home .h-display{font-size:clamp(3.1rem,9.2vw,8.6rem);}
.home .h-title{font-size:clamp(1.75rem,2.8vw,2.6rem);line-height:.95;}
.home .h-sub{font-size:clamp(1.5rem,2.4vw,2.1rem);line-height:.95;}

.home .h-lead{font-size:clamp(1.05rem,1.4vw,1.25rem);line-height:1.55;max-width:46ch;margin:clamp(22px,2.6vw,34px) 0 0;}

.home .h-section{padding:clamp(88px,12vw,168px) 0;position:relative;}
.home .h-dark{background:var(--h-navy);color:var(--h-on-dark);}
.home .h-dark .h-head{color:var(--h-on-dark);}
.home .h-dark .h-lead,.home .h-dark p{color:var(--h-muted-dark);}
.home .h-grey{background:var(--h-grey);color:var(--h-ink);}
.home .h-grey .h-head{color:var(--h-ink);}
.home .h-grey .h-head.is-orange{color:var(--h-orange);}
.home .h-grey p{color:var(--h-muted-light);}

/* buttons */
.home .h-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(30px,3.4vw,44px);}
.home .h-btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:15px 26px;border-radius:999px;border:1px solid transparent;
  font-family:var(--font);font-size:.98rem;font-weight:600;letter-spacing:-.01em;
  transition:background .25s,border-color .25s,color .25s;
}
.home .h-btn svg{width:17px;height:17px;}
.home .h-btn-primary{background:var(--h-orange);color:#fff;}
.home .h-btn-primary:hover{background:var(--h-orange-dark);}
.home .h-btn-ghost{color:var(--h-on-dark);border-color:rgba(255,255,255,.3);}
.home .h-btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.06);}
.home .h-grey .h-btn-ghost{color:var(--h-ink);border-color:var(--h-line-light);}
.home .h-grey .h-btn-ghost:hover{border-color:var(--h-ink);background:rgba(15,21,28,.05);}
.home .h-btn-dark{background:var(--h-ink);color:#fff;}
.home .h-btn-dark:hover{background:#26303b;}

.home .h-link{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:600;font-size:.98rem;
  border-bottom:1px solid currentColor;padding-bottom:3px;
  transition:gap .25s;
}
.home .h-link:hover{gap:13px;}
.home .h-link svg{width:16px;height:16px;}
.home .h-dark .h-link{color:var(--h-on-dark);}
.home .h-grey .h-link{color:var(--h-ink);}

/* ---------- nav (dark on the homepage) ---------- */
.home .site-nav{background:rgba(15,21,28,.86);border-bottom-color:var(--h-line-dark);}
.home .brand img{filter:none;}
.home .nav-links a{color:var(--h-muted-dark);}
.home .nav-links a:hover,.home .nav-links a[aria-current=page]{color:#fff;}
.home .nav-links .nav-cta{color:#fff;border-color:rgba(255,255,255,.3);border-radius:999px;}
.home .nav-links .nav-cta:hover{background:rgba(255,255,255,.08);border-color:#fff;}
.home .nav-toggle span{background:#fff;}
.home .mobile-menu{background:var(--h-navy);}
.home .mobile-menu a{color:#fff;border-bottom-color:var(--h-line-dark);}
.home .mobile-menu .btn{background:var(--h-orange);border-color:var(--h-orange);color:#fff;border-radius:999px;font-size:1.15rem;letter-spacing:0;padding:16px 30px;border-bottom:0;}

/* ---------- hero ---------- */
.home .h-hero{
  min-height:clamp(600px,92svh,900px);
  display:flex;align-items:flex-end;
  padding:clamp(140px,20vh,220px) 0 clamp(72px,10vh,120px);
}
.home .h-hero .h-display{max-width:12ch;}

/* ---------- selected work ---------- */
.home .h-work{padding-top:clamp(40px,6vw,80px);}
.home .h-section-head{
  display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;
  gap:20px 40px;margin-bottom:clamp(44px,6vw,80px);
}
.home .h-work .work-grid{gap:clamp(48px,6vw,88px) clamp(28px,3vw,44px);}
.home .h-work .thumb-art{background:var(--h-navy-2);border-color:var(--h-line-dark);border-radius:6px;}
.home .h-work .thumb-art .mesh{background:var(--h-navy-2);}
.home .h-work .work-card .cat{
  display:inline-block;margin-top:18px;
  color:var(--h-orange);font-size:.72rem;font-weight:600;letter-spacing:.12em;
}
.home .h-work .work-meta{margin-top:8px;}
.home .h-work .work-meta h3{
  font-family:var(--h-head);font-weight:700;
  text-transform:uppercase;letter-spacing:-.01em;line-height:.95;
  font-size:clamp(1.6rem,2.6vw,2.3rem);color:var(--h-on-dark);
}
.home .h-work .work-meta .yr,.home .h-work .work-card .loc{color:rgba(243,244,246,.45);}
.home .h-work .work-card .desc{color:var(--h-muted-dark);}
.home .h-work .work-card .arrow{color:var(--h-on-dark);}

/* ---------- services ---------- */
.home .h-services-grid{
  display:grid;grid-template-columns:1fr;gap:clamp(40px,5vw,72px);
  margin-top:clamp(48px,6vw,84px);
}
@media(min-width:800px){.home .h-services-grid{grid-template-columns:1fr 1fr;}}
.home .h-service{border-top:2px solid var(--h-ink);padding-top:clamp(22px,2.4vw,30px);}
.home .h-service .h-num{
  display:block;font-size:.8rem;font-weight:600;letter-spacing:.1em;
  color:var(--h-orange);margin-bottom:14px;
}
.home .h-service p{font-size:1.05rem;max-width:44ch;margin:18px 0 26px;}

/* ---------- brands ---------- */
.home .h-brands{padding:0 0 clamp(88px,11vw,150px);}
.home .h-brands-label{
  font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--h-muted-light);margin:0 0 clamp(20px,2.6vw,30px);
  padding-top:clamp(36px,4vw,52px);border-top:1px solid var(--h-line-light);
}
.home .h-brands .client-marquee::before{background:linear-gradient(90deg,var(--h-grey),rgba(227,230,234,0));}
.home .h-brands .client-marquee::after{background:linear-gradient(270deg,var(--h-grey),rgba(227,230,234,0));}
.home .h-brands .client-logo img{mix-blend-mode:multiply;}

/* ---------- about ---------- */
.home .h-about-grid{display:grid;grid-template-columns:1fr;gap:clamp(28px,5vw,80px);align-items:start;}
@media(min-width:900px){.home .h-about-grid{grid-template-columns:1fr 1fr;}}
.home .h-about-body p{font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.6;max-width:50ch;margin:0 0 1.2rem;}
.home .h-about-body p:first-child{color:var(--h-on-dark);}

/* ---------- close ---------- */
.home .h-close .h-title{max-width:11ch;}
.home .h-close .h-lead{max-width:44ch;}
.home .h-small{margin-top:22px;font-size:.95rem;}
.home .h-small a{color:var(--h-ink);border-bottom:1px solid var(--h-line-light);}
.home .h-small a:hover{border-color:var(--h-ink);}

/* ---------- footer (dark on the homepage) ---------- */
.home .site-footer{background:var(--h-navy);border-top:1px solid var(--h-line-dark);}
.home .site-footer::before{display:none;}
.home .footer-brand .brand img{filter:none;}
.home .footer-brand p,.home .footer-col h5,.home .footer-bottom{color:rgba(243,244,246,.5);}
.home .footer-col a{color:var(--h-on-dark);}
.home .footer-col a:hover{color:var(--h-orange);}
.home .footer-bottom{border-top-color:var(--h-line-dark);}

@media(max-width:600px){
  .home .h-hero{min-height:auto;}
  .home .h-btn{padding:14px 22px;}
}

/* four featured cards: full, half, half, full */
@media(min-width:760px){
  .home .h-work .work-grid .work-card:nth-child(4n){grid-column:1 / -1;}
  .home .h-work .work-grid .work-card:nth-child(4n) .thumb-art{aspect-ratio:21/9;}
}

/* one-colour logo row on the grey band (also fixes white-text logos) */
.home .h-brands .client-logo img,
.home .h-brands .client-logo img.logo-light{filter:brightness(0) opacity(.62);mix-blend-mode:normal;}
/* hover: the logo darkens a little and lifts (the row already pauses on hover) */
.home .h-brands .client-logo img{transition:filter .3s ease,transform .3s ease;}
@media(hover:hover){
  .home .h-brands .client-logo:hover img{filter:brightness(0) opacity(.9);transform:translateY(-3px) scale(1.04);}
}

/* ---------- body text sizing for Darker Grotesque ----------
   It has a small x-height, so body copy runs about 20% larger
   than it would in a standard sans. */
.home .h-pill{font-size:.8rem;font-weight:700;}
.home .h-lead{font-size:clamp(1.3rem,1.7vw,1.6rem);line-height:1.4;}
.home .h-btn{font-size:1.12rem;font-weight:700;}
.home .h-link{font-size:1.12rem;font-weight:700;}
.home .h-service p{font-size:1.3rem;line-height:1.4;}
.home .h-about-body p{font-size:clamp(1.3rem,1.6vw,1.55rem);line-height:1.4;}
.home .h-work .work-card .cat{font-size:.82rem;font-weight:700;}
.home .h-work .work-card .loc{font-size:1.05rem;}
.home .h-work .work-card .desc{font-size:1.25rem;line-height:1.4;}
.home .h-work .work-card .arrow{font-size:1.1rem;font-weight:700;}
.home .h-work .work-meta .yr{font-size:1rem;}
.home .h-service .h-num,.home .h-brands-label{font-size:.85rem;font-weight:700;}
.home .h-small{font-size:1.15rem;}
.home .nav-links a{font-size:.92rem;font-weight:600;}
.home .footer-brand p{font-size:1.15rem;line-height:1.4;}
.home .footer-col a{font-size:1.1rem;}
.home .footer-col h5{font-size:.8rem;}
.home .footer-bottom{font-size:1rem;}

/* Pills use Space Grotesk: Darker Grotesque's tall ascent makes the
   space above capitals bigger than below, so pills looked top-heavy. */
.home .h-pill{font-family:var(--font-head);font-size:.72rem;font-weight:600;letter-spacing:.08em;padding:6px 12px;line-height:1.2;}
.home .h-dark .h-pill,.home .h-grey .h-pill{color:#fff;}
.home .h-pill.is-light,.home .h-dark .h-pill.is-light{color:var(--h-ink);}

/* Light sections: headings in dark grey, accents (pills, highlights,
   chips, numbers, buttons) stay orange. */
.home .h-grey .h-head,.home .h-grey .h-head.is-orange{color:var(--h-charcoal);}

/* services call to action (Oct 2026) */
.home .h-services-cta{margin-top:clamp(36px,4vw,56px);}

/* ===== 16 Oct 2026: slimmer uppercase buttons, smaller homepage headings, jellyfish hero ===== */
.home .h-btn{
  font-family:var(--h-head);font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:12px 22px;line-height:1.2;
}
@media(max-width:700px){ .home .h-btn{padding:11px 18px;} }
.home .mobile-menu .btn{font-family:var(--h-head);font-size:.85rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:13px 24px;}

/* homepage only: calmer heading sizes */
.home.is-index .h-display{font-size:clamp(2.5rem,5.4vw,5rem);line-height:.95;max-width:17ch;}
.home.is-index .h-title{font-size:clamp(1.75rem,2.8vw,2.6rem);}
.home.is-index .h-close .h-title{max-width:14ch;}
.home.is-index .h-sub{font-size:clamp(1.3rem,1.9vw,1.7rem);}

/* moon jellyfish drifting behind the hero text */
.home .h-hero{position:relative;overflow:hidden;}
.home .h-hero > .container{position:relative;z-index:2;}
.home .jelly-layer{position:absolute;inset:0;z-index:1;pointer-events:none;animation:jellyIn 2.4s ease both;}
.home .jelly-layer .jelly{position:absolute;left:0;top:0;background:no-repeat center/contain;will-change:transform;transform-origin:50% 35%;}
@keyframes jellyIn{from{opacity:0;}to{opacity:1;}}

/* Hero illustration (16 Oct 2026): Ben's portrait poster on its own violet.
   The hero takes the poster's background colour so the artwork has no edges,
   and fades into the navy of the next section. */
.home .h-hero.has-art{background:#1b0d29;}
.home .h-hero.has-art::after{content:"";position:absolute;left:0;right:0;bottom:0;height:120px;background:linear-gradient(to bottom,rgba(15,21,28,0),var(--h-navy));pointer-events:none;z-index:1;}
.home .h-hero-art{position:absolute;z-index:1;pointer-events:none;user-select:none;
  right:max(-2vw,calc((100vw - 1400px) / 2 - 40px));top:50%;height:min(92%,860px);width:auto;max-width:48vw;object-fit:contain;
  transform:translateY(-46%);animation:artIn 1.4s cubic-bezier(.2,.7,.2,1) both, artFloat 9s ease-in-out 1.4s infinite;}
@keyframes artIn{from{opacity:0;transform:translateY(-42%) scale(.97);}to{opacity:1;transform:translateY(-46%);}}
@keyframes artFloat{0%,100%{transform:translateY(-46%);}50%{transform:translateY(-47.5%) rotate(-.6deg);}}
@media(min-width:901px){ .home.is-index .h-hero.has-art .h-display{max-width:15ch;font-size:clamp(2.5rem,4.6vw,4.8rem);text-wrap:balance;} .home .h-hero.has-art .h-lead{max-width:40ch;} }
@media(max-width:900px){
  .home .h-hero.has-art{flex-direction:column;align-items:stretch;justify-content:flex-end;padding-top:96px;}
  .home .h-hero-art{position:relative;right:auto;top:auto;transform:none;animation:artInM 1.2s ease both;
    height:auto;width:min(80%,420px);max-width:none;margin:0 auto -6%;display:block;}
  @keyframes artInM{from{opacity:0;}to{opacity:1;}}
}
@media(prefers-reduced-motion:reduce){ .home .h-hero-art{animation:none;} }

/* ===== Hero background (17 Oct 2026, v3): photographic space scene, assets/space.js =====
   The hero is pinned inside .hero-track while the view moves in towards the
   planet; the work section then slides up over it with a soft dark edge. */
.home .hero-track{position:relative;height:130svh;}
.home .hero-track > .h-hero.has-space{
  position:sticky;top:0;height:100svh;min-height:600px;
  background:#030407;overflow:hidden;z-index:0;
}
.home .h-space{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.home .h-space > *,.home .h-planet-wrap > *{position:absolute;}
.home .h-starfield{inset:0;width:100%;height:100%;object-fit:cover;opacity:.16;will-change:transform;}
/* darker behind the headline so it stays easy to read */
.home .h-space::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,4,7,.62) 0%,rgba(3,4,7,.3) 45%,rgba(3,4,7,0) 70%);}
.home .h-stars,.home .h-moon{left:0;top:0;will-change:transform;}
.home .h-moon{z-index:3;}
.home .h-planet,.home .h-fx{left:0;top:0;z-index:2;}
.home .h-planet{opacity:0;transition:opacity 1.6s ease;}
.home .h-space.is-ready .h-planet{opacity:1;}
.home .h-starfield{opacity:0;transition:opacity 1.6s ease;}
.home .h-space.is-ready .h-starfield{opacity:.16;}
.home .hero-track .h-hero.has-space > .container{position:relative;z-index:4;will-change:transform,opacity;}
/* the next section slides over the pinned hero */
.home .hero-track + .h-work{position:relative;z-index:1;margin-top:-22svh;
  background:linear-gradient(to bottom,rgba(15,21,28,0) 0,rgba(15,21,28,.85) 14svh,var(--h-navy) 30svh);}
@media(prefers-reduced-motion:reduce){
  .home .hero-track{height:auto;}
  .home .hero-track > .h-hero.has-space{position:relative;}
  .home .hero-track + .h-work{margin-top:0;background:var(--h-navy);}
}

.home .hero-track + .h-work > .container{will-change:transform,opacity;}
@media(prefers-reduced-motion:reduce){ .home .hero-track + .h-work > .container{transform:none!important;opacity:1!important;} }


/* footer: a quiet version of the hero (stars, planet edge), no motion */
.home .site-footer{position:relative;overflow:hidden;isolation:isolate;background:#04060a;border-top:1px solid var(--h-line-dark);}
.home .site-footer::before{display:block;content:"";position:absolute;inset:0;z-index:0;left:0;right:0;top:0;height:auto;filter:none;animation:none;transform:none;
  background:url(/assets/img/space/stars.webp) center/cover no-repeat;opacity:.14;}
.home .site-footer::after{content:"";position:absolute;z-index:0;pointer-events:none;
  width:min(62vw,820px);aspect-ratio:1;right:max(-18vw,-260px);bottom:calc(min(62vw,820px) * -0.62);
  background:url(/assets/img/space/planet-sm.webp) center/contain no-repeat;opacity:.95;}
.home .site-footer .container{position:relative;z-index:1;}
@media(max-width:700px){ .home .site-footer::after{width:110vw;right:-48vw;bottom:-78vw;opacity:.8;} }

/* services: four ways to work together, with detail (17 Oct 2026) */
.home .h-svc-more{margin:0 0 22px;max-width:46ch;border-top:1px solid var(--h-line-light);border-bottom:1px solid var(--h-line-light);}
.home .h-svc-more summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;
  font-family:var(--font-head);font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--h-ink);}
.home .h-svc-more summary::-webkit-details-marker{display:none;}
.home .h-svc-more summary::after{content:"";flex:none;width:12px;height:12px;
  background:linear-gradient(currentColor,currentColor) center/12px 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 12px no-repeat;
  transition:transform .25s ease;}
.home .h-svc-more[open] summary::after{transform:rotate(45deg);}
.home .h-svc-more summary:hover{color:var(--h-orange);}
.home .h-svc-more summary:focus-visible{outline:2px solid var(--h-orange);outline-offset:4px;}
.home .h-svc-more .h-svc-list{margin:0 0 6px;border-top:1px solid var(--h-line-light);}
.home .h-svc-more .h-svc-list li:last-child{border-bottom:0;}
.home .h-svc-list{list-style:none;margin:0 0 22px;padding:0;max-width:46ch;}
.home .h-svc-list li{position:relative;padding:11px 0 11px 22px;border-bottom:1px solid var(--h-line-light);font-size:1.12rem;line-height:1.35;}
.home .h-svc-list li::before{content:"";position:absolute;left:2px;top:1.05em;width:8px;height:2px;background:var(--h-orange);}
.home .h-service .h-svc-start{font-size:1.08rem;line-height:1.4;margin:0;color:var(--h-muted-light);}
.home .h-service .h-svc-start strong{display:block;color:var(--h-ink);font-weight:700;margin-bottom:2px;}
.home .h-about-links{margin-top:clamp(18px,2.4vw,30px);}

/* logo: inline on the homepage so the star can move (18 Oct 2026) */
.home .site-nav .brand .bj-logo{display:block;height:35px;width:auto;aspect-ratio:4076/1275;overflow:visible;}
@media(max-width:560px){ .home .site-nav .brand .bj-logo{height:29px;} }
.home .bj-logo .bj-star{transform-box:fill-box;transform-origin:50% 50%;}
.home .bj-logo.is-pending .bj-star{transform:scale(1.6) rotate(-200deg);}
.home .bj-logo.is-intro .bj-star{animation:bjStar 1.1s cubic-bezier(.22,1,.36,1) .1s both;}
@keyframes bjStar{from{transform:scale(1.6) rotate(-200deg);}to{transform:none;}}

/* hero text: leaves together on scroll down, returns one element at a time (18 Oct 2026) */
.home .h-hero.has-space .container > *{transition:opacity .7s ease,transform .9s cubic-bezier(.22,1,.36,1);}
.home .h-hero.has-space .container > :nth-child(2){transition-delay:.08s;}
.home .h-hero.has-space .container > :nth-child(3){transition-delay:.2s;}
.home .h-hero.has-space .container > :nth-child(4){transition-delay:.32s;}
.home .h-hero.has-space .container.is-away{pointer-events:none;}
.home .h-hero.has-space .container.is-away > *{opacity:0;transform:translate3d(0,-28px,0);transition-duration:.35s,.45s;transition-delay:0s;}
@media(prefers-reduced-motion:reduce){ .home .h-hero.has-space .container > *{transition:none;} }

/* ---------- newsletter band under "Have a project in mind?" (Kit, Oct 2026) ---------- */
.home .h-close:has(+ .h-news){padding-bottom:clamp(40px,5vw,64px);}
.home .h-news{padding:0 0 clamp(48px,6vw,80px);}
.home .h-news-grid{display:grid;grid-template-columns:1fr;gap:20px clamp(32px,5vw,80px);align-items:center;position:relative;padding-top:clamp(28px,3.5vw,44px);}
@media(min-width:900px){.home .h-news-grid{grid-template-columns:1fr 1fr;}}
.home .h-news-grid::before{content:"";position:absolute;top:0;left:var(--gutter);right:var(--gutter);border-top:1px solid var(--h-line-light);}
.home .h-news-title{font-size:clamp(1.3rem,1.9vw,1.7rem);line-height:.95;}
.home .h-grey .h-news-title{color:var(--h-charcoal);}
.home .h-news-copy p{font-size:1.15rem;line-height:1.45;max-width:44ch;margin:12px 0 0;}
.home .h-news-form{margin:0;}
.home .h-news-form .formkit-fields{display:flex;flex-wrap:wrap;gap:10px;}
.home .h-news-form .formkit-input{flex:1 1 220px;min-width:0;font-family:var(--font);font-size:1.1rem;font-weight:500;color:var(--h-ink);background:#fff;border:1px solid var(--h-line-light);border-radius:999px;padding:10px 20px;line-height:1.2;transition:border-color .2s;}
.home .h-news-form .formkit-input::placeholder{color:#7a828c;opacity:1;}
.home .h-news-form .formkit-input:focus{outline:none;border-color:var(--h-ink);}
.home .h-news-form .formkit-submit{flex:0 0 auto;justify-content:center;cursor:pointer;}
.home .h-news-form .formkit-submit[data-active]{opacity:.6;cursor:progress;}
.home .h-news-form .formkit-spinner{display:none;}
.home .h-grey .h-news-note{margin:10px 0 0 20px;font-size:.95rem;color:var(--h-muted-light);}
.home .h-news-form .formkit-alert{list-style:none;margin:0 0 10px;padding:10px 16px;border-radius:12px;font-size:1.05rem;}
.home .h-news-form .formkit-alert:empty{display:none;}
.home .h-news-form .formkit-alert-error{background:#fde8e2;color:#a8300f;border:1px solid #f2a58e;}
.home .h-news-form .formkit-alert-success{background:#e3f5ec;color:#11633f;border:1px solid #9fd8bb;}
@media(max-width:520px){.home .h-news-form .formkit-submit{flex:1 1 100%;}.home .h-grey .h-news-note{margin-left:0;}}

/* ===== Hero spacing (2 Nov 2026) =====
   The text was bottom-aligned, so on a laptop screen it pushed up against the
   nav. Now it sits in the middle of the space under the nav, and the headline
   also scales with the screen height. */
.home .hero-track > .h-hero.has-space{
  align-items:center;
  padding:calc(74px + clamp(40px,8svh,96px)) 0 clamp(48px,8svh,96px);
}
.home.is-index .h-hero.has-space .h-display{font-size:clamp(2.4rem,min(5.4vw,8.6svh),5rem);}
.home .h-hero.has-space .h-lead{margin-top:clamp(18px,3svh,34px);}
.home .h-hero.has-space .h-actions{margin-top:clamp(24px,4svh,44px);}
@media(max-width:600px){
  .home .hero-track > .h-hero.has-space{padding-top:calc(74px + 32px);}
}

/* ===== See all work + Product work (2 Nov 2026) ===== */
.home .h-work{padding-bottom:clamp(56px,7vw,104px);}
.home .h-apps{padding-top:clamp(56px,7vw,104px);border-top:1px solid var(--h-line-dark);}
.home .h-apps-head .h-lead{max-width:44ch;}
.home .h-apps-grid{display:grid;grid-template-columns:1fr;gap:clamp(16px,2vw,28px);margin-top:clamp(36px,4.5vw,64px);}
@media(min-width:900px){.home .h-apps-grid{grid-template-columns:1fr 1fr;}}
.home .h-app{
  display:flex;gap:clamp(18px,2vw,28px);align-items:flex-start;
  padding:clamp(22px,2.6vw,36px);border-radius:20px;
  background:rgba(255,255,255,.035);border:1px solid var(--h-line-dark);
  color:inherit;text-decoration:none;
  transition:background .3s ease,border-color .3s ease;
}
.home .h-app:hover,.home .h-app:focus-visible{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.28);}
.home .h-app-icon{flex:0 0 auto;width:clamp(64px,6vw,88px);height:auto;aspect-ratio:1;border-radius:22%;box-shadow:0 8px 24px rgba(0,0,0,.35);}
.home .h-app-text{min-width:0;}
.home .h-dark .h-app-meta{margin:0 0 8px;font-family:var(--font-head);font-size:.72rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:rgba(243,244,246,.55);}
.home .h-app .h-sub{margin:0 0 12px;}
.home .h-dark .h-app-text > p:not(.h-app-meta){margin:0;font-size:clamp(1.05rem,1.25vw,1.2rem);line-height:1.45;max-width:46ch;}
.home .h-app-link{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-family:var(--font-head);font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--h-on-dark);}
.home .h-app-link svg{width:16px;height:16px;opacity:.6;transition:transform .3s ease,opacity .3s ease;}
.home .h-app:hover .h-app-link svg,.home .h-app:focus-visible .h-app-link svg{opacity:1;transform:translate(3px,-3px);}
@media(max-width:520px){.home .h-app{flex-direction:column;}}

/* ===== Hero device mockups (14 Nov 2026, v2) =====
   See-through outline browser and phone over the planet, side by side.
   Layers: .h-devices (leaves with the hero text on scroll)
           .hd-stage  (entrance, perspective)
           .hd-float  (slow float with a little 3D sway)
           .hd-obj    (tilt under the pointer, hero-devices.js)
   Inside the browser a design cursor selects the hero block, then a card.
   Wide screens only; no motion with reduced motion. */
.home .h-devices{display:none;}
@media(min-width:1100px){
.home .h-devices{display:block;position:absolute;z-index:3;right:max(3.5vw,calc((100vw - 1260px)/2));top:50%;
  width:min(45vw,720px);aspect-ratio:100/48;transform:translateY(-46%);pointer-events:none;
  transition:opacity .7s ease,transform .9s cubic-bezier(.22,1,.36,1);}
.home .h-hero:has(.container.is-away) .h-devices{opacity:0;transform:translateY(calc(-46% - 48px)) scale(.97);}
.home .hd-stage{position:absolute;inset:0;perspective:1300px;animation:hdIn 1.4s cubic-bezier(.16,1,.3,1) .5s both;}
.home .hd-float{position:absolute;transform-style:preserve-3d;}
.home .hd-f1{left:0;top:0;width:76%;aspect-ratio:16/10;animation:hdSway1 9s ease-in-out 2s infinite;}
.home .hd-f2{right:0;top:15%;width:19%;aspect-ratio:9/19;animation:hdSway2 10s ease-in-out 2.6s infinite;}
.home .hd-obj{position:absolute;inset:0;pointer-events:auto;transform-style:preserve-3d;will-change:transform;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--tz,0px));}

.home .hd-browser,.home .hd-phone{position:absolute;inset:0;overflow:hidden;border:1.75px solid rgba(255,255,255,.46);background:rgba(255,255,255,.03);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 30px 80px -30px rgba(0,0,0,.65);}
.home .hd-browser{border-radius:14px;}
.home .hd-phone{border-radius:24px;background:rgba(8,10,14,.18);}
.home .hd-bar{position:absolute;left:0;right:0;top:0;height:8.5%;display:flex;align-items:center;gap:7px;padding:0 2.4%;
  border-bottom:1.5px solid rgba(255,255,255,.26);background:rgba(255,255,255,.035);}
.home .hd-bar i{width:9px;height:9px;border-radius:50%;border:1.5px solid rgba(255,255,255,.5);}

/* a light sheen that follows the pointer while it is over a device */
.home .hd-glare{position:absolute;inset:0;pointer-events:none;opacity:var(--go,0);transition:opacity .4s ease;
  background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.16),rgba(255,255,255,0) 55%);}

/* skeleton shapes: firmer outlines and soft fills */
.home .hd-sk{position:absolute;border-radius:4px;background:rgba(255,255,255,.16);transform-origin:left center;animation:hdDraw .9s cubic-bezier(.16,1,.3,1) both;}
.home .hd-logo{left:5%;top:14%;width:9%;height:3%;background:rgba(255,255,255,.38);animation-delay:1s;}
.home .hd-link1{left:62%;top:14.6%;width:7%;height:1.8%;animation-delay:1.05s;}
.home .hd-link2{left:72%;top:14.6%;width:7%;height:1.8%;animation-delay:1.1s;}
.home .hd-navbtn{left:83%;top:13.2%;width:11%;height:4.4%;border-radius:999px;background:none;border:1.5px solid rgba(255,255,255,.42);animation-delay:1.15s;}
.home .hd-l1{left:8%;top:29%;width:44%;height:6.4%;background:rgba(255,255,255,.4);animation-delay:1.2s;}
.home .hd-l2{left:8%;top:38%;width:34%;height:6.4%;background:rgba(255,255,255,.4);animation-delay:1.28s;}
.home .hd-l3{left:8%;top:48.5%;width:30%;height:1.9%;animation-delay:1.36s;}
.home .hd-l4{left:8%;top:52.4%;width:24%;height:1.9%;animation-delay:1.42s;}
.home .hd-cta1{left:8%;top:58.5%;width:11%;height:5%;border-radius:999px;background:rgba(244,85,42,.8);animation-delay:1.5s;}
.home .hd-cta2{left:21%;top:58.5%;width:11%;height:5%;border-radius:999px;background:none;border:1.5px solid rgba(255,255,255,.42);animation-delay:1.56s;}
.home .hd-card{top:70%;width:26.5%;height:22%;border-radius:6px;background:rgba(255,255,255,.05);border:1.5px solid rgba(255,255,255,.32);transform-origin:center bottom;}
.home .hd-c1{left:5%;animation-delay:1.65s;}
.home .hd-c2{left:36.75%;animation-delay:1.75s;}
.home .hd-c3{left:68.5%;animation-delay:1.85s;}

/* design cursor and selection box (10s loop). The selection sits just
   outside each shape: the hero block (x 8-52%, y 29-63.5%) and the first
   card (x 5-31.5%, y 70-92%). */
.home .hd-select{position:absolute;border:1.5px solid #F4552A;border-radius:3px;opacity:0;animation:hdSelect 10s ease-in-out 3s infinite;}
.home .hd-select i{position:absolute;width:7px;height:7px;background:#fff;border:1.5px solid #F4552A;}
.home .hd-select i:nth-child(1){left:-4.5px;top:-4.5px;}.home .hd-select i:nth-child(2){right:-4.5px;top:-4.5px;}
.home .hd-select i:nth-child(3){left:-4.5px;bottom:-4.5px;}.home .hd-select i:nth-child(4){right:-4.5px;bottom:-4.5px;}
.home .hd-cursor{position:absolute;width:15px;height:19px;left:0;top:0;opacity:0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5));animation:hdCursor 10s ease-in-out 3s infinite;}

/* phone: SoundLax-style tiles, one warm tile breathing, a player bar */
.home .hd-island{position:absolute;left:50%;top:3.2%;width:30%;height:3.2%;transform:translateX(-50%);border-radius:999px;background:rgba(255,255,255,.3);}
.home .hd-p1{left:10%;top:13%;width:55%;height:3.4%;background:rgba(255,255,255,.4);animation-delay:1.9s;}
.home .hd-p2{left:10%;top:18.5%;width:38%;height:2%;animation-delay:1.95s;}
.home .hd-tile{width:37%;height:19%;border-radius:8px;background:rgba(255,255,255,.07);border:1.5px solid rgba(255,255,255,.32);transform-origin:center;}
.home .hd-t1{left:10%;top:26%;animation-delay:2s;}
.home .hd-t2{left:53%;top:26%;background:rgba(244,85,42,.34);border-color:rgba(244,85,42,.75);animation:hdDraw .9s cubic-bezier(.16,1,.3,1) 2.06s both,hdBreathe 4s ease-in-out 3.2s infinite;}
.home .hd-t3{left:10%;top:48%;animation-delay:2.12s;}
.home .hd-t4{left:53%;top:48%;animation-delay:2.18s;}
.home .hd-player{left:10%;top:82%;width:80%;height:8%;border-radius:999px;background:none;border:1.5px solid rgba(255,255,255,.36);overflow:hidden;animation-delay:2.25s;}
.home .hd-player b{position:absolute;left:0;top:0;bottom:0;width:100%;background:rgba(255,255,255,.16);transform-origin:left;animation:hdPlay 12s linear 2.6s infinite;}
}

@keyframes hdIn{from{opacity:0;transform:translate3d(0,40px,0) scale(.96);}to{opacity:1;transform:none;}}
/* slow float with a slight turn, so the frames read as objects in space */
@keyframes hdSway1{0%,100%{transform:translate3d(0,0,0) rotateY(-4deg) rotateX(2deg);}50%{transform:translate3d(0,-10px,0) rotateY(3deg) rotateX(-1.5deg);}}
@keyframes hdSway2{0%,100%{transform:translate3d(0,-6px,0) rotateY(6deg) rotateX(-2deg);}50%{transform:translate3d(0,8px,0) rotateY(-3deg) rotateX(2deg);}}
@keyframes hdDraw{from{opacity:0;transform:scaleX(.2);}to{opacity:1;transform:none;}}
@keyframes hdBreathe{0%,100%{opacity:1;}50%{opacity:.55;}}
@keyframes hdPlay{from{transform:scaleX(0);}to{transform:scaleX(1);}}
@keyframes hdSelect{
  0%,14%{opacity:0;left:6.6%;top:26.6%;width:46.8%;height:39.3%;}
  20%,44%{opacity:1;left:6.6%;top:26.6%;width:46.8%;height:39.3%;}
  54%,82%{opacity:1;left:4%;top:68.4%;width:28.5%;height:25.2%;}
  90%,100%{opacity:0;left:4%;top:68.4%;width:28.5%;height:25.2%;}
}
@keyframes hdCursor{
  0%{opacity:0;left:72%;top:40%;}
  6%{opacity:1;left:72%;top:40%;}
  16%{left:46%;top:56%;transform:none;}
  18%{transform:scale(.85);}
  20%,40%{left:46%;top:56%;transform:none;}
  52%{left:22%;top:82%;transform:none;}
  54%{transform:scale(.85);}
  56%,80%{left:22%;top:82%;transform:none;}
  90%{opacity:1;left:42%;top:66%;}
  100%{opacity:0;left:42%;top:66%;}
}
@media(prefers-reduced-motion:reduce){
  .home .hd-stage,.home .hd-float,.home .hd-sk,.home .hd-player b{animation:none!important;}
  .home .hd-select,.home .hd-cursor,.home .hd-glare{display:none;}
}
/* the hero text box spans the full width above the mockups, so let the
   pointer pass through it to the devices; links and buttons still work */
@media(min-width:1100px){
  .home .h-hero.has-space > .container,.home .h-hero.has-space > .container *{pointer-events:none;}
  .home .h-hero.has-space > .container a,.home .h-hero.has-space > .container button{pointer-events:auto;}
}
