/* The homepage brief (16 November 2026, Kyle locked it that day; the board "Seneca homepage: direction"). Loaded after
   home.css and sayv.css. The drawings' xh- names are the hm- names here. */

/* ---------- the changing ground: one ground, on main, takes the tone of the section in view (homex.js) ----------
   Every neutral section is see-through over it; navy arrives in its own shape (the IHT panel, the closing band). The ground
   is always one flat brand colour, never a gradient. The rules between sections go. */
:root { --band-light: #F1ECE4; }   /* the lighter band, the same variable as the product page (ihtpl.css) */
/* the ground blends from one tone to the next as the next section rises up the screen, tied to the scroll (homex.js; Kyle,
   17 November 2026: the change "happens too quickly - could it be more gentle?") */
.hm .hm-line::after { display: none; }

/* ---------- "What we offer.": the two services open to new investors lead; the two closed ones keep the same type, greyed
   (Kyle, 17 November 2026: "both stay in the same font as other products, but are greyed out"), with nothing taken away.
   The row you are on is marked by a brick line that fades in at its left edge, in place of one line gliding up and down the
   list (Kyle, 17 November 2026: "a fade in and out when i hover over a product") ---------- */
.hm-rl > li.op .rt { color: var(--navy); }
.hm-rl > li.op .rn { color: var(--brick-word); }
.hm-rl > li.cl .rt, .hm-rl > li.cl.on .rt, .hm-rl > li.cl:focus-within .rt { color: var(--ink-quiet); }
.hm-rl > li.cl .rn, .hm-rl > li.cl.on .rn { color: var(--ink-quiet); }
.hm .hm-rbar { display: none; }
.hm-rl > li { position: relative; }
.hm-rl > li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--brick); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.hm-rl > li.on::before { opacity: 1; }
@media (min-width: 901px) { .hm-rng > .wrap { padding-bottom: 96px; } }
/* ---------- "What we offer.", polished (Kyle, 19 November 2026: "It doesn't feel designed or aligned ... make sure it follows
   the brand correctly") ----------
   One layout at every width: the number, the name and the arrow on one line, and where it stands under the name, starting
   where the name starts, so the four names, the four squares and the four numbers each make one straight line down the
   list. The names take the Title size (31px, 28px on a phone) from the type scale, in place of a size fitted to the longest
   name (29px at 1440px, off the scale); the number sits on the name's baseline; where it stands is ink, as all read text is
   (it was the faded ink-soft), at the Small size. Rows on the 4px grid. On a phone the brick line goes: there is no hover,
   so it only ever marked the first row, and it ran over that row's number. */
.hm-ri { grid-template-columns: 2rem minmax(0, 1fr) 18px; grid-template-areas: "n t a" ". s ."; align-items: baseline; column-gap: 16px; row-gap: 8px; padding: 28px 0 28px 20px; }
.hm-ri .rt { font-size: 31px; line-height: 1.1; white-space: normal; overflow: visible; }
@container (max-width: 660px) { .hm-ri { grid-template-columns: 2rem minmax(0, 1fr) 18px; grid-template-areas: "n t a" ". s ."; } .hm-ri .rt { font-size: 31px; } }
.hm-ri .rsi { font-size: 14px; line-height: 1.5; color: var(--ink); gap: 8px; }
/* the tagline in place of the status (Kyle, 30 November 2026): it may wrap */
.hm-ri .rtag { white-space: normal; }
.hm-ri .hm-go { align-self: center; }
@media (max-width: 900px) {
  .hm-ri { padding: 24px 0; row-gap: 8px; }
  .hm-ri .rt { font-size: 28px; }
  .hm-rl > li::before { display: none; }
}


