/* ============================================================
 * home3d.css — immersive homepage skin (LIGHT edition)
 * Scope: index.html only (body.page-home3d)
 * Layered on top of style.css; overrides are scoped & additive.
 Graphite navy: light surfaces + muted navy ink.
 * The dark footer-bottom band stays dark via style.css defaults.
 * ============================================================ */

/* ---------- 1. immersive 3D hero (light) ---------- */
.hero3d {
  position: relative;
  min-height: 92vh;
  padding: 96px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 74% -10%, rgba(24, 48, 88, 0.12), transparent 62%),
    radial-gradient(860px 520px at 8% 108%, rgba(86, 93, 104, 0.09), transparent 60%),
    radial-gradient(620px 380px at 90% 80%, rgba(139, 92, 246, 0.06), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 58%, #FAFBFC 100%);
}
#hero-3d { position: absolute; inset: 0; z-index: 1; }
#hero-3d canvas { display: block; width: 100%; height: 100%; }
#hero-3d.is-fallback {
  background:
    radial-gradient(900px 480px at 72% 40%, rgba(24, 48, 88, 0.16), transparent 62%),
    radial-gradient(700px 420px at 14% 88%, rgba(86, 93, 104, 0.12), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
}
/* fine grid overlay, ThreeUI signature (faint ink lines on white) */
.hero3d::before {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 520px at 50% 45%, #000 26%, transparent 76%);
          mask-image: radial-gradient(720px 520px at 50% 45%, #000 26%, transparent 76%);
}
/* blend into the soft section below */
.hero3d::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 2;
  background: linear-gradient(180deg, rgba(250, 251, 252, 0) 0%, #FAFBFC 92%);
  pointer-events: none;
}
.hero3d-content {
  position: relative; z-index: 3;
  max-width: 620px;
}
/* staged entrance for participation feel */
.hero3d-eyebrow, .hero3d-title, .hero3d-sub, .hero3d-actions { animation: heroIn 0.9s var(--ease) both; }
.hero3d-title { animation-delay: 0.12s; }
.hero3d-sub { animation-delay: 0.24s; }
.hero3d-actions { animation-delay: 0.36s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* editorial eyebrow — no pill box: gradient uppercase brand, serif-italic year,
   tracked honorific, and a hairline that bleeds to the container edge */
.hero3d-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  white-space: nowrap;
}
.hero3d-eyebrow .eb-brand {
  font-size: 14px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  background: linear-gradient(92deg, #183058, #45608D);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero3d-eyebrow .eb-sep { color: #BD96E6; font-size: 13px; }
.hero3d-eyebrow .eb-est {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 15px; color: #475669; letter-spacing: 0.05em;
}
.hero3d-eyebrow .eb-honor {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #5B6B80;
}
.hero3d-eyebrow .eb-line {
  flex: 1; height: 1px; min-width: 24px;
  background: linear-gradient(90deg, rgba(14, 16, 19, 0.45), rgba(86, 93, 104, 0.1));
}
.hero3d-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #183058; box-shadow: 0 0 0 4px rgba(24, 48, 88, 0.16);
}
.hero3d-title {
  font-size: clamp(2.6rem, 6.2vw, 4.7rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.025em;
  margin: 0 0 24px; color: #0F172A;
}
.hero3d-title .grad {
  background: linear-gradient(92deg, #183058 0%, #24406B 38%, #4A628F 72%, #183058 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradSweep 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 26px rgba(24, 48, 88, 0.28));
}
@keyframes gradSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero3d-sub {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.75; color: #475569;
  max-width: 560px; margin: 0 0 36px;
}
/* extended company intro paragraph */
.hero3d-sub--more {
  margin: -20px 0 24px;
  font-size: clamp(0.94rem, 1.35vw, 1.04rem);
  line-height: 1.8; color: #5B6B80;
}
/* call-to-action row */
.hero3d-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn3d {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn3d--primary {
  background: linear-gradient(135deg, #183058, #122441);
  color: #fff;
  box-shadow: 0 10px 30px rgba(24, 48, 88, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn3d--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(24, 48, 88, 0.5); }
.btn3d--glass {
  color: #1E293B;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}
.btn3d--glass:hover { border-color: rgba(24, 48, 88, 0.5); color: #0C1A30; transform: translateY(-2px); }

/* ---------- 2. soft aurora glows on light sections ---------- */
.section--aurora { position: relative; overflow: hidden; }
.section--aurora > .container { position: relative; z-index: 1; }
.section--aurora::before, .section--aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.section--aurora::before {
  width: 620px; height: 620px; top: -240px; right: -160px;
  background: radial-gradient(circle, rgba(24, 48, 88, 0.12) 0%, rgba(24, 48, 88, 0) 68%);
}
.section--aurora::after {
  width: 520px; height: 520px; bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(86, 93, 104, 0.09) 0%, rgba(86, 93, 104, 0) 68%);
}
/* gradient underline for section titles */
.page-home3d .section-head--center .section-title::after,
.page-home3d #why .section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #183058, #62708C);
  box-shadow: 0 4px 14px rgba(24, 48, 88, 0.35);
}
.page-home3d #why .section-title::after { margin-left: 0; }

/* ---------- 3. light glass product & application cards ---------- */
body.page-home3d #featured .product-card,
body.page-home3d #applications .app-card,
body.page-home3d #why .bento-card {
  position: relative; overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
body.page-home3d #featured .product-card::after,
body.page-home3d #applications .app-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 48, 88, 0.1), transparent 46%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
body.page-home3d #why .bento-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 48, 88, 0.09), transparent 48%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
body.page-home3d #featured .product-card:hover,
body.page-home3d #applications .app-card:hover,
body.page-home3d #why .bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 48, 88, 0.4);
  box-shadow: 0 26px 60px rgba(24, 48, 88, 0.16);
}
body.page-home3d #featured .product-card:hover::after,
body.page-home3d #applications .app-card:hover::after,
body.page-home3d #why .bento-card:hover::after { opacity: 1; }

/* applications: keep the 3D tilt buttery */
body.page-home3d #applications .app-card {
  transform-style: preserve-3d;
  will-change: transform;
}
/* bento overlay slide-in (light) */
body.page-home3d #why .bento-overlay {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(241, 245, 255, 0.95) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* ---------- 4. partners — no overrides; the section uses the shared
   style.css look (white band, hairline top/bottom, 5-column logo grid) ---------- */

/* ---------- 5. responsive ---------- */
@media (max-width: 1024px) {
  .hero3d { min-height: auto; padding: 84px 0 70px; }
}
@media (max-width: 640px) {
  .hero3d { padding: 68px 0 60px; }
  .hero3d-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .btn3d { width: 100%; justify-content: center; }
  .hero3d-eyebrow { flex-wrap: wrap; white-space: normal; row-gap: 6px; }
  .hero3d-eyebrow .eb-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3d-eyebrow, .hero3d-title, .hero3d-sub, .hero3d-actions { animation: none; }
  .hero3d-title .grad { animation: none; }
}

/* ---------- 6. six-industry dynamic stage (slanted ÷ divider, vertical push) ---------- */
.app-stage {
  position: relative;
  height: 560px;
  margin: 0 -40px;              /* stretch wider than the container on both sides */
  touch-action: pan-y;          /* horizontal swipe switches slides, vertical scroll stays native */
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-soft, #FAFBFC);   /* same as the slides — subpixel seam proofing */
  border: none;
  box-shadow: none;
  isolation: isolate;
}
/* vertical push between industries — never a horizontal swipe.
   Full ±100% travel: outgoing and incoming slides always share an exact
   edge (mathematically seamless at any point of the easing curve), and the
   stage carries the same bg as the slides so any subpixel rounding is
   invisible. Nothing translucent, nothing shows through. */
.app-slide {
  position: absolute; inset: 0; z-index: 1;
  background: var(--bg-soft, #FAFBFC);   /* same as the page section — no card layering */
  opacity: 0; visibility: hidden; transform: translateY(100%);
  transition: transform 0.95s var(--ease), visibility 0s linear 0.95s;
}
.app-slide.is-active {
  opacity: 1; visibility: visible; transform: translateY(0); z-index: 2;
  transition: transform 0.95s var(--ease), visibility 0s;
}
.app-slide.is-leave { opacity: 1; visibility: visible; transform: translateY(-100%); z-index: 1; }
.app-stage.dir-down .app-slide:not(.is-active) { transform: translateY(-100%); }
.app-stage.dir-down .app-slide.is-leave { transform: translateY(100%); }

/* media — AI scene clipped to the RIGHT side of the divider (≈30:70 split),
   video-like motion: media holds the fixed clip, .app-slide-media-move
   carries the pointer parallax, img runs the Ken Burns loop */
.app-slide-media {
  position: absolute; inset: 0;
  cursor: grab;
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 26% 100%);
}
.app-slide-media-move {
  position: absolute; inset: -32px;
  transform: translate3d(calc(var(--pmx, 0) * -9px), calc(var(--pmy, 0) * -7px), 0);
  will-change: transform;
}
.app-slide-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
  transform-origin: 62% 38%;
  animation: appKen 9s ease-in-out infinite alternate;
}
.app-slide:not(.is-active) .app-slide-media img { animation-play-state: paused; }
@keyframes appKen {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2.2%, 1.8%, 0); }
}
.app-slide-media::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: appSweep 5.6s ease-in-out infinite;
}
.app-slide:not(.is-active) .app-slide-media::after { animation-play-state: paused; }
@keyframes appSweep {
  0% { transform: translateX(-70%); }
  55%, 100% { transform: translateX(70%); }
}

/* left text zone — flush with the page background, fully separated from the media */
.app-slide-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30%; z-index: 2;
  padding: 44px 20px 40px 48px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
/* the two dots that complete the ÷ */
.app-slash-dot {
  position: absolute; z-index: 4; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D5DEEA, #122441 70%);
  box-shadow: 0 0 0 5px rgba(24, 48, 88, 0.15), 0 0 18px rgba(24, 48, 88, 0.6);
}
.app-slash-dot--top { top: 6%; left: calc(34% + 34px); }
.app-slash-dot--bottom { bottom: 6%; left: calc(26% - 64px); }

/* staggered text entrance on every activation */
.app-slide .p-item { opacity: 0; }
.app-slide.is-active .p-item { animation: panelIn 0.75s var(--ease) both; }
.app-slide.is-active .p-item:nth-child(1) { animation-delay: 0.18s; }
.app-slide.is-active .p-item:nth-child(2) { animation-delay: 0.28s; }
.app-slide.is-active .p-item:nth-child(3) { animation-delay: 0.38s; }
.app-slide.is-active .p-item:nth-child(4) { animation-delay: 0.48s; }
@keyframes panelIn {
  from { opacity: 0; translate: 0 22px; }   /* independent translate property — keeps skewX() on .app-slide-num/.app-slide-panel h3 intact */
  to { opacity: 1; translate: 0 0; }
}
.app-slide-num {
  font-size: clamp(3rem, 4.6vw, 3.7rem); font-weight: 800; font-style: italic;
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 10px;
  padding-right: 0.12em;   /* keep the italic overhang inside the gradient-painted box */
  transform: skewX(-4deg);
  background: linear-gradient(92deg, #122441, #62708C);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.app-slide-panel h3 {
  margin: 0 0 16px; font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.02em; color: #0F172A;
  font-style: italic; transform: skewX(-4deg);
}
.app-slide-panel p {
  margin: 0 0 24px; color: #475569; line-height: 1.8;
  font-size: 16.5px; max-width: 40ch;
}
.app-slide-panel .link { color: #122441; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.app-slide-panel .link:hover { color: #0C1A30; }

/* drifting photon particles (shared layer) */
.app-stage-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.app-stage-particles .ph {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(201, 205, 211, 0.5) 60%, rgba(24, 48, 88, 0) 78%);
  box-shadow: 0 0 10px rgba(147, 197, 253, 0.7);
  animation: phFloat linear infinite;
}
@keyframes phFloat {
  0% { transform: translateY(16px); opacity: 0; }
  14% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(-46px); opacity: 0; }
}

/* vertical progress rail */
.app-stage-rail {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 6; display: flex; flex-direction: column; gap: 9px;
}
.rail-dot {
  width: 5px; height: 30px; border-radius: 4px; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.35); cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.3s var(--ease);
}
.rail-dot:hover { background: rgba(255, 255, 255, 0.6); }
.rail-dot.is-active { background: rgba(255, 255, 255, 0.42); }
.rail-dot.is-active i {
  position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(180deg, #8B4FD2, #62708C);
  transform-origin: top;
  animation: railFill 5.6s linear forwards;
}
.app-stage.is-paused .rail-dot.is-active i { animation-play-state: paused; }
@keyframes railFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1024px) {
  .app-stage { height: 500px; margin: 0; }
  .app-slide-panel { width: 38%; padding: 36px 20px 32px 36px; }
  .app-slash-dot--top { left: calc(34% + 28px); }
  .app-slash-dot--bottom { left: calc(26% - 52px); }
}
@media (max-width: 768px) {
  .app-stage {
    height: auto; min-height: 520px; border-radius: 0;
    margin-left: calc(var(--gutter) * -1);   /* full-bleed — cancel the container gutters so no side "frame" */
    margin-right: calc(var(--gutter) * -1);
  }
  .app-slide { display: flex; flex-direction: column; justify-content: flex-end; }
  .app-slide-media { clip-path: none; }
  .app-slide-media-move { inset: 0; transform: none; }
  .app-slide-panel {
    position: relative; width: 100%; clip-path: none;
    padding: 130px 24px 30px;
    background: linear-gradient(180deg, rgba(250, 251, 252, 0) 0%, rgba(250, 251, 252, 0.96) 32%);
  }
  .app-slash-dot { display: none; }
  .app-stage-rail { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-slide { transition-duration: 0.25s; transform: none; }
  .app-slide.is-leave { transform: none; }
  .app-stage.dir-down .app-slide { transform: none; }
  .app-slide-media img, .app-slide-media::after, .app-stage-particles .ph { animation: none; }
  .app-slide .p-item { opacity: 1; }
  .app-slide.is-active .p-item { animation: none; }
}

/* Phones: stacked full-width CTAs, tighter rhythm */
@media (max-width: 720px) {
  .hero3d-actions { gap: 10px; margin-top: 28px; }
  .btn3d { width: 100%; justify-content: center; padding: 13px 20px; border-radius: 12px; font-size: 14.5px; }
}
