/* Copied from working/website/design-system-2026-10-16/ by tools/sync_design_system.py. Edit the design system, then sync. */
/* Jungle Haus design system — components. Draft 4, 2026-10-18.
   Built on tokens.css. Layout responds to its container (named "jh"), so the
   same markup works on a page and inside the reference's phone frames.
   A page wraps its content in .jh-site, which is the container.
   Two breakpoints, the same as tokens.css: 900px (tablet) and 520px (phone). */

.jh-site, .jh-frame { container: jh / inline-size; }

.jh-site, .jh-frame, [data-theme] {
  background: var(--canvas);
  color: var(--text);
}
.jh-site, .jh-frame {
  font: var(--weight-text) var(--text-body)/var(--leading-body) var(--font-text);
  font-size-adjust: var(--font-text-adjust);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.jh-site *, .jh-frame * { box-sizing: border-box; }
.jh-site ::selection, .jh-frame ::selection { background: var(--selection); color: var(--on-selection); }
/* Spacing follows the container's own width: a phone-sized frame gets
   phone gutters and section space, whatever the window. */
@container jh (max-width: 900px) {
  .jh-site > *, .jh-frame > * { --gutter: var(--gutter-tablet); --section-space: var(--section-space-tablet); --card-padding: var(--card-padding-phone); --block-gap: 48px; }
}
@container jh (max-width: 520px) {
  .jh-site > *, .jh-frame > * { --gutter: var(--gutter-phone); --section-space: var(--section-space-phone); --block-gap: 40px; }
}
.jh-site :focus-visible, .jh-frame :focus-visible {
  outline: var(--stroke-focus) solid var(--focus);
  outline-offset: var(--focus-offset);
}

/* ---------- Layout helpers ---------- */
.jh-wrap { width: min(100% - var(--gutter) * 2, var(--page-max)); margin-inline: auto; }
.jh-section { padding-block: var(--section-space); }
.jh-section[data-theme] { color: var(--text); }
/* Small caps label: eyebrows, panel labels, footer headings. Never for
   form fields (those use .jh-field-label). */
.jh-label, .jh-eyebrow {
  margin: 0;
  font: var(--weight-emphasis) var(--text-label)/1.4 var(--font-text);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.jh-eyebrow { margin-bottom: var(--space-16); color: var(--accent); }
.jh-h1, .jh-h2, .jh-h3, .jh-h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size-adjust: var(--font-display-adjust);
  font-weight: var(--weight-display);
  text-wrap: balance;
}
.jh-h1 { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.jh-h2 { font-size: var(--text-heading-lg); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading-lg); }
.jh-h3 { font-size: var(--text-heading-sm); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); }
.jh-h4 { font-size: var(--text-subheading); line-height: var(--leading-snug); letter-spacing: var(--tracking-heading); }
.jh-line { display: block; }
.jh-lead { margin: var(--space-24) 0 0; max-width: var(--measure-lead); font-size: var(--text-lead); line-height: var(--leading-body); color: var(--text-muted); text-wrap: pretty; }
.jh-icon {
  width: var(--icon-size); height: var(--icon-size); flex: none;
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round;
}
.jh-icon--sm { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.jh-icon--lg { width: var(--icon-size-lg); height: var(--icon-size-lg); }

/* ---------- Buttons and links ---------- */
.jh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-12);
  min-height: var(--target); padding: var(--space-12) var(--space-24);
  border: var(--stroke-hairline) solid transparent; border-radius: var(--radius-pill);
  font: var(--weight-emphasis) var(--text-body)/1.25 var(--font-text);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-control) var(--ease-standard),
              border-color var(--duration-control) var(--ease-standard),
              color var(--duration-control) var(--ease-standard);
  touch-action: manipulation;
}
.jh-button--lg { min-height: var(--target-large); padding: var(--space-16) var(--space-32); font-size: var(--text-body-lg); }
.jh-button--primary { background: var(--action); color: var(--on-action); }
.jh-button--primary:hover, .jh-button--primary.is-hover { background: var(--action-hover); }
.jh-button--primary:active, .jh-button--primary.is-pressed { background: var(--action-pressed); }
.jh-button--secondary { background: var(--secondary); color: var(--text); }
.jh-button--secondary:hover, .jh-button--secondary.is-hover { background: var(--secondary-hover); }
.jh-button--secondary:active, .jh-button--secondary.is-pressed { background: var(--secondary-pressed); }
.jh-button--outline { background: transparent; color: var(--text); border-color: var(--text); }
.jh-button--outline:hover, .jh-button--outline.is-hover { background: var(--secondary); }
.jh-button--outline:active, .jh-button--outline.is-pressed { background: var(--secondary-hover); }
.jh-button:disabled, .jh-button[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; }
.jh-button--primary:disabled:hover { background: var(--action); }
.jh-button--secondary:disabled:hover { background: var(--secondary); }
.jh-button--outline:disabled:hover { background: transparent; }
.jh-button.is-focus { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }

