/* Homepage uses the service pages’ 1rem heading/content gaps and 2.25rem section break.
   Both offers stay visible and link to their full service pages. */
.homepage-intro .lead{max-width:none;width:100%;margin-bottom:0}
.homepage-intro .lead + .lead{margin-top:1.25rem}
.hero.homepage-intro{padding-bottom:1rem}
.homepage-intro h1{margin-bottom:1rem}
.handoff-summary p{max-width:none}
nav{row-gap:0}
#services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:stretch;padding-bottom:2.25rem}
#services .service-card{min-width:0;border-top:0;padding:0;scroll-margin-top:1.5rem}
#services .service-card,#services .service-preview{display:grid}
/* Equal insets and content gaps; homepage cards grow with their text. */
#services .service-summary{margin-top:0;display:flex;flex-direction:column;padding:1.25rem;gap:1.25rem}
#services .service-summary h2,#services .service-summary p{margin:0}
#services .service-action{align-self:flex-start}
.service-summary{border:1px solid var(--line);background:var(--tint);padding:1.25rem;margin-top:.25rem}
/* Shared card baseline; use a minimum so wrapping and enlarged text remain readable. */
#business-system>.ai-examples>article,#hardware-benefits>.ai-examples>article{min-height:14rem}
.service-summary h2{font-size:clamp(1.4rem,2.5vw,2rem);font-weight:600;letter-spacing:-.035em;line-height:1.2;margin:0 0 1rem}
.service-summary p{color:var(--muted);margin:0 0 1rem}
.service-action{display:inline-block;color:var(--blue);font-size:1rem;font-weight:600;text-decoration:none}
.service-action:hover{text-decoration:underline;text-underline-offset:4px}
.ai-content{padding:1.6rem 0 2rem;border-top:1px solid var(--line)}
.ai-content>h2{font-size:clamp(1.6rem,2.8vw,2.4rem);line-height:1.2;letter-spacing:-.04em;font-weight:600;margin:0 0 1rem}
.ai-content p{color:var(--muted);margin:0;max-width:60rem}
.ai-examples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.7rem 0}
.ai-examples article{background:var(--tint);border:1px solid var(--line);padding:1.25rem}
.ai-content h3{font-size:1.16rem;line-height:1.3;margin:0 0 .65rem;letter-spacing:-.02em}
.ai-content > h3{font-size:clamp(1.4rem,2.5vw,2rem)}
.ai-examples h3{color:var(--blue)}
.ai-content .ai-approach{margin-bottom:1.5rem}
@media(min-width:651px) and (max-width:1000px){.ai-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 #services{grid-template-columns:1fr;gap:1rem}
 .ai-examples{grid-template-columns:1fr}
}
/* Fit links individually against the available header width.
   Never shrink the brand or links to make navigation fit. */
header{position:relative;flex-wrap:nowrap;align-items:flex-end;gap:24px;padding:8px 0 0}
header .brand{flex-shrink:0;flex-basis:auto}
header nav{flex:0 0 auto;flex-wrap:nowrap;gap:24px;font-size:.91rem;margin:0 0 1.5px;justify-content:flex-end}
header nav a{white-space:nowrap}
/* Phones and tablets: one row below the brand. Home is dropped (the brand
   links home) and type and gaps scale down so the other links always fit. */
@media(max-width:1000px){
 header{flex-wrap:wrap;align-items:flex-start;row-gap:10px}
 header .brand{flex-shrink:1;max-width:100%}
 header nav{flex:1 0 100%;flex-wrap:nowrap;justify-content:flex-start;gap:clamp(10px,3vw,24px);font-size:min(.91rem,3.5vw);margin:0 0 6px}
 header nav a:first-child{display:none}
}
/* Phones: shorten "Hardware Engineering" to "Hardware" so the row fits at full type size. */
@media(max-width:480px){header nav{font-size:.91rem}header nav .nav-wide{display:none}}
header nav[hidden],header nav a[hidden]{display:none}
/* Keep one divider below the header, independent of navigation visibility. */
header::after{content:"";position:absolute;left:0;right:0;top:auto;bottom:0;border-top:.85px solid var(--line);pointer-events:none}
header .brand::after{display:none}
/* Phones and tablets: the single divider sits between the brand and the navigation. */
@media(max-width:1000px){header::after{display:none}header .brand::after{display:block}}
/* Override older breakpoint-specific offsets so resizing does not jump the gap. */
.hero{margin-top:0;padding-top:1.25rem}

/* One border spans the number, its spacing and the label without the gap
   caused by separate text-decoration fragments. Transparent keeps layout stable. */
.engineering-disclosure > summary:has(.disclosure-label):hover{text-decoration:none}
.disclosure-label{border-bottom:1px solid transparent}
.engineering-disclosure > summary:hover .disclosure-label{border-bottom-color:currentColor}

.ai-examples{margin-bottom:1rem}
.fde-section{padding:1rem 0;margin-top:1rem}
.fde-section h2{font-size:clamp(1.65rem,3vw,2.5rem);line-height:1.15;letter-spacing:-.04em;font-weight:550;margin:0 0 1.25rem}
.fde-section p{font-size:1.05rem;max-width:none}
.fde-section .fde-lead{margin-bottom:1.2rem}
.fde-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.25rem 3rem;margin:2.5rem 0 0}
.fde-steps article{display:grid;grid-template-columns:1.5rem minmax(0,1fr);column-gap:.75rem;align-content:start;border-top:2px solid var(--blue);padding-top:1rem;min-width:0}
.fde-steps .number{grid-column:1;grid-row:1;padding-top:.25rem;font:500 .85rem ui-monospace,monospace;color:var(--blue)}
.fde-steps h3{grid-column:2;grid-row:1;font-size:1.3rem;margin:0 0 .8rem}
.fde-steps p{grid-column:2}
.fde-example{background:var(--tint);border-left:3px solid var(--blue);padding:1.5rem}
.fde-example h3{font-size:1.3rem;margin:0 0 .8rem}
.fde-example .fde-note{margin-top:1rem}
@media(max-width:650px){.fde-steps{grid-template-columns:1fr;gap:1.75rem}}

.fde-steps p + p{margin-top:.85rem}
.fde-example p + p{margin-top:.85rem}
.fde-example .fde-note{margin:0 0 .85rem}

.fde-steps .fde-ownership{grid-column:1 / -1;border-bottom:2px solid var(--blue);padding-bottom:2.25rem}
@media(max-width:650px){.fde-steps .fde-ownership{padding-bottom:1.75rem}}

.fde-example + .fde-example{margin-top:1.5rem}
