/**
 * Home page — dark ("black") theme with AI-feeling motion.
 * Loaded only on the front page (see functions.php). Scoped to body.indus-dark so no other
 * template is affected. Every animation respects prefers-reduced-motion.
 */
body.indus-dark {
	--hd-bg: #05070B;
	--hd-bg-2: #0A0E16;
	--hd-panel: #0E1420;
	--hd-line: rgba(255, 255, 255, .10);
	--hd-line-2: rgba(255, 255, 255, .18);
	--hd-ink: #F2F5F9;
	--hd-ink-2: #97A3B4;
	--hd-cyan: #35E0C8;
	--hd-blue: #4C8DFF;
	--hd-gold: #E3B457;
	--hd-glow: 0 0 0 1px rgba(53, 224, 200, .22), 0 18px 60px rgba(0, 0, 0, .55);
	background: var(--hd-bg);
	color: var(--hd-ink);
}

/* ---------- base overrides inside the dark home ---------- */
body.indus-dark .elementor-widget-container,
body.indus-dark p,
body.indus-dark li { color: var(--hd-ink-2); }
body.indus-dark h1, body.indus-dark h2, body.indus-dark h3, body.indus-dark h4 { color: var(--hd-ink); }
body.indus-dark .indus-eyebrow { color: var(--hd-cyan) !important; letter-spacing: .16em; }
body.indus-dark a { color: var(--hd-cyan); }
body.indus-dark .e-con-inner, body.indus-dark .e-con { background-color: transparent; }

/* ---------- ambient background: slow aurora + grid ---------- */
body.indus-dark::before {
	content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(60% 45% at 18% 8%, rgba(76, 141, 255, .20), transparent 60%),
		radial-gradient(50% 40% at 82% 22%, rgba(53, 224, 200, .16), transparent 62%),
		radial-gradient(45% 45% at 50% 100%, rgba(227, 180, 87, .10), transparent 60%);
	animation: hd-aurora 22s ease-in-out infinite alternate;
}
body.indus-dark::after {
	content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(75% 60% at 50% 0%, #000 30%, transparent 78%);
	-webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 30%, transparent 78%);
}
body.indus-dark .site-content, body.indus-dark main, body.indus-dark .elementor { position: relative; z-index: 1; }
@keyframes hd-aurora {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
	100% { transform: translate3d(1.5%, -1%, 0) scale(1.03); }
}

/* ---------- hero ---------- */
.hd-hero { position: relative; }
.hd-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1 'Source Sans 3', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--hd-cyan); }
.hd-hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--hd-cyan); box-shadow: 0 0 0 0 rgba(53,224,200,.7); animation: hd-pulse 2.4s infinite; }
@keyframes hd-pulse { 0% { box-shadow: 0 0 0 0 rgba(53,224,200,.7); } 70% { box-shadow: 0 0 0 12px rgba(53,224,200,0); } 100% { box-shadow: 0 0 0 0 rgba(53,224,200,0); } }

.hd-h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; color: var(--hd-ink); margin: 14px 0 0; text-wrap: balance; }
.hd-h1 .w { display: inline-block; opacity: 0; transform: translateY(16px); animation: hd-rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes hd-rise { to { opacity: 1; transform: none; } }
.hd-h1 .grad {
	background: linear-gradient(100deg, var(--hd-cyan), var(--hd-blue) 45%, var(--hd-gold));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	background-size: 220% 100%; animation: hd-shift 9s ease-in-out infinite;
}
@keyframes hd-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* rotating outcome word */
.hd-rotator { display: inline-grid; vertical-align: bottom; }
.hd-rotator span { grid-area: 1/1; opacity: 0; transform: translateY(12px); animation: hd-rot 12s infinite; color: var(--hd-cyan); }
.hd-rotator span:nth-child(2) { animation-delay: 3s; }
.hd-rotator span:nth-child(3) { animation-delay: 6s; }
.hd-rotator span:nth-child(4) { animation-delay: 9s; }
@keyframes hd-rot { 0% { opacity: 0; transform: translateY(12px); } 4%,22% { opacity: 1; transform: none; } 27%,100% { opacity: 0; transform: translateY(-10px); } }

.hd-lede { font-size: 18.5px; line-height: 1.6; color: var(--hd-ink-2); max-width: 60ch; }
.hd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hd-btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 8px; font: 600 15px/1 'Source Sans 3', system-ui, sans-serif; padding: 14px 24px; text-decoration: none !important; transition: transform .18s, box-shadow .25s, background .25s; position: relative; overflow: hidden; }
.hd-btn--p { background: linear-gradient(100deg, var(--hd-cyan), var(--hd-blue)); color: #04121A !important; box-shadow: 0 10px 34px rgba(53,224,200,.28); }
.hd-btn--p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 70%); transform: translateX(-120%); animation: hd-sheen 4.5s 1.2s infinite; }
@keyframes hd-sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(160%); } }
.hd-btn--s { border: 1px solid var(--hd-line-2); color: var(--hd-ink) !important; background: rgba(255,255,255,.03); }
.hd-btn:hover { transform: translateY(-2px); }
.hd-btn--s:hover { background: rgba(255,255,255,.08); border-color: var(--hd-cyan); }