.jh-link {
  display: inline-flex; align-items: center; gap: var(--space-8);
  min-height: var(--target); border-radius: var(--radius-structural);
  color: var(--link); font-weight: var(--weight-emphasis);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color var(--duration-control) var(--ease-standard), text-decoration-color var(--duration-control) var(--ease-standard);
}
.jh-link:hover, .jh-link.is-hover { color: var(--link-hover); text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.jh-link:active, .jh-link.is-pressed { color: var(--link-hover); text-decoration-thickness: 1px; }
.jh-link .jh-icon { transition: transform var(--duration-control) var(--ease-out); }
.jh-link:hover .jh-icon, .jh-link.is-hover .jh-icon { transform: translateX(3px); }
.jh-link.is-focus { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }

/* ---------- Header and menu ---------- */
/* Desktop: name left, links centered, Apply right. Services opens a panel
   aligned to the page edges, on hover (after a pause) or click.
   Phone: a Menu button opens a full-height sheet under the header.
   On Home the header comes first, over the landscape, and stays at the top:
   clear over the image, solid once the image has passed under it.
   No backdrop blur: it rendered gray in testing, and solid fills read cleaner. */
.jh-header {
  position: relative; z-index: var(--layer-header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-24);
  height: var(--header-height); padding: 0 var(--gutter);
  color: var(--text);
  transition: background-color var(--duration-section) var(--ease-standard), border-color var(--duration-section) var(--ease-standard), color var(--duration-section) var(--ease-standard);
  border-bottom: var(--stroke-hairline) solid transparent;
}
.jh-header--sticky { position: sticky; top: 0; }
/* Solid, never see-through: at 96% the page's text showed through the bar
   while scrolling (A10, JH Review 1). It turns solid at once, its words
   and marks with it (a fading text color sat dark on the dark bar); only
   the way back to clear, over Home's image, fades. */
.jh-header--solid, .jh-header.is-scrolled {
  background: var(--canvas);
  border-bottom-color: var(--hairline);
}
.jh-header.is-scrolled { transition-property: border-color; }
.jh-header--over-image { --nav-ink: rgb(255 255 255 / .8); --nav-ink-strong: var(--text-on-image); color: var(--text-on-image); background: transparent; }
/* The hero follows the header directly, or opens the page's <main>. */
.jh-header--over-image + .jh-hero, .jh-header--over-image + main > .jh-hero:first-child { margin-top: calc(-1 * var(--header-height)); }
.jh-header--over-image.is-scrolled { --nav-ink: var(--text-muted); --nav-ink-strong: var(--text); color: var(--text); }
/* Over the image the header's Apply is an outline, so the hero keeps its
   one primary button. Once scrolled, it is the primary again. */
.jh-header--over-image:not(.is-scrolled):not(.is-menu-open) .jh-header-cta {
  background: transparent; color: var(--text-on-image); border-color: rgb(255 255 255 / .7);
}
.jh-header--over-image:not(.is-scrolled):not(.is-menu-open) .jh-header-cta:hover { background: rgb(255 255 255 / .12); }
/* Over the image the focus ring is white, so it shows against the photo. */
.jh-header--over-image:not(.is-scrolled):not(.is-menu-open), .jh-hero { --focus: var(--text-on-image); }
.jh-brand {
  grid-column: 1; justify-self: start;
  display: inline-flex; align-items: center; min-height: var(--target);
  font-family: var(--font-display); font-size: var(--brand-name-size);
  font-weight: var(--brand-name-weight); letter-spacing: var(--brand-name-tracking);
  color: inherit; text-decoration: none; white-space: nowrap;
}
/* The horizontal lockup, inline so it takes the text color (fill: currentColor). */
.jh-brand :is(svg, img) { display: block; height: var(--wordmark-height); width: auto; aspect-ratio: 919.91 / 189.96; }
.jh-nav { grid-column: 2; }
.jh-nav-list { display: flex; align-items: center; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.jh-nav-link, .jh-nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-4);
  min-height: var(--target); padding: var(--space-8) var(--space-16);
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--nav-ink);
  font: var(--weight-emphasis) var(--text-body)/1.25 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: color var(--duration-control) var(--ease-standard), background-color var(--duration-control) var(--ease-standard);
}
.jh-nav-link::after, .jh-nav-trigger::after {
  content: ""; position: absolute; left: var(--space-16); right: var(--space-16); bottom: var(--space-8);
  height: var(--stroke-underline); border-radius: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--duration-nav) var(--ease-out);
}
.jh-nav-trigger::after { right: calc(var(--space-16) + var(--icon-size-sm) + var(--space-4)); }
.jh-nav-link:hover, .jh-nav-trigger:hover, .jh-nav-trigger[aria-expanded="true"], .jh-nav-link[aria-current="page"] { color: var(--nav-ink-strong); }
.jh-nav-link:hover::after, .jh-nav-trigger:hover::after { transform: scaleX(1); }
.jh-nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--link); }
.jh-header--over-image:not(.is-scrolled) .jh-nav-link[aria-current="page"]::after { background: currentColor; }
/* Open is a quiet pill; the underline is kept for hover and the current page. */
.jh-nav-trigger[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.jh-nav-trigger[aria-expanded="true"]::after { transform: scaleX(0); }
.jh-nav-trigger .jh-icon { width: var(--icon-size-sm); height: var(--icon-size-sm); transition: transform var(--duration-nav) var(--ease-out); }
.jh-nav-trigger[aria-expanded="true"] .jh-icon { transform: rotate(180deg); }
.jh-header-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--space-12); }
.jh-menu-button { display: none; }
.jh-nav-footer { display: none; }

