/* Jaisson — minimal personal landing page */

:root {
  --ink: #0b2a4d;
  --teal: #10aeb5;
  --text: #486273;
  --bg-a: #fbfcfd;
  --bg-b: #f4f8fa;
  --bg-c: #f8fbfc;
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(16, 174, 181, 0.085) 0,
      rgba(16, 174, 181, 0.035) 18rem,
      transparent 36rem
    ),
    linear-gradient(125deg, var(--bg-a), var(--bg-b), var(--bg-c));
  background-size: auto, 180% 180%;
  animation: ambient 22s ease-in-out infinite alternate;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(11, 42, 77, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 42, 77, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: clamp(24px, 6vw, 72px);
  text-align: center;
}

.brand {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
  opacity: 0;
  transform: translateY(9px);
  animation: reveal 900ms cubic-bezier(.2,.8,.2,1) 120ms forwards;
}

.brand:focus-visible {
  outline: 2px solid rgba(16, 174, 181, 0.55);
  outline-offset: 12px;
  border-radius: 10px;
}

.brand img {
  display: block;
  width: min(780px, 78vw);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 32px rgba(11, 42, 77, 0.06));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 16px 34px rgba(11, 42, 77, 0.08));
}

.tagline {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0.055em;
  color: var(--text);
  opacity: 0;
  transform: translateY(7px);
  animation: reveal 850ms cubic-bezier(.2,.8,.2,1) 520ms forwards;
  transition: opacity 160ms ease, transform 160ms ease;
}

.tagline.is-changing {
  opacity: 0.22;
  transform: translateY(2px);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient {
  0%   { background-position: center, 0% 45%; }
  100% { background-position: center, 100% 55%; }
}

@media (max-width: 560px) {
  .brand img {
    width: min(90vw, 560px);
  }

  .tagline {
    margin-top: 18px;
    letter-spacing: 0.035em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .brand,
  .tagline {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .brand img,
  .tagline {
    transition: none;
  }
}
