html { min-height: 100%; background: var(--tem-color-canvas); scrollbar-gutter: stable; }
html { scrollbar-width: thin; scrollbar-color: rgb(164 119 53 / 0.5) transparent; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgb(164 119 53 / 0.5); background-clip: content-box; border: 2px solid transparent; border-radius: 999px; }
html::-webkit-scrollbar-thumb:hover { background-color: rgb(164 119 53 / 0.72); }
.home-page { min-height: 100vh; overflow-x: hidden; background: var(--tem-color-canvas); }
tem-site-header { min-height: 5rem; display: block; background: var(--tem-color-surface); }
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-skip-link { position: fixed; top: var(--tem-space-3); left: var(--tem-space-3); z-index: 100; padding: var(--tem-space-3) var(--tem-space-4); border-radius: var(--tem-radius-sm); background: var(--tem-color-ink); color: #fff; font-weight: 700; transform: translateY(-180%); }
.home-skip-link:focus { transform: translateY(0); }
.home-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgb(24 32 51 / 0.04); }
.home-header__inner { min-height: 5rem; padding: 0; }
.home-brand { display: inline-flex; align-items: center; gap: var(--tem-space-3); font-size: 1rem; letter-spacing: 0.02em; }
.home-brand__mark { width: 3.45rem; height: auto; flex: 0 0 auto; object-fit: contain; }
.home-header .home-nav { width: auto; min-height: 0; margin-left: auto; padding: 0; gap: var(--tem-space-5); background: transparent; }
.home-header .home-nav .tem-nav-link { padding: 0; border-radius: 0; color: var(--tem-color-text); font-size: var(--tem-font-size-sm); font-weight: 700; line-height: 1.5; }
.home-header .home-nav .tem-nav-link:hover, .home-header .home-nav .tem-nav-link[aria-current="page"] { color: var(--tem-color-primary); }
@media (min-width: 761px) {
    .home-header .home-header__inner { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
    .home-header .home-brand { flex: 0 0 auto; }
    .home-header .home-nav { width: 29rem; flex: 0 0 29rem; justify-content: space-between; gap: 0; }
}
.home-menu-button { display: none; min-width: 3rem; min-height: 3rem; align-items: center; justify-content: center; gap: var(--tem-space-2); border: 1px solid var(--tem-color-border); border-radius: var(--tem-radius-pill); background: var(--tem-color-surface); color: var(--tem-color-ink); font: 700 var(--tem-font-size-sm)/1 var(--tem-font-body); }
.home-menu-button__icon, .home-menu-button__icon::before, .home-menu-button__icon::after { display: block; width: 1.1rem; height: 2px; background: currentColor; content: ""; transition: transform var(--tem-duration-fast) var(--tem-ease); }
.home-menu-button__icon { position: relative; }
.home-menu-button__icon::before { position: absolute; transform: translateY(-5px); }
.home-menu-button__icon::after { position: absolute; transform: translateY(5px); }
.home-menu-button[aria-expanded="true"] .home-menu-button__icon { background: transparent; }
.home-menu-button[aria-expanded="true"] .home-menu-button__icon::before { transform: rotate(45deg); }
.home-menu-button[aria-expanded="true"] .home-menu-button__icon::after { transform: rotate(-45deg); }
.home-hero { position: relative; min-height: calc(100vh - 5rem); display: grid; align-items: center; padding-block: var(--tem-space-20); background: linear-gradient(90deg, rgb(8 15 31 / 0.97) 0%, rgb(18 27 47 / 0.94) 48%, rgb(24 32 51 / 0.7) 100%), image-set(url("../images/heroes/cosmos-hero.avif") type("image/avif"), url("../images/heroes/cosmos-hero.webp") type("image/webp"), url("../images/heroes/cosmos-hero.jpg") type("image/jpeg")) center / cover no-repeat; }
.home-hero::before { position: absolute; right: 0; bottom: 0; left: 0; height: 4rem; background: linear-gradient(180deg, transparent, rgb(245 242 235 / 0.16)); content: ""; pointer-events: none; }
.home-hero::after { position: absolute; right: 0; bottom: 0; width: 34%; height: 1px; background: var(--tem-color-accent); content: ""; }
.home-hero .tem-eyebrow { color: #d8bd91; }
.home-hero .tem-display { color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / 0.24); }
.home-hero .tem-lead { color: #d7dbe5; }
.home-hero .tem-button--secondary { border-color: #fff; color: #fff; }
.home-hero .tem-button--secondary:hover { background: rgb(255 255 255 / 0.1); }
.home-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(20rem, 0.78fr); align-items: center; gap: var(--tem-space-16); }
.home-hero__content { max-width: 48rem; }
.home-hero__lead { max-width: 43rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--tem-space-3); }
.home-hero__note { max-width: 38rem; margin: var(--tem-space-6) 0 0; color: #bcc4d2; font-size: var(--tem-font-size-sm); }
.home-hero__visual { position: relative; min-width: 0; margin: 0; padding: var(--tem-space-5) 0 var(--tem-space-8) var(--tem-space-5); }
.home-hero__visual::before { position: absolute; inset: 0 8% 4% 0; border: 1px solid rgb(164 119 53 / 0.7); border-radius: 48% 48% var(--tem-radius-lg) var(--tem-radius-lg); content: ""; }
.home-hero__image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 48% 48% var(--tem-radius-lg) var(--tem-radius-lg); background: var(--tem-color-ink); box-shadow: 0 24px 70px rgb(24 32 51 / 0.23); }
.home-hero__image-wrap::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 32 51 / 0.04), rgb(24 32 51 / 0.42)); content: ""; }
.home-hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; filter: saturate(0.78) contrast(1.04); }
.home-hero__signature { position: absolute; right: 0; bottom: 0; z-index: 2; max-width: 12rem; padding: var(--tem-space-4) var(--tem-space-5); border-radius: var(--tem-radius-md); background: var(--tem-color-ink); color: #fff; font-family: var(--tem-font-display); font-size: var(--tem-font-size-sm); line-height: 1.4; box-shadow: var(--tem-shadow-md); }
.home-hero__thought { position: absolute; z-index: 3; padding: 0.35rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.4); border-radius: var(--tem-radius-pill); background: rgb(24 32 51 / 0.82); color: #fff; font-size: var(--tem-font-size-xs); font-weight: 700; letter-spacing: 0.04em; backdrop-filter: blur(8px); }
.home-hero__thought--one { top: 13%; left: 0; }
.home-hero__thought--two { right: -2%; top: 38%; }
.home-hero__thought--three { bottom: 21%; left: -2%; }
.home-two-columns { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--tem-space-16); }
.home-question-list { margin: 0; padding: 0; list-style: none; }
.home-question-list li { position: relative; padding: var(--tem-space-4) var(--tem-space-4) var(--tem-space-4) var(--tem-space-8); border-bottom: 1px solid var(--tem-color-border); }
.home-question-list li::before { position: absolute; top: 1.55rem; left: 0; width: 0.65rem; height: 0.65rem; border: 1px solid var(--tem-color-accent); border-radius: 50%; content: ""; }
.home-section-heading { max-width: 48rem; margin-bottom: var(--tem-space-10); }
.home-section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: var(--tem-space-8); }
.home-start-cta { border-top: 3px solid var(--tem-color-accent); }
.home-start-cta .tem-heading { margin-bottom: var(--tem-space-2); }
.home-start-cta p { max-width: 47rem; }
.home-start-options { display: flex; flex-wrap: wrap; gap: var(--tem-space-2); margin: var(--tem-space-5) 0 0; padding: 0; list-style: none; }
.home-start-options li { padding: 0.4rem 0.75rem; border: 1px solid rgba(55, 48, 163, 0.18); border-radius: var(--tem-radius-pill); background: rgba(255, 255, 255, 0.55); color: var(--tem-color-text); font-size: var(--tem-font-size-xs); font-weight: 700; }
.home-path-card { position: relative; min-height: 24rem; display: flex; flex-direction: column; }
.home-path-card .tem-button { align-self: flex-start; margin-top: auto; }
.home-path-card--featured { border-top: 3px solid var(--tem-color-accent); transform: translateY(-0.75rem); }
.home-path-card__number { position: absolute; top: var(--tem-space-4); right: var(--tem-space-5); color: var(--tem-color-surface-muted); font-family: var(--tem-font-display); font-size: 3rem; line-height: 1; }
.home-about { background: var(--tem-color-accent-soft); }
.home-about__grid { display: grid; grid-template-columns: minmax(24rem, 1fr) minmax(0, 1fr); align-items: center; gap: var(--tem-space-16); }
.home-about__portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: var(--tem-space-4); }
.home-about__portrait { margin: 0; }
.home-about__portrait img { width: 100%; height: clamp(24rem, 34vw, 34rem); object-fit: cover; border-radius: 50% 50% var(--tem-radius-lg) var(--tem-radius-lg); filter: saturate(0.72) contrast(0.96); }
.home-about__portrait--paulo img { object-position: center 66%; }
.home-about__portrait--iala img { object-position: center 32%; }
.home-about__portrait figcaption { margin-top: var(--tem-space-3); color: var(--tem-color-ink); font-family: var(--tem-font-display); font-size: var(--tem-font-size-sm); text-align: center; }
.home-about__content { max-width: 40rem; }
.home-eyebrow--light { color: #d8bd91; }
.home-button--light { border-color: #fff; color: #fff; }
.home-button--light:hover { background: rgb(255 255 255 / 0.1); }
.home-article { min-height: 20rem; display: flex; flex-direction: column; padding: var(--tem-space-8) 0; border-top: 1px solid #536078; }
.home-article .tem-subheading { color: #fff; }
.home-article p { color: #c9ced9; }
.home-article__meta { margin: 0 0 var(--tem-space-8); color: #d8bd91 !important; font-size: var(--tem-font-size-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.home-article__link { align-self: flex-start; margin-top: auto; color: #fff; font-weight: 700; text-decoration-color: #d8bd91; text-underline-offset: 0.3em; }
.home-offer-grid { display: grid; gap: var(--tem-space-5); }
.home-offer { display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: var(--tem-space-8); padding: var(--tem-space-5); border-top: 1px solid var(--tem-color-border); }
.home-offer__image { height: 8rem; overflow: hidden; border-radius: var(--tem-radius-md); background: var(--tem-color-surface-muted); }
.home-offer__image img { width: 100%; height: 100%; object-fit: cover; }
.home-offer .tem-subheading { margin: var(--tem-space-2) 0; }
.home-offer p { margin: 0 0 var(--tem-space-3); }
.home-final-cta .tem-heading { margin-bottom: var(--tem-space-2); }
.home-footer__grid { display: grid; grid-template-columns: 1.5fr 0.75fr 0.75fr; gap: var(--tem-space-12); }
.home-footer__brand { display: inline-flex; align-items: center; gap: var(--tem-space-3); color: #fff; }
.home-footer__brand::before { width: 4.25rem; aspect-ratio: 489 / 380; flex: 0 0 auto; background: url("../images/brand/logo-tudo-eh-mental-symbol-white.png") center / contain no-repeat; content: ""; }
.home-footer__grid p { max-width: 30rem; color: #b8bfce; }
.home-footer__title { margin: 0 0 var(--tem-space-4); color: #fff; font-size: var(--tem-font-size-sm); letter-spacing: 0.06em; text-transform: uppercase; }
.home-footer__links { margin: 0; padding: 0; list-style: none; }
.home-footer__links li + li { margin-top: var(--tem-space-2); }
.home-footer__links a { color: #d7dbe5; text-underline-offset: 0.25em; }
.home-footer__links a:hover { color: #fff; }
.home-footer__bottom { display: flex; justify-content: space-between; gap: var(--tem-space-6); margin-top: var(--tem-space-10); padding-top: var(--tem-space-5); border-top: 1px solid #3b465c; color: #9fa8ba; font-size: var(--tem-font-size-xs); }
.home-footer__bottom p { margin: 0; }
.home-footer__bottom a { color: #d7dbe5; text-decoration-color: #aeb7c8; text-underline-offset: .2em; }
.home-footer__bottom a:hover { color: #fff; }
.blog-footer-brand { display: inline-flex; align-items: center; gap: var(--tem-space-3); margin-bottom: var(--tem-space-5); color: #fff; font-family: var(--tem-font-display); font-weight: 700; text-decoration: none; }
.blog-footer-brand img { width: 4.25rem; height: auto; }
.home-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .home-hero__grid { grid-template-columns: 1fr 18rem; gap: var(--tem-space-8); } .home-about__grid { gap: var(--tem-space-10); } }
@media (max-width: 760px) {
    .home-header__inner { min-height: 4.5rem; flex-direction: row; align-items: center; padding-block: var(--tem-space-2); }
    .home-menu-button { display: inline-flex; }
    .home-menu-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .home-header .home-nav { position: absolute; top: 100%; left: 0; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; padding: var(--tem-space-3) 1rem var(--tem-space-5); border-bottom: 1px solid var(--tem-color-border); background: var(--tem-color-surface); box-shadow: var(--tem-shadow-md); overflow: visible; }
    .home-header .home-nav[data-open="true"] { display: flex !important; visibility: visible !important; opacity: 1 !important; }
    .home-header .home-nav .tem-nav-link { min-height: 3rem; display: flex; align-items: center; border-bottom: 1px solid var(--tem-color-border); }
    .home-hero { min-height: auto; padding-block: var(--tem-space-16); }
    .home-hero__grid { grid-template-columns: 1fr; }
    .home-hero .tem-display { font-size: clamp(2.15rem, 10.5vw, 3rem); line-height: 1.08; }
    .home-hero__visual { display: none; }
    .home-actions { flex-direction: column; align-items: stretch; }
    .home-actions .tem-button { width: 100%; }
    .home-two-columns, .home-about__grid, .home-footer__grid { grid-template-columns: 1fr; gap: var(--tem-space-8); }
    .home-path-card { min-height: auto; }
    .home-path-card--featured { transform: none; }
    .home-about__portraits { width: min(100%, 34rem); margin-inline: auto; }
    .home-about__portrait img { height: clamp(22rem, 72vw, 30rem); }
    .home-section-heading--row { align-items: flex-start; flex-direction: column; }
    .home-button--light { width: 100%; }
    .home-article { min-height: auto; }
    .home-article__link { margin-top: var(--tem-space-6); }
    .home-offer { grid-template-columns: 1fr; padding-inline: 0; }
    .home-offer__image { height: 12rem; }
    .home-footer__bottom { flex-direction: column; }
}
@media (max-width: 420px) { .home-brand { font-size: 0.9rem; } .home-brand__mark { width: 3rem; } .home-hero__thought { font-size: 0.65rem; } }
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: 180ms; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(root) { animation-duration: 0.01ms; }
}
