/* The home page connects the existing infrastructure and AI visual languages. */
.home-connected .home-hero { padding-block: clamp(42px, 5vw, 74px) 56px; overflow: hidden; }
.home-connected .hero-inner { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 34px; }
.home-connected .hero h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.1; }
.home-connected .hero .lead { font-size: 16px; line-height: 1.8; }
.home-connected .hero-bg { background-image: radial-gradient(ellipse at 75% 40%, var(--it-soft), transparent 55%), radial-gradient(ellipse at 95% 15%, var(--accent-soft), transparent 48%); }
.home-system { --home-pin-color: var(--it); }
.home-system .art-heading { min-height: 20px; padding-inline: 0; }
.home-system .art-kicker { line-height: 1.4; }
.home-system .art-heading-symbol { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 20px; line-height: 0; }
.home-system .art-heading-symbol svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-system-scene { position: relative; aspect-ratio: 900 / 680; isolation: isolate; margin-top: 24px; }
.home-scene-rack, .home-scene-brain { position: absolute; transition: opacity 450ms ease, filter 450ms ease; }
/* Match visible silhouettes at y=119–561: rack alpha y=5–1235; brain outline y=71.58–614. */
.home-scene-rack { left: 0; top: 17.28%; width: 50%; height: 66.18%; z-index: 1; }
.home-scene-brain { left: 42.13%; top: 8.98%; width: 57.87%; height: 77.79%; }
.home-scene-rack img, .home-scene-brain img { width: 100%; height: 100%; object-fit: contain; }
.home-scene-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.home-pin { --home-pin-color: var(--it); position: absolute; left: var(--home-x); top: var(--home-y); width: 44px; height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; color: var(--home-pin-color); z-index: 3; }
.home-pin-ai { --home-pin-color: var(--accent); }
.home-pin > span { width: 9px; height: 9px; background: var(--bg); border: 1px solid currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(20,22,25,.85), 0 0 0 5px currentColor; transition: background 200ms, box-shadow 200ms; }
.home-pin:hover > span, .home-pin:focus-visible > span, .home-pin.is-active > span { background: currentColor; box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px currentColor, 0 0 24px currentColor; }
.home-pin::after { content: attr(data-label); position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 190px; padding: 8px 12px; border: 1px solid var(--border-2); background: var(--bg-2); border-radius: 9px; color: var(--text); font-size: 11px; line-height: 1.5; opacity: 0; visibility: hidden; pointer-events: none; text-align: center; }
.home-pin:hover, .home-pin:focus-visible { z-index: 5; }
.home-pin:hover::after, .home-pin:focus-visible::after { opacity: 1; visibility: visible; }
.home-equipment-picker[hidden] { display: none; }
.home-equipment-picker button { border: 1px solid var(--border); background: transparent; border-radius: 8px; padding: 8px 12px; font-size: 11px; color: var(--dim); transition: color 200ms, background 200ms, border-color 200ms; }
.home-equipment-picker button:hover { color: var(--text); border-color: var(--border-2); }
.home-connected .home-system .art-footer { margin-top: 18px; }
.home-connected .hero-baseline { margin-top: 32px; }
.home-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.home-journey a { display: flex; align-items: center; gap: 12px; position: relative; padding: 13px 16px; border: 1px solid var(--border); border-radius: 11px; font-size: 12px; color: var(--dim); background: rgba(29,33,39,.55); transition: border-color 250ms, background 250ms; }
.home-journey a .ui-icon { width: 20px; height: 20px; color: var(--it); flex: none; }
.home-journey a:nth-child(even) .ui-icon { color: var(--accent); }
.home-journey a:not(:last-child)::after { content: ""; position: absolute; right: -21px; top: 50%; width: 20px; height: 1px; background: linear-gradient(90deg, var(--it-line), var(--accent-line)); pointer-events: none; }
.home-journey a:hover, .home-journey a[aria-current] { color: var(--text); border-color: var(--it-line); background: var(--it-soft); }
.home-connected .section:not(.hero)::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(60%, 720px); height: 1px; background: linear-gradient(90deg, transparent, var(--it-line), var(--accent-line), transparent); pointer-events: none; }
.home-connected .card, .home-connected .project-card, .home-connected .ex-card, .home-connected .step { border-radius: 20px; background: linear-gradient(135deg, var(--surface), var(--bg-2)); }
.home-connected .card h3 { letter-spacing: -.025em; }
.home-connected .home-linked-card { scroll-margin-top: 116px; }
.home-connected .home-linked-card.is-selected, .home-connected .home-linked-card:target { border-color: var(--card-accent); box-shadow: 0 0 30px -18px var(--card-accent); }
.home-connected .infra-panel.home-infra-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 42px; padding: 38px; background: radial-gradient(ellipse at 80% 42%, var(--it-soft), transparent 65%), var(--bg-2); }
.home-infra-panel .infra-copy h3 { font-size: clamp(27px, 3vw, 38px); line-height: 1.15; }
.home-infra-panel .infra-copy p { max-width: 46ch; font-size: 15px; line-height: 1.8; }
.home-infra-panel .project-link { margin-top: 24px; }
.home-equipment { min-width: 0; }
.home-equipment-art { height: 330px; position: relative; }
.home-equipment-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 350ms, transform 400ms var(--ease), visibility 0s 350ms; }
.home-equipment-image.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.home-equipment-picker { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.home-equipment-picker button { padding: 9px 12px; min-height: 40px; font-size: 13px; }
.home-equipment-picker button[aria-pressed="true"] { border-color: var(--it); color: var(--text); background: var(--it-soft); }
.home-equipment-caption { display: flex; justify-content: space-between; gap: 14px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--dim); }
.home-equipment-caption a { color: var(--it); }
.home-components { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 36px; align-items: center; padding: 30px 44px; }
.home-components img { width: 100%; height: 235px; object-fit: contain; }
.home-components .eyebrow { font-size: 9px; color: var(--it); }
.home-components h3 { font-size: 25px; margin-bottom: 14px; }
.home-components p { font-size: 15px; max-width: 65ch; color: var(--dim); }
.home-components .project-link { margin-top: 22px; }
.home-ai-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 50px; padding: 32px 42px; background: radial-gradient(ellipse at 24% 50%, var(--accent-soft), transparent 55%), var(--bg-2); }
.home-neural-stage { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 640 / 650; --home-neuron-color: var(--accent); }
.home-neural-stage > img, .home-neural-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-neural-wires { pointer-events: none; overflow: visible; }
.home-neural-route, .home-neural-packet { fill: none; stroke: var(--home-neuron-color); stroke-linecap: round; }
.home-neural-route { stroke-width: 1.4; opacity: .6; }
.home-neural-packet { stroke-width: 3; stroke-dasharray: .045 .955; opacity: 0; }
.home-neural-stage.is-signaling .home-neural-packet { animation: home-neural-signal 1.1s linear both; }
.home-neural-pin { --home-pin-color: var(--accent); }
.home-neural-pin:nth-of-type(even) { --home-pin-color: var(--it); }
.home-workflow-copy .workflow-heading { display: block; margin-bottom: 26px; }
.home-workflow-copy .workflow-heading p { font-size: clamp(24px, 2.7vw, 34px); color: var(--text); font-weight: 600; line-height: 1.25; letter-spacing: -.03em; }
.home-ai-panel .workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
.home-ai-panel .workflow li { padding-top: 16px; border-top: 1px solid var(--border); align-items: flex-start; min-width: 0; }
.home-ai-panel .workflow li::after { display: none; }
.home-ai-panel .workflow li > .ui-icon { width: 38px; height: 38px; padding: 9px; flex: none; }
.home-ai-panel .workflow li strong { font-size: 15px; }
.home-ai-panel .workflow li span { font-size: 13px; }
.home-workflow-copy .project-link { margin-top: 30px; }
.home-connected .project-visual { background: radial-gradient(ellipse at 25% 50%, var(--it-soft), transparent 55%), radial-gradient(ellipse at 90% 30%, var(--accent-soft), transparent 55%), var(--bg-2); }
.home-connected .industry-strip { border-radius: 16px; padding-inline: 22px; background: rgba(36,41,50,.25); }
@keyframes home-neural-signal { 0% { stroke-dashoffset: 1; opacity: 0; } 15%, 75% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (max-width: 1100px) {
  .home-connected .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
  .home-connected .hero h1 { font-size: 43px; }
  .home-connected .hero .lead { font-size: 15px; }
  .home-infra-panel, .home-ai-panel { gap: 28px; }
}
@media (max-width: 900px) {
  .home-connected .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .home-connected .hero-copy { max-width: 650px; }
  .home-connected .hero h1 { font-size: clamp(38px, 6vw, 54px); }
  .home-system { width: 100%; max-width: 700px; margin-inline: auto; }
  .home-connected .infra-panel.home-infra-panel { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .home-infra-panel .infra-copy p { max-width: 65ch; }
  .home-equipment-art { height: 300px; }
  .home-ai-panel { gap: 24px; padding: 26px; }
  .home-ai-panel .workflow { grid-template-columns: 1fr; gap: 18px; }
  .home-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-journey a::after { display: none; }
}
@media (max-width: 620px) {
  .home-connected .home-hero { padding-block: 34px 42px; }
  .home-connected .hero-inner { gap: 28px; }
  .home-connected .hero h1 { font-size: clamp(33px, 8.5vw, 45px); }
  .home-connected .hero .lead { font-size: 14px; line-height: 1.8; }
  .home-connected .hero-eyebrow { font-size: 8px; margin-bottom: 22px; }
  .home-connected .hero-cta { gap: 9px; margin-block: 24px 20px; }
  .home-connected .hero-cta .btn { font-size: 12px; padding: 12px 14px; }
  .home-connected .hero-legend { gap: 8px; }
  .home-connected .legend-chip { font-size: 10px; padding: 8px 10px; gap: 8px; }
  .home-connected .hero-baseline { margin-top: 26px; font-size: 11px; align-items: flex-start; }
  .home-connected .hero-baseline > span { max-width: 135px; }
  .home-connected .scroll-cue { max-width: 150px; gap: 10px; }
  .home-connected .home-system .art-heading { padding-inline: 0; gap: 10px; }
  .home-connected .home-system .art-kicker { font-size: 8px; }
  .home-pin::after { display: none; }
  .home-connected .home-system .art-footer { padding-inline: 0; align-items: flex-start; }
  .home-connected .home-system .art-caption { font-size: 10px; max-width: 23ch; }
  .home-journey a { padding: 11px 12px; gap: 9px; font-size: 10px; }
  .home-journey a .ui-icon { width: 18px; height: 18px; }
  .home-connected .infra-panel.home-infra-panel { padding: 24px 19px; }
  .home-equipment-art { height: 240px; }
  .home-equipment-picker { gap: 6px; }
  .home-equipment-picker button { font-size: 12px; padding: 9px 11px; }
  .home-equipment-caption { font-size: 11px; }
  .home-components { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .home-components img { height: 200px; }
  .home-components h3 { font-size: 22px; }
  .home-components p { font-size: 14px; }
  .home-ai-panel { grid-template-columns: 1fr; padding: 20px; gap: 26px; }
  .home-neural-stage { max-width: 360px; }
  .home-workflow-copy .workflow-heading { margin-bottom: 22px; }
  .home-ai-panel .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .home-ai-panel .workflow li { display: flex; flex-direction: column; gap: 10px; }
  .home-connected .industry-strip { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-scene-rack, .home-scene-brain, .home-equipment-image { transition: none; }
  .home-neural-packet { display: none; }
}

/* Hero: physical infrastructure feeds one neural system, on a shared plane. */
.home-data-fiber { stroke: url(#flow); stroke-width: 1.35; opacity: .7; }
.home-fiber-glow { fill: none; stroke: url(#flow); stroke-width: 9; opacity: .06; }
.home-data-ports { fill: var(--it); }
.home-data-neurons { fill: var(--accent); }
.home-system-directions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.home-system-directions a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--dim); font-size: 12px; }
.home-system-directions a:first-child > span:last-child { color: var(--it); }
.home-system-directions a:last-child > span:last-child { color: var(--accent); }
.home-system-directions a:hover { color: var(--text); }
.home-connected .home-system .art-footer { margin-top: 5px; }

/* Only the two home service grids are denser; content and other sections stay intact. */
.home-connected #outsourcing .cards-3, .home-connected #ai .bento { gap: 16px; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components), .home-connected #ai .bento > .card { padding: 18px; border-radius: 16px; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-top { flex-direction: row; align-items: flex-start; gap: 11px; margin-bottom: 11px; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) h3, .home-connected #ai .bento > .card h3 { font-size: 16px; line-height: 1.3; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) .service-icon, .home-connected #ai .bento > .card > .service-icon { width: 34px; height: 34px; border-radius: 10px; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) .service-icon .ui-icon, .home-connected #ai .bento > .card > .service-icon .ui-icon { width: 19px; height: 19px; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) p, .home-connected #ai .bento > .card p { font-size: 13.5px; line-height: 1.6; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-ex, .home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-out { margin-top: 9px; padding: 8px 10px; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-ex p, .home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-out p { font-size: 12.5px; line-height: 1.55; }
.home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-ex span, .home-connected #outsourcing .cards-3 > .card:not(.home-components) .card-out span, .home-connected #ai .bento > .card .card-for span { font-size: 9px; letter-spacing: .08em; margin-bottom: 4px; }
.home-connected #ai .bento > .card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-content: start; }
.home-connected #ai .bento > .card-lg { grid-row: span 1; }
.home-connected #ai .bento > .card > .service-icon { margin: 0; }
.home-connected #ai .bento > .card > h3 { align-self: center; margin: 0; }
.home-connected #ai .bento > .card > p { grid-column: 1 / -1; margin: 0; }
.home-connected #ai .bento > .card > .card-for { padding-top: 10px; }
@media (max-width: 620px) {
  .home-system-directions { gap: 14px; }
  .home-system-directions a { font-size: 10px; gap: 8px; }
  .home-system-directions .legend-dot { width: 6px; height: 6px; }
  .home-connected #outsourcing .cards-3 > .card:not(.home-components), .home-connected #ai .bento > .card { padding: 17px; }
  .home-connected #outsourcing .cards-3 > .card:not(.home-components) > p, .home-connected #ai .bento > .card p { font-size: 14px; }
}