/* Services panel (desktop): the overlay surface, aligned to the page edges,
   8px under the header. */
.jh-panel {
  position: absolute; top: calc(100% + var(--stroke-hairline) + var(--space-8)); left: var(--gutter); right: var(--gutter);
  z-index: var(--layer-menu);
  display: grid; grid-template-columns: 1fr 1fr minmax(260px, .9fr); gap: var(--space-8);
  max-width: var(--page-max); margin-inline: auto; padding: var(--space-12);
  border: var(--stroke-hairline) solid var(--hairline); border-radius: var(--radius-card);
  background: var(--overlay);
  color: var(--text); box-shadow: var(--shadow-panel);
  animation: jh-reveal var(--duration-nav) var(--ease-out);
}
.jh-panel[hidden] { display: none; }
.jh-panel.is-closing { animation: jh-reveal var(--duration-control) var(--ease-standard) reverse forwards; pointer-events: none; }
.jh-panel-route { padding: var(--space-12) 0 0; }
.jh-panel-route > .jh-label { margin: 0 var(--space-12) var(--space-8); }
.jh-panel ul { margin: 0; padding: 0; list-style: none; }
.jh-panel-item {
  display: grid; grid-template-columns: var(--tile-size) 1fr; gap: var(--space-12); align-items: center;
  padding: var(--space-12); border-radius: var(--radius-input);
  color: var(--text); text-decoration: none;
  transition: background-color var(--duration-control) var(--ease-standard);
}
.jh-panel-item:hover, .jh-panel-item:focus-visible { background: var(--overlay-hover); }
.jh-panel-name { display: block; font-weight: var(--weight-emphasis); line-height: var(--leading-snug); }
.jh-panel-text { display: block; margin-top: var(--space-4); font-size: var(--text-body-sm); line-height: var(--leading-snug); color: var(--text-muted); }
.jh-panel-aside {
  display: flex; flex-direction: column; gap: var(--space-12);
  padding: var(--space-24); border-radius: var(--radius-input); background: var(--surface);
}
.jh-panel-aside .jh-label { margin: 0; }
.jh-panel-aside p:not(.jh-label) { margin: 0; color: var(--text-muted); font-size: var(--text-body-sm); }
.jh-panel-aside .jh-link { min-height: var(--target-compact); }
.jh-panel-aside .jh-link:first-of-type { margin-top: var(--space-8); }

