/* Jungle Haus site: the open layout. Lane A - open layout build,
   2026-10-23, from Lane F's approved direction and four storyboards
   (working/website/three-steps-motion-2026-10-22/, approved 10-22): full-
   screen bands, one statement line per big moment, three tall steps with
   one panel, "What you can expect" on a full forest screen, "What you get"
   in three cards, and a soft green light with fine grain. Built only from
   tokens.css values; green stays the only color. */

/* ---------- Full-screen bands (rule 1) ---------- */
/* The dark and forest bands fill at least one screen, content centered.
   Still at most two before the footer. */
.jh-full { display: grid; align-content: center; min-height: 100vh; min-height: 100svh; }
/* On short desktop screens the band's space shrinks with the window's
   height, so the whole band fits on one screen: the section space (160)
   at 900 px tall and more, about 92 at 768, never under 72 (review 10-25,
   R7: Home's dark band was 819 px at 1024 × 768). Phones keep 72. */
.jh-section.jh-full { padding-block: min(var(--section-space), clamp(72px, 51.5vh - 303px, 160px)); }

/* ---------- The soft green light (rule 5) ---------- */
/* A slow green gradient with fine grain behind a statement line. It drifts
   once, over 9 s, the first time the band comes into view (open.js), then
   rests: no loop, so no Pause/Play (Lane B pass 2, Business Q6 10-23). It
   rests from the start under reduced motion. */
.jh-light-band { isolation: isolate; overflow: hidden; }
.jh-light-band > .jh-wrap { position: relative; z-index: 1; }
.jh-light-band::before {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 36%, rgb(95 166 126 / .30), rgb(95 166 126 / 0) 70%),
    radial-gradient(34% 40% at 74% 66%, rgb(140 203 165 / .16), rgb(140 203 165 / 0) 70%),
    radial-gradient(50% 50% at 50% 50%, rgb(57 123 88 / .18), rgb(57 123 88 / 0) 75%);
  animation: jh-light-drift 9s var(--ease-soft) 1 both;
  animation-play-state: paused;
}
.jh-light-band[data-theme="dark"]::before { opacity: .55; }
.jh-light-band.is-inview::before { animation-play-state: running; }
.jh-light-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .96 0 0 0 0 .94 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}
@keyframes jh-light-drift { to { transform: translate3d(7%, -5%, 0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .jh-light-band::before { animation: none; } }

/* ---------- Statement line (rule 2) ---------- */
.jh-statement-line {
  margin: 0; max-width: 14ch;
  font-family: var(--font-display); font-size-adjust: var(--font-display-adjust); font-weight: var(--weight-display);
  font-size: var(--text-statement); line-height: var(--leading-statement); letter-spacing: var(--tracking-statement);
  text-wrap: balance;
}
.jh-statement-head { display: grid; justify-items: center; gap: var(--space-24); }
.jh-statement-head .jh-lead { margin: 0; max-width: 40ch; color: var(--text-muted); }

/* A centered statement over three calm columns, each under a thin rule
   (storyboard 3; also Home's dark band and About's forest band). */
.jh-expect { display: grid; justify-items: center; gap: var(--space-112); text-align: center; }
.jh-expect-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-40); width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.jh-expect-item { margin: 0; padding-top: var(--space-24); border-top: var(--stroke-hairline) solid var(--line); font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--text-muted); text-wrap: pretty; }
.jh-expect-item p { margin: 0; }
.jh-expect-item .jh-expect-lead { margin-bottom: var(--space-16); font-family: var(--font-display); font-size: var(--text-heading-sm); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); font-weight: var(--weight-display); color: var(--text); text-wrap: balance; }
p.jh-expect-item { font-size: var(--text-lead); color: var(--text); }
.jh-expect .jh-beliefs { width: 100%; text-align: left; }
@container jh (max-width: 900px) {
  .jh-expect-items { grid-template-columns: 1fr; gap: var(--space-32); }
  .jh-expect-item .jh-expect-lead { font-size: var(--text-subheading); }
  .jh-expect-item { font-size: var(--text-body); }
  p.jh-expect-item { font-size: var(--text-body-lg); }
}

/* ---------- Three tall steps (storyboard 2) ---------- */
.jh-tall { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-40) var(--space-112); align-items: start; }
.jh-tall-head { position: sticky; top: calc(var(--header-height) + var(--space-32)); display: grid; gap: var(--space-40); }
.jh-tall-title { display: grid; gap: var(--space-20); }
.jh-tall-title > * { margin: 0; }
.jh-tall-steps { margin: 0; padding: 0; list-style: none; counter-reset: jh-tall; }
.jh-tall-step {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--space-24); align-content: start;
  padding-block: var(--space-40) var(--space-56); border-top: var(--stroke-hairline) solid var(--line);
  counter-increment: jh-tall;
}
.jh-tall-step:last-child { padding-bottom: 0; }
.jh-tall--panel .jh-tall-step { min-height: 48vh; }
.jh-tall--panel .jh-tall-step:last-child { min-height: 0; padding-bottom: var(--section-space); }
.jh-tall-step::before {
  content: counter(jh-tall); grid-row: 1 / span 12;
  font-family: var(--font-display); font-weight: var(--weight-display); font-size: 72px; line-height: 1; letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums; color: var(--accent);
  transition: opacity var(--duration-enter) var(--ease-soft);
}
.jh-tall-step > * { grid-column: 2; margin: 0; }
.jh-tall-step-title { font-family: var(--font-display); font-size: var(--text-heading-sm); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); font-weight: var(--weight-display); text-wrap: balance; }
.jh-tall-step p { margin-top: var(--space-12); max-width: var(--measure); font-size: var(--text-body-lg); color: var(--text-muted); text-wrap: pretty; }
.jh-tall-step .jh-tall-more { font-size: var(--text-body); }
/* With motion, the numbers of the rows not in view rest at 55% (Business
   Q19 10-23); their words stay at full strength to keep 4.5:1 (Q1 10-25). */
