/* Homepage composition (pages/index.html, fragments/home-*.html; docs/BRAND_REFRESH.md "Front page"). Navigation,
   plans, the trust cards, product films and the assistant chat keep their own owners (outer/site.css,
   outer/agent-chat.css); colors come from the --home-* tokens (tokens/bg-tokens.css). */

/* ---------- the page ---------- */
/* the header's height (its bar and bottom border), which the hero's sky runs up under; a dark band's words; a solid
   for masks, which read only its alpha */
.site--home {
  --home-header-bar: 76px; --home-header-h: calc(var(--home-header-bar) + 1px);
  --home-on-dark: var(--inv-strong);
  --home-on-dark-soft: color-mix(in srgb, var(--inv-strong) 84%, transparent);
  --home-on-dark-faint: color-mix(in srgb, var(--inv-strong) 68%, transparent);
  --home-glass-line: color-mix(in srgb, var(--inv-strong) 16%, transparent);
  --home-solid: var(--ink);
  /* the curves a dark band meets the page on: a long swell for its top and foot, and an offset pair for the softer
     band beside it */
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V52C180 22 360 14 560 34S940 82 1140 62 1360 30 1440 36V100Z'/%3E%3C/svg%3E");
  --wave-foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V44C1280 74 1100 86 900 66S520 18 320 34 80 70 0 60Z'/%3E%3C/svg%3E");
  --wave-top-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V40C220 60 420 74 640 54S1020 8 1220 18 1400 44 1440 48V100Z'/%3E%3C/svg%3E");
  --wave-foot-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V58C1240 40 1060 24 860 40S460 92 260 76 60 50 0 46Z'/%3E%3C/svg%3E");
}
body.site--home { background: var(--home-page); }
.site--home .site-header__bar { height: var(--home-header-bar); }
.site--home :where(.home-section, .away, .trust-section) { scroll-margin-top: 92px; }
/* the bands reach the window's edges; <main> keeps them from widening the page */
.site--home main { overflow-x: clip; }

/* ---------- Bands: each section in its own light (data-tone), the dark ones meeting the page on layered curves ---------- */
[data-tone="dark"] { position: relative; isolation: isolate; color: var(--home-on-dark-soft); }
[data-tone="dark"] :is(h2, h3) { color: var(--home-on-dark); }
[data-tone="dark"] :is(.kicker, .accent) { color: var(--site-accent-inv); }
[data-tone="dark"] .lead { color: var(--home-on-dark-soft); }
[data-tone="dark"] .home-text-link { color: var(--home-on-dark); border-bottom-color: color-mix(in srgb, var(--inv-strong) 28%, transparent); }
[data-tone="dark"] .home-text-link .bg-icon { color: var(--site-accent-inv); }
[data-tone="dark"] .home-notes > div { border-top-color: var(--home-glass-line); }
[data-tone="dark"] .home-notes p { color: var(--home-on-dark-faint); }
/* a dark band's ground (--tone-bg) reaches 70px past its box at each end on a curve, and a softer band of the same
   evening (--tone-edge) a little further out on its own, so the edge reads as layers */
[data-tone="dark"]::before, [data-tone="dark"]::after {
  content: ""; position: absolute; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none;
  -webkit-mask: var(--mt) top / 100% 100px no-repeat, linear-gradient(var(--home-solid), var(--home-solid)) center / 100% calc(100% - 196px) no-repeat, var(--mf) bottom / 100% 100px no-repeat;
  mask: var(--mt) top / 100% 100px no-repeat, linear-gradient(var(--home-solid), var(--home-solid)) center / 100% calc(100% - 196px) no-repeat, var(--mf) bottom / 100% 100px no-repeat;
}
[data-tone="dark"]::before { z-index: -1; inset-block: -70px; --mt: var(--wave-top); --mf: var(--wave-foot); background: var(--tone-bg); }
[data-tone="dark"]::after { z-index: -2; inset-block: -104px; --mt: var(--wave-top-2); --mf: var(--wave-foot-2); background: var(--tone-edge); opacity: .55; }
/* a light band's blooms on the page, fading out at both ends so the curves show */
[data-tone="light"] { position: relative; isolation: isolate; }
[data-tone="light"]::before {
  content: ""; position: absolute; z-index: -1; inset: 0; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none; background: var(--tone-bg, none);
  -webkit-mask-image: linear-gradient(transparent, var(--home-solid) 18%, var(--home-solid) 82%, transparent); mask-image: linear-gradient(transparent, var(--home-solid) 18%, var(--home-solid) 82%, transparent);
}
/* the footer rises into the closing on the same curves */
.site--home .site-footer { position: relative; isolation: isolate; }
.site--home .site-footer::before, .site--home .site-footer::after { content: ""; position: absolute; left: 50%; width: 100vw; translate: -50% 0; bottom: 100%; pointer-events: none; }
.site--home .site-footer::before { height: 70px; background: var(--sand-800); -webkit-mask: var(--wave-top) top / 100% 100% no-repeat; mask: var(--wave-top) top / 100% 100% no-repeat; }
.site--home .site-footer::after { z-index: -1; height: 104px; background: var(--sand-800); opacity: .35; -webkit-mask: var(--wave-top-2) top / 100% 100% no-repeat; mask: var(--wave-top-2) top / 100% 100% no-repeat; }

/* ---------- a section's parts ---------- */
.home-section { padding-block: 104px; }
.home-section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: end; margin-bottom: 38px; }
.home-section__head h2, .home-details h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; }
.home-section__head .kicker { margin-bottom: 16px; }
.home-section__head .lead { font-size: var(--fs-md); line-height: 1.7; }
.home-text-link { display: inline-flex; align-items: center; gap: var(--icon-gap-md); font-size: var(--fs-sm); font-weight: 600; padding-bottom: 5px; margin-top: 19px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand-300); }
.home-text-link:hover { color: var(--site-kicker, var(--gold-deep)); border-color: var(--site-accent, var(--gold)); }
[data-tone="dark"] .home-text-link:hover { color: var(--site-accent-inv); border-color: var(--site-accent-inv); }
/* three short notes under a section's picture */
.home-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.home-notes > div { padding-top: 18px; border-top: 1px solid var(--line); }
.home-notes h3 { font-size: var(--fs-md); line-height: 1.4; letter-spacing: -.015em; }
.home-notes p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted); }
/* a tour's pause and play (the hero's window, the AI section's steps): stills what moves, js/outer/home.js and
   js/outer/agent-chat.js */
.tour-pause { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--caption); cursor: pointer; }
.tour-pause:hover { background: var(--bg-panel); color: var(--ink); }
.tour-pause:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.tour-pause .tour-i-play, .tour-pause[aria-pressed="true"] .tour-i-pause { display: none; }
.tour-pause[aria-pressed="true"] .tour-i-play { display: block; }
/* a product film's own pause and play (js/outer/product-loop.js, outer/site.css), in its window's corner */
.site--home .loop-toggle { position: absolute; z-index: 1; right: 14px; bottom: 14px; }

/* ---------- the hero: the job in a line and one way in on a twilight sky that turns to dawn at the product ---------- */
/* The words, centered, then the job's three chapters as one path over its parts (the rail), the app's own screens of
   the shown part in a window (.hs, fragments/home-stage.html) and what that part does as the window's caption. Close
   enough together that a 1280x720 laptop sees the app; on a taller screen --air opens the gaps, most of it between
   the three groups: the message, the way in, the product. */
