/* Home / intro page — scoped to .page-home */
.page-home { --hf: var(--font-ui); }

/* ---------- hero ---------- */
.page-home .h-hero {
  position: relative; min-height: calc(100dvh - var(--header-h));
  display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vh, 96px) 0 clamp(80px, 12vh, 140px);
}
.page-home .h-bg { position: absolute; inset: 0; z-index: -1; }
.page-home .h-blob {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%);
  opacity: .28; filter: blur(40px);
  left: calc(var(--i) / max(var(--n) - 1, 1) * 70% - 8%);
  top: calc(10% + var(--i) * 18%);
  animation: h-drift calc(18s + var(--i) * 4s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -5s);
}
@keyframes h-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, -6vh) scale(1.15); }
  100% { transform: translate(-6vw, 8vh) scale(.92); }
}
.page-home .h-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 26%, transparent) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), #000 0%, rgb(0 0 0 / .25) 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), #000 0%, rgb(0 0 0 / .25) 45%, transparent 75%);
}
.page-home .h-noise {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-home .h-hero-inner { position: relative; }
.page-home .h-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); margin: 0 0 28px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.page-home .h-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc8480; animation: h-pulse 2s infinite; }
@keyframes h-pulse { 70% { box-shadow: 0 0 0 10px #3ddc8400; } 100% { box-shadow: 0 0 0 0 #3ddc8400; } }

.page-home .h-title { margin: 0; font-size: clamp(56px, 12.5vw, 176px); line-height: .9; letter-spacing: -.055em; font-weight: 800; }
.page-home .h-line { display: block; overflow: hidden; padding-bottom: .04em; }
.page-home .h-line > span { display: inline-block; animation: h-rise 1.1s var(--ease-out) both; }
.page-home .h-line:nth-child(2) > span { animation-delay: .12s; }
.page-home .h-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes h-rise { from { transform: translateY(105%) rotate(4deg); } }
.page-home .h-line > .h-outline {
  color: transparent; -webkit-text-stroke: 2px var(--fg);
  background: linear-gradient(90deg, #ffd60a, #6c6cff 50%, #7fd1c0) no-repeat;
  background-size: 0% 100%; -webkit-background-clip: text; background-clip: text;
  animation: h-rise 1.1s var(--ease-out) .24s both, h-fill 1.6s var(--ease-io) 1.1s forwards;
}
@keyframes h-fill { to { background-size: 100% 100%; -webkit-text-stroke-color: transparent; } }

.page-home .h-lead { max-width: 56ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); margin: 32px 0 22px; animation: h-fade 1s var(--ease-out) .5s both; }
.page-home .h-ticker { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: 16px; animation: h-fade 1s var(--ease-out) .65s both; }
.page-home .h-ticker-text { display: inline-block; }
.page-home .h-ticker-text b { font-weight: 700; margin-right: 6px; }
.page-home .h-ticker-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); transition: background .4s; }
.page-home .h-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: h-fade 1s var(--ease-out) .8s both; }
.page-home .h-btn-main { background: var(--fg); color: var(--bg); border: 0; }
.page-home .h-btn-main:hover { box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--fg) 50%, transparent); }
@keyframes h-fade { from { opacity: 0; transform: translateY(16px); } }

.page-home .h-scroll { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 12px; transform: translateX(-50%); }
.page-home .h-scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fg); animation: h-wheel 1.8s ease-in-out infinite; }
@keyframes h-wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- cards ---------- */
.page-home .h-cards-sec { padding: clamp(64px, 10vw, 128px) 0; }
.page-home .h-sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.page-home .h-sec-kicker, .page-home .h-pr-n { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page-home .h-sec-head h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 14px 0 0; max-width: 18ch; }
.page-home .h-sec-head em { font-style: normal; color: var(--muted); }

.page-home .h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.page-home .h-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 520px; padding: 28px; border-radius: 24px;
  background: var(--cbg); color: var(--cfg); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--cfg) 14%, transparent);
  transition: transform .5s var(--ease-out), box-shadow .5s, opacity .8s var(--ease-out);
  will-change: transform;
}
.page-home .h-card:hover { box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--cacc) 70%, transparent); }
.page-home .h-card-glow { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--cacc) 30%, transparent), transparent 55%); }
.page-home .h-card:hover .h-card-glow { opacity: 1; }
.page-home .h-card-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.page-home .h-card-num { color: var(--cacc); font-weight: 600; }
.page-home .h-card-name { font-size: clamp(36px, 4vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 18px; }
.page-home .h-card-blurb { opacity: .78; font-size: 16px; }
.page-home .h-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.page-home .h-card-tags span { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cfg) 18%, transparent); }
.page-home .h-card-shot { margin: auto -28px -28px; padding: 22px 0 0 28px; perspective: 900px; }
.page-home .h-card-shot img {
  width: 118%; max-width: none; border-radius: 12px 0 0 0;
  box-shadow: 0 -10px 40px -10px rgb(0 0 0 / .5), 0 0 0 1px color-mix(in srgb, var(--cfg) 12%, transparent);
  transform: rotateX(14deg) rotateZ(-3deg) translateY(30px); transform-origin: 0 0;
  transition: transform .8s var(--ease-out);
}
.page-home .h-card:hover .h-card-shot img { transform: rotateX(0) rotateZ(0) translateY(0); }
.page-home .h-card-go {
  position: absolute; right: 20px; top: 64px;
  display: inline-flex; gap: 8px; align-items: center;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--cacc); color: var(--con);
  transform: translateY(8px) scale(.9); opacity: 0; transition: .4s var(--ease-out);
}
.page-home .h-card:hover .h-card-go, .page-home .h-card:focus-visible .h-card-go { transform: none; opacity: 1; }
@media (hover: none) { .page-home .h-card-go { opacity: 1; transform: none; } }
@media (max-width: 640px) { .page-home .h-card { min-height: 460px; padding: 24px; } .page-home .h-card-go { top: auto; bottom: 20px; } }

/* ---------- principles ---------- */
.page-home .h-principles { padding: 0 0 clamp(64px, 10vw, 120px); }
.page-home .h-pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 28px; }
.page-home .h-pr { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.page-home .h-pr h3 { font-size: 26px; letter-spacing: -.03em; margin: 12px 0 8px; }
.page-home .h-pr p { color: var(--muted); margin: 0; max-width: 36ch; }

/* ---------- marquee ---------- */
.page-home .h-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.page-home .h-marquee-track { display: flex; gap: 28px; width: max-content; animation: h-marq 38s linear infinite; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.page-home .h-marquee-track i { font-style: normal; color: var(--muted); font-size: .6em; align-self: center; }
@keyframes h-marq { to { transform: translateX(-50%); } }