/* ---------- the IHT Service: the name row in place of the eyebrow, the three figures in place of the bullets ---------- */
.hm-ibox { padding-block: 64px; row-gap: 40px; }
.hm-ilede { max-width: none; }
@media (min-width: 1101px) { .hm-ibox { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (min-width: 1101px) and (max-width: 1240px) { .hm-ibox { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); padding-inline: 32px; } .hm-ifig { column-gap: 24px; } }
.hm-iph { aspect-ratio: 5 / 4; }

/* the figures as a slim strip under the copy and the photograph (Kyle, 17 November 2026: "too big ... feel like a real sizable
   bit of the page rather than a showcase banner"): each figure at the Title size beside its message and dated line */
.hm-ifig { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--navy-line); padding-top: 28px; }
.hm-ifig > a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "f" "m" "d"; row-gap: 4px; align-items: start; align-content: start; text-decoration: none; color: var(--chalk); }
.hm-ifig b { grid-area: f; font: 400 40px/.9 var(--serif); letter-spacing: -.02em; color: var(--brick-accent); margin-bottom: 8px; }
.hm-ifig strong { grid-area: m; font: 600 var(--t-body)/1.35 var(--sans, Archivo, sans-serif); color: var(--chalk); transition: color .5s ease; }
.hm-ifig small { grid-area: d; font: 400 14px/1.45 var(--sans, Archivo, sans-serif); color: var(--sand); }
/* each figure leads into the product page: the range's arrow comes in after the message on a hover, as it does in the list */
.hm-ifig .hm-go { display: none; }   /* the message turning brick is the sign; an arrow wrapped onto a line of its own */
@media (hover: hover) and (pointer: fine) { .hm-ifig > a:hover strong { color: var(--brick-accent); } }
.hm-iat { grid-column: 1 / -1; margin: -20px 0 0; font: 400 14px/1.45 var(--sans, Archivo, sans-serif); color: var(--sand); }
.hm-iat + .hm-irisk { margin-top: -28px; }
.hm-irisk { grid-column: 1 / -1; margin: -20px 0 0; font: 400 14px/1.45 var(--sans, Archivo, sans-serif); color: var(--sand); max-width: 780px; }

@media (max-width: 900px) {
  /* on a phone: no navy panel, on the stone tone */
  .hm-ibox::before { display: none; }
  .hm-ibox { padding-block: 56px; padding-inline: 0; row-gap: 28px; color: var(--navy); }
  .hm-iht h2 { color: var(--navy); }
  .hm-iht h2 em { color: var(--brick-word); }
  .hm-ilede { color: var(--ink); }
  .hm-icopy .btn.solid { background: var(--navy); border-color: var(--navy); color: var(--chalk); }
  .hm-iht .hm-icopy .btn.ghost:not(.dark) { border-color: var(--navy); color: var(--navy); background: transparent; }
  .hm-ilede b { color: var(--navy); }
  .hm-icopy .ctas { flex-wrap: nowrap; gap: 8px; }
  .hm-icopy .ctas .btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; justify-content: center; text-align: center; white-space: nowrap; }
  .hm-iph { aspect-ratio: 16 / 9; }
  .hm-ifig { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; }
  .hm-ifig > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m f" "d f"; column-gap: 14px; row-gap: 4px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); color: var(--navy); }
  .hm-ifig > a:last-child { border-bottom: 1px solid var(--rule); }
  .hm-ifig .hm-go { display: none; }
  .hm-ifig b { grid-area: f; font-size: 36px; line-height: 1; letter-spacing: -.012em; color: var(--navy); padding-top: 0; margin-bottom: 0; }
  .hm-ifig strong { grid-area: m; margin: 0; font-size: var(--t-body); color: var(--navy); min-height: 0; }
  .hm-ifig small { grid-area: d; color: var(--ink); max-width: none; }
  .hm-irisk { margin: 0; color: var(--ink); }
  .hm-iat { margin: 0; color: var(--ink); }
  .hm-iat + .hm-irisk { margin-top: -8px; }
}
@media (max-width: 900px) and (hover: hover) and (pointer: fine) { .hm-ifig > a:hover strong { color: var(--brick-word); } }

/* the tiles, message first (Rich's point, through Kyle, 30 November 2026: the 99% read as the figure for the message above
   it). The hover version left the strip bare at rest, so (Kyle, 30 November 2026: "needs better designing and aligning")
   each tile is now the message, then its figure, then the figure's line, always shown. The three tiles share their rows
   (subgrid), so the figures and lines line up across the strip however the messages wrap, with a rule between tiles. */
/* set in the brand's type, as the IHT page's own three tiles are (Kyle, 30 November 2026: "think about it from a brand
   perspective"): the message in DM Serif Display at Title (28px, Title spacing, never smaller), the figure in the serif's
   Figure style in the accent, the line in Archivo at body (16px), the site's one reading size. Spacing on the 8px rhythm:
   32px under the rule, 24px from message to figure, 8px from figure to its line. */
