/* Sightline Home, below the hero (card 1c). Tokens only, from assets/site.css; rules in CONTRACT.md.
   Direction: one motif, the sightline (a line that ends in a dot): the five step markers stand on it and it runs through them,
   and the closing's line reaches the button the way the menu bar's line reaches Get a quote.
   Every call below that the card did not fix is UNCONFIRMED (reports/BUILD-REPORT-1c.md). */

/* ---------- 1. Recent work: the work card, big, its facts beside the picture (the hero owns the invitation line) ---------- */
.home-work .wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.home-work-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.home-caption { display: block; font-size: var(--fs-8); line-height: 1.45; color: var(--muted-dark); max-width: 60ch; text-wrap: balance; }
.home-later { margin-top: calc(-1 * var(--space-2)); }

/* the card shows the whole first screen of Hollowbrook, so its media grows with the picture instead of cropping it */
.home-work .work-card-media { height: auto; aspect-ratio: auto; padding: 56px 48px 0; }
.home-work .work-card-shot {
  position: relative; inset: auto; display: flex; flex-direction: column;
  border-radius: var(--r-inner) var(--r-inner) 0 0; background: var(--slate);
}
.home-work .work-card-shot img { height: auto; aspect-ratio: 1440 / 896; object-fit: cover; object-position: 50% 0; }
/* a drawn browser frame: a slim bar and one tab, no dots (decision 81) */
.home-frame-bar { display: flex; align-items: flex-end; flex: 0 0 auto; height: 32px; padding: 0 var(--space-3); background: var(--slate); }
.home-frame-tab {   /* a tab title shortens with an ellipsis when the window is narrow, as a real tab does */
  display: block; box-sizing: border-box; max-width: 100%; height: 26px; line-height: 26px; padding: 0 var(--space-4);
  border-radius: 10px 10px 0 0; background: var(--graphite); color: var(--text-soft);
  font-size: var(--fs-9); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 960px) {
  .home-work-card { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--space-7); align-items: stretch; }
  .home-work-meta { justify-content: center; }   /* the facts sit beside the picture, centred on it */
}

/* ---------- 2. Plans: one panel, four columns, the price is the figure ---------- */
.home-plans .h-section { margin-bottom: var(--space-6); }
.home-plans-list {
  list-style: none; margin: 0; padding: var(--space-7);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6);
  background: var(--graphite); border-radius: var(--r-panel);
}
.home-plan { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 0; }
@supports (grid-template-rows: subgrid) {   /* mark, name, price and line each line up across the four columns */
  .home-plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: start; }
}
.home-price { align-self: end; }
.home-mark { display: block; width: 48px; height: 48px; flex: 0 0 auto; margin: 0 0 var(--space-2) -7px; }   /* card 1e's plan marks (card 1i swapped them in for the placeholders); the drawn edge, not the 48 px box, lines up with the words, as on Pricing */
.home-mark-starter { margin-left: -15px; }   /* Starter's page is drawn 16 units in, the others 8 (pricing.css's --mark-shift) */
.home-price {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2);
  font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.025em;
}
.home-from { font-family: var(--font-text); font-size: var(--fs-8); font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--muted-dark); }
.home-plan-line { font-size: var(--fs-7); line-height: 1.45; color: var(--text-soft); max-width: 30ch; }
.home-plans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-top: var(--space-4); }