/* Icon tiles: one size everywhere (service list and panel). */
.jh-tile {
  display: grid; place-items: center; width: var(--tile-size); height: var(--tile-size); flex: none;
  border-radius: var(--radius-input); background: var(--surface); color: var(--link);
  transition: background-color var(--duration-control) var(--ease-standard);
}
.jh-tile .jh-icon { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.jh-panel-item:is(:hover, :focus-visible) .jh-tile { background: var(--raised); }

@container jh (max-width: 900px) {
  .jh-header, .jh-header + .jh-hero, .jh-header + main > .jh-hero:first-child { --header-height: var(--header-height-compact); }
  .jh-header { grid-template-columns: 1fr auto; }
  .jh-header-cta { display: none; }
  .jh-menu-button {
    grid-column: 2; grid-row: 1; justify-self: end;
    display: inline-flex; align-items: center; gap: var(--space-12);
    min-height: var(--target); padding: var(--space-8) var(--space-20) var(--space-8) var(--space-16);
    border: var(--stroke-hairline) solid color-mix(in srgb, currentColor 28%, transparent); border-radius: var(--radius-pill);
    background: transparent; color: inherit; font: var(--weight-emphasis) var(--text-body)/1 var(--font-text); cursor: pointer;
  }
  /* The two-line icon is a drawn glyph: two strokes 8.5px apart that cross. */
  .jh-menu-icon { position: relative; width: 18px; height: 10px; }
  .jh-menu-icon i { position: absolute; left: 0; right: 0; height: calc(var(--icon-stroke) * 1px); border-radius: 1px; background: currentColor; transition: transform var(--duration-nav) var(--ease-in-out), top var(--duration-nav) var(--ease-in-out); }
  .jh-menu-icon i:first-child { top: 0; }
  .jh-menu-icon i:last-child { top: 8.5px; }
  .jh-menu-button[aria-expanded="true"] .jh-menu-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
  .jh-menu-button[aria-expanded="true"] .jh-menu-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }
  .jh-header.is-menu-open { background: var(--canvas); color: var(--text); border-bottom-color: var(--hairline); --nav-ink: var(--text); --nav-ink-strong: var(--text); }
  /* The sheet hangs from the header; with the header sticky and the page
     locked behind it, it always fills the screen. It starts at the header's
     own height (top: 100% sat 1 px higher, under the header's rule, so the
     sheet ended 1 px short of the foot), and the open header paints canvas
     below it, so no page shows under the sheet at any phone or tablet size. */
  .jh-header.is-menu-open::after {
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: -1;
    background: var(--canvas); pointer-events: none;
  }
  .jh-nav {
    grid-column: auto; grid-row: auto;
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0; z-index: var(--layer-menu);
    flex-direction: column; min-height: calc(100dvh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-8) var(--gutter) var(--space-32);
    background: var(--canvas); color: var(--text);
  }
  .jh-header.is-menu-open .jh-nav { display: flex; animation: jh-reveal var(--duration-nav) var(--ease-out); }
  .jh-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .jh-nav-list > li { border-bottom: var(--stroke-hairline) solid var(--line); }
  .jh-nav-link, .jh-nav-trigger {
    width: 100%; justify-content: space-between; min-height: calc(var(--target) + var(--space-20)); padding: var(--space-12) 0;
    border-radius: var(--radius-input);
    font: var(--weight-display) var(--text-heading-sm)/1.2 var(--font-display); letter-spacing: var(--tracking-heading);
  }
  .jh-nav-link::after, .jh-nav-trigger::after { display: none; }
  .jh-nav-trigger[aria-expanded="true"] { background: transparent; }
  .jh-nav-trigger .jh-icon { width: var(--icon-size); height: var(--icon-size); }
  .jh-nav-link[aria-current="page"] { color: var(--link); }
  .jh-panel {
    position: static; width: auto; max-width: none; grid-template-columns: 1fr; gap: 0;
    margin: 0 0 var(--space-16); padding: 0; border: 0; background: transparent; box-shadow: none;
  }
  .jh-panel-route { padding: var(--space-8) 0; }
  .jh-panel-route > .jh-label { margin: var(--space-8) 0; }
  .jh-panel-item { padding: var(--space-12) 0; }
  .jh-panel-item:hover, .jh-panel-item:focus-visible { background: transparent; }
  .jh-panel-text { display: none; }
  .jh-panel-aside { margin-top: var(--space-8); padding: var(--space-20); }
  .jh-nav-footer { display: grid; gap: var(--space-12); margin-top: auto; padding-top: var(--space-32); }
  .jh-nav-footer .jh-button { width: 100%; }
  .jh-nav-footer p { margin: 0; text-align: center; font-size: var(--text-body-sm); color: var(--text-muted); }
}

/* ---------- Hero ---------- */
/* The copy sits in calm space above the desk, on a soft shade so the
   sentence holds 4.5:1 over the mist. */
