/* One continuous light field from the product introduction into the workspace.
   Only this decorative layer clips; the expanded demo keeps its viewport. */
.home-v3 .launch-hero { position: relative; background: transparent; }
.home-v3 .launch-hero__inner { position: relative; z-index: 1; }
.az-opening-atmosphere {
  position: absolute; inset: 0 0 auto; height: 100%; z-index: 0;
  overflow: hidden; pointer-events: none; user-select: none;
  background: radial-gradient(ellipse 34% 42% at 98% 25%, #dfe5f559, transparent 100%),
    radial-gradient(ellipse 28% 35% at 0% 65%, #e2e4f34d, transparent 100%);
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 84%, transparent);
}
.az-opening-atmosphere svg { display: block; width: 100%; height: 100%; overflow: visible; }
.az-opening-atmosphere path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.az-opening-wash { stroke: #b7c2e5; stroke-width: 24px; opacity: .07; }
.az-opening-band { stroke: #bac4e4; stroke-width: 7px; opacity: .14; }
.az-opening-line { stroke: #aab9de; stroke-width: 1.2px; opacity: .56; }
.az-opening-light {
  stroke: #7e90c8; stroke-width: 2px; opacity: .72;
  stroke-dasharray: 7 93; stroke-dashoffset: 7;
  animation: az-opening-travel 12s linear infinite;
  animation-delay: var(--flow-delay, 0s); animation-play-state: paused;
}
.az-opening-atmosphere[data-flow-active="true"] .az-opening-light { animation-play-state: running; }
.az-opening-atmosphere[data-flow-hidden="true"] { visibility: hidden; }
.home-v3 .az-showroom.az-showroom--embedded { background: transparent; }
/* Retain the old entry's geometry as the existing controller's visibility sentinel. */
.home-v3 .az-showroom.az-showroom--embedded :is(.az-light-entry, .az-showroom-halo) { opacity: 0; }
.home-v3 [data-connected-demo] > .az-connected-loading { background: transparent; }
/* MKT-109 (DEC-931 amendment 2026-10-21, the owner's "B: tools to one"): the hero names the six tools a team
   juggles today, and one line runs from each tile into "One connected workspace", then a stem into the demo. The tiles
   are plain list items (no links, no buttons). The block is CSS only: one SVG draws the six lines from 1000px and, below
   that, each tile of the 2 x 3 grid draws its own branch, so it looks the same without JavaScript and no script
   positions anything. js/connected-opening.js only colours a tool's line (in the row of six) while the demo shows that
   tool, and continues the stem round the demo to the laptop from 760px. The look (glass tiles, 3D icons, the
   pill) is in css/home-glass.css. */
.home-tools {
  --gap: 14px; --line: #6f80d4;
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: min(1120px, 100%); margin: 44px auto 0; text-align: center;
}
.home-tools__kicker { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: .01em; color: var(--f3-ink); }
/* The one quiet line: the records those tools hold, in words. */
.home-tools__examples { margin: 3px 0 18px; font-size: 14px; line-height: 1.5; color: var(--f3-muted); text-wrap: balance; }
.home-tools__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); width: 100%; margin: 0; padding: 0; list-style: none; }
.home-tool { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 16px 10px 15px; }
.home-tool::before { margin-bottom: 7px; }
.home-tool strong { font-size: 16px; font-weight: 650; line-height: 1.3; color: var(--f3-ink); }
.home-tool span { font-size: 13px; line-height: 1.35; color: var(--f3-muted); text-wrap: balance; }
/* The six lines: one SVG that scales evenly (its height follows the viewBox). It reaches half a gap past each side
   of the grid, so its twelfths fall exactly on the six column centres at every width: each line starts under its
   own tile, and all six meet at the dot on the pill's top edge. */
.home-tools__links { display: block; flex: none; width: calc(100% + var(--gap)); max-width: none; height: auto; margin: 0 calc(var(--gap) / -2); aspect-ratio: 1200 / 76; overflow: visible; }
.home-tools__links path { stroke-width: 1.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* While the demo shows a tool, that tool's line takes the tool's colour (js/connected-opening.js sets data-flow-tool). */
.home-tools[data-flow-tool="projects"] .home-tools__links [data-tool="projects"],
.home-tools[data-flow-tool="people"] .home-tools__links [data-tool="people"],
.home-tools[data-flow-tool="quality"] .home-tools__links [data-tool="quality"],
.home-tools[data-flow-tool="signature"] .home-tools__links [data-tool="signature"] { stroke: var(--tool); stroke-width: 2px; }
.home-tools__join { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 20px 9px 10px; font-size: 17px; font-weight: 650; line-height: 1.3; color: var(--f3-accent-ink); }
/* The point the lines meet: a small indigo dot with a soft ring, centred on the pill's top edge. */
.home-tools__join::before {
  content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--line); box-shadow: 0 0 0 4px #bec9e680;
}
/* The stem from the pill down into the demo. It fades out; the script continues it round the demo to the laptop. */
.home-tools__stem { display: block; width: 2px; height: 44px; border-radius: 2px; background: linear-gradient(var(--line), #6f80d400); }

/* 1000-1120px: smaller tiles, so each tool name and short line stays on one line in the row of six. The row needs
   about 950px before "Onboarding & training" fits on one line; from 1000px it has about 8px to spare. */
@media (min-width: 1000px) and (max-width: 1120px) {
  .home-tools { --gap: 10px; }
  .home-tool { padding: 14px 8px 13px; }
  .home-tool::before { margin-bottom: 6px; }
  .home-tool strong { font-size: 15px; }
  .home-tool span { font-size: 12.5px; }
}

/* Below 1000px (phones, and tablets held upright: the owner's "2 x 3 on tablets", 2026-10-21): a 2 x 3 grid, then the
   pill. Each tile draws its own branch: from its inner edge across half the gutter, curving down the centre line to
   the next row (the last row's runs on into the pill's dot), so every tile has a line into the pill. A branch is
   placed from the tile's padding box, so the 1px tile border (--edge) is added back; rows are equal (1fr), so a
   branch is the tile's height plus the row gap, plus the corner it shares with the next row's branch. One opaque
   colour, so the overlaps never darken. */
@media (max-width: 999px) {
  .home-tools { --gap: 10px; --gutter: 24px; --drop: 26px; --corner: 10px; --edge: 1px; }
  .home-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gap) var(--gutter); }
  .home-tool {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon name" "sub sub";
    align-items: center; align-content: center; gap: 7px 9px; padding: 11px 12px 12px; text-align: left;
  }
  .home-tool::before { grid-area: icon; margin: 0; }
  .home-tool strong { grid-area: name; }
  .home-tool span { grid-area: sub; text-wrap: pretty; }
  .home-tool::after {
    content: ""; position: absolute; top: 50%; box-sizing: border-box; width: calc(var(--gutter) / 2 + var(--edge) + .75px);
    height: calc(100% + 2 * var(--edge) + var(--gap) + var(--corner)); border: 0 solid var(--line); border-top-width: 1.5px; pointer-events: none;
  }
  .home-tool:nth-child(odd)::after { left: 100%; border-right-width: 1.5px; border-top-right-radius: var(--corner); }
  .home-tool:nth-child(even)::after { right: 100%; border-left-width: 1.5px; border-top-left-radius: var(--corner); }
  .home-tool:nth-last-child(-n+2)::after { height: calc(50% + var(--edge) + var(--drop)); }
  .home-tools__links { display: none; }
  .home-tools__join { margin-top: var(--drop); }
}
/* Tablets (760-999px): the grid is centred under the centred kicker, at most 520px wide so a tile is no wider than its
   longest line needs (about 210px of 244px), and each tile puts its icon beside both the name and the short line. */
@media (min-width: 760px) and (max-width: 999px) {
  .home-tools { --gap: 12px; --gutter: 32px; --drop: 30px; --corner: 12px; }
  .home-tools__grid { width: min(100%, 520px); }
  .home-tool { grid-template-areas: "icon name" "icon sub"; align-items: start; gap: 2px 12px; padding: 13px 16px; }
  .home-tool::before { align-self: center; }
  .home-tool strong { align-self: end; }
}
/* Phones: the grid fills the column, left-aligned like the copy above it, with a smaller pill and stem. */
@media (max-width: 759px) {
  .home-tools { align-items: stretch; margin-top: 30px; text-align: left; }
  .home-tools__examples { margin-bottom: 14px; }
  .home-tool strong { font-size: 15px; }
  .home-tool span { font-size: 12.5px; }
  .home-tools__join { align-self: center; padding: 7px 18px 7px 8px; font-size: 16px; }
  .home-tools__stem { align-self: center; height: 32px; }
}
/* Narrow phones (under 390px, so the 375px iPhone SE and mini too): the icon sits above the name. Beside the icon,
   "People & HR" needs about 86px and gets 84.5px at 375px, so it would wrap; above it, the name has the tile's full
   width (127px at 375px). From 390px it fits beside the icon with about 5px to spare. */
@media (max-width: 389px) {
  .home-tool { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "name" "sub"; align-content: start; justify-items: start; gap: 5px; }
}

/* One quiet reveal on load: the lines draw downward into the pill once (about 1.2 s, then still). Fill mode
   "backwards" only, so no clip is left on the lines once it ends; under reduced motion they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .home-tools__links { animation: home-tools-reveal 1s cubic-bezier(.3, .7, .4, 1) .2s backwards; }
}
@keyframes home-tools-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* The demo's own four-card row (Projects, People & HR, Quality, E-signature, their lines and pill) would show the
   tools twice under the hero: hidden on the homepage only; the standalone demo page keeps it. The motion toggle keeps
   the demo's own place, the right end of the strip above the stage. From 760px that strip starts lower and the toggle
   sits a little in from the edge, so the two lines the script draws from the stem round the demo turn down above it
   and run down outside it, never through it. */
.home-v3 .az-showroom .az-connected-pillars { display: none; }
@media (min-width: 760px) {
  .home-v3 .az-showroom.az-showroom--embedded .az-showroom-intro { padding-top: 36px; }
  .home-v3 .az-showroom.az-showroom--embedded .az-showroom-intro > [data-motion-toggle] { margin-right: 20px; }
}
@keyframes az-opening-travel { to { stroke-dashoffset: -93; } }
@media (max-width: 759px) {
  /* No atmosphere lines are drawn below 760px. */
  .home-v3 [data-connected-demo-state]:not([data-connected-demo-state="ready"]) > .az-mobile-preview { background: transparent; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .az-opening-light { animation: none; opacity: 0; }
}