/* ---------- 3. How it works: the one light field on the page, the steps joined along the sightline ---------- */
.home-how-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title more" "steps steps";
  align-items: end; gap: var(--space-7) var(--space-6);
  padding: var(--space-8) var(--space-7);
  background: var(--blueprint); border-radius: var(--r-panel);
}
.home-how-panel .h-section { grid-area: title; max-width: 20ch; }
.home-how-panel .link-more { grid-area: more; justify-self: start; }
.home-steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; --step-gap: var(--space-4); grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--step-gap); }
.home-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 0; }
@supports (grid-template-rows: subgrid) {   /* the five titles end together, so the five lines start together */
  .home-step { display: grid; grid-row: span 3; grid-template-rows: subgrid; justify-items: start; }
}
.home-step .h-card { margin-top: var(--space-3); font-size: var(--fs-5); line-height: 1.2; }
.home-step p { font-size: var(--fs-7); line-height: 1.45; color: var(--slate); max-width: 28ch; }
.home-step-mark { display: block; width: 48px; height: 48px; margin-left: -4px; position: relative; z-index: 1; }
/* the marker's own base line sits at 40 px and ends in a dot; this carries that line on to the next marker */
.home-step:not(:last-child)::before {
  content: ""; position: absolute; top: 39px; left: 40px; height: 2px;
  width: calc(100% + var(--step-gap) - 36px); background: var(--ink);
}

/* ---------- 4. Who you'll work with ---------- */
.home-who-panel {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--space-8); align-items: center;
  padding: var(--space-7); background: var(--graphite); border-radius: var(--r-panel);
}
.home-face { background: var(--ink); border-radius: var(--r-card); font-size: var(--fs-1); }
.home-face .logo-dot { width: 24px; height: 24px; margin: 0; }
.home-who-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.home-who-body .h-section { margin-bottom: var(--space-3); }
.home-hi { font-family: var(--font-display); font-size: var(--fs-3); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
.home-oneline { max-width: 36ch; }
.home-story { max-width: 52ch; color: var(--text-soft); }
.home-who-body .small { margin-top: var(--space-1); }
.home-who-body .link-more { margin-top: var(--space-2); }

/* ---------- 5. The closing: the page ground, one line that runs up to a quiet button (the menu bar's Get a quote is the page's one yellow button, CONTRACT) ---------- */
.home-close .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.home-close .h-section { max-width: 18ch; }
.home-close-action {
  align-self: stretch; margin-top: var(--space-5);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-4); row-gap: var(--space-3);
}
.home-close-line { position: relative; height: 4px; border-radius: 2px; background: var(--slate); }
.home-close-line::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); }
.home-close-action .btn-outline { justify-self: end; }
.home-close-action .small { grid-column: 1 / -1; text-align: right; }

/* ---------- Tablet and phone: each section is recomposed, not squeezed ---------- */
@media (max-width: 1099.98px) {
  .home-steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .home-step { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-1); align-items: start; }
  .home-step-mark { grid-row: 1 / span 2; margin-left: 0; }
  .home-step .h-card { margin-top: 0; padding-top: var(--space-2); }
  .home-step p { grid-column: 2; max-width: 52ch; }
  .home-step:not(:last-child)::before { top: 56px; left: 23px; width: 2px; height: calc(100% + var(--space-6) - 64px); }
}
@media (max-width: 999.98px) {
  .home-plans-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
}
@media (max-width: 859.98px) {
  .home-who-panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .home-face { width: min(100%, 300px); }
  .home-how-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "steps" "more"; align-items: start; }
}
@media (max-width: 759.98px) {
  .home-work .work-card-media { padding: 56px 20px 0; }
  .home-plans-list { padding: var(--space-5); }
  .home-how-panel { padding: var(--space-7) var(--space-5); gap: var(--space-6); }
  .home-who-panel { padding: var(--space-5); }
  .home-plan-line { font-size: var(--fs-8); }
  .home-face.ph { width: 160px; }   /* while it is the empty placeholder (.ph: the dot on navy, 89 (2)), a 160 x 200 slot at the real 4:5 instead of about 300 x 375, 45% of a phone screen with nothing in it (card 1i fix round 1, review r1; UNCONFIRMED look call). His headshot, placed without .ph, gets the full slot back */
}
@media (max-width: 19.99em) {   /* only with enlarged browser text (19.99em = 320 px at the default 16 px; 640 px at 200%): the plans take one column, so "Standard" no longer runs past a 390 px phone (card 1i fix round 1, review r1) */
  .home-plans-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 399.98px) {   /* a 320 px screen: the How it works heading keeps two lines inside the panel */
  .home-how-panel { padding-left: var(--space-4); padding-right: var(--space-4); }
}
