/* AIVI front page (Index Option C). Scoped to body.is-aivi-home; other templates are untouched. */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope/manrope-variable-latin.woff2") format("woff2");
}

.is-aivi-home {
    --h-navy: #1D1E48;
    --h-teal: #00D4C2;      /* on navy only */
    --h-dteal: #006B8B;     /* teal on white */
    --h-blue: #3A71C1;
    --h-slate: #353746;
    --h-logo: #3FC0B7;      /* logo mark only */
    --h-muted: #5D6072;
    --h-line: #E3E5EC;
    --h-bg: #F6F7FA;
    --h-chipbg: #EFF1F6;
    --h-radius: 18px;
    --h-pad: 40px;
    --h-side: 440px;
    --h-gap: 24px;
    background: var(--h-bg);
    color: var(--h-slate);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.is-aivi-home .site { background: var(--h-bg); }
.is-aivi-home a { color: inherit; text-decoration: none; }
.is-aivi-home :focus { outline: none; }
.is-aivi-home :focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; border-radius: 6px; }
.home-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.home-skip {
    position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px;
    background: var(--h-navy); color: #fff !important; font-weight: 700; font-size: 14px;
}
.home-skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.home-head { background: #fff; border-bottom: 1px solid var(--h-line); }
.home-head-inner {
    display: flex; align-items: center; gap: 28px;
    max-width: 1520px; margin: 0 auto; padding: 16px var(--h-pad); min-height: 72px;
}
.home-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--h-navy); flex: 0 0 auto; margin-right: 8px; }
.home-brand-mark {
    position: relative; width: 26px; height: 26px; border-radius: 8px;
    background: var(--h-logo);
}
.home-brand-mark::after {
    content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--h-navy); border: 2px solid #fff;
}
.home-brand-logo { width: 28px; height: 28px; object-fit: contain; }
.home-brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.home-brand-sub { font-size: 11px; font-weight: 500; color: var(--h-muted); margin-left: 6px; }
.home-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.home-nav a { display: inline-block; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--h-navy); border-bottom: 2px solid transparent; }
.home-nav a:hover { color: var(--h-blue); }
.home-nav a[aria-current="page"] { border-bottom-color: var(--h-navy); }
.home-head-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.home-search {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--h-navy);
}
.home-search svg { width: 16px; height: 16px; }
.home-search:hover { color: var(--h-blue); }
.home-pill {
    display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 999px;
    background: var(--h-blue); color: #fff !important; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.home-pill:hover { background: #2F5FA6; }

/* ---------- Layout ---------- */
.home { max-width: 1520px; margin: 0 auto; padding: 26px var(--h-pad) 32px; outline: none; }
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--h-side);
    grid-template-rows: auto auto auto;
    column-gap: 26px; row-gap: 14px;
}
.home-toolbar { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.home-panel { grid-column: 1; grid-row: 2 / span 2; display: grid; grid-template-rows: subgrid; row-gap: var(--h-gap); }
.home-panel[hidden] { display: none; }
.home-map { grid-column: 2; grid-row: 1 / span 2; }
.home-wire { grid-column: 2; grid-row: 3; margin-top: calc(var(--h-gap) - 14px); }

.card-frame { background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius); }