.home-hero { --air: 0px; --hero-top: calc(var(--space-7) + var(--air) * .16); position: relative; isolation: isolate; padding-block: var(--hero-top) 48px; text-align: center;
  /* the parts of the work drawn pale on the night (the rail) */
  --m-client: var(--home-night-client); --m-proposal: var(--home-night-proposal); --m-contract: var(--home-night-contract); --m-project: var(--home-night-project);
  --m-time: var(--home-night-time); --m-expense: var(--home-night-expense); --m-invoice: var(--home-night-invoice); --m-paid: var(--home-night-paid); --m-portal: var(--home-night-portal); }
@media (min-width: 601px) { .home-hero { --air: clamp(0px, 100vh - 720px, 230px); } }
.home-hero [data-m] { --m-ink: var(--m); }
/* the sky runs up under the header, clear until the page scrolls (with script, which brings the glass back); the
   hero clips it there */
.home-hero { clip-path: inset(calc(-1 * var(--home-header-h)) -100vw 0); }
.js .site--home .site-header:not(.is-scrolled)::before { background: transparent; backdrop-filter: none; }
.home-hero__message { position: relative; isolation: isolate; }
/* a glow at the top and the ledger's grid (--hero-texture) round the words */
.home-hero__sky {
  position: absolute; z-index: -1; left: 50%; translate: -50% 0; top: calc(-1 * (var(--home-header-h) + var(--hero-top))); bottom: -240px; width: 100vw; overflow: hidden;
  background: radial-gradient(40% 50% at 50% 0, color-mix(in srgb, var(--home-night-glow) 20%, transparent), transparent);
  -webkit-mask-image: linear-gradient(var(--home-solid) 55%, transparent); mask-image: linear-gradient(var(--home-solid) 55%, transparent);
}
.home-hero__sky::before {
  content: ""; position: absolute; inset: 0; background: var(--hero-texture); background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, var(--home-solid) 15%, transparent 80%); mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, var(--home-solid) 15%, transparent 80%);
}
/* the sky itself, measured from the window so it always meets the product at the same place: the night, lightening to
   the dawn that warms into the page */
.home-hero .hs::before {
  content: ""; position: absolute; z-index: -2; left: 50%; translate: -50% 0; width: 100vw; top: -1400px; bottom: calc(46% - 190px);
  background: linear-gradient(to bottom, var(--home-night-1) 0, var(--home-night-1) calc(100% - 1250px), var(--home-night-2) calc(100% - 960px), var(--home-night-3) calc(100% - 700px), var(--home-night-4) calc(100% - 450px),
    color-mix(in srgb, var(--home-dawn-1) 80%, transparent) calc(100% - 270px), color-mix(in srgb, var(--home-dawn-2) 60%, transparent) calc(100% - 180px), color-mix(in srgb, var(--home-dawn-3) 45%, transparent) calc(100% - 80px), transparent);
}
/* the night's announcement and header: light words until the page scrolls (the glass comes back, and the ink) */
.site--home .announce-bar { background: var(--home-night-1); border-bottom-color: color-mix(in srgb, var(--inv-strong) 8%, transparent); color: color-mix(in srgb, var(--inv-strong) 72%, transparent); }
.site--home .announce-bar a { color: var(--site-accent-inv); }
.js .site--home .site-header:not(.is-scrolled) :is(.brandmark, .site-nav__toggle) { color: color-mix(in srgb, var(--inv-strong) 92%, transparent); }
/* the links and the header's way in only on the bar; the phone's drawer keeps its own paper */
@media (min-width: 861px) {
  .js .site--home .site-header:not(.is-scrolled) :is(.site-nav__links a, .site-nav__signin) { color: color-mix(in srgb, var(--inv-strong) 92%, transparent); }
  .js .site--home .site-header:not(.is-scrolled) .site-nav__actions .btn--primary.is-quiet { color: var(--inv-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-strong) 30%, transparent); }
}
.home-hero h1 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(50px, 5.8vw, 84px); line-height: 1; letter-spacing: -.045em; color: var(--inv-strong); text-wrap: balance; }
.home-hero h1 .accent {
  padding-right: .08em; margin-right: -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, var(--site-accent-inv), color-mix(in srgb, var(--hl) 76%, var(--bg-panel))); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.home-hero .kicker { margin-bottom: calc(var(--space-3) + var(--air) * .02); font-size: var(--fs-xs); letter-spacing: .075em; color: var(--inv-strong); text-wrap: balance; }
.home-hero .lead { max-width: 44em; margin: calc(var(--space-4) + var(--air) * .04) auto 0; font-size: var(--fs-lead); line-height: 1.7; color: color-mix(in srgb, var(--inv-strong) 92%, transparent); text-wrap: balance; }
.home-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: calc(var(--space-6) + var(--air) * .05); }
.home-actions .btn { min-height: 50px; }
.home-hero .btn--primary[data-public-signup] { padding-inline: 26px; background: var(--bg-panel); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(var(--shadow-rgb), .5); }
.home-hero .btn--primary[data-public-signup]:hover { background: var(--site-accent-inv); }
.home-watch { display: inline-flex; align-items: center; gap: var(--icon-gap-md); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--inv-strong); }
.home-watch .bg-icon { color: var(--site-accent-inv); }
.home-hero__proof { margin-top: var(--space-4); font-size: var(--fs-sm); color: color-mix(in srgb, var(--inv-strong) 88%, transparent); text-wrap: balance; }

/* The window: the screens are captures of the app at 1280 CSS pixels, shown at about 0.9x in the wrap, so the app's
   own type stays readable; on a phone, the app on a phone. */