.hm-ifb { grid-template-rows: auto auto auto; column-gap: 64px; row-gap: 0; padding-top: 32px; }
.hm-ifb > a { grid-row: span 3; grid-template-rows: subgrid; grid-template-areas: "m" "f" "d"; row-gap: 0; }
.hm-ifb > a + a::before { content: ""; position: absolute; top: 0; bottom: 0; left: -32px; width: 1px; background: var(--navy-line); }
.hm-ifx { display: contents; }
.hm-ifb strong { grid-area: m; font-family: var(--serif); font-weight: 400; --serif-size: 1.75rem; --serif-ls: 0em; --serif-ws: 0em; font-size: var(--serif-fit); line-height: 1.1; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); text-wrap: balance; max-width: 15em; }
.hm-ifb .hm-ifx b { grid-area: f; align-self: end; margin: 24px 0 8px; --serif-size: 3rem; --serif-ls: -.03em; --serif-ws: 0em; font-size: var(--serif-fit); line-height: 1; letter-spacing: var(--serif-ls); font-variant-numeric: lining-nums; }
.hm-ifb .hm-ifx small { grid-area: d; font-size: var(--t-body); line-height: 1.5; max-width: 26em; }
@media (max-width: 1240px) { .hm-ifb { column-gap: 48px; } .hm-ifb > a + a::before { left: -24px; } }
@media (max-width: 900px) {
  .hm-ifb { grid-template-rows: none; padding-top: 0; }
  .hm-ifb > a, .hm-ifb > a + a { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); grid-template-areas: "m" "f" "d"; row-gap: 0; align-items: start; padding: 24px 0; }
  .hm-ifb > a + a::before { display: none; }
  .hm-ifb strong { max-width: none; }
  .hm-ifb .hm-ifx b { margin: 16px 0 4px; --serif-size: 2.5rem; color: var(--brick-word); }
  .hm-ifb .hm-ifx small { max-width: none; }
}

/* ---------- the team: on desktop as built; on a phone a sideways row of faces, from the same list ---------- */
.hm-names .qf { display: none; }
@media (max-width: 900px) {
  .hm-ppic { display: none; }
  .hm-names { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; gap: 12px; margin-inline: -1rem; padding: 0 1rem .5rem; scrollbar-width: none; list-style: none; }
  .hm-names::-webkit-scrollbar { display: none; }
  .hm-names { border-top: 0; }
  .hm-names > li { flex: 0 0 62%; scroll-snap-align: start; margin: 0; padding: 0; border: 0; text-align: left; }
  .hm-names > li a { display: block; text-decoration: none; color: var(--navy); padding: 0; border-bottom: 0; border-radius: 8px; }
  .hm-names .qf { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--stone); }
  .hm-names .qf img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hm-names .qn { display: block; margin-top: 12px; font: 400 28px/1.1 var(--serif); color: var(--navy); }
  .hm-names .qr { display: block; margin-top: 4px; font: 400 14px/1.4 var(--sans, Archivo, sans-serif); color: var(--ink); }
}

/* ---------- insights: the three newest as three equal cards, borderless, picture over words (Kyle, 17 November 2026: something
   sleeker than a lead card and two boxes) ---------- */
.hm-ins3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hm-ic { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--navy); }
.hm-ic figure { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; background: var(--chalk); }
.hm-ic :is(img, picture) { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.hm-icb { display: flex; flex-direction: column; gap: 8px; }
.hm-ic .k { font: 600 12px/1.3 var(--sans, Archivo, sans-serif); letter-spacing: .12em; font-stretch: 80%; text-transform: uppercase; color: var(--brick-word); }
.hm-ic b { font: 600 20px/1.3 var(--sans, Archivo, sans-serif); color: var(--navy); transition: color .5s ease; text-wrap: balance; }
.hm-ic .by { font-size: 14px; line-height: 1.45; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .hm-ic:hover b { color: var(--brick-word); } .hm-ic:hover :is(img, picture) { transform: scale(1.04); } }
@media (min-width: 901px) { .hm-pgrid { padding-block: 96px; } .hm-ins > .wrap { padding-block: 96px 48px; } }
@media (max-width: 900px) {
  /* on a phone the newest leads with its picture; the other two follow as rows */
  .hm-ins3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hm-ic { padding-block: 16px; border-top: 1px solid var(--rule); }
  .hm-ic:first-child { padding-top: 0; border-top: 0; }
  .hm-ic:not(:first-child) { flex-direction: row; align-items: center; gap: 16px; }
  .hm-ic:not(:first-child) figure { flex: 0 0 96px; aspect-ratio: 4 / 3; border-radius: var(--r-icon); }
  .hm-ic:not(:first-child) b { font-size: var(--t-body); }
  .hm-ic:not(:first-child) .by { display: none; }
}

/* ---------- the sign-up: the Insights page's sign-up block (the sliding titles above it came off on 25 November 2026) ---------- */
.hm-sign { overflow: hidden; padding: 8px 0 96px; }
@media (max-width: 900px) { .hm-sign { padding: 0 0 56px; } }

/* the sign-up block, as on the Insights page (insights.css, which the homepage does not load) */
.hm-sign .nf-sign { margin: 0; padding-top: clamp(2.5rem, 4.5vw, 3.5rem); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 6rem); row-gap: 1.5rem; align-items: start; }
.hm-sign .nf-sign h2 { --serif-size: clamp(2rem, calc(3vw * var(--ts)), 2.75rem); --serif-ls: -.012em; --serif-ws: -.02em; font: 400 var(--serif-fit)/1.04 var(--serif); color: var(--navy); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); max-width: 20ch; text-wrap: balance; margin: 0; }
.hm-sign .nf-sign h2 em { color: var(--brick-word); }
.hm-sign .nf-sl p { margin: .75rem 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink); max-width: 34rem; }
.hm-sign .nf-sr label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: .4375rem; }
.hm-sign .nf-row { display: flex; gap: .5rem; }
.hm-sign .nf-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 .875rem; font: inherit; font-size: var(--t-body); color: var(--ink); background: var(--white, #fff); border: 1px solid var(--ink-soft); border-radius: 0; }
.hm-sign .nf-row input:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 2px; }
.hm-sign .nf-row input[aria-invalid="true"] { border-color: var(--brick-word); }
.hm-sign .nf-row .btn { flex: none; min-height: 48px; }
.hm-sign .nf-cons { margin: .75rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--ink); }
.hm-sign :is(.nf-cons, .nf-msg) a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.hm-sign .nf-msg { margin: .625rem 0 0; font-size: .875rem; font-weight: 600; color: var(--navy); }
.hm-sign :is(.nf-err, .nf-errw, .nf-fail) { color: var(--brick-word); }
.hm-sign .nf-sign.sent .nf-row { display: none; }
.hm-sign .nf-sign .ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .hm-sign .nf-sign { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hm-sign .nf-row { flex-direction: column; } .hm-sign .nf-row .btn { justify-content: center; } }

