/* ==========================================================
   Home page — v3 (loaded after site.css, only on / and /en/)
   Motion is progressive: content is visible without JS and
   with prefers-reduced-motion.
   ========================================================== */
:root {
  --cyan: #27c4ff;
  --grad: linear-gradient(120deg, #2450ff 0%, #27c4ff 100%);
  --grad-warm: linear-gradient(120deg, #ffb22e 0%, #ff7a45 100%);
  --sx: -40px; /* side-reveal offset, flipped for LTR below */
}
[dir="ltr"] {
  --sx: 40px;
}
body.home p {
  text-align: start;
}
body.home img {
  max-width: 100%;
}

/* ---------- scroll progress + header state ---------- */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  transform-origin: right center;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--saffron), var(--cobalt), var(--cyan));
}
[dir="ltr"] .scroll-progress {
  transform-origin: left center;
}
.site-header {
  transition:
    box-shadow 0.3s,
    background-color 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(5, 12, 35, 0.35);
}

/* ---------- reveal system ---------- */
.rv [data-rv] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
  will-change: opacity, transform;
}
.rv [data-rv="side"] {
  transform: translate3d(var(--sx), 0, 0);
}
.rv [data-rv="zoom"] {
  transform: scale(0.92);
}
.rv [data-rv="fade"] {
  transform: none;
}
.rv [data-rv].in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.rv-off [data-rv],
.rv-off .w {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ---------- kicker / section heads ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: var(--fs-0);
  color: var(--cobalt);
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cobalt) 22%, transparent);
  padding: 0.2rem 0.95rem;
  border-radius: var(--r-pill);
  margin-block-end: var(--s4);
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 178, 46, 0.25);
}
:root[data-theme="dark"] .kicker {
  color: var(--cobalt-soft);
}
.home .section-head h2 {
  letter-spacing: -0.015em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================
   HERO
   ========================================================== */
.h-hero {
  --hh: #0a1733;
  --hp: #2b3556;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(660px, calc(100svh - 68px), 900px);
  background: #eef3ff;
  color: var(--hh);
}
:root[data-theme="dark"] .h-hero {
  --hh: #fff;
  --hp: rgba(255, 255, 255, 0.84);
  background: #070d20;
}
.h-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.h-hero-bg picture,
.h-hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
}
.h-hero-bg img {
  object-fit: cover !important;
  object-position: 50% 30%;
  transform: scale(1.1) translate3d(calc(var(--hx, 0) * -26px), calc(var(--py, 0) * 1px), 0);
  transform-origin: 50% 40%;
  animation: heroIn 1.8s var(--ease) both;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.22);
  }
}
/* readable text side: a soft wash from the text edge */
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to left,
    rgba(238, 243, 255, 0.96) 0%,
    rgba(238, 243, 255, 0.82) 30%,
    rgba(238, 243, 255, 0) 60%
  );
}
[dir="ltr"] .h-hero::before {
  background: linear-gradient(
    to right,
    rgba(238, 243, 255, 0.96) 0%,
    rgba(238, 243, 255, 0.82) 30%,
    rgba(238, 243, 255, 0) 60%
  );
}
:root[data-theme="dark"] .h-hero::before {
  background: linear-gradient(
    to left,
    rgba(7, 13, 32, 0.95) 0%,
    rgba(7, 13, 32, 0.78) 34%,
    rgba(7, 13, 32, 0.05) 64%
  );
}
:root[data-theme="dark"] [dir="ltr"] .h-hero::before,
:root[data-theme="dark"] .h-hero[dir="ltr"]::before {
  background: linear-gradient(
    to right,
    rgba(7, 13, 32, 0.95) 0%,
    rgba(7, 13, 32, 0.78) 34%,
    rgba(7, 13, 32, 0.05) 64%
  );
}
.h-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.h-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.h-orb.a {
  width: 380px;
  height: 380px;
  background: #2450ff;
  inset-block-start: -120px;
  inset-inline-start: -80px;
  opacity: 0.22;
}
.h-orb.b {
  width: 300px;
  height: 300px;
  background: #ffb22e;
  inset-block-end: 10%;
  inset-inline-start: 28%;
  opacity: 0.18;
  animation-delay: -6s;
}
@keyframes drift {
  to {
    transform: translate3d(40px, 30px, 0) scale(1.15);
  }
}
.h-hero .wrap {
  width: min(100% - 2 * var(--s5), 1280px);
}
.h-hero-copy {
  max-width: min(47%, 650px);
  padding-block: var(--s8) var(--s9);
}
.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s5);
  padding: 0.35rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: var(--r-pill);
  color: var(--hh);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(36, 80, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
:root[data-theme="dark"] .h-eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.h-eyebrow i {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0e9f6e;
}
.h-eyebrow i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #0e9f6e;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  from {
    transform: scale(0.5);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.h-hero h1 {
  font-size: clamp(2.4rem, 0.9rem + 4.3vw, 4.7rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-block-end: var(--s5);
  color: var(--hh);
}
html[lang="en"] .h-hero h1 {
  line-height: 1.08;
}
.h-hero .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.55em, 0);
  filter: blur(10px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease),
    filter 0.8s var(--ease);
  transition-delay: calc(0.25s + var(--i, 0) * 0.09s);
}
.h-hero.is-loaded .w {
  opacity: 1;
  transform: none;
  filter: none;
}
.h-hero .hl {
  background: linear-gradient(
      transparent 62%,
      rgba(255, 178, 46, 0.92) 62% 92%,
      transparent 92%
    )
    no-repeat;
  background-size: 0% 100%;
  background-position: 100% 0;
  padding-inline: 0.1em;
  transition:
    background-size 0.9s 1.1s var(--ease),
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease),
    filter 0.8s var(--ease);
}
[dir="ltr"] .h-hero .hl {
  background-position: 0 0;
}
.h-hero.is-loaded .hl {
  background-size: 100% 100%;
}
.h-hero .lead {
  font-size: var(--fs-3);
  line-height: 1.95;
  color: var(--hp);
  max-width: 40ch;
  margin-block-end: var(--s6);
}
html[lang="en"] .h-hero .lead {
  line-height: 1.6;
  max-width: 44ch;
}
.h-hero .hero-cta .btn-ghost {
  color: var(--hh);
  border-color: color-mix(in srgb, var(--hh) 35%, transparent);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .h-hero .hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
}
.h-hero .hero-cta .btn-ghost:hover {
  background: rgba(36, 80, 255, 0.1);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(255, 178, 46, 0.38);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine {
  0%,
  70% {
    inset-inline-start: -60%;
  }
  100% {
    inset-inline-start: 140%;
  }
}
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: var(--s5) var(--s6);
  margin: var(--s7) 0 0;
  padding: 0;
  list-style: none;
}
.h-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-inline-start: var(--s4);
  border-inline-start: 2px solid color-mix(in srgb, var(--hh) 16%, transparent);
}
.h-stats b {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--hh);
}
.h-stats span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--hp);
}
.h-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  direction: ltr;
  color: #0a1733;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(36, 80, 255, 0.2);
  translate: 0 calc(var(--py, 0) * 1px);
  animation: floaty 6s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
