/* Homepage composition. Placement only: every block sits on the shared grid
   from base.css, and every value comes from tokens.css. */

/* ---- Hero ------------------------------------------------------------------
   The copy is the shared page hero (base.css). The space above is --hero-y
   less 16px and the space below --hero-y plus 32px, so the copy sits a little
   high and the coast photo has room under the buttons. The second sentence
   takes two lines on desktop.
   The logo strip follows directly. The hero is as tall as its content, not
   the window, so the next section shows below the strip on most screens. */
.hero__grid {
  padding-top: max(2rem, calc(var(--hero-y) - var(--hero-top-trim)));
  padding-bottom: calc(var(--hero-y) + var(--hero-bottom-add));
}
/* The copy sits 48px lower from 640px up, the section no taller (Luke,
   2026-11-13: with the eyebrow gone it felt too high up): --hero-copy-move
   comes off the space below as it goes on above. His picks are the
   fallbacks here; the review switches (review.css, ?review=all) can still
   set --hero-move, --hero-top-add, --hero-photo-add and --hero-fade-add. */
@media (min-width: 640px) {
  .hero { --hero-copy-move: var(--hero-move, 3rem); }
  .hero__grid {
    padding-top: calc(max(2rem, calc(var(--hero-y) - var(--hero-top-trim))) + var(--hero-top-add, 0px) + var(--hero-copy-move));
    padding-bottom: calc(var(--hero-y) + var(--hero-bottom-add) - var(--hero-copy-move));
  }
}
/* The heading is Matt's line that was the eyebrow (markup 2026-11-12, #21;
   the eyebrow is gone, #5), in one tone (Luke, 2026-11-13: the shared
   hero's navy over grey looked odd here) at the large heading size, with
   its closer lines and letters (Luke locked "Large" the same day, over
   the hero's usual size and the two tones). On desktop each span is a
   line, so it breaks by phrase: "Independent, flat-fee wealth management /
   for corporate leaders, business owners, / and households in transition."
   The longest runs 16.6em, so the size gives way before a line would wrap.
   The buttons sit 56px under it, the bigger heading's gap (Luke,
   2026-10-26). Tablets wrap it as one sentence with even lines; phones
   also drop to the hero's usual size, or it would run six lines. */