/* ---------- Tabs + date ---------- */
.home-tabs { display: inline-flex; gap: 2px; padding: 5px; background: #fff; border: 1px solid var(--h-line); border-radius: 999px; }
.home-tabs[hidden] { display: none; }
.home-tabs button {
    border: 0; background: none; cursor: pointer; padding: 9px 22px; border-radius: 999px;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--h-muted); line-height: 1.2;
}
.home-tabs button:hover { color: var(--h-navy); }
.home-tabs button[aria-selected="true"] { background: var(--h-navy); color: #fff; }
.home-date { margin: 0 0 0 auto; font-size: 11.5px; font-style: italic; color: var(--h-muted); }

/* ---------- Chips + kickers ---------- */
.home-chip {
    display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.3;
    letter-spacing: .07em; text-transform: uppercase; background: rgba(0, 212, 194, .14); color: var(--h-teal);
}
.home-is-use-case .home-chip { background: rgba(58, 113, 193, .24); color: #A9C6F2; }
.home-kicker { margin: 0; font-size: 11.5px; font-weight: 800; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--h-dteal); }
.home-kicker span + span::before, .home-chip span + span::before { content: " · "; }
.home-kicker-inline span + span::before { content: ", "; }

/* ---------- Lead story ---------- */
.home-lead {
    display: grid; grid-template-columns: 1.1fr 1fr; min-height: 388px; overflow: hidden;
    background: #fff; border: 1px solid var(--h-line); border-radius: 20px;
}
.home-lead-art {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px;
    background: radial-gradient(600px 300px at 30% 30%, #1F4E6B, var(--h-navy));
}
.home-lead-art .home-art-icon { width: 72%; max-width: 420px; height: auto; }
.home-art-icon ~ .home-art-icon { display: none; }
.home-lead-art.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-lead-art .home-chip { position: absolute; left: 16px; top: 16px; }
.home-lead-art.has-image .home-chip { background: var(--h-navy); }
.home-lead-text { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 30px 28px; }
.home-lead-title { margin: 12px 0 14px; font-size: 32px; line-height: 1.17; font-weight: 800; letter-spacing: -0.015em; color: var(--h-navy); }
.home-lead-title a:hover { color: var(--h-blue); }
.home-lead-dek {
    margin: 0; font-size: 15px; line-height: 1.6; color: var(--h-slate);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.home-byline { margin: 18px 0 0; font-size: 12px; color: var(--h-muted); }
.home-lead-cta { margin-top: 20px; }

/* ---------- Story cards ---------- */
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.home-cards--capped > :nth-child(n+4) { display: none; }
.home-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius); }
.home-card-head { height: 96px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2A3D5E, var(--h-navy)); }
.home-is-case-study .home-card-head { background: linear-gradient(135deg, #0E5A6E, var(--h-navy)); }
.home-is-use-case .home-card-head { background: linear-gradient(135deg, #27407A, var(--h-navy)); }
.home-card-body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; }
.home-card-title { margin: 8px 0 12px; font-size: 15px; line-height: 1.38; font-weight: 700; color: var(--h-navy); }
.home-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.home-card-title a:focus-visible { outline: none; }
.home-card:focus-within { outline: 2px solid var(--h-blue); outline-offset: 2px; }
.home-card:hover .home-card-title { color: var(--h-blue); }
.home-card-date { margin-top: auto; font-size: 11.5px; color: var(--h-muted); }

/* ---------- Right column cards ---------- */
.home-card-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-card-label h2 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }
.home-card-label a { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--h-dteal); }
.home-card-label a:hover { color: var(--h-navy); }

.home-map { display: flex; flex-direction: column; padding: 16px 16px 14px; }
.home-map-plate { position: relative; margin: auto 0; }
.home-map-plate img { display: block; width: 100%; height: auto; }
.home-pins { position: absolute; inset: 0; }
.home-pin {
    position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 3px;
    border: 2px solid var(--h-dteal); background: var(--h-dteal);
    box-shadow: 0 0 0 4px rgba(0, 107, 139, .16);
}
.home-pin--under-construction { background: #fff; }
.home-pin:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 4px; border-radius: 3px; }
.home-pin-tip {
    position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
    padding: 6px 9px; border-radius: 8px; background: var(--h-navy); color: #fff; white-space: nowrap;
    font-size: 11px; font-weight: 700; line-height: 1.2; opacity: 0; visibility: hidden; pointer-events: none; z-index: 2;
}
.home-pin:hover .home-pin-tip, .home-pin:focus-visible .home-pin-tip { opacity: 1; visibility: visible; }
.home-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 11px; color: var(--h-slate); }
.home-legend li { display: inline-flex; align-items: center; gap: 6px; }
.home-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-opened { background: var(--h-dteal); }
.lg-building { border: 2px solid var(--h-dteal); }
.lg-pilot { background: #CDEFEB; border-radius: 2px; }
.home-src { margin: 4px 0 0; font-size: 10.5px; font-style: italic; color: var(--h-muted); }

.home-wire { padding: 16px 18px 14px; display: flex; flex-direction: column; }
.home-wire .home-card-label h2 { color: var(--h-dteal); }
.home-wire .home-card-label a { color: var(--h-muted); }
.home-wire-list { margin: 0; padding: 0; list-style: none; }
.home-wire-list li { padding: 10px 0; border-top: 1px solid var(--h-line); }
.home-wire-list a { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--h-navy); }
.home-wire-list a:hover { color: var(--h-blue); }
.home-wire-list small { display: block; margin-top: 3px; font-size: 11px; color: var(--h-muted); }
.home-wire-note { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--h-line); font-size: 11.5px; line-height: 1.5; color: var(--h-muted); }
.home-empty { margin: 0; font-size: 13px; color: var(--h-muted); }