.h-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, #2450ff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #2450ff) 25%, transparent);
}
@keyframes floaty {
  50% {
    transform: translate3d(0, -14px, 0);
  }
}
.h-scroll {
  position: absolute;
  inset-block-end: 26px;
  inset-inline-start: 50%;
  translate: -50% 0;
  z-index: 3;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--hh) 40%, transparent);
}
.h-scroll::after {
  content: "";
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: 50%;
  width: 4px;
  height: 8px;
  margin-inline-start: -2px;
  border-radius: 4px;
  background: var(--hh);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  50% {
    transform: translateY(12px);
    opacity: 0.2;
  }
}
@media (max-width: 1080px) {
  .h-hero-copy {
    max-width: min(54%, 600px);
  }
  .h-chip.hide-md {
    display: none;
  }
}
@media (max-width: 820px) {
  .h-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .h-hero::before {
    display: none;
  }
  .h-hero-bg {
    position: relative;
    order: 2;
    height: min(120vw, 600px);
    margin-block-start: -2.5rem;
    z-index: -3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  }
  .h-hero-bg img {
    object-position: 50% 100%;
    transform: scale(1.04);
  }
  .h-hero-copy {
    max-width: none;
    padding-block: var(--s7) 0;
  }
  .h-hero::after {
    display: none;
  }
  .h-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-block-start: var(--s5);
  }
  .h-chip {
    display: none;
  }
  .h-scroll {
    display: none;
  }
}