.jh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* At least 720px tall, so on short windows the copy still clears the desk;
     the button stays above the fold from about 640px. */
  min-height: clamp(720px, 92vh, 860px); display: grid;
  color: var(--text-on-image); background: var(--hero-base);
}
.jh-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.jh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 36%, rgb(var(--hero-shade) / .5), rgb(var(--hero-shade) / 0) 70%),
    linear-gradient(180deg, rgb(var(--hero-shade) / .72) 0%, rgb(var(--hero-shade) / .5) 42%, rgb(var(--hero-shade) / 0) 66%),
    linear-gradient(0deg, rgb(var(--hero-shade) / .55) 0%, rgb(var(--hero-shade) / 0) 30%);
}
.jh-hero-copy {
  align-self: start;
  padding: calc(var(--header-height) + clamp(16px, 3vh, 48px)) var(--gutter) var(--space-112);
  text-align: center;
}
.jh-hero-copy .jh-h1 { max-width: 14ch; margin-inline: auto; color: var(--text-on-image); }
.jh-hero-copy .jh-lead { margin: var(--space-20) auto 0; color: var(--text-on-image-muted); max-width: 40ch; }
.jh-hero-copy .jh-actions { margin-top: var(--space-32); }
.jh-hero-copy .jh-actions { justify-content: center; }
.jh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16); margin-top: var(--space-32); }
@container jh (max-width: 520px) {
  .jh-hero { min-height: 700px; }
  .jh-hero-image { object-position: 50% 100%; }
  .jh-hero-copy { padding-top: calc(var(--header-height) + var(--space-24)); }
  .jh-hero-copy .jh-h1 { font-size: 36px; }
  .jh-hero-copy .jh-actions .jh-button { width: 100%; }
}


/* ---------- Sections ---------- */
/* A page is a stack of bands. Each band is a .jh-section with its own
   data-theme (light unless it is one of the brief dark or forest bands);
   inside it, .jh-wrap holds the content at page width. */
.jh-section { position: relative; }
/* Two bands in a row on the same theme read as one: no double space. */
.jh-section[data-theme="light"] + .jh-section[data-theme="light"],
.jh-section[data-theme="dark"] + .jh-section[data-theme="dark"] { padding-top: 0; }

/* Section head: the heading block that opens a band. */
.jh-section-head { display: grid; gap: var(--space-20); max-width: 46rem; margin-bottom: var(--block-gap); }
.jh-section-head > * { margin: 0; }
.jh-section-head .jh-lead { margin: 0; }
.jh-section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Statement: one large line with room around it (Home: the idea). */
.jh-statement { display: grid; justify-items: center; gap: var(--space-32); text-align: center; }
.jh-statement .jh-h2 { max-width: 18ch; }
/* Wide enough that each of the idea's two sentences sits on one line on desktop. */
.jh-statement-body { display: grid; gap: var(--space-16); max-width: var(--measure); }
.jh-statement-body p { margin: 0; font-size: var(--text-lead); color: var(--text-muted); text-wrap: pretty; }

/* Split: a heading on the left, the body on the right (Home: why us, why
   presence matters). Body paragraphs are divided by hairlines. */
.jh-split { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-40) var(--space-72); align-items: start; }
.jh-split-head { display: grid; gap: var(--space-20); position: sticky; top: calc(var(--header-height) + var(--space-32)); }
.jh-split-head > * { margin: 0; }
.jh-split-body { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-hairline) solid var(--line); }
.jh-split-body > * { margin: 0; padding-block: var(--space-24); border-bottom: var(--stroke-hairline) solid var(--line); font-size: var(--text-lead); line-height: var(--leading-body); text-wrap: pretty; }
.jh-split-body strong { font-weight: var(--weight-emphasis); }

/* Closing: the last call to action before the footer. */
.jh-closing { display: grid; justify-items: center; gap: var(--space-24); text-align: center; }
.jh-closing .jh-h2 { max-width: 16ch; }
.jh-closing p { margin: 0; max-width: var(--measure-lead); font-size: var(--text-lead); color: var(--text-muted); }
.jh-closing .jh-actions { margin-top: var(--space-16); }

@container jh (max-width: 900px) {
  .jh-split { grid-template-columns: 1fr; }
  .jh-split-head { position: static; }
}
@container jh (max-width: 520px) {
  .jh-closing .jh-button { width: 100%; }
}