/* About Seneca (Kyle, 30 November 2026, after Rich): the line, two overlapping office photos and the awards in a navy panel.
   The line is the brand's Statement style: Archivo Regular, 30px down to 22px, 1.4, navy, once on a page. The front photo
   simply overlaps the back one, no ring; it drifts a little as the page scrolls (homex.js), and everything rises in with
   the homepage's own reveal, the awards one after another. */
.hab { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hab-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hab-line { margin: 0; font: 400 clamp(1.375rem, 2.1vw, 1.875rem)/1.4 var(--sans); letter-spacing: -.005em; color: var(--navy); text-wrap: pretty; }
.hab-pics { position: relative; padding-bottom: 14%; }
.hab-pics figure { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--stone); }
.hab-pics :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.hab-p1 { width: 80%; margin-left: auto !important; aspect-ratio: 4 / 3; }
.hab-p2 { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; translate: 0 var(--dy, 0px); }
.hab-p1 img { object-position: 22% 60%; }
.hab-p2 img { object-position: 50% 50%; }
.hab-aw { list-style: none; margin: clamp(2.75rem, 5vw, 3.75rem) 0 0; padding: 30px 40px; border-radius: var(--r-card); background: var(--navy); color: var(--chalk);
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; gap: 24px; }
.hab-aw li { display: grid; grid-template-columns: 104px 1px auto; align-items: center; column-gap: 14px; }
.hab-aw img { justify-self: end; display: block; width: auto; height: 36px; }
.hab-aw img.sq { height: 42px; }
.hab-bar { align-self: stretch; background: var(--chalk); }
.hab-tx { display: grid; gap: 1px; font: 400 13px/1.3 var(--sans); color: var(--chalk); white-space: nowrap; }
.hab-tx b { font-weight: 600; }
@media (max-width: 1320px) { .hab-aw { grid-template-columns: repeat(2, auto); justify-content: space-evenly; row-gap: 28px; } }
@media (max-width: 900px) {
  .hab-top { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .hab-line { font-size: 1.375rem; }
  /* the awards as one row you swipe through (Kyle, 1 December 2026: stacked, they ran tall for little benefit): each
     lockup in turn, snapping to the panel's edge, the next one showing at the right so it reads as a row to scroll */
  .hab-aw { display: flex; gap: 32px; padding: 24px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hab-aw::-webkit-scrollbar { display: none; }
  .hab-aw::after { content: ""; flex: 0 0 1px; }
  .hab-aw li { flex: none; scroll-snap-align: start; grid-template-columns: auto 1px auto; }
  .hab-aw img { justify-self: start; height: 32px; } .hab-aw img.sq { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .hab-p2 { translate: none; } }
.hab-line .nw { white-space: nowrap; }
/* the awards text a step smaller than the 14px floor (Kyle, 1 December 2026: "smaller still"), as the logos carry the panel */