/* ---------- marquee ---------- */
.h-marquee {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-block: 1.05rem;
  direction: ltr;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .h-marquee {
  background: #050a1a;
}
.h-marquee::before,
.h-marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.h-marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}
.h-marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}
.h-track {
  display: flex;
  width: max-content;
  animation: marq 46s linear infinite;
}
.h-marquee:hover .h-track {
  animation-play-state: paused;
}
.h-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-inline-end: 2.2rem;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  unicode-bidi: isolate;
}
.h-track span::after {
  content: "";
  width: 9px;
  height: 9px;
  rotate: 45deg;
  background: var(--saffron);
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================
   FIVE PRINCIPLES (sticky visual + scroll-driven list)
   ========================================================== */
.pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--s8);
  align-items: start;
}
.pr-stick {
  position: sticky;
  inset-block-start: 92px;
}
.pr-frame {
  --p: 0;
  position: relative;
  aspect-ratio: 1/1;
  max-height: calc(100svh - 150px);
  margin-inline: auto;
  border-radius: 30px;
  overflow: hidden;
  background: #dfe8ff;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  isolation: isolate;
}
.pr-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: 63% 40%;
}
.pr-frame .ai {
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
}
.pr-scan {
  position: absolute;
  inset-block: 0;
  left: calc(var(--p) * 100%);
  width: 3px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px 4px rgba(39, 196, 255, 0.7);
  opacity: calc(min(var(--p), 1 - var(--p)) * 8);
}
.pr-lab {
  position: absolute;
  inset-block-start: 14px;
  z-index: 3;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(10, 23, 51, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  transition:
    background-color 0.4s,
    color 0.4s;
}
.pr-lab.h {
  inset-inline-start: 14px;
}
.pr-lab.a {
  inset-inline-end: 14px;
}
.pr-lab.on {
  background: var(--saffron);
  color: var(--ink);
}
.pr-hud {
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 0.7rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0a1733;
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.pr-hud b {
  font-size: 1.35rem;
  font-weight: 900;
  direction: ltr;
  letter-spacing: 0.02em;
  min-width: 3.2ch;
}
.pr-hud small {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 700;
}
.pr-dots {
  display: flex;
  gap: 6px;
}
.pr-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(10, 23, 51, 0.2);
  transition:
    transform 0.3s,
    background-color 0.3s,
    width 0.3s;
}
.pr-dots i.on {
  background: var(--cobalt);
  width: 24px;
  border-radius: 6px;
}
.pr-list {
  padding-block-start: 4vh;
}
.pr-item {
  position: relative;
  min-height: 44vh;
  padding-block: var(--s7);
  padding-inline-start: var(--s6);
  border-block-end: 1px dashed var(--line);
  opacity: 0.38;
  transition: opacity 0.6s var(--ease);
}
.pr-item::before {
  content: "";
  position: absolute;
  inset-block: var(--s7);
  inset-inline-start: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.5s;
}
.pr-item.is-active {
  opacity: 1;
}
.pr-item.is-active::before {
  background: var(--grad);
}
.pr-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  margin-block-end: var(--s2);
}
.pr-ac {
  display: block;
  font-size: clamp(3.2rem, 2rem + 5vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  direction: ltr;
  text-align: start;
  background: linear-gradient(120deg, var(--ink) 20%, var(--cobalt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block-end: var(--s2);
}
:root[data-theme="dark"] .pr-ac {
  background-image: linear-gradient(120deg, #fff 20%, var(--cobalt-soft));
}
[dir="rtl"] .pr-ac,
[dir="rtl"] .pr-full {
  text-align: right;
}
.home .site-footer {
  margin-block-start: 0;
}
.pr-full {
  display: block;
  direction: ltr;
  text-align: start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-block-end: var(--s4);
}
.pr-item h3 {
  font-size: var(--fs-5);
  margin-block-end: var(--s3);
}
.pr-item > p {
  color: var(--muted);
  font-size: var(--fs-2);
  max-width: 52ch;
}
.pr-item .checks {
  margin: var(--s4) 0 0;
}
.pr-item .checks li {
  font-size: var(--fs-1);
}
.pr-note {
  margin-block-start: var(--s6);
  font-size: var(--fs-1);
  color: var(--muted);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .pr-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .pr-stick {
    inset-block-start: 68px;
    z-index: 5;
    padding-block: var(--s2) var(--s3);
    background: var(--paper);
  }
  .pr-frame {
    aspect-ratio: 16/9;
    max-height: 34svh;
    border-radius: 20px;
  }
  .pr-frame img {
    object-position: 60% 38%;
  }
  .pr-hud {
    padding: 0.4rem 0.7rem;
    inset-inline: 8px;
    inset-block-end: 8px;
    border-radius: 14px;
  }
  .pr-hud small {
    display: none;
  }
  .pr-hud b {
    font-size: 1.05rem;
  }
  .pr-item {
    min-height: 0;
    padding-block: var(--s6);
  }
}

/* ==========================================================
   SERVICES (bento)
   ========================================================== */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s4);
}
.sv {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 240px;
  padding: var(--s6);
  border-radius: 26px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s,
    box-shadow 0.45s;
}
.sv.big {
  grid-column: span 3;
  min-height: 300px;
}
.sv.wide {
  grid-column: 1/-1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: var(--s6);
}
.sv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    460px circle at var(--mx) var(--my),
    rgba(36, 80, 255, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.sv:hover {
  text-decoration: none;
  transform: translateY(-6px);
  border-color: var(--cobalt);
  box-shadow: var(--shadow-2);
}
.sv:hover::before {
  opacity: 1;
}
.sv-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 17px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(36, 80, 255, 0.35);
  transition: transform 0.5s var(--ease);
}
.sv:hover .sv-ico {
  transform: rotate(-8deg) scale(1.08);
}
.sv-ico svg {
  width: 26px;
  height: 26px;
}
.sv h3 {
  font-size: var(--fs-4);
  margin: var(--s3) 0 0;
}
.sv p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
}
.sv .go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: auto;
  padding-block-start: var(--s4);
  font-weight: 800;
  font-size: var(--fs-1);
  color: var(--link);
}
.sv .go svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
[dir="rtl"] .sv .go svg {
  transform: scaleX(-1);
}
.sv:hover .go svg {
  transform: translateX(6px);
}
[dir="rtl"] .sv:hover .go svg {
  transform: scaleX(-1) translateX(6px);
}
.sv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-start: var(--s3);
  direction: ltr;
}
.sv-tags span {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.7rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
  color: var(--cobalt);
}
:root[data-theme="dark"] .sv-tags span {
  color: var(--cobalt-soft);
}
.sv-bars {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-end: 22px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  opacity: 0.9;
  z-index: -1;
}
.sv-bars i {
  width: 12px;
  border-radius: 6px 6px 2px 2px;
  background: var(--grad);
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  animation: grow 2.4s var(--ease) infinite alternate;
  animation-delay: calc(var(--k) * 0.18s);
  opacity: 0.55;
}
@keyframes grow {
  from {
    transform: scaleY(0.55);
  }
}
.sv.acc {
  background: linear-gradient(135deg, #0a1733, #14235a 60%, #1c3aa8);
  color: #fff;
  border-color: transparent;
}
.sv.acc p {
  color: rgba(255, 255, 255, 0.8);
}
.sv.acc h3 {
  margin: 0 0 0.3rem;
}
.sv.acc .go {
  color: var(--saffron);
  margin: 0;
  padding: 0;
  margin-inline-start: auto;
  white-space: nowrap;
}
.sv.acc .sv-ico {
  background: var(--grad-warm);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(255, 178, 46, 0.35);
}
@media (max-width: 980px) {
  .sv,
  .sv.big {
    grid-column: span 3;
  }
}
@media (max-width: 640px) {
  .sv,
  .sv.big {
    grid-column: 1/-1;
    min-height: 0;
  }
  .sv.wide {
    flex-direction: column;
    align-items: flex-start;
  }
  .sv.acc .go {
    margin: var(--s3) 0 0;
  }
  .sv-bars {
    display: none;
  }
}

/* ==========================================================
   PROCESS (line fills while scrolling)
   ========================================================== */
.ps {
  --pp: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ps-line {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-start: 27px;
  width: 75%;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.ps-line i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(var(--pp));
  transform-origin: right center;
}
[dir="ltr"] .ps-line i {
  transform-origin: left center;
}
.ps-item {
  position: relative;
  padding-block-start: calc(54px + var(--s5));
}
.ps-dot {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.15rem;
  background: var(--surface);
  border: 3px solid var(--line);
  color: var(--muted);
  transition:
    background-color 0.5s,
    border-color 0.5s,
    transform 0.6s var(--ease),
    color 0.5s,
    box-shadow 0.5s;
}
.ps-item.on .ps-dot {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(255, 178, 46, 0.22);
}
.ps-item h3 {
  font-size: var(--fs-3);
  margin-block-end: var(--s2);
}
.ps-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
}
@media (max-width: 900px) {
  .ps {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .ps-line {
    inset-block: 27px;
    inset-block-end: 27px;
    inset-inline-start: 25px;
    width: 4px;
    height: auto;
  }
  .ps-line i {
    height: 100%;
    transform: scaleY(var(--pp));
    transform-origin: top center;
  }
  .ps-item {
    padding-block-start: 0;
    padding-inline-start: calc(54px + var(--s4));
    min-height: 54px;
  }
}

/* ==========================================================
   WORK
   ========================================================== */
.wk {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5);
}
.wk-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease-out,
    border-color 0.3s,
    box-shadow 0.4s;
  will-change: transform;
}
.wk-card {
  align-self: start;
}
.wk-card:nth-child(even) {
  margin-block-start: var(--s7);
}
.wk-card:hover {
  text-decoration: none;
  border-color: var(--cobalt);
  box-shadow: var(--shadow-2);
}
.wk-shot {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
}
.wk-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: top center;
  transition: transform 1.1s var(--ease);
}
.wk-card:hover .wk-shot img {
  transform: scale(1.07);
}
.wk-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.28),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.wk-card:hover .wk-shot::after {
  opacity: 1;
}
.wk-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
}
.wk-meta h3 {
  font-size: var(--fs-3);
  margin: 0 0 0.1rem;
}
.wk-meta p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
}
.wk-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--cobalt);
  transition: 0.3s;
}
.wk-go svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
}
[dir="rtl"] .wk-go svg {
  transform: rotate(-135deg);
}
.wk-card:hover .wk-go {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}
@media (max-width: 820px) {
  .wk-card,
  .wk-card:nth-child(even) {
    grid-column: 1/-1;
    margin-block-start: 0;
  }
}