.hs { position: relative; max-width: 1160px; margin: var(--space-3) auto 0; }
.hs-window {
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-panel);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 30px 60px -30px rgba(var(--shadow-rgb), .35), 0 70px 120px -60px rgba(var(--shadow-rgb), .3);
}
.hs-chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.hs-chrome::before { content: ""; justify-self: start; width: 8px; height: 8px; border-radius: 50%; background: var(--sand-300); box-shadow: 14px 0 var(--sand-300), 28px 0 var(--sand-300); }
.hs-url { min-width: 0; padding: 3px 18px; border-radius: var(--r-pill); background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-chrome .tour-pause { justify-self: end; }
/* Stacked in one cell: the screen coming in fades in over the one going (.is-leaving, js/outer/home.js). */
.hs-screens { display: grid; aspect-ratio: 1280 / 800; background: var(--bg-app); }
.hs-screens > picture { grid-area: 1 / 1; min-width: 0; }
.hs-screens > picture:not(.is-leaving) { z-index: 1; }
.hs-screens > picture:not([hidden]):not(.is-leaving) { animation: hs-in .55s var(--ease-out); }
.hs-screens img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@keyframes hs-in { from { opacity: 0; } }

/* The rail, on the night: the job's three chapters as one path, each stretch over its own parts; the shown part's
   chapter is solid, the ones behind it half, the ones ahead faint (the rail's data-ch, js/outer/home.js). One grid for
   both rows: a column per part, never narrower than its tab, the chapters spanning theirs (subgrid). */
.hs-rail { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(max-content, 1fr)); column-gap: var(--space-3); max-width: 1160px; margin: calc(var(--space-8) + var(--air) * .16) auto 0; }
.hs-rail ol { margin: 0; padding: 0; list-style: none; }
.hs-rail > ol { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.hs-rail .hs-chapters { margin-bottom: 6px; }
.hs-chapters li { position: relative; grid-column: span var(--win, 3); padding-bottom: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-align: center; text-transform: uppercase; white-space: nowrap; color: var(--m-ink); }
.hs-chapters li:nth-child(2) { grid-column: span var(--do, 4); }
.hs-chapters li:last-child { grid-column: span var(--paid, 3); }
.hs-chapters li::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--m) 18%, transparent); transition: background-color var(--duration-fast); }
.hs-rail[data-ch="2"] .hs-chapters li:nth-child(1)::after,
.hs-rail[data-ch="3"] .hs-chapters li:nth-child(-n+2)::after { background: color-mix(in srgb, var(--m) 50%, transparent); }
.hs-rail[data-ch="1"] .hs-chapters li:nth-child(1)::after,
.hs-rail[data-ch="2"] .hs-chapters li:nth-child(2)::after,
.hs-rail[data-ch="3"] .hs-chapters li:nth-child(3)::after { background: var(--m); }
/* Its parts are tabs, not buttons: nothing filled or outlined beside the one way in. The shown part is its word in full
   light over a line in its color, the line that runs out while the tour waits on it (its end moves the tour on). */
.hs-rail [role="tablist"] li { position: relative; isolation: isolate; animation: hs-part .5s var(--ease-out) both; }
.hs-rail button { position: relative; display: flex; justify-content: center; align-items: center; gap: var(--icon-gap-sm); width: 100%; padding: 8px 6px 12px; border: 0; background: none; font: inherit; color: color-mix(in srgb, var(--inv-strong) 72%, transparent); cursor: pointer; }
.hs-icon { display: flex; color: var(--m); }
.hs-icon .bg-icon { transition: translate .18s var(--ease-out); }
.hs-rail b { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.hs-rail [aria-selected="true"] b { font-weight: 600; color: var(--inv-strong); }
.hs-rail button::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: var(--r-hair); background: var(--m); transform: scaleX(0); transform-origin: left center; }
.hs-rail [aria-selected="true"]::after { transform: scaleX(1); }
.hs-rail[data-touring] [aria-selected="true"]::after { animation: hs-dwell 6s linear both; }
.hs-rail[data-touring="paused"] [aria-selected="true"]::after { animation-play-state: paused; }
/* Pointing at a part previews it in its color: its line at half strength over a soft wash, the icon lifted. Never on a
   touch screen, which has no hover; the keyboard's focus shows the same and a ring. */
.hs-rail button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-bottom: 2px solid color-mix(in srgb, var(--m) 50%, transparent); background: linear-gradient(to top, color-mix(in srgb, var(--m) 12%, transparent), transparent 75%); opacity: 0; transform: scaleX(.6); transition: opacity .18s var(--ease-out), transform .22s var(--ease-out); }
@media (hover: hover) {
  .hs-rail button:not([aria-selected="true"]):hover::before { opacity: 1; transform: none; }
  .hs-rail button:hover .hs-icon .bg-icon { translate: 0 -2px; }
  .hs-rail button:hover b { color: var(--inv-strong); }
}
.hs-rail button:focus-visible { outline: 2px solid color-mix(in srgb, var(--m) 60%, transparent); outline-offset: -2px; border-radius: var(--r-sm); }
.hs-rail button:not([aria-selected="true"]):focus-visible::before { opacity: 1; transform: none; }
.hs-rail button:focus-visible b { color: var(--inv-strong); }
.home-hero > .hs-says { max-width: 1160px; margin: 22px auto 0; }
.hs-says p { max-width: 46em; margin: 0 auto; font-size: var(--fs-body); line-height: 1.6; color: var(--text-muted); text-wrap: balance; }
.hs-says p:not([hidden]) { animation: hs-in .45s var(--ease-out); }
.hs-says b { font-weight: 600; color: var(--ink); }
.hs-says a { font-weight: 600; white-space: nowrap; color: var(--ink); text-underline-offset: 3px; }
@keyframes hs-part { from { opacity: 0; translate: 0 6px; } }
@keyframes hs-dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hs-rail [role="tablist"] li, .hs-screens > picture, .hs-says p { animation: none !important; }
  .hs-rail button::before, .hs-icon .bg-icon { transition: none; }
}
/* Too narrow for every part in a row: they scroll sideways in one line, edge to edge, the shown one kept centered
   (js/outer/home.js); the path above keeps each chapter over its parts' share. */
@media (max-width: 1140px) {
  .hs-rail { display: block; margin-inline: calc(-1 * var(--site-gutter)); }
  .hs-rail .hs-chapters { grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: var(--space-3); margin: 0 var(--site-gutter) 6px; }
  .hs-rail [role="tablist"] { display: flex; gap: var(--space-1); overflow-x: auto; padding: 2px var(--site-gutter) 6px; scroll-padding-inline: var(--site-gutter); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--home-solid) var(--site-gutter), var(--home-solid) calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, var(--home-solid) var(--site-gutter), var(--home-solid) calc(100% - 28px), transparent); }
  .hs-rail [role="tablist"]::-webkit-scrollbar { display: none; }
  .hs-rail [role="tablist"] li { flex: none; }
  /* centered while they fit, flush to the start once they scroll */
  .hs-rail [role="tablist"] li:first-child { margin-left: auto; }
  .hs-rail [role="tablist"] li:last-child { margin-right: auto; }
  .hs-rail button { padding-inline: 8px; }
}
@media (max-width: 700px) {
  .site--home { --home-header-bar: 68px; }
  .home-hero .lead { font-size: 16px; }
}
/* A phone: the app on a phone, its top two thirds; the path's chapters read from the left. */
@media (max-width: 600px) {
  .home-hero { padding-bottom: 32px; }
  .home-hero h1 { font-size: 56px; }
  .home-actions { gap: 20px; }
  .hs-rail { margin-top: 28px; }
  .hs-rail .hs-chapters { gap: 6px; margin-bottom: 6px; }
  .hs-chapters li { padding-bottom: 8px; font-size: 10px; letter-spacing: .1em; text-align: left; }
  .hs-chapters li::after { left: 0; right: 0; }
  .hs-rail b { font-size: 13px; }
  .hs { max-width: 400px; margin-top: 14px; }
  .hs-window { border-radius: var(--r-2xl); }
  .hs-chrome { height: 34px; }
  .hs-screens { aspect-ratio: 390 / 620; }
  .home-hero > .hs-says { margin-top: 16px; text-align: left; }
  .hs-says p { font-size: var(--fs-sm); }
}
@media (max-width: 370px) { .home-hero h1 { font-size: 48px; } }

/* ---------- AI (fragments/home-assistants.html): a conversation, cool mint and sky like two voices ---------- */
.asks { padding-block: 88px 80px;
  --tone-bg: radial-gradient(38% 46% at 22% 42%, color-mix(in srgb, var(--site-accent-inv) 30%, transparent), transparent 70%), radial-gradient(40% 50% at 80% 64%, color-mix(in srgb, var(--home-asks-sky) 32%, transparent), transparent 70%), linear-gradient(180deg, var(--home-asks-1), var(--home-asks-2)); }