/* ---------- the interactive engine (replaces the team photo) ---------- */
.hd-engine { position: relative; border: 1px solid var(--hd-line); border-radius: 18px; background: linear-gradient(180deg, rgba(20,28,42,.92), rgba(8,12,20,.92)); box-shadow: var(--hd-glow); overflow: hidden; }
.hd-engine__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hd-line); font: 600 12.5px/1 'Source Sans 3', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-ink-2); }
.hd-engine__bar b { color: var(--hd-cyan); font-weight: 700; }
.hd-engine__bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hd-cyan); animation: hd-blink 1.6s infinite; }
@keyframes hd-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.hd-engine__canvas { display: block; width: 100%; height: 340px; }
.hd-engine__hint { margin-left: auto; font-size: 11.5px; letter-spacing: .06em; color: var(--hd-ink-2); border: 1px solid var(--hd-line); padding: 4px 9px; border-radius: 999px; }
.hd-engine__read { border-top: 1px solid var(--hd-line); padding: 14px 18px 16px; min-height: 92px; }
.hd-engine__read .k { font: 700 11px/1 'Source Sans 3', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--hd-cyan); }
.hd-engine__read .v { margin: 7px 0 0; color: var(--hd-ink); font-size: 16.5px; line-height: 1.5; }
.hd-engine__read .o { margin: 8px 0 0; color: var(--hd-ink-2); font-size: 14.5px; }
.hd-engine__read .o b { color: var(--hd-gold); font-weight: 600; }
@media (max-width: 760px) { .hd-engine__canvas { height: 300px; } }

/* ---------- stat rail with count-up ---------- */
.hd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.hd-stat { border: 1px solid var(--hd-line); border-radius: 12px; padding: 16px 18px; background: rgba(255,255,255,.025); position: relative; overflow: hidden; }
.hd-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, var(--hd-cyan), transparent); }
.hd-stat b { display: block; font: 400 34px/1 'DM Serif Display', Georgia, serif; color: var(--hd-ink); font-variant-numeric: tabular-nums; }
.hd-stat b i { font: inherit; font-style: normal; font-size: 18px; color: var(--hd-ink-2); margin-left: 3px; }
.hd-stat span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--hd-ink-2); }

/* ---------- reveal on scroll ---------- */
.hd-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.hd-reveal.is-in { opacity: 1; transform: none; }

/* ---------- capability chips ---------- */
.hd-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hd-chips a { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--hd-line); background: rgba(255,255,255,.03); color: var(--hd-ink) !important; font-size: 14.5px; text-decoration: none !important; transition: .22s; }
.hd-chips a:hover { border-color: var(--hd-cyan); background: rgba(53,224,200,.10); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(53,224,200,.16); }

/* ---------- cards ---------- */
.hd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.hd-card { position: relative; border: 1px solid var(--hd-line); border-radius: 14px; padding: 24px 22px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); overflow: hidden; transition: transform .25s, border-color .25s; }
.hd-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(53,224,200,.16), transparent 62%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hd-card:hover { transform: translateY(-4px); border-color: var(--hd-line-2); }
.hd-card:hover::after { opacity: 1; }
.hd-card h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 22px; margin: 0 0 8px; color: var(--hd-ink); }
.hd-card p { margin: 0 0 12px; font-size: 15.5px; color: var(--hd-ink-2); }
.hd-card .go { font-size: 14.5px; font-weight: 600; color: var(--hd-cyan); text-decoration: none; }
.hd-card .go::after { content: " →"; transition: .2s; display: inline-block; }
.hd-card:hover .go::after { transform: translateX(4px); }
.hd-card .num { position: absolute; right: 16px; top: 12px; font: 400 44px/1 'DM Serif Display', Georgia, serif; color: rgba(255,255,255,.06); }

/* ---------- section furniture ---------- */
.hd-sec { padding: 78px 0; position: relative; }
.hd-sec--line { border-top: 1px solid var(--hd-line); }
.hd-h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; color: var(--hd-ink); margin: 10px 0 12px; text-wrap: balance; }
.hd-sub { font-size: 17px; color: var(--hd-ink-2); max-width: 66ch; }
.hd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }

/* ---------- AI terminal (typing) ---------- */
.hd-term { border: 1px solid var(--hd-line); border-radius: 14px; background: #070A10; box-shadow: var(--hd-glow); overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.hd-term__bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--hd-line); }
.hd-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3342; }
.hd-term__bar i:first-child { background: #E3B457; }
.hd-term__bar i:nth-child(2) { background: #35E0C8; }
.hd-term__body { padding: 18px 18px 22px; font-size: 14.5px; line-height: 1.85; min-height: 210px; color: var(--hd-ink-2); }
.hd-term__body .u { color: var(--hd-blue); }
.hd-term__body .a { color: var(--hd-ink); }
.hd-term__body .s { color: var(--hd-cyan); }
.hd-term__body .cursor { display: inline-block; width: 8px; height: 16px; background: var(--hd-cyan); vertical-align: -3px; animation: hd-blink 1s steps(1) infinite; }

/* ---------- marquee ---------- */
.hd-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hd-marquee__track { display: flex; gap: 48px; align-items: center; width: max-content; animation: hd-scroll 46s linear infinite; }
.hd-marquee:hover .hd-marquee__track { animation-play-state: paused; }
.hd-marquee img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .55; transition: opacity .25s, filter .25s; }
.hd-marquee img:hover { opacity: 1; }
@keyframes hd-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- final CTA ---------- */
.hd-cta-band { border: 1px solid var(--hd-line); border-radius: 18px; padding: 44px 38px; background: linear-gradient(120deg, rgba(76,141,255,.14), rgba(53,224,200,.10) 55%, rgba(227,180,87,.10)); position: relative; overflow: hidden; }
.hd-cta-band::before { content: ""; position: absolute; inset: -40% -10%; background: conic-gradient(from 0deg, transparent, rgba(53,224,200,.18), transparent 40%); animation: hd-spin 14s linear infinite; }
@keyframes hd-spin { to { transform: rotate(360deg); } }
.hd-cta-band > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
	body.indus-dark *, body.indus-dark *::before, body.indus-dark *::after { animation: none !important; transition: none !important; }
	.hd-h1 .w, .hd-reveal { opacity: 1 !important; transform: none !important; }
	.hd-rotator span { opacity: 0; } .hd-rotator span:first-child { opacity: 1; }
}

/* ---------- client logo strip, inverted for dark ---------- */
body.indus-dark .indus-logos-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
body.indus-dark .indus-logos-track img { filter: brightness(0) invert(1); opacity: .5; transition: opacity .25s; }
body.indus-dark .indus-logos-track li:hover img { opacity: 1; }
body.indus-dark .indus-logos-strip:hover .indus-logos-track { animation-play-state: paused; }

/* ---------- responsive: the two-column grids stack ---------- */
@media (max-width: 900px) {
	.hd-hero .hd-grid, .hd-sec .hd-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
	.hd-sec { padding: 54px 0; }
	.hd-head { align-items: flex-start; }
}
@media (max-width: 520px) {
	.hd-stats { grid-template-columns: 1fr 1fr; }
	.hd-btn { padding: 13px 18px; font-size: 14.5px; }
	.hd-engine__canvas { height: 260px; }
}