.hero .display { font-size: var(--display-lg); line-height: var(--leading-display-lg); letter-spacing: var(--tracking-display-lg); }
.hero__copy .btn-row { margin-top: calc(var(--space-7) + var(--space-2)); }
@media (min-width: 1024px) {
  .hero__copy { container-type: inline-size; }
  .hero .display { font-size: min(var(--display-lg), 100cqi / 16.9); }
}
@media (max-width: 1023px) {
  .hero .display { text-wrap: balance; }   /* each sentence stays its own line at every width (Matt, round 11 #17: two lines) */
}
@media (max-width: 639px) {
  .hero .display { font-size: var(--display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
  .hero__copy .btn-row { margin-top: var(--space-6); }
}

/* ---- Hero photo: the coast rises from the strip ------------------------------
   Matt's Palos Verdes cove, the photo from his current contact page (his own
   DSC_0010, Dec 2015; his markup 2026-10-21, locked by Luke 2026-10-22 over
   the island haze), cut at the guide lines and faded into the paper above.
   The band keeps the island haze's geometry: it rises --horizon-d plus the
   fade above the strip, so the fade clears the buttons and the grey second
   sentence always sits on clean paper. */
.hero {
  --horizon-d: calc(min(calc(var(--hero-y) * 0.6), calc(var(--hero-y) - 3rem)) + var(--hero-bottom-add));
  /* --sky-fade (tokens.css, Luke's 115%) sets the fade: 1.15 holds the photo
     solid to about 1.6vw above --horizon-d, then fades it over about 6.5vw. */
  /* --hero-fade-lower moves where the fade starts down toward the strip and
     adds the same to the fade, so its top stays put (from 640px, below). */
  --horizon-solid: calc(var(--horizon-d) + 4.5vw - 2.5vw * var(--sky-fade) - var(--hero-fade-lower, 0px));
  --horizon-fade: calc(clamp(calc(4rem - 0.5rem * var(--sky-fade)), calc(10vw - 3vw * var(--sky-fade)), calc(9rem - 2.5rem * var(--sky-fade))) + var(--hero-fade-up, 0px) + var(--hero-fade-lower, 0px));   /* --hero-fade-up: the photo shows further up from 640px (below) */
}
.hero__frame { position: relative; }
.hero__art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--horizon-solid) + var(--horizon-fade));
  max-height: min(100%, calc(var(--hero-photo-y) * 0.645 * var(--hero-photo-scale) * min(100vw - 2 * var(--page-margin), var(--frame-max))));   /* never past the hero's top, or the photo's own top edge (0.665 of its width tall, less 3%) */
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
  opacity: var(--horizon-opacity);
  /* The fade's stops are set off the band's real height (--f), so it still
     ends at the top when the band is capped. Each stop is (1 - t) to the
     power 1.4, t the way up the fade: spread more evenly than the first
     fade (about 1.9, which dropped to half in its first third; Luke,
     2026-11-13; kept on the slider, 2026-11-16). */
  --f: calc(100% - var(--horizon-solid));
  --hero-mask: linear-gradient(to top, #000 var(--horizon-solid), rgb(0 0 0 / 0.829) calc(var(--horizon-solid) + var(--f) * 0.125), rgb(0 0 0 / 0.668) calc(var(--horizon-solid) + var(--f) * 0.25), rgb(0 0 0 / 0.518) calc(var(--horizon-solid) + var(--f) * 0.375), rgb(0 0 0 / 0.379) calc(var(--horizon-solid) + var(--f) * 0.5), rgb(0 0 0 / 0.253) calc(var(--horizon-solid) + var(--f) * 0.625), rgb(0 0 0 / 0.144) calc(var(--horizon-solid) + var(--f) * 0.75), rgb(0 0 0 / 0.054) calc(var(--horizon-solid) + var(--f) * 0.875), transparent);
  -webkit-mask-image: var(--hero-mask);
  mask-image: var(--hero-mask);
}
/* The photo is pinned by --hero-photo-y (the point down it that sits on the
   strip), zoomed by --hero-photo-scale and cut from the left by
   --hero-photo-x, so the palm fronds stay out and the surf runs into the gold
   cliff in the right corner. Phones zoom in further and drop lower, since the
   band is taller for its width. From 640px the picture sits 56px higher at
   desktop (0.713, was 0.66; Luke's slider pick, 2026-11-16): 0.053 of its
   height, so it moves a little less on smaller screens. The band, its solid part
   and the fade are unchanged. */
/* More of the photo (Matt, markup 2026-11-12, #5: with the eyebrow gone,
   "add more of the hero's image back"): 48px more room under the buttons,
   and the photo shows 128px further up before it has faded out, behind the
   foot of the copy (Luke's picks, 2026-11-13). Phones keep the short fade
   and already give the photo twice the hero's space. */
@media (min-width: 640px) { .hero { --hero-bottom-add: var(--hero-photo-add, 3rem); --hero-fade-up: var(--hero-fade-add, 8rem); --hero-fade-lower: var(--hero-fade-low, 48px); } }
.hero {
  --hero-photo-y: 0.713;
  --hero-photo-scale: 1.25;
  --hero-photo-x: 0.2;
}
@media (max-width: 639px) {
  .hero { --hero-photo-y: 0.72; --hero-photo-scale: 1.6; --hero-photo-x: 0.37; }
}
.hero__art img {
  position: absolute;
  left: calc(var(--hero-photo-x) * -100% * var(--hero-photo-scale));
  bottom: calc((var(--hero-photo-y) - 1) * 66.5cqw * var(--hero-photo-scale));
  display: block;
  width: calc(100% * var(--hero-photo-scale));
  max-width: none;
  height: auto;
  aspect-ratio: 2310 / 1536;
  filter: var(--horizon-filter);
  -webkit-user-drag: none;
  user-select: none;
}

/* Phones and tablets: the coast sits behind the copy as on desktop (Luke,
   2026-11-16: a band of its own under the buttons left the copy high on
   the paper and the hero far too tall). The photo fills the hero up to its
   own top edge (the max-height above), solid along the foot and fading
   into the paper from about a fifth of the way up, so the heading's first
   lines sit on the fade. The copy has room above and a little more below,
   where the cliff shows. Framed like the earlier band, so the palm fronds
   stay out. */