/* Section reveal: content rises 16px and fades in once, the first time it
   comes into view, then rests. Off for reduced motion and without script. */
.is-reveal-ready [data-reveal] { opacity: 0; transform: translateY(var(--reveal-travel-section)); }
.is-reveal-ready [data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * var(--reveal-stagger));
}
/* Passed in a fast scroll or a jump (site.js): shown at once (build 23). */
.is-reveal-ready [data-reveal].is-revealed.is-instant { transition: none; }

/* ---------- Service list ---------- */
/* Lines sit on the list items; each row is one link with soft corners,
   inset from the lines. */
.jh-services { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-hairline) solid var(--line); }
.jh-services > li { padding-block: var(--space-4); border-bottom: var(--stroke-hairline) solid var(--line); }
.jh-service {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-24);
  min-height: calc(var(--target) + var(--space-32)); padding: var(--space-16);
  border-radius: var(--radius-input); color: var(--text); text-decoration: none;
  transition: background-color var(--duration-control) var(--ease-standard);
}
.jh-service:hover, .jh-service.is-hover { background: var(--surface); }
.jh-service:hover .jh-tile, .jh-service.is-hover .jh-tile { background: var(--raised); }
.jh-service.is-focus { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.jh-service-name { display: block; font-family: var(--font-display); font-size: var(--text-subheading); line-height: var(--leading-snug); font-weight: var(--weight-display); }
.jh-service-text { display: block; margin-top: var(--space-4); color: var(--text-muted); }
.jh-service > .jh-icon { color: var(--text-muted); transition: transform var(--duration-control) var(--ease-out), color var(--duration-control) var(--ease-standard); }
.jh-service:hover > .jh-icon, .jh-service.is-hover > .jh-icon { transform: translateX(4px); color: var(--text); }
@container jh (max-width: 520px) {
  .jh-service { grid-template-columns: auto 1fr; gap: var(--space-16); padding-inline: var(--space-8); align-items: start; }
  .jh-service > .jh-icon { display: none; }
  .jh-service-name { font-size: var(--text-body-lg); }
}

/* ---------- Two routes (always equal) ---------- */
.jh-routes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24); }
.jh-route {
  display: flex; flex-direction: column; gap: var(--space-24);
  padding: var(--card-padding); border-radius: var(--radius-card); background: var(--surface);
  box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline);
}
.jh-route-number { font: var(--weight-emphasis) var(--text-label)/1.4 var(--font-numeric); letter-spacing: var(--tracking-label); color: var(--accent); font-variant-numeric: tabular-nums; }
.jh-route p { margin: 0; color: var(--text-muted); }
.jh-route ul { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-hairline) solid var(--line); }
.jh-route li { border-bottom: var(--stroke-hairline) solid var(--line); }
/* A route row: icon, service name, arrow on hover. A link when its service
   page exists; the same row without the arrow when it is plain text. */
.jh-route-row {
  display: flex; align-items: flex-start; gap: var(--space-16);
  min-height: calc(var(--target) + var(--space-4)); padding-block: var(--space-16); border-radius: var(--radius-structural);
  color: var(--text); text-decoration: none;
  transition: color var(--duration-control) var(--ease-standard);
}
.jh-route-row > .jh-icon:first-child { color: var(--link); }
.jh-route-text { display: grid; gap: var(--space-4); }
.jh-route-name { font-weight: var(--weight-emphasis); color: var(--text); }
.jh-route-desc { font-size: var(--text-body-sm); color: var(--text-muted); }
.jh-route-row > .jh-icon:last-child { align-self: center; }
.jh-route-row > .jh-icon:last-child { margin-left: auto; color: var(--text-muted); opacity: 0; transform: translateX(-4px); transition: opacity var(--duration-control) var(--ease-standard), transform var(--duration-control) var(--ease-out); }
a.jh-route-row:is(:hover, .is-hover) .jh-route-name { color: var(--link-hover); }
a.jh-route-row:is(:hover, :focus-visible, .is-hover) > .jh-icon:last-child { opacity: 1; transform: none; }
/* The note follows its rows; the cards keep one height, so a shorter
   card's spare room sits at its foot, not in a hole above the note
   (Lane A - sample site build, 10-24; it left 117 px at 1440). */
.jh-route .jh-route-note { font-size: var(--text-body-sm); }
/* Home's cards name their services in one line of links (review 10-25,
   R15), spaced, with no separator dots: a dot began the wrapped line
   (cold review 10-25). */