/* ==========================================================
   ABOUT (parallax photo stack)
   ========================================================== */
.ab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s8);
  align-items: center;
}
.ab-gallery {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1/1.08;
  margin-inline: auto;
}
.ab-img {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-2);
  translate: 0 calc(var(--py, 0) * 1px);
  background: var(--surface-2);
}
.ab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}
.ab-img.a {
  inset-block: 0 12%;
  inset-inline: 0 22%;
}
.ab-img.b {
  inset-block-start: 56%;
  inset-inline-end: 0;
  width: 46%;
  aspect-ratio: 1/1.1;
}
.ab-img.c {
  inset-block-start: 6%;
  inset-inline-end: 0;
  width: 34%;
  aspect-ratio: 1/1;
  border-radius: 50%;
}
.ab-badge {
  position: absolute;
  inset-block-end: 4%;
  inset-inline-start: -4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #0a1733;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(10, 23, 51, 0.22);
  translate: 0 calc(var(--py, 0) * 1px);
  animation: floaty 7s ease-in-out infinite;
}
.ab-badge b {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.ab-badge span {
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 700;
}
.ab-text .prose {
  max-width: 54ch;
}
.ab-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin: var(--s5) 0;
  padding: 0;
  list-style: none;
}
.ab-facts li {
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.ab-facts b {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}
.ab-facts span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}
@media (max-width: 900px) {
  .ab {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

/* ==========================================================
   ARTICLES
   ========================================================== */
.ar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
.ar-card {
  --mx: 50%;
  --my: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s,
    border-color 0.3s;
}
.ar-card:hover {
  text-decoration: none;
  transform: translateY(-6px);
  border-color: var(--cobalt);
  box-shadow: var(--shadow-2);
}
.ar-img {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.ar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.9s var(--ease);
}
.ar-card:hover .ar-img img {
  transform: scale(1.08);
}
.ar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s5);
}
.ar-body h3 {
  font-size: var(--fs-2);
  line-height: 1.6;
  margin-block-end: var(--s2);
}
.ar-body p {
  flex: 1;
  margin-block-end: var(--s3);
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ar-body .more {
  font-weight: 800;
  font-size: var(--fs-1);
  color: var(--link);
}
@media (max-width: 1100px) {
  .ar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   FAQ (AEO block)
   ========================================================== */
.fq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s8);
  align-items: start;
}
.fq-side {
  position: sticky;
  inset-block-start: 100px;
}
.fq-side h2 {
  font-size: var(--fs-6);
}
.fq-side p {
  color: var(--muted);
  font-size: var(--fs-3);
}
.fq-list details {
  position: relative;
  margin-block-end: var(--s3);
  padding: var(--s4) var(--s5);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.fq-list details[open] {
  border-color: var(--cobalt);
  box-shadow: var(--shadow-1);
}
.fq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: var(--fs-2);
  line-height: 1.7;
}
.fq-list summary::-webkit-details-marker {
  display: none;
}
.fq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cobalt);
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s,
    color 0.3s;
}
.fq-list details[open] summary::after {
  transform: rotate(135deg);
  background: var(--cobalt);
  color: #fff;
}
.fq-list details > p {
  margin: var(--s3) 0 0;
  color: var(--muted);
  animation: fqIn 0.5s var(--ease);
}
@keyframes fqIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (max-width: 900px) {
  .fq {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .fq-side {
    position: static;
  }
}

/* ==========================================================
   CTA
   ========================================================== */
.ct {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--s6);
  align-items: center;
  padding: var(--s8) var(--s7);
  border-radius: 34px;
  background: #0a1733;
  color: #fff;
}
.ct::before,
.ct::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 12s ease-in-out infinite alternate;
}
.ct::before {
  width: 420px;
  height: 420px;
  inset-block-start: -160px;
  inset-inline-end: -80px;
  background: #2450ff;
  opacity: 0.7;
}
.ct::after {
  width: 320px;
  height: 320px;
  inset-block-end: -160px;
  inset-inline-start: 20%;
  background: #27c4ff;
  opacity: 0.28;
  animation-delay: -5s;
}
.ct h2 {
  font-size: var(--fs-6);
  margin-block-end: var(--s3);
}
.ct p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-3);
  margin: 0;
}
.ct-act {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-block-start: var(--s6);
}
.ct-act .btn-ghost {
  color: #fff;
}
.ct-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  aspect-ratio: 1/1;
}
.ct-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.18);
}
.ct-photo::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  animation: spin 30s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .ct {
    grid-template-columns: 1fr;
    padding: var(--s7) var(--s5);
  }
  .ct-photo {
    width: 180px;
    order: -1;
    justify-self: start;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .h-hero *,
  .h-hero::before,
  .h-track,
  .h-chip,
  .btn-primary::after,
  .sv-bars i,
  .ab-badge,
  .ct::before,
  .ct::after,
  .ct-photo::before,
  .h-orb {
    animation: none !important;
  }
  .h-hero .w {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .h-hero .hl {
    background-size: 100% 100%;
  }
  .h-hero-bg img {
    transform: none;
  }
  .rv [data-rv] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- extra polish ---------- */
.cursor-glow{position:fixed;left:0;top:0;z-index:60;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(39,196,255,.16),rgba(36,80,255,.07) 40%,transparent 68%);mix-blend-mode:plus-lighter;opacity:0;transition:opacity .4s;will-change:transform}
.cursor-glow.on{opacity:1}
:root[data-theme="light"] .cursor-glow{mix-blend-mode:multiply;background:radial-gradient(circle,rgba(36,80,255,.10),rgba(39,196,255,.05) 40%,transparent 68%)}
.home .section.alt{position:relative;isolation:isolate;overflow:hidden}
.home .section.alt::before,.home .section.alt::after{content:"";position:absolute;z-index:-1;border-radius:50%;filter:blur(90px);opacity:.35;pointer-events:none;animation:drift 16s ease-in-out infinite alternate}
.home .section.alt::before{width:420px;height:420px;background:#2450ff;opacity:.12;inset-block-start:-140px;inset-inline-end:-100px}
.home .section.alt::after{width:360px;height:360px;background:#ffb22e;opacity:.10;inset-block-end:-140px;inset-inline-start:-80px;animation-delay:-7s}
.grad-text,.h-hero .hl{background-size:200% 100%}
.kicker{position:relative;overflow:hidden}
.kicker::after{content:"";position:absolute;inset-block:0;inset-inline-start:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:shine 5s ease-in-out infinite}
.sv-ico::after{content:"";position:absolute;inset:-6px;border-radius:21px;border:2px solid var(--cyan);opacity:0;transform:scale(.8);transition:.5s var(--ease)}
.sv-ico{position:relative}
.sv:hover .sv-ico::after{opacity:.6;transform:scale(1)}
.ps-item.on .ps-dot{animation:pulseDot 2.4s ease-in-out infinite}
@keyframes pulseDot{50%{box-shadow:0 0 0 14px rgba(255,178,46,.08)}}
.pr-frame::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.22) 50%,transparent 60%);background-size:250% 100%;animation:sheen 6s ease-in-out infinite}
@keyframes sheen{from{background-position:130% 0}to{background-position:-130% 0}}
@media (prefers-reduced-motion:reduce){.cursor-glow{display:none}.home .section.alt::before,.home .section.alt::after,.kicker::after,.pr-frame::after,.ps-item.on .ps-dot{animation:none!important}}