@media (max-width: 1023px) {
  .hero { --hero-copy-move: 0px; --hero-fade-up: 0px; --hero-fade-lower: 0px; }
  .hero__art { height: 100%; --horizon-solid: 22%; }
}
/* The copy centered, the same space above and below (Luke, 2026-11-16:
   the extra room under the buttons read as the copy sitting high) */
@media (max-width: 639px) {
  .hero__grid { padding-block: 4.5rem; }   /* 72, a step more than 56 (Luke, 2026-11-16) */
  /* A stronger fade, so the navy heading reads over the photo (Luke,
     2026-11-16): the same stops at (1 - t) to the power 1.8, not 1.4. The
     fade still starts and ends where it did. */
  .hero__art { --hero-mask: linear-gradient(to top, #000 var(--horizon-solid), rgb(0 0 0 / 0.786) calc(var(--horizon-solid) + var(--f) * 0.125), rgb(0 0 0 / 0.596) calc(var(--horizon-solid) + var(--f) * 0.25), rgb(0 0 0 / 0.429) calc(var(--horizon-solid) + var(--f) * 0.375), rgb(0 0 0 / 0.287) calc(var(--horizon-solid) + var(--f) * 0.5), rgb(0 0 0 / 0.171) calc(var(--horizon-solid) + var(--f) * 0.625), rgb(0 0 0 / 0.082) calc(var(--horizon-solid) + var(--f) * 0.75), rgb(0 0 0 / 0.024) calc(var(--horizon-solid) + var(--f) * 0.875), transparent); }
}
/* Tablets: the photo stops short of the top, so the heading's first line
   sits on paper as on desktop */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero { --hero-photo-y: 0.72; --hero-photo-scale: 1.6; --hero-photo-x: 0.36; }
  .hero__art { height: 85%; --horizon-solid: 25%; }
  .hero__grid { padding-block: 6rem; }
}

/* ---- Assets line (Matt, markup 2026-11-11, #1) --------------------------------
   His line, "Advised on over $25M in total client assets" (round 8 #13;
   the "As of" date under it came off, #12): a cell at the start of the tags
   band, as wide as its words (two columns until 2026-11-16), ruled off
   with the tags running from the rule. Matt picked it over a
   white card with the Q in a band of its own (2026-11-13); "since 2024"
   came off the line in his round 7 (#7). */

/* Tags band cell. Its letters span the two tag rows
   exactly: the first line's capitals at the top row's top edge, the fine
   print's baseline on the bottom row's foot: the figure is a step up
   (--display-lg) and every gap 12px, fine print included, so the group,
   centered, fills the rows at desktop within a pixel (Luke, 2026-11-12:
   at --display the fine print sat 20px off at the bottom; 8px under the
   last line was tried and reverted). Narrower, where
   the figure shrinks, the group stays together and centered. Matt's words
   on three lines, locked over "$25M+" first with the words under it
   (Luke, 2026-11-12). */
/* The cell is as wide as its words, with the frame's padding after them
   as before them, so the tags get the rest (Luke, 2026-11-16: two columns
   left dead space on the right; it grows if the figure does) */
.tags__frame { grid-template-columns: max-content minmax(0, 1fr); column-gap: 0; }
.proof-cell { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); margin-block: calc(-1 * var(--space-5)); padding-block: var(--space-5); padding-right: var(--frame-pad); border-right: 1px solid var(--guide); }
.tags .ticker { margin-left: 0; }
.proof__stack { display: flex; flex-direction: column; gap: var(--space-3); }
.proof__stack > * { line-height: 1; text-box: trim-both cap alphabetic; }
.proof__words { font-size: var(--text-base); font-weight: var(--weight-book); letter-spacing: var(--tracking-heading); color: var(--text-second); text-wrap: balance; }
.proof__num { font-size: var(--display-lg); font-weight: var(--weight-book); letter-spacing: var(--tracking-display-lg); color: var(--text-strong); }
/* Phones keep the desktop's arrangement (Luke, 2026-11-16: stacked over
   the tags it read as a separate section): the cell as wide as its words,
   the tags running from its rule to the screen's edge, the words a size
   down and the figure at the hero's size so the group still fits the two
   tag rows */
