/* PT JSM — jsm-id.com landing page */
:root {
  --green: #37923a;
  --navy: #1d1f5c;
  --lime: #a3e635;
  --sun: #ffd23f;
  --tangerine: #ff8a3d;
  --coral: #ff5d73;
  --aqua: #22c3b6;
  --sky: #4cc9f0;
  --grape: #7b61ff;
  --cream: #fffaf0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;            /* one screen, no scroll */
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- background ---------- */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: multiply;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { background: var(--sun);       top: -18vmax; left: -12vmax; }
.blob.b2 { background: var(--aqua);      bottom: -20vmax; right: -14vmax; animation-delay: -6s; }
.blob.b3 { background: var(--coral);     top: -16vmax; right: -10vmax; width: 34vmax; height: 34vmax; opacity: .35; animation-delay: -11s; }
.blob.b4 { background: var(--lime);      bottom: -16vmax; left: -8vmax;  width: 38vmax; height: 38vmax; opacity: .45; animation-delay: -3s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 7vmax) scale(.94); }
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- layout ---------- */
.stage {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(.6rem, 2.2vh, 1.4rem);
  padding: clamp(1rem, 4vh, 2.5rem) 1.25rem clamp(.8rem, 3vh, 1.6rem);
  text-align: center;
}

.logo-wrap {
  width: min(84vw, 56vh * 1.75, 640px);
  perspective: 900px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.logo-tilt {
  transition: transform .25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
#logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(29, 31, 92, .16));
}

/* ---------- logo intro ---------- */
.ft-ring { transform-box: fill-box; transform-origin: 50% 50%; }
.ft-ring-green { animation: ringInG 1.3s cubic-bezier(.2, .9, .25, 1.15) both .15s; }
.ft-ring-navy  { animation: ringInN 1.3s cubic-bezier(.2, .9, .25, 1.15) both .3s; }

@keyframes ringInG {
  from { opacity: 0; transform: rotate(-40deg) scale(.35); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes ringInN {
  from { opacity: 0; transform: rotate(40deg) scale(.35); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}

.ft-glyph {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
.ft-glyph:nth-child(1) { animation-delay: .9s; }
.ft-glyph:nth-child(2) { animation-delay: 1.0s; }
.ft-glyph:nth-child(3) { animation-delay: 1.1s; }
.ft-glyph:nth-child(4) { animation-delay: 1.2s; }

@keyframes pop {
  from { opacity: 0; transform: translateY(-60%) scale(.3); }
  to   { opacity: 1; transform: none; }
}

.ft-tech { clip-path: inset(0 100% 0 0); animation: write 1.4s cubic-bezier(.6, .1, .3, 1) both 1.25s; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }

/* idle life after the intro */
.is-live .ft-ring-green { animation: breatheG 6s ease-in-out infinite; }
.is-live .ft-ring-navy  { animation: breatheN 6s ease-in-out infinite; }
@keyframes breatheG { 50% { transform: rotate(-1.6deg) scale(1.015); } }
@keyframes breatheN { 50% { transform: rotate(1.6deg)  scale(.99); } }

.is-live .ft-glyph { animation: none; }
.is-live .ft-glyph.jump { animation: jump .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jump {
  40% { transform: translateY(-22%) scale(1.08); }
  to  { transform: none; }
}

.orbit-dot { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15)); }

/* ---------- text + buttons ---------- */
.tagline {
  font-size: clamp(1.05rem, 2.6vh, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 32ch;
  opacity: 0;
  animation: rise .8s ease-out both 2.3s;
}
.tagline .hl {
  background: linear-gradient(90deg, var(--green), var(--aqua), var(--grape), var(--coral), var(--tangerine), var(--green));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.sub {
  font-size: clamp(.8rem, 1.8vh, 1rem);
  opacity: .75;
  margin-top: .35rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  opacity: 0;
  animation: rise .8s ease-out both 2.55s;
}
.btn {
  --c: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font: 600 clamp(.85rem, 1.9vh, 1rem)/1 inherit;
  font-family: inherit;
  text-decoration: none;
  color: #fff;
  background: var(--c);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 70%, #000), 0 12px 24px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover  { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 70%, #000); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn.wa    { --c: #1fb855; }
.btn.mail  { --c: var(--tangerine); }
.btn.fac   { --c: var(--navy); }
.btn[hidden] { display: none; }

.foot {
  position: absolute;
  bottom: max(.8rem, env(safe-area-inset-bottom));
  left: 0; right: 0;
  font-size: .72rem;
  opacity: .55;
  animation: rise .8s ease-out both 2.8s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* short / landscape phones */
@media (max-height: 520px) {
  .stage { gap: .45rem; padding-top: .6rem; padding-bottom: .6rem; }
  .tagline { font-size: 1rem; }
  .logo-wrap { width: min(60vw, 52vh * 1.75); }
  .foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ft-tech { clip-path: none; }
}