.jh-route ul.jh-route-names { border-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-24); margin-top: auto; padding-top: var(--space-16); }
.jh-route-names li { border: 0; }
.jh-route-names a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--link); font-weight: var(--weight-emphasis); text-decoration: none; text-underline-offset: 3px; }
.jh-route-names a:hover { color: var(--link-hover); text-decoration: underline; }
@container jh (max-width: 900px) {
  .jh-routes { grid-template-columns: 1fr; }
}

/* ---------- Four promises ---------- */
.jh-promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); margin: 0; padding: 0; list-style: none; }
.jh-promise { padding-top: var(--space-24); border-top: var(--stroke-hairline) solid var(--line); }
.jh-promise .jh-icon { width: var(--icon-size-lg); height: var(--icon-size-lg); color: var(--accent); }
.jh-promise p { margin: var(--space-20) 0 0; font-family: var(--font-display); font-size: var(--text-subheading); line-height: var(--leading-snug); font-weight: var(--weight-display); text-wrap: pretty; }
.jh-promises-note { margin: var(--space-32) 0 0; font-size: var(--text-body-sm); color: var(--text-muted); }
@container jh (max-width: 900px) { .jh-promises { grid-template-columns: 1fr 1fr; gap: var(--space-32) var(--space-24); } }
@container jh (max-width: 520px) {
  .jh-promises { grid-template-columns: 1fr; gap: 0; }
  .jh-promise { display: flex; align-items: flex-start; gap: var(--space-16); padding-block: var(--space-20); }
  .jh-promise p { margin: 0; font-size: var(--text-body-lg); }
  .jh-promises-note { margin-top: var(--space-16); }
}

/* ---------- How it works ---------- */
.jh-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-24); margin: 0; padding: 0; list-style: none; counter-reset: jh-step; }
.jh-step { position: relative; padding-top: var(--space-24); counter-increment: jh-step; }
.jh-step::before {
  content: counter(jh-step, decimal-leading-zero);
  display: block; margin-bottom: var(--space-24);
  font: var(--weight-emphasis) var(--text-label)/1.4 var(--font-numeric); letter-spacing: var(--tracking-label);
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.jh-step::after { content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * var(--space-24)); height: var(--stroke-hairline); background: var(--line); }
.jh-step:last-child::after { right: 0; }
/* The title is a class, so the heading level can follow the page outline. */
.jh-step-title {
  margin: 0; min-height: calc(2em * var(--leading-snug));
  font: var(--weight-display) var(--text-body-lg)/var(--leading-snug) var(--font-display);
  text-wrap: balance;
}
.jh-step p { margin: var(--space-8) 0 0; font-size: var(--text-body-sm); color: var(--text-muted); }
@container jh (max-width: 900px) {
  .jh-steps { grid-template-columns: 1fr; gap: 0; }
  .jh-step { display: grid; grid-template-columns: var(--target) 1fr; align-items: baseline; padding: var(--space-20) 0; border-top: var(--stroke-hairline) solid var(--line); }
  .jh-step::before { margin: 0; }
  .jh-step::after { display: none; }
  .jh-step-title { min-height: 0; }
  .jh-step p { grid-column: 2; }
}

/* ---------- Application form ---------- */
.jh-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24); max-width: 760px; margin: 0; padding: 0; border: 0; min-width: 0; }
.jh-form > * { min-width: 0; }
.jh-field--full, .jh-form .jh-choice-group, .jh-form-actions { grid-column: 1 / -1; }
/* Field label: sentence case at body size. Every question in a form,
   including a choice group's legend, uses this one style. */