.jh-tall.is-armed .jh-tall-step:not(.is-current)::before { opacity: .55; }
.jh-tall-after { margin-top: var(--space-56); }
.jh-tall-after .jh-need { margin-top: 0; }
@container jh (max-width: 900px) {
  .jh-tall { grid-template-columns: minmax(0, 1fr); }
  .jh-tall-head { display: contents; }
  .jh-tall-step { grid-template-columns: 64px minmax(0, 1fr); padding-block: var(--space-32); }
  .jh-tall--panel .jh-tall-step { min-height: 0; }
  .jh-tall-step::before { font-size: 44px; }
  .jh-tall-step-title { font-size: var(--text-subheading); }
  /* Not pinned: pinned, it covered 36% of a phone's screen and 52% of a
     tablet's (review 10-25, R4). It shows once under the heading and plays
     its three frames by itself when it comes into view (open.js reads
     --panel-auto). */
  .jh-tall .jh-shot-panel { position: relative; width: 100%; max-width: 480px; margin-inline: auto; --panel-auto: 1; }
}

/* ---------- The steps panel ---------- */
.jh-shot-panel {
  position: relative; margin: 0; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden;
  border-radius: var(--radius-card); background: var(--neutral-50); color: var(--neutral-ink);
  box-shadow: var(--shadow-panel), inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
.jh-panel-state { position: absolute; inset: 0; opacity: 0; transition: opacity var(--duration-enter) var(--ease-in-out); }
.jh-shot-panel[data-active="1"] .jh-panel-form,
.jh-shot-panel:not([data-active="1"]) .jh-panel-home { opacity: 1; }
/* 1: the short application, cropped; two fields fill. */
.jh-panel-form { display: grid; align-content: center; gap: 4cqw; padding: 0 8cqw; background: var(--neutral-100); }
.jh-panel-field { display: grid; gap: 1.6cqw; }
.jh-panel-label { font-size: 2.9cqw; font-weight: var(--weight-emphasis); color: var(--neutral-650); }
.jh-panel-input { display: flex; align-items: center; height: 8.4cqw; padding: 0 3cqw; border-radius: 1.6cqw; background: var(--neutral-0); box-shadow: inset 0 0 0 .25cqw var(--neutral-250); font-size: 3.4cqw; white-space: nowrap; }
.jh-type { display: inline-block; clip-path: inset(0 0 0 0); }
.jh-caret { display: inline-block; width: .3cqw; height: 4cqw; background: var(--neutral-ink); }
.jh-shot-panel.is-armed:not(.run-1) .jh-type { clip-path: inset(0 100% 0 0); }
.jh-shot-panel.run-1 .jh-type { animation: jh-type .9s steps(24, end) both; }
.jh-shot-panel.run-1 .jh-type--2 { animation-duration: .6s; animation-delay: 1s; animation-timing-function: steps(13, end); }
.jh-shot-panel.run-1 .jh-caret { animation: jh-blink 1s steps(1) 1.6s 4; }
@keyframes jh-type { from { clip-path: inset(0 100% 0 0); } }
@keyframes jh-blink { 50% { opacity: 0; } }
/* 2 and 3: the sample homepage, the approval card, then Published. No
   blurred edges: the crop is sharp to the frame, like the hero screen
   (Lane B pass 2, Business Q8 10-23). */
.jh-panel-card {
  position: absolute; z-index: 2; right: 5cqw; bottom: 5cqw; display: grid; grid-template-columns: auto auto; align-items: center; gap: .8cqw 4cqw;
  padding: 3cqw 3.4cqw; border-radius: 2cqw; background: var(--neutral-0); box-shadow: 0 2cqw 5cqw rgb(23 28 27 / .16), 0 0 0 .2cqw rgb(32 40 34 / .06);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
  /* A touch smaller, from its corner, so it sits over the sample's photo
     and clears the phone line beside the button (Lane A, 10-24: 5 px). */
  scale: .86; transform-origin: right bottom;
}
.jh-panel-ask { grid-column: 1; font-size: 2.2cqw; font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--green-700); }
.jh-panel-what { grid-column: 1; font-size: 3.4cqw; font-weight: var(--weight-emphasis); }
.jh-panel-approve { grid-column: 2; grid-row: 1 / span 2; display: grid; padding: 1.6cqw 3.2cqw; border-radius: 4cqw; background: var(--green-600); color: var(--neutral-0); font-size: 2.8cqw; font-weight: var(--weight-emphasis); }
.jh-panel-approve > span { grid-area: 1 / 1; text-align: center; transition: opacity .3s var(--ease-soft); }
.jh-panel-approve-b { opacity: 1; }
.jh-panel-approve-a { opacity: 0; }
.jh-panel-chip { white-space: nowrap;
  position: absolute; z-index: 2; right: 5cqw; bottom: 20cqw; padding: 1.2cqw 2.6cqw; border-radius: 4cqw;
  background: var(--green-50); color: var(--green-900); box-shadow: inset 0 0 0 .2cqw var(--green-200);
  font-size: 2.6cqw; font-weight: var(--weight-emphasis);
  transition: opacity .5s var(--ease-soft) .3s, transform .5s var(--ease-soft) .3s;
}
/* Under 480 px the sample shows its phone layout, whose words fill a
   16:10 frame, so the frame turns 4:5 (open.js marks it is-narrow) and
   the card and the chip share a row at its foot, under the sample's
   buttons (review 10-25, R3). */
