/* home.css: rules used only on home.html, including its overrides of shared components. Load right after base.css.
   Tectonic Advisors website, dev package. Generated from the live prototype pages. */

/* Stat numerals never wrap: size to fit the column ($1.33M is the widest, 3.07em) */
.hp-stats .tx-stat{container-type:inline-size}
.hp-stats .tx-stat .stat-numeral{white-space:nowrap;font-size:min(68px,calc((100cqi - 12px) / 3.12));line-height:1}
/* Three stats (19 Nov): heading in the first column, stats beside it; stacked beside the heading on tablet, under it on phones */
.hp-stats__grid{display:grid;grid-template-columns:max-content repeat(3,minmax(0,1fr));column-gap:var(--gutter);align-items:center}
.hp-stats .hp-stats__grid h2{margin:0}
.hp-stats .hp-stats__note{margin: 20px 0 0;font: 400 12px/16px var(--font-sans);color: #666;text-box: trim-both cap alphabetic;}
.hp-stats .hp-stats__grid .tx-stats{grid-column:2 / -1;grid-template-columns:repeat(3,auto);justify-content:space-between;row-gap:0;container-type:inline-size;justify-self:end;width:100%;max-width:822px}
/* Right-aligned row (19 Nov): last numeral ends on the container edge; stats at most 72px apart (max-width 822 = 678 of stats + 2x72), extra width goes between the heading and the stats; size from the row so all three fit (7.68em of numerals + 3x12px padding + 2 gutters) */
.hp-stats .hp-stats__grid .tx-stat{container-type:normal}
.hp-stats .hp-stats__grid .tx-stat .stat-numeral{font-size:min(68px,calc((100cqi - 114px) / 7.68))}
@media (max-width:1240px){
 .hp-stats__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
 .hp-stats .hp-stats__grid h2{margin-top:7px}
 .hp-stats .hp-stats__grid .tx-stats{grid-column:auto;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-self:stretch;max-width:none;row-gap:64px}
 .hp-stats .hp-stats__grid .tx-stat .stat-numeral{font-size:min(68px,calc((100cqi - 12px) / 3.12))}
}
@media (max-width:700px){
 .hp-stats__grid{grid-template-columns:minmax(0,1fr)}
 .hp-stats .hp-stats__grid h2{margin:0 0 56px}
 .hp-stats .hp-stats__grid .tx-stats{row-gap:56px}
 .hp-stats .hp-stats__head {margin-bottom: 56px;}
 .hp-stats .hp-stats__grid .hp-stats__head h2{margin: 0;}
}

/* Phone/tablet menu v2 (14 Nov): bigger rows with dividers and arrows, current page marked, contact block, dimmed and locked page behind */
.hp-scrim{position:fixed;inset:0;z-index:-1;background:rgba(8,20,40,.42);opacity:0;pointer-events:none;transition:opacity .35s ease}
.hp-menu__extra{display:none}
@media (max-width:1060px){
 .tx-navwrap.hp-navwrap.is-open .hp-scrim{opacity:1;pointer-events:auto}
 html.hp-lock{overflow:hidden}
 .tx-navwrap.hp-navwrap .tx-nav__links{gap:0;overflow:hidden;isolation:isolate;align-items:stretch;min-width:340px;padding-top:8px;padding-bottom:20px}
 .tx-navwrap.hp-navwrap .tx-nav__links > a:not(.hp-links__cta){position:relative;display:flex;align-items:center;min-height:60px;padding:0;
   font:500 22px/28px var(--font-sans);letter-spacing:-.2px;text-box:none;border-bottom:1px solid rgba(255,255,255,.2)}
 .tx-navwrap.hp-navwrap .tx-nav__links > a[aria-current="page"]{color:var(--bronze-light)}
 .tx-navwrap.hp-navwrap .tx-nav__links > a[aria-current="page"]::before{content:"";position:absolute;left:-24px;top:50%;width:3px;height:26px;margin-top:-13px;background:var(--bronze-light);border-radius:0 2px 2px 0}
}
@media (max-width:860px){
 .tx-navwrap.hp-navwrap .tx-nav__links{padding:12px 24px 28px;min-height:min(560px, calc(100svh - 90px))}
 .tx-navwrap.hp-navwrap .hp-menu__extra{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:auto;padding-top:32px;width:100%;
   opacity:0;transform:translateY(-6px);transition:opacity .15s ease,transform .15s ease}
 .tx-navwrap.hp-navwrap .tx-nav.is-menu .hp-menu__extra{opacity:1;transform:none;transition:opacity .4s ease .36s,transform .5s cubic-bezier(.22,.61,.36,1) .36s}
 .tx-navwrap.hp-navwrap .tx-nav__links .hp-menu__extra .hp-menu__label{align-self:stretch;text-align:left;max-width:none;margin:0 0 2px;font:700 12px/24px var(--font-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--bronze-light);text-box:trim-both cap alphabetic}
 .tx-navwrap.hp-navwrap .tx-nav__links .hp-menu__extra a{opacity:1;transform:none;padding:0;font:400 16px/24px var(--font-sans);text-box:none;color:var(--white);text-decoration:none}
 .tx-navwrap.hp-navwrap .tx-nav__links .hp-menu__extra a:hover{color:var(--bronze-light)}
 .tx-navwrap.hp-navwrap .hp-menu__social{display:flex;gap:22px;margin-top:8px}
 .tx-navwrap.hp-navwrap .tx-nav__links .hp-menu__social a{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px}
 .tx-navwrap.hp-navwrap .hp-menu__social svg{height:20px;width:auto}
 .tx-navwrap.hp-navwrap .tx-nav__links .hp-links__cta{margin-top:24px;height:48px;font-size:17px}
}
@media (prefers-reduced-motion:reduce){.hp-scrim,.tx-navwrap.hp-navwrap .hp-menu__extra{transition:none}}
 @media (max-width:1060px){.tx-navwrap.hp-navwrap .tx-nav__links > a:not(.hp-links__cta):hover{color:var(--bronze-light)}}

/* Footer form confirmation (20 Nov): after a valid send the fields give way to the same thank-you card as the Contact page
   (user's Figma 761:9411): bronze-deep, card grain, strata graphic, square corners, white copy. Same width as the form. */
.hp-form.is-sent > :not(.hp-thanks) { display: none; }
.tx-footer .hp-form .hp-thanks { position: relative; overflow: hidden; isolation: isolate; background: var(--bronze-deep); padding: 43px 42px 60px 41px; }
.hp-thanks::after { content: ""; position: absolute; inset: 0; z-index: 0; background: url(../img/card-noise.png) 0 0 / 128px 128px; pointer-events: none; }
.hp-thanks > * { position: relative; z-index: 1; }
.hp-thanks .hp-thanks__strata { position: absolute; z-index: 0; left: -141px; top: 26px; width: 1004px; height: 545px; max-width: none; pointer-events: none; }
.tx-footer .hp-form .hp-thanks h2 { margin: 0; font: 400 34px/36px var(--font-sans); color: var(--white); text-box: trim-both cap alphabetic; outline: none; }
.tx-footer .hp-form .hp-thanks p { margin: 38px 0 0; font: 400 16px/24px var(--font-sans); color: var(--white); text-box: trim-both cap alphabetic; }
@media (max-width: 600px) { .tx-footer .hp-form .hp-thanks { padding: 32px 24px 40px; } .tx-footer .hp-form .hp-thanks h2 { font-size: 28px; line-height: 32px; } }
/* Browser autofill on the dark footer: keep the transparent field and white text (no pale blue box). */
.hp-field input:-webkit-autofill, .hp-field input:-webkit-autofill:hover, .hp-field input:-webkit-autofill:focus,
.hp-field textarea:-webkit-autofill { -webkit-text-fill-color: var(--white); caret-color: var(--white); transition: background-color 600000s 0s, color 600000s 0s; }
.hp-field input:autofill { background-color: transparent; }
/* Confirmation entrance (20 Nov): the card is laid down from the top like a stratum (.7s, the site's slide curve), the strata
   lines settle in from the right, then the heading and line rise into place. Plays once; off under reduced motion. */
@keyframes ty-lay { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ty-lines { from { opacity: 0; translate: 48px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ty-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .tx-footer .hp-form .hp-thanks:not([hidden]) { animation: ty-lay .7s cubic-bezier(.45, 0, .15, 1) both; }
  .hp-thanks:not([hidden]) .hp-thanks__strata { animation: ty-lines 1.4s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .hp-thanks:not([hidden]) h2 { animation: ty-rise .6s cubic-bezier(.28, 1.1, .74, 1) .4s both; }
  .hp-thanks:not([hidden]) p { animation: ty-rise .6s cubic-bezier(.28, 1.1, .74, 1) .55s both; }
}

/* Site-wide chevron morph (user, 20 Nov): the caret's arms pivot on their own centres, pass through a flat line and land
   pointing the other way (V → — → ^), .3s ease-in-out. Never a 180° spin. Source: About FAQ. */
.tx-chev path { transform-box: view-box; transition: transform .3s cubic-bezier(.45, 0, .55, 1); }
.tx-chev .tx-chev__l { transform-origin: 7.25px 10px; }
.tx-chev .tx-chev__r { transform-origin: 12.75px 10px; }
[open] > summary .tx-chev .tx-chev__l, [aria-expanded="true"] .tx-chev .tx-chev__l, .tx-chev.is-open .tx-chev__l { transform: rotate(-90deg); }
[open] > summary .tx-chev .tx-chev__r, [aria-expanded="true"] .tx-chev .tx-chev__r, .tx-chev.is-open .tx-chev__r { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .tx-chev path { transition: none; } }

.tx-band--hero .tx-band__copy { max-width: 536px; } /* gap 32 + button 48: same rhythm as the CTA bands (user, 10 Nov) */

/* Grain (user, 10 Nov): the calibrated white grain from the Partner/Capabilities cards, over the band colour and strata lines, under the text */
.sa-band{isolation:isolate}
.sa-band::after{content:"";position:absolute;inset:0;z-index:0;background:url(../img/card-noise.png) 0 0/128px 128px;pointer-events:none}

.tx-audience__text .tx-link{margin-top:-10px;align-self:flex-start}

.hp-stats .tx-stat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:#b8b8b8;transform-origin:top}

.tx-quote-card figcaption .label{font-size:16px}

.hp-progress{position:relative;height:2px;width:calc(100% - 2 * var(--page-margin));max-width:var(--container-max);margin:56px auto 0;background:rgba(0,0,0,.1)} /* on the page grid, like the cards and the heading */

.hp-select.is-open .hp-select__btn svg{transform:none}

@media (max-width:860px){
 .hp-progress{margin-top:40px}
}

/* Who we serve: strata cards (Figma 345:1684, 10 Nov). Card 673x352; graphic and text placed in % of the card so it scales. */
.tx-audience__card{position:relative;overflow:hidden;aspect-ratio:673/352;margin-bottom:46px;display:flex;align-items:center;padding:0 24px 0 21.1%;isolation:isolate}
.tx-audience__card--ria{background:var(--bronze-deep)}
.tx-audience__card--cpa{background:var(--bedrock-blue)}
.tx .tx-audience__strata{position:absolute;max-width:none;pointer-events:none;z-index:-2}
.tx-audience__card--ria .tx-audience__strata{left:-30.31%;top:-83.52%;width:178.31%;height:179.13%;transform:scaleX(-1)}
.tx-audience__card--cpa .tx-audience__strata{left:-13.97%;top:-20.74%;width:178.31%;height:184.96%}
.tx-audience__card::after{content:"";position:absolute;inset:0;z-index:-1;background:url(../img/card-noise.png) 0 0/128px 128px;pointer-events:none}
.tx-audience__head{display:flex;flex-direction:column;gap:30px;max-width:389px}
.tx-audience__head>*{margin:0;text-box:trim-both cap alphabetic}
.tx-audience__head .tx-tagline{color:var(--white);padding-left:0}
.tx-audience__head .heading{color:var(--white)}
@media (max-width:1100px){.tx-audience__card{padding-left:12%}.tx-audience__head{gap:22px}}
@media (max-width:860px){.tx-audience__card{padding-left:21.1%}}
@media (max-width:520px){.tx-audience__card{aspect-ratio:auto;min-height:220px;padding:40px 24px 40px 28px;margin-bottom:32px}.tx-audience__head{gap:18px}}

/* Slider arrows smaller (user, 12 Nov): 52px button / 39px circle (was 67.2 / 50.4), 48 / 36 on phones. Glyph stroke draws 1.5px (user, 12 Nov). */
.tx .tx-arrow,.tx .tx-arrow svg{width:52px;height:52px}
.tx .tx-arrow .glyph{stroke-width:1.938}
/* Quotes arrows under the heading on the left, same spacing as the Capabilities strategy slider (user, 12 Nov) */
.tx .hp-quotes .tx-quotes-head{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:40px;margin-bottom:32px}
.tx .hp-quotes .tx-arrows{align-self:flex-start;margin:0 0 0 -6.5px}
@media (max-width:860px){.tx .tx-arrow,.tx .tx-arrow svg{width:48px;height:48px}.tx .tx-arrow .glyph{stroke-width:2.1}.tx .hp-quotes .tx-quotes-head{gap:28px;margin-bottom:24px}.tx .hp-quotes .tx-arrows{margin:0 0 0 -6px}}

.tx-ty__card { position: relative; overflow: hidden; isolation: isolate; width: min(560px, 100%); background: var(--bronze-deep, #a35f3b); padding: 43px 41px 60px 41px; box-shadow: 0 4px 36.8px rgba(0, 0, 0, .12); font-family: var(--font-sans, 'Satoshi', sans-serif); }

.tx-ty__card strong { font-weight: 500; }
.tx-ty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.3); }
.tx-ty__next { text-align: center; }
.tx-ty__done { padding: 0; border: 0; background: none; color: #fff; font: 500 16px/24px var(--font-sans, 'Satoshi', sans-serif); cursor: pointer; transition: color .2s ease; }
.tx-ty__done:hover { color: var(--bronze-light, #eac4ad); }
.tx-ty__done:focus-visible, .tx-ty__next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .tx-ty__actions { margin-top: 32px; padding-top: 28px; } .tx-ty__next { padding-inline: 20px; } }

@media (max-width: 600px){
  .tx-ty__card { padding: 32px 24px 40px 24px; }
}

@media (prefers-reduced-motion: no-preference){
  .tx-ty.is-open .tx-ty__actions { animation: txty-rise .6s cubic-bezier(.28, 1.1, .74, 1) .65s both; }
}
