/* Audience segments: the three segment pages (/homes, /commercial, /care-education) and the
   segment doors on the home page. Loaded by those pages only. */

/* Segment hero: the home hero, shorter, with a wider headline. */
.hero--segment { min-height: min(72vh, 680px); }
.hero--segment .hero__content { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 80px); }
.hero__title--wide { max-width: 20ch; font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem); }
.breadcrumbs--light { color: rgba(255, 255, 255, 0.8); }
.breadcrumbs--light li + li::before { color: rgba(255, 255, 255, 0.45); }
.breadcrumbs--light [aria-current] { color: #fff; }
.hero--segment::after { background: linear-gradient(180deg, rgba(15, 15, 16, 0.6) 0%, rgba(15, 15, 16, 0.3) 30%, rgba(15, 15, 16, 0.5) 60%, rgba(15, 15, 16, 0.85) 100%); }
.hero .breadcrumbs { margin-bottom: clamp(48px, 10vh, 120px); }

/* Featured product cards: big photos. */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.story-card { display: flex; flex-direction: column; }
.story-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.story-card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--stone); aspect-ratio: 4 / 3; }
.story-card__media img { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-card__media--photo img { object-fit: cover; }
.story-card__media--product { padding: 8%; }
.story-card__media--product img { object-fit: contain; mix-blend-mode: multiply; }
.story-card__link:hover .story-card__media img { transform: scale(1.03); }
.story-card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.story-card__body .eyebrow { margin: 0; }
.story-card__title { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; color: var(--black); }
.story-card__link:hover .story-card__title { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.2em; }
.story-card__text { color: var(--muted); font-size: 0.97rem; max-width: 34rem; }
.story-card__cue { margin-top: 4px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.story-card__cue::after { content: " →"; color: var(--amber); }
.story-card__more { margin: 10px 0 0; font-size: 0.9rem; }
@media (min-width: 1100px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .story-card__link:hover .story-card__media img { transform: none; } }

/* "Specify it. Build it. Price it." */
.route-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.route-tile { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.route-tile__title { margin: 0; font-size: 1.25rem; font-weight: 500; color: var(--black); }
.route-tile__text { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.route-tile__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 0; }

/* Home page: the three doors. */
.doors { display: grid; gap: clamp(12px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.door { min-width: 0; }
.door__link { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--black); aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .door__link { aspect-ratio: 3 / 4; } }
.door__media, .door__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.door__media img { object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.door__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 15, 16, 0) 35%, rgba(15, 15, 16, 0.84) 100%); }
.door__link:hover .door__media img { transform: scale(1.04); }
.door__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 3vw, 32px); }
.door__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.door__text { color: rgba(255, 255, 255, 0.88); font-size: 1rem; max-width: 28rem; }
.door__cue { margin-top: 8px; font-size: 0.9rem; font-weight: 500; }
.door__cue::after { content: " →"; color: #f2bf6c; }
.door__link:focus-visible { outline-color: #f2bf6c; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .door__link:hover .door__media img { transform: none; } }

/* Home page: the Tunable difference. */
@media (min-width: 960px) { .split--reverse { grid-template-columns: 1fr 1.1fr; } .split--reverse .split__media { order: 2; } }
