/* ============================================================
   Hans Ancieta — Personal Landing
   Minimalist · Premium · Dark · Subtle cyan/blue accents
   ============================================================ */

:root {
  --bg-0: #05070d;
  --bg-1: #080b13;
  --bg-2: #0c111c;
  --ink-0: #e8eef7;
  --ink-1: #c5cedc;
  --ink-2: #8d97a8;
  --ink-3: #5a6577;
  --line: rgba(180, 200, 230, 0.08);
  --line-strong: rgba(180, 200, 230, 0.16);

  --accent: #7dd3fc;       /* sky-300 */
  --accent-deep: #38bdf8;  /* sky-400 */
  --accent-glow: rgba(125, 211, 252, 0.35);
  --accent-soft: rgba(125, 211, 252, 0.08);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
/*  --font-name: "Georgia", serif;*/
  --font-name: "Futura", "Trebuchet MS", Arial, sans-serif;

  --radius: 999px;
  --max: 720px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============================================================
   Backdrop
   ============================================================ */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(56, 189, 248, 0.07), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(14, 30, 60, 0.4), transparent 60%),
    var(--bg-0);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 12s steps(8) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6%, 4%); }
  50%  { transform: translate(4%, -3%); }
  75%  { transform: translate(-3%, -5%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   Stage
   ============================================================ */

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 56px 24px 28px;
  position: relative;
}

.hero {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 6vh, 56px);
}

/* ============================================================
   Orbit animation
   ============================================================ */

.orbit-wrap {
  position: relative;
  width: clamp(240px, 42vh, 380px);
  height: clamp(240px, 42vh, 380px);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.96);
  animation: fadeUp 1.4s var(--ease) 0.1s forwards;
}

#orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.orbit-core {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 12px var(--accent-glow),
    0 0 40px var(--accent-glow),
    0 0 80px rgba(56, 189, 248, 0.15);
  animation: corePulse 4.5s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1);   opacity: 0.95; }
  50%      { transform: scale(1.4); opacity: 1; }
}

/* ============================================================
   Identity
   ============================================================ */

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 1.2s var(--ease) 0.55s forwards;
}

.name {
  font-family: var(--font-name);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 3.8rem);
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--ink-0);
  position: relative;
}

.name::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--line-strong);
  margin: 18px auto 0;
}

.title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.78rem, 1.4vw, 0.86rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  max-width: 480px;
  margin-top: 8px;
}

/* ============================================================
   Links
   ============================================================ */

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.9s forwards;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-1);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.link:hover {
  color: var(--accent);
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -16px var(--accent-glow);
}

.link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.link-icon {
  width: 15px;
  height: 15px;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.link:hover .link-icon {
  opacity: 1;
  transform: translateX(-1px);
}

.link-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
  margin: 0 4px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  align-self: end;
  justify-self: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 24px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 1.2s forwards;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 520px) {
  .stage {
    padding: 36px 20px 24px;
  }

  .link {
    padding: 11px 18px;
    font-size: 0.82rem;
  }

  .link-sep {
    display: none;
  }

  .tagline {
    font-size: 1rem;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-wrap,
  .identity,
  .links,
  .footer {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .orbit-core {
    animation: none;
  }
  .grain {
    animation: none;
  }
}
