/* Homepage structures are fluid; prose has its own reading measure.
   Other portfolio.css consumers keep their established page widths. */
.homepage .wrap { width: 92%; max-width: none; }
.homepage :is(.about-body > p, .leadership-list p, .experience-entry > p, .experience-entry li, .impact-copy, .assistant-intro > p, .assistant-privacy p) { max-width: 72ch; }
.homepage .project-card > p { max-width: 70ch; }
.homepage :is(.hero, .section, .assistant-section, .contact-inner) > * { min-width: 0; }
.homepage .commercial-projects { grid-template-columns: minmax(0, 1fr); }
.homepage .project-card--embercrest { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr); column-gap: 48px; }
.homepage .project-card--embercrest .project-card-heading { grid-row: span 2; }
.homepage .project-card--embercrest > p { grid-column: 2; }
.homepage .project-card--embercrest .project-bottom { grid-column: 1 / -1; }
.homepage .project-card--embercrest .project-links { flex-direction: row; }
.homepage .project-card :is(h3, h4, h5) a::after { content: none; }
.homepage .project-card :is(h3, h4, h5) a:focus-visible { outline: 3px solid var(--teal-dark); }
.homepage .project-status { white-space: normal; }
.family-panel { margin-top: 26px; padding: clamp(22px, 2.2vw, 72px); border: 1px solid #99c8bb; border-top: 5px solid var(--teal-dark); border-radius: 5px; background: linear-gradient(125deg, #e7f7f0, #f6fcf4 65%, #fff6df); }
.family-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.family-brand { display: inline-flex; align-items: center; gap: 24px; min-width: 0; }
.family-brand > div { min-width: 0; }
.homepage :is(h1, h2, .family-brand h4, .family-product h5) { overflow-wrap: anywhere; max-width: 100%; }
.family-brand img { width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; }
.family-brand h4 { font-family: Georgia, serif; font-size: clamp(30px, 2.4vw, 52px); font-weight: 400; line-height: 1.25; margin-top: 7px; }
.family-brand h4 span { font: 24px "Segoe UI", sans-serif; }
.family-purpose { max-width: 34ch; color: var(--teal-dark); font-size: clamp(18px, 1.2vw, 25px); line-height: 1.5; }
.family-intro { max-width: 72ch; color: var(--muted); margin-top: 26px; }
.family-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.3vw, 40px); margin-top: 36px; }
.family-product { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 1.3vw, 40px); border: 1px solid #bed8ce; border-top: 3px solid var(--teal-dark); background: #fffdf7; border-radius: 4px; }
.family-product:first-child { border-top-color: var(--coral-dark); }
.family-product:nth-child(3) { border-top-color: var(--gold-dark); }
.family-product-name { display: flex; gap: 16px; align-items: center; width: fit-content; }
.family-product-name h5 { min-width: 0; }
.family-product-name img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.family-product h5 { margin: 0; font-size: clamp(18px, 1vw, 26px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.family-product h5 span { font-size: 16px; }
.family-product > p:not(.family-status) { max-width: 65ch; margin-top: 17px; color: var(--muted); font-size: 15px; }
.family-status { width: fit-content; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 5px 9px; background: #edf6ed; border: 1px solid #bacfc0; border-radius: 3px; color: #345343; }
.family-product > .family-status { margin-top: 24px; }
.family-product > .family-note, .family-note { font-size: 12px; color: var(--muted); }
.family-product-action { align-self: flex-start; margin-top: auto; padding-top: 25px; padding-bottom: 6px; min-height: 44px; color: var(--teal-dark); font-size: 14px; font-weight: 600; }
.family-product-action span { margin-left: 8px; }
.family-panel a:hover { text-decoration: underline; text-underline-offset: 5px; }
.family-secondary { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; border-top: 1px solid #bfd6c9; margin-top: 28px; padding-top: 23px; font-size: 14px; }
.family-secondary h5 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.family-secondary h5 { margin: 0; font-size: 14px; }
.family-secondary a { font-weight: 600; padding-block: 10px; }
.family-secondary > p:last-child { color: var(--muted); align-self: center; }
.family-roadmap { padding-block: 24px; margin-top: 20px; border-block: 1px solid #bfd6c9; }
.family-roadmap ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 36px; }
.family-roadmap a { display: inline-flex; padding-block: 11px; min-height: 44px; font-weight: 500; font-size: 14px; }
.family-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; margin-top: 28px; font-size: 14px; }
.family-footer p { color: var(--muted); }
.family-footer p a { color: var(--teal-dark); font-weight: 600; display: inline-block; padding-block: 10px; }
/* Foundation supports the products as a shared library, with a compact entry. */
.family-library { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #bfd6c9; }
.family-library-logo { display: inline-flex; }
.family-library-logo img { width: 48px; height: 48px; object-fit: contain; }
.family-library-copy { min-width: 0; }
.family-library-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.family-library h5 { margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.family-library-copy > p { max-width: 85ch; margin-top: 8px; color: var(--muted); font-size: 14px; }
.family-library-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; font-weight: 600; }
.family-library-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.homepage .section-intro { max-width: 72ch; }
.homepage .project-topline { justify-content: flex-start; }
.homepage .family-note { max-width: 72ch; }
.homepage .site-nav { flex-wrap: wrap; justify-content: flex-end; }
.homepage :is(.assistant-toolbar, .assistant-input-meta) { flex-wrap: wrap; }
@media (min-width: 1800px) {
    .homepage { font-size: 18px; }
    .homepage .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding-block: 90px; }
    .homepage .hero-copy { max-width: 100%; }
    .homepage h1 { font-size: clamp(100px, 4.6vw, 168px); }
    .homepage .hero-heading { font-size: 30px; }
    .homepage .hero-description { max-width: 66ch; font-size: 18px; }
    .homepage .portrait { max-width: 520px; justify-self: center; }
    .homepage .section { grid-template-columns: minmax(240px, .8fr) minmax(0, 3fr); gap: 80px; }
    .homepage .about-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; align-items: start; }
    .homepage .about-body > .lead, .homepage .leadership-focus, .homepage .expertise-grid { grid-column: 1 / -1; }
    .homepage .experience-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 64px; align-items: start; }
    .homepage .earlier-experience { grid-column: 1 / -1; }
    .homepage .earlier-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 64px; align-items: start; }
    .homepage .experience-entry > p:not(.role), .homepage .experience-entry li, .homepage .impact-copy { font-size: 16px; }
    .homepage .more-projects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .homepage .project-card--embercrest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .homepage .project-card--embercrest > p:nth-of-type(3) { grid-column: 3; grid-row: 1 / span 2; }
    .homepage .assistant-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .homepage .assistant-intro, .homepage .assistant-panel { max-width: 80ch; }
}
@media (max-width: 1399px) { .family-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .homepage .project-card--embercrest { display: flex; }
    .family-library { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
    .family-library-links { grid-column: 2; }
    .family-purpose br { display: none; }
}
@media (max-width: 560px) {
    .homepage .wrap { width: calc(100% - 32px); }
    .family-products { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
    .family-panel { padding: 20px 16px; }
    .family-heading { gap: 18px; }
    .family-brand { gap: 16px; }
    .family-brand img { width: 80px; height: 80px; }
    .family-brand h4 { font-size: 30px; }
    .family-purpose { font-size: 19px; }
    .family-intro { font-size: 14px; margin-top: 18px; }
    .family-product { padding: 20px; }
    .family-product h5 { font-size: 21px; }
    .family-library { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
    .family-library-logo img { width: 40px; height: 40px; }
    .family-footer { align-items: flex-start; flex-direction: column; }
    .family-footer .button { gap: 12px; font-size: 13px; }
    .homepage .project-card { padding: 22px; }
    .homepage .project-card-heading { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
    .homepage .project-logo { width: 72px; height: 72px; }
    .homepage .site-nav { gap: 0 16px; font-size: 12px; }
    .homepage .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; }
    .homepage .hero-copy > .eyebrow { letter-spacing: .07em; font-size: 8px; }
    .homepage .hero-meta { gap: 8px 12px; }
    .homepage .career-strip li { font-size: 16px; }
    .homepage .career-strip ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7em), 1fr)); }
}
@media (max-width: 380px) { .family-brand { flex-direction: column; align-items: flex-start; gap: 8px; } .family-brand img { width: 64px; height: 64px; } }
@media (max-height: 500px) { .homepage .site-header { min-height: 76px; position: static; } .homepage .hero { padding-block: 32px; } }
@media (prefers-reduced-motion: reduce) { .homepage .project-card:hover { transform: none; } }
@media print { .homepage .wrap { width: 100%; } .family-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
