.home-page [hidden] { display: none !important; }
.home-interactive { display: none !important; }
.home-ready .home-interactive { display: flex !important; }
.home-page [id] { scroll-margin-top: calc(var(--home-header-height, var(--header-height)) - var(--header-height) + 24px); }
.home-page .hero { padding-block: 44px; background: linear-gradient(115deg, #f8faf9 18%, #edf3f0 100%); border-bottom: 1px solid var(--color-border-soft); }
.home-page .hero__inner { --container-width: 1320px; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.5fr); grid-template-areas: 'intro visual' 'choice visual' 'actions visual'; grid-template-rows: auto auto 1fr; gap: 26px 42px; align-items: start; }
.home-page .hero__content { grid-area: intro; max-width: none; padding-top: 30px; }
.home-page .hero__title { margin: 18px 0 20px; font-size: clamp(38px, 3.45vw, 50px); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.home-page .hero__subtitle { margin: 0; max-width: 410px; font-size: 16px; line-height: 1.65; }
.home-page .hero__cta { grid-area: actions; align-self: start; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding-bottom: 24px; }
.home-page .hero__cta .btn { width: auto; flex: 0 1 auto; min-height: 50px; padding-inline: 21px; font-size: 14px; gap: 16px; }
.home-page .hero__content, .home-hero-stage, .home-profile-family, .home-page .profiles-grid > li { min-width: 0; }
.home-eyebrow { display: block; font-size: 11px; letter-spacing: .08em; font-weight: 600; color: var(--color-primary-dark); margin-bottom: 6px; }
.home-hero-choice { grid-area: choice; min-width: 0; }
.home-hero-choice__label { display: block; margin-bottom: 10px; font-size: 12px; color: var(--color-text-muted); }
.home-hero-switch { gap: 4px; padding: 4px; max-width: 100%; width: fit-content; background: #e4ece7; border: 1px solid #d9e4de; border-radius: var(--radius-sm); }
.home-hero-switch button { min-height: 46px; padding: 10px 28px; border-radius: 7px; color: var(--color-text-muted); font-size: 13px; font-weight: 600; letter-spacing: .025em; transition: background .2s, color .2s; }
.home-hero-switch button[aria-pressed="true"] { color: white; background: var(--color-primary-dark); box-shadow: var(--shadow-xs); }
.home-hero-switch button:hover:not([aria-pressed="true"]) { color: var(--color-primary-dark); background: rgba(255,255,255,.5); }
.home-hero-switch button:focus-visible, .home-hero-docs:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 3px; }
.home-hero-fallback { display: flex; gap: 24px; font-weight: 600; color: var(--color-primary-dark); }
.home-page .home-hero-stage { grid-area: visual; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.home-hero-panel { margin: 0; }
.home-hero-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0 16px; border-bottom: 1px solid #d8e3dc; }
.home-hero-panel__top .home-eyebrow { margin: 0; font-size: 10px; }
.home-hero-panel__index { color: var(--color-text-light); font-size: 11px; letter-spacing: .08em; }
.home-hero-render { display: flex; align-items: center; width: 100%; height: 382px; margin-block: 12px; }
.home-page .home-hero-render img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.home-hero-caption { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 20px; border-top: 1px solid #d8e3dc; }
.home-hero-caption__brand { display: block; margin-bottom: 8px; color: var(--color-primary-dark); font-size: 10px; letter-spacing: .09em; font-weight: 600; }
.home-hero-caption h2 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.home-hero-caption p { margin: 7px 0 0; font-size: 12px; color: var(--color-text-muted); line-height: 1.5; }
.home-hero-docs { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 40px; color: var(--color-primary-dark); font-size: 12px; font-weight: 500; }
.home-hero-docs span { font-size: 20px; }
.home-family-switch { gap: 6px; padding: 6px; width: fit-content; max-width: 100%; border-radius: var(--radius-md); background: var(--color-surface-soft); margin-bottom: 30px; }
.home-family-switch button { min-height: 48px; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.home-family-switch button[aria-pressed="true"] { background: var(--color-primary-dark); color: white; }
.home-family-switch span { opacity: .7; margin-left: 10px; }
.home-family-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.home-family-heading h3 { font-size: 28px; line-height: 1.2; }
.home-family-heading p { font-size: 14px; color: var(--color-text-muted); margin-top: 8px; }
.home-family-heading > div:last-child { display: flex; gap: 20px; flex-wrap: wrap; }
.home-page .profiles-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-page .profiles-grid > li { display: flex; }
.home-page .profile-card { width: 100%; }
.home-page .profile-card__top { min-width: 0; }
.home-page .profile-card__drawing img { object-fit: contain; width: 100%; height: 145px; }
.home-page .profile-card__title { font-size: 20px; }
.home-page .profile-card__drawing { min-width: 0; }
.home-profile-family + .home-profile-family { margin-top: 40px; }
.home-ready .home-profile-family { margin-top: 0; }
.home-profile-tools, .home-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.home-profile-tools { margin-top: 32px; }
.home-profile-tools .card { padding: 24px; }
.home-profile-tools strong { display: block; font-size: 18px; }
.home-profile-tools span { display: block; color: var(--color-text-muted); font-size: 14px; margin-top: 8px; }
.home-document-family { padding: 32px; }
.home-document-family h3 { font-size: 23px; line-height: 1.3; }
.home-document-family p { color: var(--color-text-muted); margin-block: 16px 24px; }
@media (max-width: 991px) {
  .home-page .hero__inner { grid-template-columns: minmax(0,1fr); grid-template-areas: 'intro' 'choice' 'visual' 'actions'; gap: 24px; }
  .home-page .hero__content { padding-top: 0; }
  .home-page .hero__title { max-width: 680px; font-size: 44px; margin-top: 14px; }
  .home-page .hero__subtitle { max-width: 550px; }
  .home-page .hero__cta { padding-bottom: 0; }
  .home-hero-render { height: 360px; }
  .home-page .profiles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-family-heading { flex-wrap: wrap; }
}
@media (max-width: 599px) {
  .home-page .hero { padding-block: 26px 30px; }
  .home-page .hero__inner { gap: 16px; }
  .home-page .hero__content > .home-eyebrow { font-size: 9px; letter-spacing: .065em; }
  .home-page .hero__title { font-size: clamp(27px, 7.25vw, 32px); margin-block: 14px 16px; line-height: 1.12; }
  .home-page .hero__subtitle { font-size: 13px; line-height: 1.6; }
  .home-hero-choice__label { font-size: 11px; margin-bottom: 8px; }
  .home-hero-switch { width: 100%; }
  .home-hero-switch button { flex: 1; padding-inline: 10px; }
  .home-hero-panel__top { padding-block: 0 12px; }
  .home-hero-render { height: auto; aspect-ratio: 1.79; margin-block: 14px; }
  .home-page .home-hero-render img { aspect-ratio: 1.79; }
  .home-hero-caption { padding-top: 14px; align-items: start; flex-wrap: wrap; gap: 6px; }
  .home-hero-caption h2 { font-size: 20px; }
  .home-hero-caption__brand { margin-bottom: 6px; font-size: 9px; }
  .home-hero-caption p { font-size: 11px; margin-top: 6px; }
  .home-hero-docs { min-height: 34px; font-size: 11px; }
  .home-page .hero__cta { gap: 8px; }
  .home-page .hero__cta .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 14px; font-size: 12px; gap: 10px; }
  .home-family-switch { width: 100%; }
  .home-family-switch button { flex: 1; padding-inline: 10px; font-size: 13px; }
  .home-family-switch span { margin-left: 4px; }
  .home-page .profiles-grid, .home-profile-tools, .home-document-grid { grid-template-columns: 1fr; }
  .home-document-family { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .home-page *, .home-page { scroll-behavior: auto !important; } }