.jh-shot-panel.is-narrow, .jh-hero-shot.is-narrow { aspect-ratio: 4 / 5; }
/* The steps panel's phone frame ends a little sooner, 7:8: at 4:5 the top
   of the sample's next heading showed at the frame's foot, cut off, and the
   card and the chip came in over it (JH Review 1, A8; seen in motion at the
   second and third frames). The card and the chip keep their places at the
   foot, clear of the sample's phone line. */
.jh-shot-panel.is-narrow { aspect-ratio: 7 / 8; }
@container (max-width: 480px) {
  .jh-panel-card, .jh-hero-card { bottom: 3cqw; }
  .jh-panel-chip { bottom: 5cqw; right: auto; left: 5cqw; }
}
/* With motion, each frame waits for its step, then plays once. */
.jh-shot-panel.is-armed:not(.run-2) .jh-panel-card { opacity: 0; transform: translateY(12px); }
.jh-shot-panel.is-armed:not(.run-3) .jh-panel-approve-a,
.jh-shot-panel.is-armed[data-active="2"] .jh-panel-approve-a { opacity: 1; }
.jh-shot-panel.is-armed:not(.run-3) .jh-panel-approve-b,
.jh-shot-panel.is-armed[data-active="2"] .jh-panel-approve-b { opacity: 0; }
.jh-shot-panel.is-armed:not(.run-3) .jh-panel-chip,
.jh-shot-panel.is-armed[data-active="2"] .jh-panel-chip { white-space: nowrap; opacity: 0; transform: translateY(6px); }

/* ---------- The sample firm's homepage (SampleSite.astro) ---------- */
/* Since Lane D - spacing and sample site build (10-23): the real sample
   Home, zoomed to the frame and cropped by it; since Lane B (10-25) in a
   frame of the page itself. The phone layout takes over in frames under
   480 px wide. */
.jh-sample { position: absolute; inset: 0; overflow: hidden; background: var(--neutral-0); }
/* A frame of the real sample page (SampleFrame.astro, Lane B 10-25): drawn
   at --ps-w, zoomed by --k to the box's width, as tall as the box. */
.ps-frame { position: absolute; inset: 0; overflow: hidden; background: var(--neutral-0); }
.ps-frame iframe {
  display: block; width: var(--ps-w, 1024px); height: var(--ps-h, calc(100% / var(--k, .5))); border: 0;
  transform: scale(var(--k, .5)); transform-origin: 0 0; pointer-events: none; background: var(--neutral-0);
}
/* The old site's browser bar in the before/after loop. */
.jh-sample-bar { flex: none; height: 3.8cqw; display: flex; align-items: center; gap: .8cqw; padding: 0 2cqw; background: var(--neutral-100); border-bottom: .12cqw solid var(--neutral-200); }
.jh-sample-bar i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--neutral-300); }
.jh-sample-bar b { margin-left: 2cqw; width: 30cqw; height: 2cqw; border-radius: 2cqw; background: var(--neutral-0); }