.asks :is(.asks__bar, .asks__stages) { max-width: 1040px; margin-inline: auto; }
/* the steps and the tour's pause; the steps share one grid cell, so the page never moves as they turn */
.asks__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.asks__bar .tour-pause:hover { background: var(--sand-100); }
.asks__steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.asks__step { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--r-pill); background: none; color: var(--text-muted); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.asks__step:hover { color: var(--ink); }
.asks__step[aria-selected="true"] { border-color: var(--sand-300); background: var(--bg-panel); color: var(--ink); }
.asks__step:focus-visible, .asks__stage:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.asks__stages { display: grid; }
/* each conversation in a window that scrolls as a chat app does (js/outer/agent-chat.js follows it), the chat a little
   wider than the record so ChatGPT's answers read near their own size */
.asks__stage { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; height: 572px; }
.asks__stage[hidden] { display: grid; visibility: hidden; }
.asks__pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); box-shadow: var(--shadow-raise); }
.asks__chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); font-size: var(--fs-xs); color: var(--caption); }
.asks__chrome b { color: var(--text-muted); font-weight: 600; }
.asks__chrome .asks__live { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); }
.asks__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paid-fg); }
.asks__chat { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 0 0 14px; }
.asks__chat .agent-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 12px; gap: 16px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent; }
.asks__chat .agent-composer { margin-inline: 18px; }
/* a soft edge where the conversation scrolls under the window's top */
.asks__chat::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 18px; background: linear-gradient(var(--bg-panel), transparent); pointer-events: none; }
/* before the first question, an empty chat as ChatGPT opens one */
.asks__chat::after { content: "What can I help with?"; position: absolute; inset: 0 0 72px; display: grid; place-items: center; font-family: var(--gpt-font); font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--gpt-ink); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.is-playing .asks__chat:has(.agent-you.is-ahead)::after { opacity: 1; }
/* the user's words as ChatGPT draws them: a soft gray bubble, right */
.asks .agent-you { padding: 9px 16px; border-radius: 20px; background: var(--gpt-fill); color: var(--gpt-ink); font-family: var(--gpt-font); font-size: 14.5px; }
.asks__record { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 22px 22px 24px; background: var(--paper); }
.asks__chip { align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--draft-bg); color: var(--draft-fg); }
.asks__chip.is-good { background: var(--paid-bg); color: var(--paid-fg); }
.asks__title { margin: 0; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 24px; line-height: 1.2; color: var(--ink); }
.asks__sub { margin: -8px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.asks__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.asks__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.asks__rows li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.asks__rows li.is-total { border-bottom: 0; font-weight: 600; color: var(--ink); }
.asks__rows li.is-new { margin-inline: -8px; padding-inline: 8px; border-radius: var(--r-sm); background: var(--site-pick-bg); }
.asks__foot { margin: auto 0 0; font-size: var(--fs-xs); color: var(--caption); }
.asks__caption { max-width: 1040px; margin: 12px auto 0; font-size: var(--fs-xs); color: var(--caption); }
.asks__below { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.asks__below h3 { margin: 0 0 4px; font-size: var(--fs-body); color: var(--ink); }
.asks__below p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.asks__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.asks__cta .home-text-link { margin-top: 0; }
@media (max-width: 860px) {
  .asks__stage { height: auto; grid-template-columns: minmax(0, 1fr); }
  .asks__chat { height: 520px; }
  .asks__below { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- Modern (fragments/home-modern.html): one window playing both drags in turn, Undo and Search beside it ---------- */
/* cool glass, not the warm paper around it: a glow behind the window, a faint drafting grid, mint and lilac at the
   edges. The bridge: under its cards the band deepens into the client portal's evening green, so light hands over to
   dark as one gradient with no seam to draw; it fades in from the page above, but not out. */
.home-modern { padding-block: 64px 150px;
  --tone-bg: radial-gradient(44% 34% at 44% 62%, color-mix(in srgb, var(--home-modern-glow) 38%, transparent), transparent 72%),
    radial-gradient(26% 30% at 6% 30%, color-mix(in srgb, var(--home-modern-mint) 40%, transparent), transparent 70%),
    radial-gradient(26% 30% at 95% 18%, color-mix(in srgb, var(--home-modern-lilac) 44%, transparent), transparent 70%),
    linear-gradient(rgba(var(--home-modern-ink-rgb), .045) 1px, transparent 1px) 50% 0 / 64px 64px, linear-gradient(90deg, rgba(var(--home-modern-ink-rgb), .045) 1px, transparent 1px) 50% 0 / 64px 64px,
    linear-gradient(180deg, var(--home-modern-1) 0, var(--home-modern-2) 42%, var(--home-modern-3) 66%, var(--home-modern-4) 82%, var(--home-modern-5) 93%, var(--home-portal-1) 100%); }
.home-modern::before { -webkit-mask-image: linear-gradient(transparent, var(--home-solid) 12%); mask-image: linear-gradient(transparent, var(--home-solid) 12%); }
/* the portal's curves are already behind it: it begins as a continuation */
.home-modern + .home-portal { padding-top: 64px; }
.home-modern + .home-portal::before { top: 0; --mt: linear-gradient(var(--home-solid), var(--home-solid)); }
.home-modern + .home-portal::after { top: 0; --mt: linear-gradient(transparent, transparent); }
.home-modern__head { max-width: 920px; margin: 0 auto; text-align: center; }
.home-modern__head h2 { margin-top: 14px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(32px, 3.9vw, 52px); line-height: 1.06; text-wrap: balance; }
.home-modern__head .lead { margin: 12px auto 0; font-size: var(--fs-md); line-height: 1.65; }
.mw { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.mw figure { margin: 0; }
/* solid cards on a changing ground, lifting a little more as it darkens beneath them */
.mw-app, .mw-card { border-radius: var(--r-2xl); background: var(--bg-panel); box-shadow: 0 1px 0 var(--bg-panel) inset, 0 0 0 1px rgba(var(--home-modern-ink-rgb), .08), 0 50px 90px -40px rgba(var(--shadow-rgb), .55); }
/* the window filled to the height of the column beside it */
.mw-app { display: flex; flex-direction: column; overflow: hidden; }
.mw-chrome { display: grid; grid-template-columns: auto 1fr; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.mw-dots, .portal-dots { grid-column: 1; grid-row: 1; display: flex; gap: 5px; }
.mw-dots i, .portal-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-300); }
.mw-tabs { grid-column: 1 / -1; grid-row: 1; justify-self: center; display: flex; gap: 2px; margin: 0; padding: 3px; border-radius: var(--r-pill); background: var(--sand-100); font-size: 12px; font-weight: 600; }
.mw-tab { padding: 4px 12px; border: 0; border-radius: var(--r-pill); background: transparent; font: inherit; color: var(--caption); cursor: pointer; transition: background-color .3s, color .3s; }
.mw-tab[aria-pressed="true"] { background: var(--bg-panel); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .08); }
.mw-tab:hover { color: var(--ink); }
.mw-tab:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.mw-screens { position: relative; flex: 1; min-height: 0; aspect-ratio: 16 / 10; background: var(--paper); }
/* the films at their own 16:10, crossfading where one hands over to the other */
.mw-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.mw-film.is-on { opacity: 1; }
/* Undo and Search: two small cards, each one thing, moving only while the films do (their pause stills them) */
.mw-side { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.mw-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.mw-card figcaption { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-muted); }
.mw-card figcaption b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mw-card kbd, .mw-field kbd { padding: 1px 6px; border-radius: 5px; background: var(--sand-100); box-shadow: inset 0 -1px 0 rgba(var(--shadow-rgb), .12); font: 600 12px/1.4 var(--font-sans); color: var(--ink); }
.mw-undo__stage { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 14px; }
.mw-key { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(var(--bg-panel), var(--home-key-face)); box-shadow: var(--mw-key-up); font: 600 20px/1 var(--font-sans); color: var(--ink);
  --mw-key-up: 0 1px 0 var(--bg-panel) inset, 0 0 0 1px rgba(var(--shadow-rgb), .12), 0 6px 0 -1px var(--home-key-edge), 0 14px 22px -10px rgba(var(--shadow-rgb), .35);
  --mw-key-down: 0 1px 0 var(--bg-panel) inset, 0 0 0 1px rgba(var(--shadow-rgb), .12), 0 1px 0 -1px var(--home-key-edge), 0 6px 10px -8px rgba(var(--shadow-rgb), .35); }
.mw-key:first-child { justify-self: end; }
.mw-toast { grid-column: 1 / -1; justify-self: center; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--ink); color: var(--bg-panel); box-shadow: 0 18px 30px -14px rgba(var(--shadow-rgb), .45); font-size: var(--fs-xs); white-space: nowrap; }
.mw-toast b { color: var(--site-accent-inv); }
.mw-search__stage { display: grid; gap: 10px; }
.mw-field { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 4px color-mix(in srgb, var(--site-accent) 12%, transparent); font-size: var(--fs-sm); color: var(--ink); }
.mw-field .bg-icon { color: var(--caption); }
.mw-field span { flex: 1; }
.mw-field span::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); }
.mw-results { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mw-results li { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--r-lg); font-size: var(--fs-sm); }
.mw-results li:first-child { background: color-mix(in srgb, var(--site-accent) 8%, var(--bg-panel)); }
.mw-results i { grid-row: span 2; width: 9px; height: 9px; border-radius: 3px; }
.mw-results i.is-client { background: var(--m-client); }
.mw-results i.is-invoice { background: var(--m-invoice); }
.mw-results b { font-weight: 600; color: var(--ink); }
.mw-results small { font-size: var(--fs-xs); color: var(--caption); }
@media (prefers-reduced-motion: no-preference) {
  .mw:has(.mw-app.is-playing) .mw-key:first-child { animation: mw-press 4s ease-in-out infinite; }
  .mw:has(.mw-app.is-playing) .mw-key:nth-child(2) { animation: mw-press 4s ease-in-out .08s infinite; }
  .mw:has(.mw-app.is-playing) .mw-toast b { animation: mw-flash 4s ease-in-out infinite; }
  .mw:has(.mw-app.is-playing) .mw-field span::after { animation: agent-caret 1s steps(1) infinite; }
}
@keyframes mw-press { 0%, 40%, 60%, 100% { transform: none; box-shadow: var(--mw-key-up); } 48% { transform: translateY(5px); box-shadow: var(--mw-key-down); } }
@keyframes mw-flash { 0%, 44%, 70%, 100% { opacity: 1; } 52% { opacity: .35; } }
@media (max-width: 960px) {
  .mw { grid-template-columns: minmax(0, 1fr); }
  .mw-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
}
@media (max-width: 600px) {
  .mw-side { grid-template-columns: minmax(0, 1fr); }
  .mw-chrome { padding-inline: 10px; }
  .mw-dots { display: none; }
  .mw-tab { padding: 4px 9px; }
}

