/* Home page layer, loaded after site.css. */

/* ---------- intro loader: counts 000 to 100, slides up ---------- */
.loader { display: none; }
html.intro .loader {
  position: fixed; inset: 0; z-index: var(--z-loader); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  background: var(--bg); border-radius: 0 0 var(--r-panel) var(--r-panel); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.loader.out { transform: translateY(-100%); }
.ld-in { text-align: center; transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.loader.out .ld-in { opacity: 0; transform: translateY(-12px); }
.ld-mark img { height: clamp(36px, 6vw, 56px); width: auto; margin-inline: auto; }
.ld-tag { margin-top: 12px; font-size: 15px; color: var(--fg-2); }
.ld-prog { width: min(22rem, 72vw); }
.ld-bar { height: 1px; background: rgba(255, 255, 255, 0.14); }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--accent-hi); transition: width 0.1s ease-out; }
.ld-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--fg-3); }
.ld-row b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- hero: inset panel, blueprint under, shipped product painted on by the pointer ---------- */
.hero { padding-inline: var(--inset); }
.hero-panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: max(600px, 100dvh - 74px - var(--inset)); border-radius: var(--r-panel); border: 1px solid var(--line);
  background: #070b14; touch-action: pan-y;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 0%; }
.hero-media .bp { display: none; }
.hero-media canvas { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media .bp { display: block; }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 5, 7, 0.94) 0%, rgba(6, 5, 7, 0.78) 30%, rgba(6, 5, 7, 0.2) 62%, rgba(6, 5, 7, 0) 80%),
    linear-gradient(0deg, rgba(6, 5, 7, 0.85) 0%, rgba(6, 5, 7, 0) 38%),
    linear-gradient(180deg, rgba(6, 5, 7, 0.94) 0%, rgba(6, 5, 7, 0.6) 9%, rgba(6, 5, 7, 0) 24%);
}
.hero-copy { width: 100%; padding: 0 clamp(24px, 4.5vw, 64px) clamp(32px, 5vw, 64px); }
.hero-copy .chip-label { margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 7vw, 108px); line-height: 1; letter-spacing: -0.045em; max-width: 11ch; }
.hero .lead { margin-top: 26px; max-width: 38ch; }
.hero .btns { margin-top: 34px; }

/* ---------- built with: logo strip directly under the hero ---------- */
.stack { padding-block: 56px 0; }
.stack-in { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.stack h2 { font-size: 15px; font-weight: 400; color: var(--fg-3); white-space: nowrap; }
.stack ul { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.stack li svg { width: 26px; height: 26px; fill: currentColor; color: var(--fg-2); opacity: 0.6; transition: opacity 0.3s, color 0.3s, transform 0.4s var(--ease-spring); }
.stack li:hover svg { opacity: 1; color: var(--fg); transform: translateY(-2px); }

/* ---------- about: statement with word reveal ---------- */
.about { padding-block: var(--section) 0; }
.about-in { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.about-side { display: grid; gap: 28px; padding-top: 12px; }
.facts-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.facts-list li:first-child { border-top: 0; padding-top: 0; }
.facts-list .icon { margin-top: 3px; color: var(--accent-text); }
.statement { font-size: clamp(28px, 3.3vw, 48px); font-weight: 300; line-height: 1.18; letter-spacing: -0.03em; text-wrap: pretty; }
.about-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg-2); transition: color 0.2s, border-color 0.2s, transform 0.35s var(--ease-spring); }
.socials a:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.28); transform: scale(1.08); text-decoration: none; }
.socials .icon { width: 19px; height: 19px; }

/* ---------- band: Idea, Build, arrow, Ship ---------- */
.band { padding-block: 80px 0; }
.band ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.band li > div {
  display: grid; place-items: center; height: 168px; border-radius: 9999px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; letter-spacing: -0.035em;
  transition: transform 0.45s var(--ease-spring);
}
.band li > div:hover { transform: scale(1.03); }
.band .b1 { background: var(--surface-2); border: 1px solid var(--line); }
.band .b2 { background: linear-gradient(135deg, #2f80ff, #0050d0); color: #fff; }
.band .b3 { background: var(--fg); color: var(--bg); }
.band .b3 .icon { width: 44px; height: 44px; }
.band .b4 { border: 1px dashed var(--line-2); color: var(--fg-3); }

/* ---------- live: JantaHR product spotlight ---------- */
.live { padding-block: var(--section) 0; }
.live-head { display: grid; gap: 22px; max-width: 760px; }
.live-stage { position: relative; margin-top: 56px; padding: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px) 0; border-radius: var(--r-panel); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 80% at 50% 100%, rgba(1, 105, 252, 0.28), transparent 70%), var(--surface); }
.live-stage .shot { width: 100%; border-radius: 14px 14px 0 0; border-bottom: 0; }
.live-stage .phone { position: absolute; right: clamp(16px, 5vw, 72px); bottom: -40px; width: clamp(120px, 19%, 230px); }
.live-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.live-facts li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.live-facts b { display: block; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; color: var(--fg); }
.live-facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--fg-2); }
.live .btns { margin-top: 36px; }