@media (max-width: 639px) {
  /* 12px over and under the tag rows, not 16, so the band is 8px shorter
     (Luke, 2026-11-16); the cell's rule still runs its full height */
  .tags__frame { grid-template-columns: max-content minmax(0, 1fr); padding-block: var(--space-3); }
  .proof-cell { gap: var(--space-2); margin-block: calc(-1 * var(--space-3)); padding-block: var(--space-3); padding-right: var(--space-3); }
  .proof__stack { gap: var(--space-2); }
  .proof__words { font-size: var(--text-xs); }
  .proof__num { font-size: var(--text-2xl); }
}

/* ---- Personal CFO -------------------------------------------------------------
   The two-tone heading over eight columns, then the bento: a wide card and a
   narrow one, then three narrow ones. Four more areas follow as small
   feature cards in one row, a gutter below the bento so they read as its
   last row, then one centered link to the full Personal CFO page. */
.cfo__frame { padding-block: max(3rem, var(--section-y) - var(--cfo-top-trim)) var(--section-y); }
.cfo__head { margin-bottom: var(--space-7); }
.cfo__head .h-two { grid-column: 1 / span 8; }
.bento__card { grid-column: span 4; }
.bento__card--wide { grid-column: 1 / -1; }
.coord__all { display: flex; justify-content: center; margin-top: var(--space-7); }   /* Learn more, at the band's foot (Matt, round 10 #19; it was under the tiles) */
.coord__all .link-cta { text-align: center; }   /* centered on phones too when it wraps (Matt, round 11 #25) */
@media (min-width: 1024px) {
  .bento__card--wide { grid-column: span 8; }
}
@media (max-width: 1023px) { .cfo__head .h-two { grid-column: 1 / -1; } }

/* ---- Wealth manager and project manager (navy band) ---------------------------
   The two-tone heading over eight columns, then the team chart across the
   whole frame, its six professionals two columns each. */
.coord__frame { padding-block: var(--section-y); }
.coord__head { margin-bottom: var(--space-7); }
.coord__head .h-two { grid-column: 1 / span 8; }
.coord__chart { grid-column: 1 / -1; }
@media (max-width: 1023px) {
  .coord__head .h-two { grid-column: 1 / -1; }
}

/* ---- Who we serve -------------------------------------------------------------
   The two-tone heading over eight columns, then the profiles card (base.css
   .profiles) across the grid. Ruled above since round 9: Partners & Tools
   sits between it and the navy band now. */
.who__frame { padding-block: var(--section-y); }
.who__head { margin-bottom: var(--space-7); }
.who__head .h-two { grid-column: 1 / span 8; }
.who .profiles { grid-column: 1 / -1; }
@media (max-width: 1023px) { .who__head .h-two { grid-column: 1 / -1; } }

/* ---- About ---------------------------------------------------------------------
   The two-tone heading over eight columns, then the spotlight panel (base.css)
   across the grid. */
.about__frame { padding-block: var(--section-y); }
.about__head { margin-bottom: var(--space-7); }
.about__head .h-two { grid-column: 1 / span 8; }
.about .spotlight { grid-column: 1 / -1; }
@media (max-width: 1023px) { .about__head .h-two { grid-column: 1 / -1; } }

/* ---- Insights ------------------------------------------------------------------
   The two-tone heading over eight columns, then the signup, a white card
   (base.css .signup; Luke, 2026-10-14: back from navy), then the letter
   cards (base.css .posts), then "View all insights" centered at the foot like
   the personal CFO section's link (Luke, 2026-10-14). */
.insights__frame { padding-block: var(--section-y); }
.insights__head { margin-bottom: var(--space-7); }
.insights__head .h-two { grid-column: 1 / span 8; }
.insights__signup { margin-bottom: var(--space-7); }
.insights__all { display: flex; justify-content: center; margin-top: var(--space-7); }
/* One row of the latest letters (Matt, round 10 #25): three, two on a
   tablet; phones stack the three. View all insights has the rest. */
@media (min-width: 640px) and (max-width: 1023px) { .insights__posts .post:nth-child(n + 3) { display: none; } }
@media (max-width: 1023px) {
  .insights__head .h-two { grid-column: 1 / -1; }
}