/* ---------- Portal (fragments/home-portal.html): the client's own page at its own size, the conversation kept with it ---------- */
/* an evening green, warm light spilling from behind the page as from an open door, a very faint grid */
.home-portal { padding-block: 104px 100px; --tone-edge: var(--home-portal-edge);
  --tone-bg: radial-gradient(38% 46% at 46% 62%, color-mix(in srgb, var(--home-portal-door) 22%, transparent), color-mix(in srgb, var(--home-portal-door) 6%, transparent) 55%, transparent 75%),
    linear-gradient(color-mix(in srgb, var(--inv-strong) 3.5%, transparent) 1px, transparent 1px) 50% 0 / 56px 56px, linear-gradient(90deg, color-mix(in srgb, var(--inv-strong) 3.5%, transparent) 1px, transparent 1px) 50% 0 / 56px 56px,
    linear-gradient(180deg, var(--home-portal-1), var(--home-portal-2) 55%, var(--home-portal-3)); }
.portal-stage { position: relative; margin-top: 44px; }
/* the capture's own width (948 CSS pixels, taken at 2x): never scaled up, so it stays sharp */
.portal-page { width: min(948px, 100%); margin: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 50px 100px -40px rgba(var(--shadow-rgb), .6), 0 0 0 1px color-mix(in srgb, var(--inv-strong) 8%, transparent); }
.portal-chrome { display: grid; grid-template-columns: auto 1fr; align-items: center; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.portal-url { grid-column: 1 / -1; grid-row: 1; justify-self: center; display: inline-flex; align-items: center; gap: var(--icon-gap-xs); padding: 3px 14px; border-radius: var(--r-pill); background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--caption); }
.portal-url .bg-icon { color: var(--paid-fg); }
.portal-page img { display: block; width: 100%; aspect-ratio: 1896 / 1200; height: auto; object-fit: cover; object-position: top; }
/* the conversation as the hub keeps it: one panel, its thread and a reply box; its messages arrive as it scrolls in */
.portal-thread { position: absolute; right: 0; top: 18%; width: min(340px, 34%); padding: 16px; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 40px 80px -24px rgba(var(--shadow-rgb), .55), 0 0 0 1px rgba(var(--shadow-rgb), .04); color: var(--text); font-size: var(--fs-sm); }
.portal-thread__head { display: flex; align-items: center; gap: var(--icon-gap-sm); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.portal-thread__head .bg-icon { color: var(--site-accent); }
.portal-thread__head b { color: var(--ink); }
.portal-thread__head span { margin-left: auto; font-size: var(--fs-xs); color: var(--caption); }
.portal-msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding-top: 14px; }
.portal-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--home-avatar-bg); font-size: 11px; font-weight: 600; color: var(--home-avatar-ink); }
.portal-msg--studio .portal-av { background: var(--ink); color: var(--bg-panel); font-family: var(--font-display); font-size: 14px; }
.portal-msg b { font-size: var(--fs-sm); color: var(--ink); }
.portal-msg time { margin-left: 8px; font-size: var(--fs-xs); color: var(--caption); }
.portal-msg p + p { margin-top: 2px; line-height: 1.5; color: var(--text); }
.portal-reply { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 9px 9px 9px 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--caption); }
.portal-reply span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--site-accent); color: var(--bg-panel); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portal-msg { animation: portal-arrive linear both; animation-timeline: view(); animation-range: entry 30% cover 30%; }
    .portal-msg--studio { animation-range: entry 70% cover 40%; }
  }
}
@keyframes portal-arrive { from { opacity: 0; transform: translateY(6px); } }
/* what is on the page, briefly */
.portal-inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
.portal-inside li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; align-content: start; padding-top: 20px; border-top: 1px solid var(--home-glass-line); }
.portal-inside__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--inv-strong) 10%, transparent); color: var(--site-accent-inv); }
.portal-inside h3 { font-size: var(--fs-md); line-height: 1.35; }
.portal-inside p { font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 960px) {
  .portal-thread { position: relative; top: auto; right: auto; width: auto; max-width: 420px; margin: -48px 16px 0 auto; }
  .portal-inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .portal-page img { aspect-ratio: 390 / 560; }
  .portal-inside { grid-template-columns: minmax(0, 1fr); }
  .portal-thread { margin: -32px 0 0; }
}