/* ---------- make the shared shell dark on the home page ---------- */
body.indus-dark .pusher,
body.indus-dark .site-content,
body.indus-dark #content { background: transparent !important; }
body.indus-dark .indus-header { background: rgba(5, 7, 11, .82) !important; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--hd-line) !important; }
body.indus-dark .indus-header a, body.indus-dark .indus-nav__list > li > a { color: var(--hd-ink) !important; }
body.indus-dark .indus-nav__list > li > a:hover, body.indus-dark .indus-nav__item.is-current > a { color: var(--hd-cyan) !important; }
body.indus-dark .indus-nav__toggle { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-nav__panel, body.indus-dark .indus-staff__panel, body.indus-dark .indus-mobile { background: #0B111B !important; border-color: var(--hd-line) !important; box-shadow: 0 22px 60px rgba(0,0,0,.6) !important; }
body.indus-dark .indus-nav__panel a, body.indus-dark .indus-staff__panel a, body.indus-dark .indus-mobile a { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-nav__panel a:hover, body.indus-dark .indus-staff__panel a:hover, body.indus-dark .indus-mobile a:hover { color: var(--hd-cyan) !important; }
body.indus-dark .indus-header__logo img, body.indus-dark .indus-header img[src*="logo"] { filter: brightness(0) invert(1); }
body.indus-dark .indus-header .indus-btn--onGreen, body.indus-dark .indus-header .indus-btn { background: linear-gradient(100deg, var(--hd-cyan), var(--hd-blue)) !important; color: #04121A !important; border-color: transparent !important; }
body.indus-dark .indus-footer { background: #05070B !important; border-top: 1px solid var(--hd-line); }
body.indus-dark .indus-footer, body.indus-dark .indus-footer p, body.indus-dark .indus-footer li { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-footer a { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-footer a:hover { color: var(--hd-cyan) !important; }
body.indus-dark .indus-footer h3, body.indus-dark .indus-footer h4, body.indus-dark .indus-footer strong { color: var(--hd-ink) !important; }
body.indus-dark .indus-footer img { filter: brightness(0) invert(1); opacity: .85; }

/* gradient headline word keeps its gradient after the word-splitter wraps it */
.hd-h1 .grad .w { background: linear-gradient(100deg, var(--hd-cyan), var(--hd-blue) 45%, var(--hd-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) { .hd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.indus-dark .indus-burger { color: var(--hd-ink) !important; border-color: var(--hd-line) !important; background: rgba(255,255,255,.05) !important; }
body.indus-dark .indus-burger svg { stroke: var(--hd-ink) !important; }
body.indus-dark .indus-mobile__actions a { color: var(--hd-ink) !important; }

/* =======================================================================
   AI-Enabled Learning section (page 898 and its children) in the dark theme.
   The section template's light surfaces are re-tinted; the hero already had a
   dark variant, so only the body, sidebar and modules need converting.
   ======================================================================= */
body.indus-dark .indus-section-hero { background: transparent !important; border-bottom: 1px solid var(--hd-line); }
body.indus-dark .indus-section-hero h1, body.indus-dark .indus-section-hero__lede { color: var(--hd-ink) !important; }
body.indus-dark .indus-section-hero__lede { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-section-body, body.indus-dark .indus-main { background: transparent !important; }
body.indus-dark .indus-prose h2, body.indus-dark .indus-prose h3 { color: var(--hd-ink) !important; }
body.indus-dark .indus-prose p, body.indus-dark .indus-prose li { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-prose strong, body.indus-dark .indus-prose b { color: var(--hd-ink) !important; }
body.indus-dark .indus-prose a { color: var(--hd-cyan) !important; }
body.indus-dark .indus-card, body.indus-dark .indus-side .indus-card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important; border: 1px solid var(--hd-line) !important; color: var(--hd-ink-2) !important; }
body.indus-dark .indus-card h3, body.indus-dark .indus-card h4 { color: var(--hd-ink) !important; }
body.indus-dark .indus-card--navy { background: linear-gradient(140deg, rgba(76,141,255,.16), rgba(53,224,200,.10)) !important; }
body.indus-dark .indus-side__list li, body.indus-dark .indus-small { color: var(--hd-ink-2) !important; }
body.indus-dark .indus-ai-outcome { background: linear-gradient(140deg, rgba(76,141,255,.14), rgba(53,224,200,.08)) !important; border: 1px solid var(--hd-line) !important; color: var(--hd-ink-2) !important; }
body.indus-dark .indus-ai-outcome h2, body.indus-dark .indus-ai-outcome h3, body.indus-dark .indus-ai-outcome b { color: var(--hd-ink) !important; }
body.indus-dark .indus-faq details, body.indus-dark details { border-color: var(--hd-line) !important; background: rgba(255,255,255,.03) !important; }
body.indus-dark summary { color: var(--hd-ink) !important; }
body.indus-dark .indus-chips span, body.indus-dark .indus-chips a { background: rgba(255,255,255,.05) !important; border: 1px solid var(--hd-line) !important; color: var(--hd-ink) !important; }
body.indus-dark .indus-facts, body.indus-dark .indus-facts div { border-color: var(--hd-line) !important; color: var(--hd-ink-2) !important; }
body.indus-dark .indus-facts b, body.indus-dark .indus-facts strong { color: var(--hd-ink) !important; }
body.indus-dark .indus-cta, body.indus-dark .indus-section-cta { background: linear-gradient(120deg, rgba(76,141,255,.14), rgba(53,224,200,.10)) !important; border: 1px solid var(--hd-line) !important; border-radius: 16px; }
body.indus-dark .indus-btn--primary { background: linear-gradient(100deg, var(--hd-cyan), var(--hd-blue)) !important; color: #04121A !important; border-color: transparent !important; }
body.indus-dark .indus-btn--link { color: var(--hd-cyan) !important; }
body.indus-dark .indus-cardgrid--children .indus-card { transition: transform .22s, border-color .22s; }
body.indus-dark .indus-cardgrid--children .indus-card:hover { transform: translateY(-3px); border-color: var(--hd-cyan) !important; }
body.indus-dark table { color: var(--hd-ink-2); }
body.indus-dark th, body.indus-dark td { border-color: var(--hd-line) !important; }
body.indus-dark th { color: var(--hd-ink) !important; }
body.indus-dark .indus-side__list a, body.indus-dark .indus-card a { color: var(--hd-ink) !important; }
body.indus-dark .indus-side__list a:hover, body.indus-dark .indus-card a:hover { color: var(--hd-cyan) !important; }
body.indus-dark .indus-card--navy a, body.indus-dark .indus-card--navy p, body.indus-dark .indus-card--navy li { color: var(--hd-ink) !important; }