/* ---------- Register strip ---------- */
.home-register {
    display: flex; align-items: center; gap: 36px; margin-top: 18px; padding: 16px 22px;
    background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius);
}
.home-stats { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.home-stats li > a, .home-stats li > span { display: block; }
.home-stats a { display: block; border-radius: 8px; }
.home-stat-n { display: block; font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--h-blue); font-variant-numeric: tabular-nums; }
.home-stat-l { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
.home-stats a:hover .home-stat-l { color: var(--h-navy); }
.home-register-note { margin: 0; align-self: center; }
.home-industries { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 1; margin: 0; padding: 0; list-style: none; }
.home-industries a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--h-chipbg); font-size: 12px; font-weight: 700; color: var(--h-navy); }
.home-industries a:hover { background: #E2E6F0; }

/* Footer on home: match the canvas, compact */
.is-aivi-home .gh-foot { background: var(--h-bg); color: var(--h-muted); border-top: 1px solid var(--h-line); padding-top: 28px; padding-bottom: 28px; font-size: 13px; }
.is-aivi-home .gh-foot-inner { max-width: 1520px; padding: 0 var(--h-pad); gap: 12px; }
.is-aivi-home .gh-foot a:hover { color: var(--h-navy); }

/* Data-center list under the map */
.home-dc-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--h-line); }
.home-dc-list li { border-bottom: 1px solid var(--h-line); }
.home-dc-list a { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 6px 2px; font-size: 12.5px; line-height: 1.35; }
.home-dc-list a:hover .home-dc-name { color: var(--h-blue); }
.home-dc-name { font-weight: 700; color: var(--h-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-dc-name small { font-weight: 500; color: var(--h-muted); font-size: 12px; margin-left: 4px; }
.home-dc-meta { font-size: 11.5px; color: var(--h-muted); white-space: nowrap; }
.home-dc-list i { width: 10px; height: 10px; border-radius: 3px; }

/* Motion: only when the user allows it */
@media (prefers-reduced-motion: no-preference) {
    .home-nav a, .home-search, .home-pill, .home-tabs button, .home-card-title, .home-lead-title a,
    .home-industries a, .home-wire-list a { transition: color .15s ease, background-color .15s ease; }
    .home-pin-tip { transition: opacity .15s ease, visibility .15s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
    .is-aivi-home { --h-side: 380px; --h-pad: 28px; }
    .home-head-inner { gap: 20px; }
    .home-nav ul { gap: 20px; }
    .home-lead-title { font-size: 28px; }
}
@media (max-width: 1080px) {
    .home-head-inner { flex-wrap: wrap; row-gap: 8px; padding-bottom: 0; }
    .home-nav { order: 3; flex: 0 0 calc(100% + var(--h-pad) * 2); margin: 0 calc(var(--h-pad) * -1);
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding: 0 var(--h-pad); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--h-line); }
    .home-nav::-webkit-scrollbar { display: none; }
    .home-nav ul { padding: 6px 0; white-space: nowrap; }
    .home-nav a { padding: 8px 0; }
    .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
    .home-toolbar { grid-column: 1 / -1; }
    .home-panel { grid-column: 1 / -1; grid-row: 2 / span 2; }
    .home-map { grid-column: 1; grid-row: 4; margin-top: calc(var(--h-gap) - 14px); }
    .home-wire { grid-column: 2; grid-row: 4; }
    .home-register { flex-wrap: wrap; gap: 16px 28px; }
    .home-industries { justify-content: flex-start; flex-basis: 100%; }
}
@media (max-width: 760px) {
    .is-aivi-home { --h-pad: 16px; --h-gap: 16px; }
    .home-head-inner { gap: 12px; min-height: 60px; padding-top: 12px; }
    .home-brand-name { font-size: 16px; }
    .home-brand-sub { display: none; }
    .home-head-actions { gap: 12px; }
    .home-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .home-search { padding: 10px; }
    .home-search svg { width: 18px; height: 18px; }
    .home-pill { padding: 9px 16px; }
    .home { padding-top: 16px; }
    .home-toolbar { flex-wrap: wrap; }
    .home-tabs button { padding: 9px 16px; }
    .home-date { margin-left: 0; flex-basis: 100%; }
    .home-tabs:not([hidden]) + .home-date { flex-basis: auto; margin-left: auto; }
    .home-grid { grid-template-columns: minmax(0, 1fr); }
    .home-panel { grid-template-rows: auto auto; }
    .home-map, .home-wire { grid-column: 1; margin-top: 0; }
    .home-map { grid-row: 4; margin-top: calc(var(--h-gap) - 14px); }
    .home-wire { grid-row: 5; }
    .home-lead { grid-template-columns: 1fr; min-height: 0; }
    .home-lead-art { min-height: 190px; }
    .home-lead-art .home-art-icon { width: 60%; }
    .home-lead-text { padding: 20px 18px 22px; }
    .home-lead-title { font-size: 25px; }
    .home-cards { grid-template-columns: 1fr; gap: 12px; }
    .home-card-head { height: 64px; }
    .home-register { padding: 16px; }
    .home-stats { flex-wrap: wrap; gap: 16px 24px; width: 100%; justify-content: space-between; }
    .home-register-note { flex-basis: 100%; }
}