/* ---------- work: asymmetric trio, one tall card and two stacked ---------- */
.work { padding-block: var(--section) 0; }
.work-head { margin-bottom: 48px; }
.work-grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.wcard {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 380px; padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  transition: transform 0.5s var(--ease-spring), border-color 0.3s;
}
.wcard:hover { text-decoration: none; transform: translateY(-6px); border-color: var(--line-2); }
.wcard.tall { grid-row: span 2; min-height: 776px; }
.wcard .art { position: absolute; inset: 0; z-index: -1; }
.wcard .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 13, 16, 0.96) 18%, rgba(14, 13, 16, 0.2) 60%, rgba(14, 13, 16, 0.05)); }
.art-rent { background: radial-gradient(80% 60% at 20% 30%, rgba(75, 134, 245, 0.55), transparent 70%), radial-gradient(60% 50% at 85% 10%, rgba(134, 178, 255, 0.25), transparent 70%), #0b1220; }
.art-mcp { background: radial-gradient(70% 70% at 90% 0%, rgba(75, 134, 245, 0.45), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px), #0d0d12; }
.art-isp { background: repeating-radial-gradient(circle at 80% 20%, rgba(134, 178, 255, 0.16) 0 1px, transparent 1px 22px), radial-gradient(60% 60% at 80% 20%, rgba(1, 105, 252, 0.35), transparent 70%), #0b0c12; }
.wcard .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(134, 178, 255, 0.14), transparent 65%); }
.wcard:hover .spot { opacity: 1; }
.wcard .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wcard .marks { display: flex; gap: 12px; color: var(--fg); }
.wcard .marks svg { width: 30px; height: 30px; fill: currentColor; }
.wcard .arrow-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); transition: transform 0.45s var(--ease-spring), background-color 0.3s; }
.wcard .arrow-badge .icon { width: 18px; height: 18px; }
.wcard:hover .arrow-badge { transform: rotate(45deg) scale(1.08); background: var(--accent); border-color: transparent; }
.wcard .ghost { position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-60%); fill: currentColor; color: #fff; opacity: 0.07; z-index: -1; pointer-events: none; }
.wcard.tall .ghost { width: 520px; height: 520px; right: -90px; }
.wcard .status { font-size: 14px; color: var(--accent-text); }
.wcard h3 { margin-top: 10px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; line-height: 1.06; letter-spacing: -0.03em; }
.wcard p { margin-top: 12px; max-width: 40ch; color: var(--fg-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { padding: 6px 14px; border-radius: 9999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--fg); background: rgba(6, 5, 7, 0.3); }

/* ---------- services: rows that fill on hover ---------- */
.services { padding-block: var(--section) 0; }
.services-head { margin-bottom: 48px; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 24px; padding: 30px 12px; border-radius: var(--r-card); color: var(--fg); transition: background-color 0.35s ease, padding 0.5s var(--ease); }
.row:hover { text-decoration: none; background: var(--surface-2); padding-inline: 32px 20px; }
.row .n { width: 36px; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.row h3 { flex: 1; font-size: clamp(26px, 3.4vw, 48px); font-weight: 300; line-height: 1.06; letter-spacing: -0.035em; }
.row p { max-width: 32ch; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.row .rbadge { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 9999px; background: var(--fg); color: var(--bg); transition: transform 0.45s var(--ease-spring), background-color 0.3s, color 0.3s; }
.row .rbadge .icon { width: 20px; height: 20px; }
.row:hover .rbadge { transform: translateX(5px); background: var(--accent); color: #fff; }

/* ---------- numbers: panel with count-up ---------- */
.numbers { padding-block: var(--section) 0; }
.numbers-panel { padding: clamp(40px, 6vw, 80px); border-radius: var(--r-panel); border: 1px solid var(--line); background: radial-gradient(60% 80% at 0% 0%, rgba(1, 105, 252, 0.14), transparent 70%), var(--surface); }
.numbers h2 { max-width: 18ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: 64px; }
.stats .num { display: block; font-size: clamp(64px, 8vw, 120px); font-weight: 300; line-height: 0.95; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stats p { margin-top: 16px; max-width: 24ch; font-size: 15px; line-height: 1.45; color: var(--fg-2); }

@media (max-width: 1023px) {
  .about-in { grid-template-columns: 1fr; gap: 40px; }
  .about-side { order: 2; }
  .row p { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .band li > div { height: 128px; }
}
@media (max-width: 767px) {
  .hero-panel { min-height: max(540px, 100svh - 84px); }
  .hero-copy .chip-label { margin-bottom: 20px; }
  .hero .lead { margin-top: 18px; font-size: 17px; }
  .hero .btns { margin-top: 24px; }
  .hero-media img { object-position: 58% 0%; }
  .hero-scrim { background: linear-gradient(0deg, rgba(6, 5, 7, 0.96) 0%, rgba(6, 5, 7, 0.8) 42%, rgba(6, 5, 7, 0.2) 70%, rgba(6, 5, 7, 0.9) 100%); }
  .stack ul { justify-content: flex-start; gap: 22px; }
  .band ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .band li > div { height: 96px; }
  .live-facts { grid-template-columns: 1fr; gap: 0; }
  .live-facts li { padding-block: 16px; }
  .live-stage .phone { bottom: -24px; }
  .work-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .wcard.tall { grid-row: auto; min-height: 460px; }
  .wcard { min-height: 340px; padding: 22px; }
  .row { gap: 14px; padding-block: 24px; }
  .row .n { width: 24px; }
  .row .rbadge { width: 42px; height: 42px; }
  .stats { gap: 36px 20px; margin-top: 44px; }
}

/* ---------- /work/: all four projects, two by two ---------- */
.work-grid.even { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
.art-jhr { background: radial-gradient(70% 60% at 85% 15%, rgba(1, 105, 252, 0.5), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(134, 178, 255, 0.18), transparent 70%), #0a0f1c; }
.work .more, .services .more { margin-top: 28px; }
@media (max-width: 767px) { .work-grid.even { grid-template-columns: 1fr; } }
.qa { padding-block: var(--section) 0; }
.qa-head { margin-bottom: 40px; }
.about-foot .textlink { margin-right: auto; }
.wcard h2.h3 { margin-top: 10px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; line-height: 1.06; letter-spacing: -0.03em; }
.page-head + .work, .page-head + .services { padding-top: 64px; }