/* ---------- Time (fragments/home-time.html): the calendar's own film, the timer and the timesheet beside it ---------- */
/* the hours of a day: warm amber light across the ledger's grid, a little stronger where the day is */
.home-time { --tone-bg: radial-gradient(45% 55% at 82% 30%, color-mix(in srgb, var(--home-time-amber) 34%, transparent), transparent 70%), radial-gradient(40% 50% at 12% 78%, color-mix(in srgb, var(--home-time-cream) 50%, transparent), transparent 70%),
    linear-gradient(rgba(var(--home-time-grid-rgb), .045) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(var(--home-time-grid-rgb), .045) 1px, transparent 1px) 0 0 / 64px 64px, var(--home-time-page); }
.ft-show { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.ft-film { margin: 0; }
.ft-film figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.ft-film figcaption b { color: var(--ink); }
.ft-window { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 40px 80px -40px rgba(var(--shadow-rgb), .4), inset 0 0 0 1px var(--line); }
.ft-window video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ft-side { display: grid; gap: 20px; }
/* the timer, as the top of the Time page draws it: what is running, then its clock */
.ft-timer, .ft-sheet { border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .08), 0 28px 50px -24px rgba(var(--shadow-rgb), .4), inset 0 0 0 1px var(--line); }
.ft-timer { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 14px 12px; padding: 16px 18px; }
.ft-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--home-timer); box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-timer) 18%, transparent); }
.ft-timer b { display: block; font-size: var(--fs-body); color: var(--ink); }
.ft-timer small { display: block; font-size: var(--fs-xs); color: var(--caption); }
.ft-timer em { font-style: normal; font-weight: 600; color: var(--home-timer-earned); }
.ft-timer__run { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.ft-clock { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ft-clock small { display: inline; font-size: 17px; font-weight: 500; color: var(--caption); }
.ft-stop { padding: 8px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
/* the dot pulses, and the clock ticks (js/outer/home.js), while the calendar film plays: its pause stills them */
@media (prefers-reduced-motion: no-preference) { .ft-show:has(.ft-film.is-playing) .ft-dot { animation: ft-pulse 2s ease-in-out infinite; } }
@keyframes ft-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--home-timer) 0%, transparent); } }
/* the timesheet: the same week as a ledger */
.ft-sheet { padding: 16px 18px; }
.ft-sheet table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.ft-sheet caption { margin-bottom: 8px; text-align: left; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.ft-sheet caption small { margin-left: 6px; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--caption); }
.ft-sheet :is(th, td) { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; color: var(--text); }
.ft-sheet thead th { font-weight: 500; color: var(--caption); }
.ft-sheet tbody th { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ft-sheet tbody th i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: var(--r-hair); vertical-align: 1px; }
.ft-sheet .is-brand { background: var(--home-project-brand); }
.ft-sheet .is-packaging { background: var(--home-project-packaging); }
.ft-sheet .is-website { background: var(--home-project-website); }
.ft-sheet tfoot :is(th, td) { border-bottom: 0; font-weight: 600; color: var(--ink); }
.ft-sheet tfoot th { text-align: left; }
@media (max-width: 960px) { .ft-show { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Team (fragments/home-team.html): the real unbilled film, the team's day at their rates, a flat price ---------- */
/* people working side by side: a plum dusk lit by each person's color, as on the team's calendar */
.home-team { --tone-edge: var(--home-team-edge);
  --tone-bg: radial-gradient(28% 36% at 14% 26%, color-mix(in srgb, var(--home-team-rose) 24%, transparent), transparent 70%), radial-gradient(28% 36% at 40% 8%, color-mix(in srgb, var(--home-team-mint) 16%, transparent), transparent 70%),
    radial-gradient(30% 40% at 70% 18%, color-mix(in srgb, var(--home-team-violet) 22%, transparent), transparent 70%), radial-gradient(34% 40% at 90% 70%, color-mix(in srgb, var(--home-team-blue) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--home-team-1), var(--home-team-2) 50%, var(--home-team-3)); }
.home-team { padding-block: 104px 96px; }
.tt-stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-top: 40px; }
.tt-film { margin: 0; }
.tt-window { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 40px 90px -30px rgba(var(--shadow-rgb), .55), 0 0 0 1px color-mix(in srgb, var(--inv-strong) 8%, transparent); }
.tt-window video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-film figcaption { margin-top: 12px; font-size: var(--fs-sm); }
.tt-film figcaption b { color: var(--home-on-dark); }
.tt-side { display: grid; gap: 18px; }
.tt-card { padding: 18px 18px 14px; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 30px 60px -24px rgba(var(--shadow-rgb), .5); color: var(--text); }
.tt-h { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.tt-h small { margin-left: 6px; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--caption); }
.tt-card ul { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.tt-card li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tt-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand-100); font-size: 11px; font-weight: 600; color: var(--ink); }
.tt-card li b { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.tt-card em { font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.tt-total b { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.tt-price { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--inv-strong) 8%, transparent); box-shadow: inset 0 0 0 1px var(--home-glass-line); }
.tt-price b { font-size: var(--fs-md); color: var(--home-on-dark); }
.tt-price span { font-size: var(--fs-sm); }
@media (max-width: 960px) { .tt-stage { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Invoices (fragments/home-invoices.html): three papers, one in front at a readable size ---------- */
/* paper: a warm sand with a soft gold light on the papers, the color of paid */
.home-invoices { padding-block: 112px 104px; text-align: center;
  --tone-bg: radial-gradient(42% 52% at 50% 62%, color-mix(in srgb, var(--home-invoices-gold) 40%, transparent), transparent 72%), radial-gradient(30% 40% at 12% 30%, color-mix(in srgb, var(--home-invoices-sand) 60%, transparent), transparent 70%), linear-gradient(180deg, var(--home-invoices-1), var(--home-invoices-2)); }
.home-invoices__head { max-width: 720px; margin: 0 auto; }
.home-invoices__head h2 { margin-top: 16px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; }
.home-invoices__head .lead { margin: 16px auto 0; font-size: var(--fs-md); line-height: 1.7; }
.home-papers { position: relative; height: clamp(360px, 44vw, 560px); max-width: 1080px; margin: 52px auto 0; }
.home-paper { position: absolute; height: auto; border-radius: var(--r-lg); background: var(--bg-panel); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .08), 0 24px 50px -22px rgba(var(--shadow-rgb), .35), 0 60px 90px -60px rgba(var(--shadow-rgb), .4); }
.home-paper--front { z-index: 2; left: 50%; top: 4%; width: 54%; translate: -50% 0; }
.home-paper--left { left: 2%; top: 14%; width: 40%; rotate: -5deg; }
.home-paper--right { right: 2%; top: 14%; width: 40%; rotate: 5deg; }
.home-papers__note { margin-top: 20px; font-size: var(--fs-sm); color: var(--caption); }
.home-invoices__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 21px; }
@media (prefers-reduced-motion: no-preference) {
  .home-paper { transition: translate .5s var(--ease-out), rotate .5s var(--ease-out); }
  .home-papers:hover .home-paper--left { translate: -12px 0; rotate: -7deg; }
  .home-papers:hover .home-paper--right { translate: 12px 0; rotate: 7deg; }
}
@media (max-width: 700px) {
  .home-papers { height: 74vw; }
  .home-paper--front { width: 78%; }
  .home-paper--left, .home-paper--right { width: 56%; top: 18%; }
  .home-paper--left { left: -6%; }
  .home-paper--right { right: -6%; }
}

/* ---------- While you sleep: the studio's dashboard and the night's feed under a few faint stars ---------- */
.away { padding-top: clamp(96px, 9vw, 130px); --tone-edge: var(--home-away-edge);
  --tone-bg: radial-gradient(60% 34% at 50% 100%, color-mix(in srgb, var(--home-away-dawn) 34%, transparent), transparent 75%), radial-gradient(50% 40% at 50% 0, color-mix(in srgb, var(--home-away-glow) 10%, transparent), transparent 70%),
    linear-gradient(180deg, var(--home-away-1) 0, var(--home-away-2) 40%, var(--home-away-3) 70%, var(--home-away-4) 90%, var(--home-away-5) 100%); }
.away__sky { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
/* three star fields tiled at sizes that never line up -- dust, stars, and bright stars with a halo, a few warm or cool */
.away__stars { --dim: color-mix(in srgb, var(--home-star) 50%, transparent); --halo: color-mix(in srgb, var(--home-star) 22%, transparent);
  position: absolute; inset: 0 0 auto; height: 55%; opacity: .35; -webkit-mask-image: linear-gradient(180deg, var(--home-solid) 45%, transparent); mask-image: linear-gradient(180deg, var(--home-solid) 45%, transparent);
  background-image: radial-gradient(circle at 12px 18px, var(--dim) .7px, transparent 1.3px), radial-gradient(circle at 61px 92px, var(--dim) .9px, transparent 1.5px), radial-gradient(circle at 118px 37px, var(--dim) .7px, transparent 1.3px), radial-gradient(circle at 171px 128px, var(--dim) .9px, transparent 1.5px), radial-gradient(circle at 203px 64px, var(--dim) .7px, transparent 1.3px), radial-gradient(circle at 88px 141px, var(--dim) .6px, transparent 1.2px), radial-gradient(circle at 149px 8px, var(--dim) .8px, transparent 1.4px), radial-gradient(circle at 36px 121px, var(--dim) .6px, transparent 1.2px);
  background-size: 233px 157px; }
.away__stars::before, .away__stars::after { content: ""; position: absolute; inset: 0; }
.away__stars::before { background-image: radial-gradient(circle at 40px 52px, var(--home-star) 1px, transparent 1.7px), radial-gradient(circle at 156px 190px, var(--home-star-cool) 1px, transparent 1.7px), radial-gradient(circle at 233px 31px, var(--home-star) 1.2px, transparent 1.9px), radial-gradient(circle at 318px 140px, var(--home-star) 1px, transparent 1.7px), radial-gradient(circle at 395px 248px, var(--home-star) .9px, transparent 1.6px), radial-gradient(circle at 97px 262px, var(--home-star-warm) 1.1px, transparent 1.8px), radial-gradient(circle at 270px 92px, var(--home-star) .8px, transparent 1.5px), radial-gradient(circle at 365px 12px, var(--home-star-cool) .9px, transparent 1.6px), radial-gradient(circle at 18px 170px, var(--home-star) .8px, transparent 1.5px);
  background-size: 419px 283px; }
.away__stars::after { background-image: radial-gradient(circle at 120px 80px, var(--home-star) 1.4px, var(--halo) 2.2px, transparent 6px), radial-gradient(circle at 530px 40px, var(--home-star-cool) 1.6px, var(--halo) 2.4px, transparent 7px), radial-gradient(circle at 690px 300px, var(--home-star) 1.3px, var(--halo) 2.1px, transparent 6px), radial-gradient(circle at 300px 360px, var(--home-star) 1.4px, var(--halo) 2.2px, transparent 6px), radial-gradient(circle at 760px 170px, var(--home-star-warm) 1.5px, var(--halo) 2.3px, transparent 7px), radial-gradient(circle at 420px 210px, var(--home-star-warm) 1.3px, var(--halo) 2.1px, transparent 6px);
  background-size: 797px 431px; }
.away__copy { position: relative; max-width: 760px; text-align: center; }
.away__copy h2 { margin-top: 12px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d2); line-height: 1.02; }
.away__copy .lead { max-width: 30em; margin: 16px auto 0; color: var(--inv-strong); }
.away .kicker { color: color-mix(in srgb, var(--site-accent-inv) 70%, var(--bg-panel)); }
/* The window the whole width of the wrap, so the app reads (a 1440 x 900 capture at about 0.8x); the night's feed laid
   over its lower corner, its top just under the dashboard's tiles (54% down the 16:10 screen), hanging below the window.
   It stays in the flow, pulled up over the window, so the band grows with it. */
.away__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; margin-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(64px, 6vw, 88px); }
.away__window { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 40px 90px rgba(var(--shadow-rgb), .42), 0 0 0 1px color-mix(in srgb, var(--inv-strong) 7%, transparent); }
.away__chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.away__chrome i { width: 9px; height: 9px; border-radius: var(--r-pill); background: var(--sand-200); }
.away__chrome span { margin-inline: auto; padding: 2px 14px; border-radius: var(--r-sm); background: var(--bg-panel); box-shadow: var(--shadow-card); font-size: var(--fs-xs); color: var(--caption); }
.away__screen { position: relative; display: block; overflow: hidden; }
.away__screen img { display: block; width: 100%; height: auto; }
.away__feed { position: relative; margin: 0 0 clamp(24px, 4vw, 56px) -48px; padding: 18px; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 24px 60px rgba(var(--shadow-rgb), .38); color: var(--text); }
.away__feed-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); }
.away__feed-head b { font-weight: 600; color: var(--ink); }
.away__live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--paid-fg); }
.away__live::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-pill); background: currentColor; }
.away__feed ol { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }
.away__feed li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 8px 4px; border-radius: var(--r-lg); }
.away__feed b { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--ink); }
.away__feed small { display: block; font-size: var(--fs-xs); color: var(--caption); }
.away__feed time { font-family: var(--font-sans); }
.away__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-lg); background: var(--sent-bg); color: var(--sent-fg); }
.away__feed [data-kind="paid"] .away__icon { background: var(--paid-bg); color: var(--paid-fg); }
.away__feed [data-kind="late"] .away__icon { background: var(--overdue-bg); color: var(--overdue-fg); }
.away__feed-foot { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 0; padding: 12px 4px 2px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--caption); }
.away__feed-foot b { font-size: var(--fs-sm); font-weight: 600; color: var(--paid-fg); }
/* As the feed comes into view (js/outer/home.js), the night's events arrive one after another, then the total */
@media (prefers-reduced-motion: no-preference) {
  .away__feed[data-arrive="waiting"] :is(li, .away__feed-foot) { opacity: 0; }
  .away__feed[data-arrive="on"] :is(li, .away__feed-foot) { animation: away-arrive .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 260ms); }
}
@keyframes away-arrive { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 981px) {
  .away__stage { display: block; container-type: inline-size; }
  .away__feed { width: 340px; margin: calc(100cqi * .625 * -.56) 0 0 auto; }
}
@media (max-width: 980px) {
  .away__stage { grid-template-columns: minmax(0, 1fr); }
  .away__feed { margin: -40px 16px 0; }
}
/* on a phone, the app on a phone, its top: the money card and what needs you */
@media (max-width: 600px) { .away__screen img { max-height: 480px; object-fit: cover; object-position: top; } }