/* ---------- What you get: three cards (storyboard 4) ---------- */
.jh-get-head--art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-40) var(--space-72); align-items: center; margin-bottom: var(--block-gap); }
.jh-get-head--art .jh-section-head { margin-bottom: 0; }
.jh-get { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); align-items: start; }
.jh-get--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jh-get-card { display: grid; align-content: start; overflow: hidden; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline); }
.jh-get-shot { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; background: var(--neutral-150); color: var(--neutral-ink); border-bottom: var(--stroke-hairline) solid var(--hairline); }
.jh-get-body { display: grid; gap: var(--space-16); padding: var(--card-padding); }
.jh-get-label { margin: 0; font-family: var(--font-display); font-size: var(--text-subheading); line-height: var(--leading-snug); letter-spacing: var(--tracking-heading); font-weight: var(--weight-display); }
.jh-get-body ul { display: grid; gap: var(--space-12); margin: 0; padding: 0; list-style: none; }
.jh-get-body li { font-size: var(--text-body); line-height: var(--leading-body); color: var(--text-muted); text-wrap: pretty; }
.jh-get-body li + li { padding-top: var(--space-12); border-top: var(--stroke-hairline) solid var(--line); }
.jh-get-notice { margin-top: var(--space-32); margin-bottom: 0; max-width: var(--measure); }
/* Card 2: the notes line underlines, as if lifted into the headline. */
.jh-get-notes { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; padding: 0 7%; }
.jh-notes { display: grid; gap: 2.2cqw; padding: 4.4cqw; border-radius: 2.4cqw; background: var(--neutral-0); box-shadow: 0 2cqw 5cqw rgb(23 28 27 / .10), 0 0 0 .3cqw rgb(32 40 34 / .06); font-size: 3.6cqw; }
.jh-notes-title { font-size: 2.8cqw; font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--neutral-600); }
.jh-notes-pick { justify-self: start; background: linear-gradient(var(--green-400), var(--green-400)) 0 100% / 100% .5cqw no-repeat; transition: background-size .7s var(--ease-soft); }
[data-story].is-armed:not(.is-playing) .jh-notes-pick { background-size: 0% .5cqw; }
.jh-notes-headline { margin: 0; font-size: 6.6cqw; line-height: 1.04; letter-spacing: -.03em; font-weight: var(--weight-display); }
.jh-notes-headline span { display: block; }
/* Card 3: the domain and hosting, then "Owner: you". */
.jh-get-own { display: grid; place-content: center; padding: 0 9%; }
.jh-own { display: grid; gap: 3.4cqw; width: 74cqw; padding: 5cqw; border-radius: 2.4cqw; background: var(--neutral-0); box-shadow: 0 2cqw 5cqw rgb(23 28 27 / .10), 0 0 0 .3cqw rgb(32 40 34 / .06); }
.jh-own-row { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; min-height: 7cqw; font-size: 4.2cqw; font-weight: var(--weight-emphasis); }
.jh-own-row + .jh-own-row { padding-top: 3.4cqw; border-top: .3cqw solid var(--neutral-150); }
.jh-own-chip { white-space: nowrap; padding: 1.2cqw 2.8cqw; border-radius: 4cqw; background: var(--green-50); color: var(--green-900); box-shadow: inset 0 0 0 .3cqw var(--green-200); font-size: 3.2cqw; transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft); }
[data-story].is-armed:not(.is-playing) .jh-own-chip { opacity: 0; transform: translateY(4px); }
@container jh (max-width: 900px) {
  .jh-get, .jh-get--2 { grid-template-columns: minmax(0, 1fr); }
  .jh-get-head--art { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Lane B - open layout pass 2 (10-23) ---------- */
/* Business's Q1–Q8 (10-23): real screens in place of the last drawings,
   a larger rhythm for the light sections, and a big closing. */

/* Q2: the presence words beside the sample homepage on a phone, sized to
   fit the window's height (Q18 10-23). */
.jh-presence { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-40) var(--space-112); align-items: center; }
.jh-presence-words { display: grid; gap: var(--space-40); }
.jh-presence .jh-split-head { position: static; }
.jh-phone {
  position: relative; width: min(100%, 340px, calc(78vh * 9 / 19)); aspect-ratio: 9 / 19; margin: 0; overflow: hidden;
  container-type: inline-size; border-radius: 40px; background: var(--neutral-50);
  box-shadow: 0 0 0 9px var(--neutral-900), 0 0 0 10px var(--neutral-300), var(--shadow-panel);
}
@container jh (max-width: 900px) {
  .jh-presence { grid-template-columns: minmax(0, 1fr); }
  .jh-phone { width: min(72vw, 280px); }
}

/* Q3: service-page heroes. Websites: the words beside a cropped sample
   homepage; the OK card comes in, then Approve turns to Approved, once. */
.jh-page-hero--shot .jh-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-40) var(--space-112); align-items: center; }
.jh-hero-shot {
  position: relative; margin: 0; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden;
  border-radius: var(--radius-card); background: var(--neutral-50); color: var(--neutral-ink);
  box-shadow: var(--shadow-panel), inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
.jh-hero-card {
  position: absolute; z-index: 2; right: 5cqw; bottom: 5cqw; display: grid; grid-template-columns: auto auto; align-items: center; gap: .8cqw 4cqw;
  padding: 3cqw 3.4cqw; border-radius: 2cqw; background: var(--neutral-0); box-shadow: 0 2cqw 5cqw rgb(23 28 27 / .16), 0 0 0 .2cqw rgb(32 40 34 / .06);
  transition: opacity var(--duration-enter) var(--ease-soft) .6s, transform var(--duration-enter) var(--ease-soft) .6s;
  /* Smaller, from its corner, as the steps panel's card, so it clears the
     sample's phone line (review 10-25, R3). */
  scale: .8; transform-origin: right bottom;
}
.jh-hero-card .jh-panel-approve > span { grid-area: 1 / 1; text-align: center; transition: opacity .3s var(--ease-soft) 2.2s; }
.jh-hero-approve-a { opacity: 0; }
[data-story].is-armed:not(.is-playing) .jh-hero-card { opacity: 0; transform: translateY(12px); }
[data-story].is-armed:not(.is-playing) .jh-hero-approve-a { opacity: 1; }
[data-story].is-armed:not(.is-playing) .jh-hero-approve-b { opacity: 0; }
@container jh (max-width: 900px) {
  .jh-page-hero--shot .jh-wrap { grid-template-columns: minmax(0, 1fr); }
}
/* The other eight: a larger, centered headline with more space around it. */
.jh-page-hero--center { display: grid; align-content: center; min-height: min(78vh, 760px); }
.jh-page-hero--center .jh-page-hero-words { display: grid; justify-items: center; text-align: center; }
.jh-page-hero--center .jh-h1 { max-width: 16ch; font-size: var(--text-statement); line-height: var(--leading-statement); letter-spacing: var(--tracking-statement); text-wrap: balance; }
.jh-page-hero--center .jh-lead { margin-inline: auto; text-wrap: balance; }
/* On tablets and phones the words start at the section space like every
   other page's hero, instead of floating in a tall box (Lane D - spacing,
   10-23: they started 77 to 138 px down at 375). */
@container jh (max-width: 900px) { .jh-page-hero--center { min-height: 0; } }

/* Q4: the closing at statement size, on about two-thirds of a screen with
   a still, soft ash light (a light section: the two-band limit holds). */
/* Its words start at the section space, not the middle (Lane D - spacing,
   10-23: centered, phones got 36 px more above the last ask than elsewhere). */
.jh-closing-band { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; min-height: 66vh; min-height: 66svh; }
.jh-closing-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 60% at 50% 58%, rgb(140 203 165 / .16), rgb(140 203 165 / 0) 72%),
    radial-gradient(60% 70% at 50% 50%, rgb(32 40 34 / .045), rgb(32 40 34 / 0) 75%);
}
.jh-closing-band .jh-h2 { max-width: 14ch; font-size: var(--text-statement); line-height: var(--leading-statement); letter-spacing: var(--tracking-statement); text-wrap: balance; }
/* Service pages: one size down, so the hero keeps the page's one statement (R21, Business Q4 10-25). */
.jh-closing-band--step .jh-h2 { font-size: var(--text-heading-xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading-lg); }