.jh-field-label, .jh-choice-group legend {
  display: block; padding: 0;
  font: var(--weight-emphasis) var(--text-body)/var(--leading-snug) var(--font-text);
  color: var(--text);
}
.jh-field-label small { font-size: var(--text-body-sm); font-weight: var(--weight-text); color: var(--text-muted); }
.jh-hint { margin: var(--space-4) 0 0; font-size: var(--text-body-sm); color: var(--text-muted); }
.jh-input, .jh-select, .jh-textarea {
  display: block; width: 100%; min-height: var(--target); margin-top: var(--space-8);
  padding: var(--space-12) var(--space-16);
  border: var(--stroke-hairline) solid var(--border); border-radius: var(--radius-input);
  background: var(--surface); color: var(--text); font: inherit;
  caret-color: var(--action);
  transition: border-color var(--duration-control) var(--ease-standard);
}
.jh-select { appearance: none; padding-right: var(--space-40);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.jh-textarea { min-height: calc(var(--target) * 3); resize: vertical; }
.jh-input:hover, .jh-select:hover, .jh-textarea:hover, .jh-input.is-hover { border-color: var(--text-muted); }
.jh-input.is-focus { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.jh-input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.jh-input:disabled, .jh-select:disabled, .jh-textarea:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
.jh-error { display: flex; gap: var(--space-8); align-items: center; margin: var(--space-8) 0 0; font-size: var(--text-body-sm); color: var(--error); }
.jh-choice-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.jh-choices { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-12); }
.jh-choice { position: relative; }
.jh-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.jh-choice span {
  display: inline-flex; align-items: center; min-height: var(--target); padding: var(--space-12) var(--space-20);
  border: var(--stroke-hairline) solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  transition: background-color var(--duration-control) var(--ease-standard), border-color var(--duration-control) var(--ease-standard);
}
/* Selected: a check, a tinted fill and a 2px edge, so it never relies on
   color alone. */
.jh-choice input:checked + span {
  border-color: var(--action); background: color-mix(in srgb, var(--action) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--action); padding-left: var(--space-16);
}
.jh-choice input:checked + span::before {
  content: ""; width: 16px; height: 16px; margin-right: var(--space-8);
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jh-choice input:focus-visible + span { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.jh-choice input:disabled + span { opacity: var(--opacity-disabled); }
.jh-form-actions { display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: center; }
.jh-form-actions p { margin: 0; font-size: var(--text-body-sm); color: var(--text-muted); }
.jh-notice {
  display: flex; gap: var(--space-12); align-items: flex-start;
  margin: 0 0 var(--space-32); padding: var(--space-20) var(--space-24);
  border-radius: var(--radius-card); background: var(--raised); color: var(--text);
}
.jh-notice .jh-icon { color: var(--link); }
.jh-notice p { margin: 0; }
.jh-confirmation { max-width: 560px; padding: var(--card-padding); border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline); }
.jh-confirmation .jh-icon { width: var(--icon-size-lg); height: var(--icon-size-lg); color: var(--success); }
.jh-confirmation p { margin: var(--space-16) 0 0; color: var(--text-muted); }
@container jh (max-width: 520px) {
  .jh-form { grid-template-columns: 1fr; }
  .jh-form-actions .jh-button { width: 100%; }
}

/* ---------- Footer ---------- */
.jh-footer { padding: var(--space-72) var(--gutter) var(--space-40); border-top: var(--stroke-hairline) solid var(--line); }
.jh-footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-40); max-width: var(--page-max); margin-inline: auto; }
.jh-footer-about p { margin: var(--space-12) 0 0; max-width: 32ch; color: var(--text-muted); }
.jh-footer :is(h2, h3, h4) { margin: 0 0 var(--space-12); font: var(--weight-emphasis) var(--text-label)/1.4 var(--font-text); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.jh-footer ul { margin: 0; padding: 0; list-style: none; }
.jh-footer li a { display: inline-flex; align-items: center; min-height: var(--target-compact); border-radius: var(--radius-structural); color: var(--text); text-decoration: none; }
.jh-footer li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.jh-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-16); max-width: var(--page-max); margin: var(--space-56) auto 0; padding-top: var(--space-24); border-top: var(--stroke-hairline) solid var(--line); font-size: var(--text-body-sm); color: var(--text-muted); }
.jh-footer-bottom p { margin: 0; }
@container jh (max-width: 900px) {
  .jh-footer { padding-top: var(--space-56); }
  .jh-footer-top { grid-template-columns: 1fr 1fr; }
  .jh-footer-about { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */
@keyframes jh-reveal { from { opacity: 0; transform: translateY(calc(-1 * var(--reveal-travel))); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .is-reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .jh-site *, .jh-frame *, .jh-site *::before, .jh-site *::after, .jh-frame *::before, .jh-frame *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}
@media print { .is-reveal-ready [data-reveal] { opacity: 1; transform: none; } }
@media (forced-colors: active) {
  .jh-button, .jh-input, .jh-select, .jh-textarea, .jh-choice span, .jh-route, .jh-panel { border: 1px solid CanvasText; }
  .jh-site :focus-visible, .jh-frame :focus-visible { outline-color: Highlight; }
  .jh-choice input:checked + span { outline: 2px solid Highlight; }
  .jh-nav-link[aria-current="page"] { text-decoration: underline 2px; text-underline-offset: 8px; }
}
