/* =========================================================
   HERO · "SRIT Particle Core" (Sample 9)
   Left: headline + compact ASK SRIT pill + CTAs.
   Right: a live 3D particle sculpture (hero3d.js) that morphs through
   SRIT's five chapters, with 3D-anchored stat chips and chapter tabs.
   Same light SRIT palette as before.
   ========================================================= */
.h3d { --blue: #2563eb; --sky: #38bdf8; --lime-c: #FFD60A; --ink-c: #0f172a; }

.h3d .hero-frame {
  display: block; position: relative; overflow: hidden; isolation: isolate;
  height: calc(100svh - 14px); min-height: 640px; max-height: 980px;
  padding: 0;
  background: linear-gradient(180deg, #f4f9fe 0%, #e6f0fb 55%, #d5e6f6 100%);
}

/* ---------- living background light ---------- */
.h3d-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.h3d-bg::before {                       /* faint engineering grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 50%, #000 20%, transparent 75%);
}
.h3d-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: h3d-drift 18s ease-in-out infinite alternate; }
.h3d-bg .b1 { width: 46vw; height: 46vw; right: 4%; top: 8%; background: radial-gradient(circle, rgba(56,189,248,.55), transparent 65%); }
.h3d-bg .b2 { width: 30vw; height: 30vw; right: 30%; bottom: -8%; background: radial-gradient(circle, rgba(255, 214, 10,.35), transparent 65%); animation-duration: 22s; }
.h3d-bg .b3 { width: 34vw; height: 34vw; left: -8%; top: -10%; background: radial-gradient(circle, rgba(255,255,255,.9), transparent 65%); animation-duration: 26s; }
@keyframes h3d-drift { to { transform: translate3d(-4%, 5%, 0) scale(1.08); } }

/* ---------- 3D canvas ---------- */
.h3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.h3d-canvas.on { opacity: 1; }
.h3d.no-gl .h3d-bg .b1 { opacity: .9; }

/* ---------- copy (left) ---------- */
.h3d-copy {
  position: absolute; z-index: 3; left: clamp(28px, 6vw, 104px); top: 52%; translate: 0 -50%;
  width: min(640px, 47%);
}
.h3d-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.h3d-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-c); box-shadow: 0 0 0 4px rgba(255, 214, 10,.2); animation: h3d-live 2s ease-in-out infinite; }
@keyframes h3d-live { 50% { box-shadow: 0 0 0 7px rgba(255, 214, 10,0); } }
.h3d h1 { text-align: left; font-size: clamp(2.3rem, min(3.6vw, 6.6vh), 3.6rem); line-height: 1.06; margin: 0; }
.h3d-hl {
  background: linear-gradient(100deg, var(--blue) 0%, var(--sky) 40%, var(--lime-c) 55%, var(--blue) 75%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: h3d-sheen 6s ease-in-out infinite;
}
@keyframes h3d-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.h3d .hero-sub { text-align: left; margin: 18px 0 0; max-width: 46ch; }

/* ---------- compact ASK SRIT pill ---------- */
.h3d-ask {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 56px; margin-top: clamp(22px, 3.4vh, 32px); padding: 0 6px 0 10px;
  border-radius: 999px; background: rgba(255,255,255,.88);
  border: 1px solid rgba(37,99,235,.14);
  box-shadow: 0 18px 40px -22px rgba(20,60,140,.45), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .3s, border-color .3s;
}
.h3d-ask::before {                      /* thin animated gradient ring, visible on focus/hover */
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ga, 0deg), var(--blue), var(--sky), var(--lime-c), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; animation: ga 5s linear infinite;
}
.h3d-ask:hover::before, .h3d-ask:focus-within::before { opacity: 1; }
.h3d-ask:focus-within { box-shadow: 0 22px 50px -22px rgba(20,60,140,.55), 0 0 0 5px rgba(37,99,235,.1); }
.h3d-orb {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, #93c5fd 30%, #2563eb 70%, #1e3a8a);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1), 0 6px 14px -4px rgba(37,99,235,.6);
  animation: h3d-orb 4s ease-in-out infinite;
}
@keyframes h3d-orb { 50% { box-shadow: 0 0 0 7px rgba(255, 214, 10,.14), 0 6px 18px -4px rgba(37,99,235,.7); } }
.h3d-ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink-c); }
.h3d-ask input::placeholder { color: #64748b; }
.h3d-go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 18px; border-radius: 999px;
  background: var(--ink-c); color: #fff; font-weight: 600; font-size: .9rem; border: 0; cursor: pointer;
  transition: background .25s, transform .25s;
}
.h3d-go span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-c); color: var(--ink-c); transition: transform .25s; }
.h3d-go:hover { background: #1e293b; }
.h3d-go:hover span { transform: translateX(3px); }
.h3d-ask :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.h3d-try { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 14px; font-size: .85rem; color: #64748b; white-space: nowrap; overflow: hidden; }
.h3d-try span { flex: none; color: var(--blue); font-weight: 600; }
.h3d-try button { border: 0; background: none; padding: 0; font: inherit; color: #334155; cursor: pointer; overflow: hidden; text-overflow: ellipsis; text-decoration: underline; text-decoration-color: rgba(37,99,235,.3); text-underline-offset: 3px; }
.h3d-try button:hover { color: var(--blue); }
.h3d-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 3vh, 28px); }

/* ---------- 3D-anchored stat chips ---------- */
.h3d-chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.h3d-chip {
  position: absolute; left: 0; top: 0; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px;
  padding: 9px 14px 9px 10px; border-radius: 14px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 16px 36px -18px rgba(20,60,140,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .5s ease; will-change: transform;
}
.h3d-chip.on { opacity: 1; }
.h3d-chip i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--c, 37,99,235)); box-shadow: 0 0 0 4px rgba(var(--c, 37,99,235), .18); }
.h3d-chip b { font-family: var(--display, inherit); font-size: 1.2rem; font-weight: 600; line-height: 1.1; color: var(--ink-c); letter-spacing: -.01em; }
.h3d-chip small { font-size: .75rem; color: #475569; line-height: 1.3; }

/* ---------- chapter tabs ---------- */
.h3d-tabs {
  position: absolute; z-index: 3; right: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vh, 30px);
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 30px -20px rgba(20,60,140,.45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.h3d-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: #475569; cursor: pointer; transition: background .25s, color .25s; }
.h3d-tabs button em { font-style: normal; font-size: .75rem; color: #94a3b8; }
.h3d-tabs button b { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: rgb(var(--c, 37,99,235)); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.h3d-tabs button.is-on { background: #fff; color: var(--ink-c); box-shadow: 0 4px 12px -6px rgba(20,60,140,.4); }
.h3d-tabs button.is-on b { opacity: 1; }
.h3d-tabs button:hover { color: var(--ink-c); }
.h3d-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.h3d-play { width: 34px; padding: 0 !important; justify-content: center; }
.h3d-play svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.h3d-play .i-play { display: none; fill: currentColor; stroke: none; }
.h3d-tabs.is-paused .i-pause { display: none; }
.h3d-tabs.is-paused .i-play { display: block; }

/* ---------- giant outline chapter word behind the sculpture ---------- */
.h3d-word {
  position: absolute; z-index: 0; left: var(--wx, 70%); top: var(--wy, 50%); translate: -50% -50%;
  pointer-events: none; white-space: nowrap;
}
.h3d-word span {
  display: block; font-family: var(--display, inherit); font-weight: 700; line-height: 1; letter-spacing: -.02em;
  font-size: var(--wfs, 8rem); letter-spacing: -.03em;
  color: rgba(37,99,235,.07);                 /* soft solid tint — no outline */
  transition: opacity .6s ease, letter-spacing .9s cubic-bezier(.22,1,.36,1), filter .6s ease;
}
.h3d-word.swap span { opacity: 0; letter-spacing: .12em; filter: blur(8px); }

/* ---------- frame corner marks ---------- */
.h3d-deco i { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid rgba(37,99,235,.28); pointer-events: none; }
.h3d-deco .tl, .h3d-deco .tr { display: none; }   /* top corners would sit under the header */
.h3d-deco .bl { left: 18px; bottom: 18px; border-left-width: 1.5px; border-bottom-width: 1.5px; border-bottom-left-radius: 6px; }
.h3d-deco .br { right: 18px; bottom: 18px; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 6px; }

/* ---------- chapter caption (above the tabs) ---------- */
.h3d-cap {
  position: absolute; z-index: 3; right: clamp(20px, 3vw, 40px); bottom: calc(clamp(18px, 3vh, 30px) + 58px);
  display: flex; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap;
  font-size: .95rem; color: #334155; text-align: right; transition: opacity .4s ease, translate .4s ease;
}
.h3d-cap b { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: rgb(var(--c, 37,99,235)); }
.h3d-cap.swap { opacity: 0; translate: 0 6px; }

/* ---------- trusted-by logo strip ---------- */
.h3d-trust { margin-top: clamp(22px, 3.6vh, 36px); padding-top: clamp(16px, 2.4vh, 22px); border-top: 1px solid rgba(37,99,235,.12); max-width: 520px; }
.h3d-trust p { margin: 0 0 10px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.h3d-logos { overflow: hidden; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.h3d-track { display: flex; gap: 10px; width: max-content; animation: h3d-marquee 32s linear infinite; }
.h3d-logos:hover .h3d-track { animation-play-state: paused; }
.h3d-logo { flex: none; display: grid; place-items: center; width: 104px; height: 44px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 14px -10px rgba(20,60,140,.4); }
.h3d-logo { position: relative; display: block !important; padding: 0 !important; overflow: hidden; }
.h3d-logo img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center;   /* source files are square with wide padding: show the centre band */ filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; transition: filter .3s, opacity .3s; }
.h3d-logo:hover img { filter: none; opacity: 1; }
@keyframes h3d-marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- scroll cue ---------- */
.h3d-scroll {
  position: absolute; z-index: 3; left: clamp(28px, 6vw, 104px); bottom: clamp(18px, 3vh, 30px);
  display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748b; text-decoration: none;
}
.h3d-scroll i { position: relative; width: 20px; height: 30px; border-radius: 10px; border: 1.5px solid #94a3b8; }
.h3d-scroll i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); animation: h3d-wheel 1.8s ease-in-out infinite; }
@keyframes h3d-wheel { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 80%, 100% { opacity: 0; translate: 0 9px; } }
.h3d-scroll:hover { color: var(--blue); }

/* short laptop screens: keep the copy column compact */
@media (min-width: 961px) and (max-height: 780px) {
  .h3d-trust { display: none; }
  .h3d-cap { display: none; }
}

/* ---------- entrance ---------- */
@keyframes h3d-in { from { opacity: 0; translate: 0 22px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes h3d-word { from { opacity: 0; translate: 0 .55em; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
.h3d-w { display: inline-block; animation: h3d-word .9s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.25s + var(--i) * 65ms); }
.h3d .h3d-eyebrow { animation: h3d-in .8s cubic-bezier(.22,1,.36,1) .05s both; }
.h3d .hero-sub    { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) .9s both; }
.h3d .h3d-ask     { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.05s both; }
.h3d .h3d-try     { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.2s both; }
.h3d .h3d-cta     { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.3s both; }
.h3d .h3d-tabs    { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.6s both; }
.h3d .h3d-trust   { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.45s both; }
.h3d .h3d-cap     { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.75s both; }
.h3d .h3d-scroll  { animation: h3d-in .9s cubic-bezier(.22,1,.36,1) 1.9s both; }
.h3d .h3d-word    { animation: h3d-fade 1.6s cubic-bezier(.22,1,.36,1) .4s both; }
@keyframes h3d-fade { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }

/* ---------- tablet & phone: stack, object sits between copy and tabs ---------- */
@media (max-width: 960px) {
  .h3d .hero-frame { height: auto; max-height: none; min-height: 0; padding: 104px 20px 96px; }
  .h3d-copy { position: relative; left: auto; top: auto; translate: none; width: 100%; max-width: 620px; margin: 0 auto; text-align: center; }
  .h3d h1, .h3d .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .h3d-try { justify-content: center; margin-left: 0; }
  .h3d-cta { justify-content: center; }
  .h3d-copy::after { content: ""; display: block; height: clamp(300px, 70vw, 420px); }   /* stage for the 3D object */
  .h3d-copy { display: flex; flex-direction: column; }
  .h3d-copy::after { order: 2; }
  .h3d-eyebrow { align-self: center; }
  .h3d-ask, .h3d-try, .h3d-cta { order: 3; }
  .h3d-tabs { left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: 22px; max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
  .h3d-tabs button { flex: none; }
  .h3d .h3d-tabs { animation: none; }
  .h3d-chip { padding: 7px 11px 7px 8px; }
  .h3d-chip b { font-size: 1rem; }
  .h3d-trust { order: 4; width: 100%; margin-left: auto; margin-right: auto; text-align: center; }
  .h3d-trust p { margin: 0 0 10px; text-align: center; letter-spacing: .06em; }
  .h3d-cap, .h3d-scroll, .h3d-deco { display: none; }
}
@media (max-width: 560px) {
  .h3d-tabs button:not(.h3d-play):not(.is-on) { font-size: 0; gap: 0; padding: 0 10px; }
  .h3d-tabs button:not(.h3d-play):not(.is-on) em { font-size: .75rem; }
  .h3d-go { padding: 0 6px 0 14px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .h3d *, .h3d *::before { animation: none !important; transition: none !important; }
}

/* ================= Sample 12 · Holo Core (minimal stage) ================= */
.h3d-hud { --hr: 220px; position: absolute; z-index: 0; left: var(--wx, 70%); top: var(--wy, 50%); width: 0; height: 0; pointer-events: none; }
.h3d-hud i, .h3d-hud span { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; }
.h3d-hud .r2 { width: calc(var(--hr) * 2.45); height: calc(var(--hr) * 2.45); border: 1px dashed rgba(var(--c, 37, 99, 235), .3); animation: h3dSpin 70s linear infinite; transition: border-color .8s ease; }
.h3d-hud .r3 { width: calc(var(--hr) * 1.9); height: calc(var(--hr) * 1.9);
  background: radial-gradient(circle, rgba(var(--c, 37, 99, 235), .1) 0%, rgba(var(--c, 37, 99, 235), .04) 45%, transparent 70%); transition: background .8s ease; }
/* soft floor shadow: grounds the floating icon */
.h3d-hud .sh { width: calc(var(--hr) * 1.5); height: calc(var(--hr) * .2); translate: -50% calc(var(--hr) * .82);
  background: radial-gradient(closest-side, rgba(15, 35, 90, .2), rgba(var(--c, 37, 99, 235), .08) 55%, transparent); filter: blur(4px); animation: h3dShadow 5s ease-in-out infinite; }
@keyframes h3dSpin { to { rotate: 360deg; } }
@keyframes h3dShadow { 50% { scale: .9; opacity: .75; } }

/* leader lines: anchor node on the icon → elbow → chip */
.h3d-links { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .5s ease; }
.h3d-links.on { opacity: 1; }
.h3d-links polyline { fill: none; stroke: rgb(var(--c, 37, 99, 235)); stroke-width: 1.4; stroke-dasharray: 4 5; animation: h3dDash 1.2s linear infinite; opacity: .7; }
.h3d-links circle { fill: #fff; stroke: rgb(var(--c, 37, 99, 235)); stroke-width: 2; }
.h3d-links circle.h { fill: rgba(var(--c, 37, 99, 235), .14); stroke: none; transform-box: fill-box; transform-origin: center; animation: h3dPing 2s ease-out infinite; }
@keyframes h3dDash { to { stroke-dashoffset: -18; } }
@keyframes h3dPing { 0% { scale: .5; opacity: 1; } 100% { scale: 1.8; opacity: 0; } }
.h3d-chip { border: 1.5px solid rgba(var(--c, 37, 99, 235), .22); }

@media (max-width: 960px) { .h3d-links { display: none; } }
@media (prefers-reduced-motion: reduce) { .h3d-hud .r2, .h3d-hud .sh, .h3d-links polyline, .h3d-links circle.h { animation: none; } }

/* creative extras: light rays, floor shockwave + flash */
.h3d-hud .rays { width: calc(var(--hr) * 3.1); height: calc(var(--hr) * 3.1);
  background: repeating-conic-gradient(from 0deg, rgba(var(--c, 37, 99, 235), .09) 0deg 4deg, transparent 4deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, rgba(0,0,0,.5) 38%, transparent 66%); mask: radial-gradient(circle, #000 0 18%, rgba(0,0,0,.5) 38%, transparent 66%);
  animation: h3dSpin 48s linear infinite; opacity: .9; }
.h3d-hud .wv, .h3d-hud .fl { width: calc(var(--hr) * 1.3); height: calc(var(--hr) * .26); translate: -50% calc(var(--hr) * .8); opacity: 0; }
.h3d-hud .wv { border: 2px solid rgba(var(--c, 37, 99, 235), .55); box-shadow: 0 0 18px rgba(var(--c, 37, 99, 235), .35), inset 0 0 12px rgba(255, 214, 10, .25); }
.h3d-hud .fl { width: calc(var(--hr) * 1.6); height: calc(var(--hr) * 1.6); translate: -50% -50%; background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(var(--c, 37, 99, 235), .22) 35%, transparent 65%); }
.h3d-hud.wave .wv { animation: h3dWave 1.6s cubic-bezier(.2, .7, .3, 1) both; }
.h3d-hud.wave .wv.w2 { animation-delay: .28s; }
.h3d-hud.wave .fl { animation: h3dFlash 1.1s ease-out both; }
@keyframes h3dWave { 0% { scale: .35; opacity: .95; } 100% { scale: 2.3; opacity: 0; } }
@keyframes h3dFlash { 0% { scale: .4; opacity: 0; } 25% { opacity: .75; } 100% { scale: 1.25; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .h3d-hud .rays { animation: none; } }