/* ---------- Details: six cards, each an icon, a line and a sentence, the whole card the link ---------- */
/* many small things: a pale lilac page with each feature's color as a faint bloom */
.home-details { padding-block: 90px 82px;
  --tone-bg: radial-gradient(24% 34% at 10% 30%, color-mix(in srgb, var(--home-details-rose) 22%, transparent), transparent 70%), radial-gradient(24% 34% at 42% 82%, color-mix(in srgb, var(--home-details-sage) 26%, transparent), transparent 70%), radial-gradient(24% 34% at 88% 24%, color-mix(in srgb, var(--home-details-blue) 26%, transparent), transparent 70%), linear-gradient(180deg, var(--home-details-1), var(--home-details-2)); }
.home-details h2 { font-size: clamp(38px, 4vw, 54px); margin-top: 16px; }
.home-details__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.home-details__head .home-text-link { margin: 0 0 6px; flex: none; }
.home-details__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.home-detail { position: relative; display: grid; align-content: start; gap: 8px; height: 100%; padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-panel); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.home-detail:hover { border-color: color-mix(in srgb, var(--m) 35%, var(--line)); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.home-detail:focus-visible { outline: 2px solid var(--m); outline-offset: 3px; }
.home-detail__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--m) 10%, transparent); color: var(--m); }
.home-detail h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.home-detail p { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.home-detail > .bg-icon:last-child { position: absolute; top: 30px; right: 26px; color: var(--m); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.home-detail:is(:hover, :focus-visible) > .bg-icon:last-child { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .home-detail, .home-detail > .bg-icon:last-child { transition: none; } .home-detail:hover { transform: none; } }
@media (max-width: 980px) { .home-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .home-details__head { display: block; }
  .home-details__head .home-text-link { margin-top: 18px; }
  .home-details__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 30px; }
  .home-detail { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px; }
  .home-detail__icon { grid-row: span 2; margin: 0; }
  .home-detail > .bg-icon:last-child { display: none; }
}

/* ---------- Trust (fragments/site-security.html, its cards in outer/site.css), here a dark band ---------- */
/* money kept safe: a deep forest evening, a soft light where the cards sit, engraved faintly like a banknote */
.trust-section[data-tone="dark"] { padding-block: 120px 112px; --tone-edge: var(--home-trust-edge);
  --tone-bg: repeating-radial-gradient(circle at 50% 135%, transparent 0 20px, rgba(var(--home-trust-engrave-rgb), .035) 20px 21px), radial-gradient(55% 45% at 50% 72%, color-mix(in srgb, var(--home-trust-glow) 16%, transparent), transparent 72%),
    linear-gradient(180deg, var(--home-trust-1), var(--home-trust-2) 55%, var(--home-trust-3)); }
.trust-section[data-tone="dark"] .kicker { color: color-mix(in srgb, var(--site-accent-inv) 70%, var(--bg-panel)); }
.trust-section[data-tone="dark"] :is(.lead, .trust-card > p) { color: var(--inv-strong); }
.trust-section[data-tone="dark"] .trust-card { background: color-mix(in srgb, var(--inv-strong) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-strong) 12%, transparent), inset 0 1px 0 color-mix(in srgb, var(--inv-strong) 10%, transparent); }
.trust-section[data-tone="dark"] .trust-card__shot { box-shadow: 0 18px 40px -20px rgba(var(--shadow-rgb), .45); }
.trust-section[data-tone="dark"] .trust-card > p a { color: var(--home-on-dark); }
.trust-section[data-tone="dark"] .trust__foot { color: var(--home-on-dark-soft); }
.trust-section[data-tone="dark"] .trust__https .bg-icon { color: var(--site-accent-inv); }
.trust-section[data-tone="dark"] .trust__foot a { color: var(--home-on-dark); text-decoration-color: color-mix(in srgb, var(--inv-strong) 35%, transparent); }