/* Token gaps (Lane D - spacing, 10-23): the column gaps above are 112 on
   wide screens and step down to 72 below 1200 px; the statement's gap to
   its columns is 56 on tablets and phones. */
@container jh (max-width: 1200px) {
  .jh-presence, .jh-tall, .jh-page-hero--shot .jh-wrap { column-gap: var(--space-72); }
}
@container jh (max-width: 900px) { .jh-expect { gap: var(--space-56); } }

/* Q5: the light sections' heads one step larger on wide screens, with
   less space under them. */
@media (min-width: 1024px) {
  .jh-section[data-theme="light"] :is(.jh-section-head, .jh-tall-title, .jh-split-head, .jh-route-band-head) > .jh-h2 { font-size: var(--text-heading-xl); }
  .jh-section[data-theme="light"] .jh-section-head { margin-bottom: 48px; }
}

/* Q12 (round 2): before and after in Home's "We do it for you" card. The
   old site shows left of the line, the new homepage right of it (Business,
   10-23). --ba is where the line is: it rests at 0% (all new homepage)
   without script or with reduced motion. */
@property --ba { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.jh-ba { position: relative; margin: 0; --ba: 0%; }
.jh-ba-stage {
  position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden;
  border-radius: var(--radius-card); background: var(--neutral-0); color: var(--neutral-ink);
  box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
.jh-ba-new { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ba)); }
/* The old site: centered serif type, a dense paragraph, a blue link. */
.jh-ba-old { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; background: #f4f1e8; font-family: Georgia, "Times New Roman", serif; color: #333; text-align: center; }
.jh-ba-old p { margin: 0; }
.jh-ba-old .jh-sample-bar { align-self: stretch; }
.jh-ba-old-name { margin-top: 3cqw !important; font-size: 3cqw; font-weight: 700; color: #1d3b6e; }
.jh-ba-old-nav { margin-top: 1.4cqw !important; padding: .8cqw 0; width: 100%; background: #1d3b6e; color: #fff; font-size: 1.7cqw; }
.jh-ba-old-headline { margin-top: 3cqw !important; font-size: 3.4cqw; font-style: italic; color: #1d3b6e; }
.jh-ba-old-body { display: flex; gap: 2.4cqw; align-items: flex-start; margin-top: 2.4cqw; padding: 0 7cqw; text-align: left; font-size: 1.55cqw; line-height: 1.35; }
.jh-ba-old-pic { flex: none; width: 16cqw; height: 12cqw; border: .3cqw solid #999; background: linear-gradient(135deg, #c9c3b0, #a7a08a); }
.jh-ba-old-link { margin-top: 2cqw !important; font-size: 1.7cqw; color: #2a4ad1; text-decoration: underline; }
.jh-ba-line { position: absolute; top: 0; bottom: 0; left: var(--ba); width: .35cqw; margin-left: -.175cqw; background: var(--neutral-0); box-shadow: 0 0 0 .12cqw rgb(23 28 27 / .18), 0 0 2cqw rgb(23 28 27 / .2); }
/* Under the picture: "Before" left, "After" right, each at full strength
   while its side holds most of the frame, then the Pause/Play button. */
.jh-ba-row { display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-12); }
.jh-ba-label { font-size: var(--text-label); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.jh-ba-label--before { opacity: calc(.35 + .65 * clamp(0, calc((var(--ba) - 50%) / 30%), 1)); }
.jh-ba-label--after { margin-left: auto; opacity: calc(.35 + .65 * clamp(0, calc((50% - var(--ba)) / 30%), 1)); }
/* With motion: a 10 s loop that plays while half in view (open.js). */
.jh-ba.is-armed { animation: jh-ba-sweep 10s var(--ease-in-out) infinite; animation-play-state: paused; }
.jh-ba.is-armed.is-inview:not(.is-paused) { animation-play-state: running; }
@keyframes jh-ba-sweep { 0%, 15% { --ba: 100%; } 27%, 60% { --ba: 0%; } 72%, 100% { --ba: 100%; } }
.jh-ba-toggle {
  display: grid; place-items: center; flex: none;
  width: var(--target-compact); height: var(--target-compact); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
.jh-ba-toggle svg { width: 16px; height: 16px; fill: currentColor; }
/* Each loop's Pause/Play in the bottom-right corner of its own frame, the
   same on all three (review 10-25, R16). */
.jh-loop-frame { position: relative; }
.jh-loop-frame > .jh-ba-toggle {
  position: absolute; right: var(--space-12); bottom: var(--space-12); z-index: 3;
  width: var(--target); height: var(--target); background: var(--neutral-0); color: var(--neutral-ink);
  box-shadow: 0 2px 8px rgb(23 28 27 / .14), inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
/* The phone: the frame takes the phone's size, and the button sits inside
   its round corner. */
.jh-loop-frame--phone { width: min(100%, 340px, calc(78vh * 9 / 19)); }
.jh-loop-frame--phone > .jh-phone { width: 100%; }
.jh-loop-frame--phone > .jh-ba-toggle { right: var(--space-20); bottom: var(--space-20); }
@container jh (max-width: 900px) { .jh-loop-frame--phone { width: min(72vw, 280px); } }
.jh-ba-toggle:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.jh-ba-icon-play, :is([data-loop], [data-phone]).is-paused .jh-ba-icon-pause { display: none; }
:is([data-loop], [data-phone]).is-paused .jh-ba-icon-play { display: inline; }
@media (prefers-reduced-motion: reduce) { .jh-ba.is-armed { animation: none; } }

/* Q17 (round 3): the route rows' service names at 18 px, with more air. */
.jh-route .jh-route-name { font-size: var(--text-body-lg); }
.jh-route .jh-route-row { padding-block: var(--space-20); }

/* Q15 (round 3): "We help you use AI": a draft, a person's OK, then Sent.
   The resting state is the approved draft; with motion, an 8.6 s loop that
   plays while half in view (open.js). */
.jh-draft { margin: 0; }
.jh-draft-stage {
  position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden;
  border-radius: var(--radius-card); background: var(--neutral-100); color: var(--neutral-ink);
  box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
.jh-draft-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 30% 40%, rgb(140 203 165 / .22), rgb(140 203 165 / 0) 70%); }
.jh-draft-tray { position: absolute; right: 4cqw; top: 4cqw; display: grid; gap: 1cqw; justify-items: end; }
.jh-draft-tray-title { font-size: 2.2cqw; font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--neutral-600); }
.jh-draft-tray-row { padding: 1.4cqw 2.6cqw; border-radius: 1.4cqw; background: var(--green-50); color: var(--green-900); box-shadow: inset 0 0 0 .25cqw var(--green-200); font-size: 2.6cqw; font-weight: var(--weight-emphasis); opacity: 0; }
.jh-draft-win {
  position: absolute; left: 5cqw; top: 12cqw; width: 78cqw; display: grid; gap: 2.8cqw; padding: 4cqw 4.4cqw;
  border-radius: 2cqw; background: var(--neutral-0); box-shadow: 0 2cqw 5cqw rgb(23 28 27 / .12), 0 0 0 .2cqw rgb(32 40 34 / .06);
  transform-origin: 100% 0;
}
.jh-draft-head { display: grid; gap: .8cqw; }
.jh-draft-label { font-size: 2.1cqw; font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--green-700); }
.jh-draft-task { font-size: 3.2cqw; font-weight: var(--weight-strong); letter-spacing: -.01em; }
.jh-draft-text { margin: 0; font-size: 2.9cqw; line-height: 1.5; color: var(--neutral-650); }
.jh-draft-text > span { display: inline; }
.jh-draft-time { color: inherit; background: linear-gradient(var(--green-100), var(--green-100)) 0 100% / 100% 100% no-repeat; border-radius: .4cqw; }
.jh-draft-foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.jh-draft-note { padding: .8cqw 1.8cqw; border-radius: 3cqw; background: var(--green-50); color: var(--green-900); box-shadow: inset 0 0 0 .2cqw var(--green-200); font-size: 2.3cqw; font-weight: var(--weight-emphasis); }
.jh-draft-approve { position: relative; display: grid; padding: 1.2cqw 3cqw; border-radius: 4cqw; background: var(--green-600); color: var(--neutral-0); font-size: 2.5cqw; font-weight: var(--weight-emphasis); }
.jh-draft-approve > span { grid-area: 1 / 1; text-align: center; }
.jh-draft-approve-a { opacity: 0; }
.jh-draft-pointer { position: absolute; left: 88%; top: 72%; width: 3cqw; fill: var(--neutral-ink); stroke: var(--neutral-0); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }

.jh-draft.is-armed * { animation-duration: 8.6s; animation-iteration-count: infinite; animation-timing-function: var(--ease-in-out); animation-fill-mode: both; animation-play-state: paused; }
.jh-draft.is-armed.is-inview:not(.is-paused) * { animation-play-state: running; }
.jh-draft.is-armed .jh-draft-win { animation-name: jh-draft-win; }
.jh-draft.is-armed .jh-draft-s1 { animation-name: jh-draft-s1; }
.jh-draft.is-armed .jh-draft-s2 { animation-name: jh-draft-s2; }
.jh-draft.is-armed .jh-draft-s3 { animation-name: jh-draft-s3; }
.jh-draft.is-armed .jh-draft-time { animation-name: jh-draft-time; }
.jh-draft.is-armed .jh-draft-note { animation-name: jh-draft-note; }
.jh-draft.is-armed .jh-draft-pointer { animation-name: jh-draft-pointer; }
.jh-draft.is-armed .jh-draft-approve-a { animation-name: jh-draft-a; animation-timing-function: steps(1, end); }
.jh-draft.is-armed .jh-draft-approve-b { animation-name: jh-draft-b; animation-timing-function: steps(1, end); }
.jh-draft.is-armed .jh-draft-tray-row { animation-name: jh-draft-row; }
/* 8.6 s (was 10): the next draft starts about 1 s after the last one is
   sent, so the frame is empty for about 1.3 s, not 3 (review 10-25, R25).
   The keyframes are the 10 s ones scaled by 10 / 8.6, the sent row's
   hold shortened to fit. */
@keyframes jh-draft-win { 0% { opacity: 0; transform: translateY(2cqw); } 7%, 76.7% { opacity: 1; transform: none; } 88.4%, 100% { opacity: 0; transform: translate(8cqw, -8cqw) scale(.45); } }
@keyframes jh-draft-s1 { 0%, 11.6% { opacity: 0; } 16.3%, 100% { opacity: 1; } }
@keyframes jh-draft-s2 { 0%, 20.9% { opacity: 0; } 25.6%, 100% { opacity: 1; } }
@keyframes jh-draft-s3 { 0%, 30.2% { opacity: 0; } 34.9%, 100% { opacity: 1; } }
@keyframes jh-draft-time { 0%, 40.7% { background-size: 0% 100%; } 48.8%, 100% { background-size: 100% 100%; } }
@keyframes jh-draft-note { 0%, 46.5% { opacity: 0; transform: translateY(1cqw); } 52.3%, 100% { opacity: 1; transform: none; } }
@keyframes jh-draft-pointer { 0%, 52.3% { opacity: 0; transform: translate(9cqw, 9cqw); } 54.7% { opacity: 1; transform: translate(9cqw, 9cqw); } 65.1% { opacity: 1; transform: none; } 66.3% { transform: scale(.85); } 67.4%, 72.1% { opacity: 1; transform: none; } 75.6%, 100% { opacity: 0; transform: none; } }
@keyframes jh-draft-a { 0% { opacity: 1; } 66.9%, 100% { opacity: 0; } }
@keyframes jh-draft-b { 0% { opacity: 0; } 66.9%, 100% { opacity: 1; } }
@keyframes jh-draft-row { 0%, 83.7% { opacity: 0; transform: translateY(-1cqw); } 89.5%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jh-draft.is-armed * { animation: none !important; } }
/* On narrow cards the stage is taller and everything in it larger, so the
   words stay readable on a phone (Business, 10-23). */
@container jh (max-width: 600px) {
  .jh-draft-stage { aspect-ratio: 4 / 5; }
  .jh-draft-win { left: 5cqw; top: 22cqw; width: 90cqw; gap: 4.4cqw; padding: 6cqw 6cqw; border-radius: 3.6cqw; }
  .jh-draft-tray { right: 6cqw; top: 6cqw; gap: 1.8cqw; }
  .jh-draft-tray-title { font-size: 3.6cqw; }
  .jh-draft-tray-row { padding: 2cqw 3.6cqw; border-radius: 2.4cqw; font-size: 3.8cqw; }
  .jh-draft-label { font-size: 3.4cqw; }
  .jh-draft-task { font-size: 5cqw; }
  .jh-draft-text { font-size: 4.6cqw; }
  .jh-draft-note { padding: 1.4cqw 3cqw; font-size: 3.6cqw; }
  .jh-draft-approve { padding: 2.2cqw 5cqw; font-size: 4cqw; }
  .jh-draft-pointer { width: 5cqw; }
}

/* Q20 (round 4): the phone site, with its nav at the top and "Call us"
   pinned to the bottom of the screen. Lane D - spacing (10-23): the wrap
   fills its column, so the phone is drawn at its own size (it was held to
   the 150 px of the button under it), and the screen no longer takes the
   page's scroll: it plays one slow pass down and back (open.js) with
   Pause/Play beside "Open sample"; "Open sample" is where it scrolls. */
.jh-phone-wrap { justify-self: stretch; display: grid; justify-items: center; gap: var(--space-32); }
.jh-phone-row { display: flex; align-items: center; gap: var(--space-12); }
.jh-phone-screen { position: absolute; inset: 0; overflow: hidden; scrollbar-width: none; border-radius: inherit; }
.jh-phone-screen::-webkit-scrollbar { display: none; }
/* Q21 (round 4): "Open sample". Since Lane D - spacing and sample site
   build (10-23): the sample's real site in a frame, a large browser-sized
   frame on computers with a Desktop / Phone switch, the whole screen on
   phones. */
.jh-sample-dialog { --frame-w: min(1280px, 100%); width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--space-16) var(--space-32); border: 0; background: transparent; }
.jh-sample-dialog[data-view="phone"] { --frame-w: min(390px, 100%); }
.jh-sample-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-12); }
.jh-sample-dialog::backdrop { background: rgb(23 28 27 / .92); }
.jh-sample-dialog-bar { display: flex; align-items: center; gap: var(--space-16); width: var(--frame-w); padding: var(--space-8) var(--space-8) var(--space-8) var(--space-16); border-radius: var(--radius-pill); background: var(--neutral-900); }
.jh-sample-dialog-tag { margin-right: auto; font-size: var(--text-label); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--neutral-0); }
.jh-sample-switch { display: flex; padding: var(--space-4); border-radius: var(--radius-pill); background: rgb(255 255 255 / .12); }
.jh-sample-switch button {
  min-height: var(--target-compact); padding: 0 var(--space-20); border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: transparent; color: var(--neutral-0); font: var(--weight-emphasis) var(--text-body-sm)/1 var(--font-text);
}
.jh-sample-switch button[aria-pressed="true"] { background: var(--neutral-0); color: var(--neutral-ink); }
.jh-sample-switch button:focus-visible { outline: var(--stroke-focus) solid var(--neutral-0); outline-offset: 2px; }
.jh-sample-dialog-frame {
  width: var(--frame-w); height: calc(100dvh - 104px); overflow: hidden;
  border-radius: var(--radius-card); background: var(--neutral-0); box-shadow: var(--shadow-panel);
}
.jh-sample-dialog[data-view="phone"] .jh-sample-dialog-frame { height: min(844px, calc(100dvh - 104px)); border-radius: 36px; box-shadow: 0 0 0 9px var(--neutral-900), 0 0 0 10px var(--neutral-300), var(--shadow-panel); }
.jh-sample-dialog-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
html:has(.jh-sample-dialog[open]) { overflow: hidden; }
@media (max-width: 520px) {
  .jh-sample-dialog, .jh-sample-dialog[data-view="phone"] { --frame-w: 100%; padding: 0; }
  .jh-sample-dialog[open] { justify-content: flex-start; gap: 0; }
  .jh-sample-switch { display: none; }
  .jh-sample-dialog-bar { padding: var(--space-8) var(--space-16); background: var(--neutral-900); }
  .jh-sample-dialog-frame, .jh-sample-dialog[data-view="phone"] .jh-sample-dialog-frame { flex: 1; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
}

/* Q23 (round 4): on Home, the header's Apply now stays hidden while the
   hero's own Apply now shows (hero.js sets hx-hero-cta). */
.jh-header-cta { transition: opacity var(--duration-control) var(--ease-standard), visibility var(--duration-control); }
.hx-hero-cta .jh-header--over-image .jh-header-cta { opacity: 0; visibility: hidden; }

/* How we work, "How paying works" (JH Review 1, A12: two columns of 16 px
   lines up to 86 characters). A table of ruled rows at the reading size:
   who it covers on the left, how it's paid on the right, held to the
   reading measure; on phones the name sits over its words. */
.jh-pay { margin: 0; border-top: var(--stroke-hairline) solid var(--line); }
.jh-pay-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8) var(--space-40);
  padding-block: var(--space-24); border-bottom: var(--stroke-hairline) solid var(--line);
  font-size: var(--text-body-lg); line-height: var(--leading-body);
}
.jh-pay dt { font-weight: var(--weight-emphasis); text-wrap: balance; }
.jh-pay dd { grid-column: 2; margin: 0; max-width: var(--measure); text-wrap: pretty; }
.jh-pay dd:only-child { grid-column: 1 / -1; }
.jh-pay-how { margin: var(--space-24) 0 0; font-size: var(--text-body-lg); }
@container jh (max-width: 700px) {
  .jh-pay-row { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-20); }
  .jh-pay dd { grid-column: 1; }
}