/* ---------- Pricing: a calm, warm page, a little light behind the plans ---------- */
.home-pricing { padding-block: 92px;
  --tone-bg: radial-gradient(50% 40% at 50% 62%, color-mix(in srgb, var(--home-pricing-glow) 34%, transparent), transparent 72%), linear-gradient(180deg, var(--home-pricing-1), var(--home-pricing-2)); }
.home-pricing__head { margin-bottom: 42px; text-align: center; }
.home-pricing__head h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); margin-top: 17px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.07; }
.home-pricing__head > p:last-child { margin-top: 22px; color: var(--text-muted); }
.home-pricing__more { text-align: center; margin-top: 28px; font-size: var(--fs-sm); color: var(--caption); }
.home-pricing__more a { display: inline-flex; align-items: center; gap: var(--icon-gap-md); text-underline-offset: 4px; }

/* ---------- Closing (fragments/site-closing.html): the evening the page opened with, as a faint blush at the end ---------- */
.site--home .closing { max-width: none; padding: 88px var(--site-gutter) 150px; background: radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--home-closing-blush) 30%, transparent), transparent 70%), var(--home-page); }
.site--home .closing h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); margin-top: 17px; font-size: clamp(46px, 5.4vw, 76px); line-height: 1.03; }
.site--home .closing .lead { margin-top: 24px; }
.site--home .closing > .btn { margin-top: 28px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) { .home-section__head { gap: 44px; } }
@media (max-width: 860px) { .home-section__head { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 700px) {
  .home-section { padding-block: 64px; }
  .home-modern { padding-bottom: 120px; }
  .trust-section[data-tone="dark"] { padding-block: 72px; }
  .home-section__head { gap: 23px; margin-bottom: 27px; }
  .home-section__head h2, .home-details h2, .home-invoices__head h2 { font-size: 42px; }
  .home-section__head .lead { font-size: 16px; }
  .home-notes { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 36px; }
  .home-details { padding-block: 58px; }
  .home-pricing { padding-block: 60px; }
  .home-pricing__head h2 { font-size: 40px; }
  .site--home .closing { padding-block: 58px 120px; }
  .site--home .closing h2 { font-size: 58px; }
}
