/* Home — playful but polished */

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 96px - 98px);
  padding: 48px 0 64px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(84px, 12.5vw, 172px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  margin: 0 0 40px -0.04em;
}

.hero-name span { display: block; }

.hl {
  position: relative;
  isolation: isolate;
  width: fit-content;
}

/* Highlighter swipe behind "Ong" */
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.1em;
  right: -0.1em;
  top: 0.4em;
  bottom: 0.08em;
  background: var(--highlight);
  border-radius: 0.06em 0.1em 0.05em 0.12em;
  transform: rotate(-1.6deg) skewX(-4deg);
  transform-origin: left center;
  animation: swipe 0.7s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes swipe {
  from { transform: rotate(-1.6deg) skewX(-4deg) scaleX(0); }
  to { transform: rotate(-1.6deg) skewX(-4deg) scaleX(1); }
}

.tagline {
  margin: 0 0 40px;
}

.tagline strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.1vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.tagline span {
  display: block;
  font-size: clamp(18px, 1.7vw, 23px);
  color: var(--ink-soft);
}

/* ---------- Doorway illustration ---------- */

.door-art {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.door-art svg { width: 100%; height: auto; overflow: visible; }

.puck .ring {
  fill: none;
  stroke: var(--highlight);
  stroke-width: 3;
  opacity: 0;
  animation: ring-pulse 4s ease-in-out infinite;
  transition: opacity 0.25s, stroke-width 0.25s;
}

@keyframes ring-pulse {
  0%, 70%, 100% { opacity: 0; }
  85% { opacity: 0.7; }
}

.puck.is-near .ring {
  animation: none;
  opacity: 1;
  stroke-width: 4;
  filter: drop-shadow(0 0 6px rgba(255, 210, 0, 0.9));
}

.tumbler { animation: tumble 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes tumble {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-6px, -12px) rotate(-8deg); }
}

/* The human — click to go to About */

.human-link { cursor: pointer; outline: none; }

.human-hit { fill: transparent; pointer-events: all; }

.human {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.human-link:hover .human,
.human-link:focus-visible .human {
  animation: wiggle 0.5s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-9deg); }
  75% { transform: rotate(9deg); }
}

.red-circle {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 0.9s 0.9s ease-out forwards;
  transition: stroke-width 0.2s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.human-link:hover .red-circle,
.human-link:focus-visible .red-circle { stroke-width: 4.5; }

.human-label {
  font-family: "Caveat", cursive;
  font-size: 30px;
  font-weight: 600;
  fill: var(--red);
  opacity: 0;
  transition: opacity 0.2s;
}

.human-link:hover .human-label,
.human-link:focus-visible .human-label { opacity: 1; }

@media (hover: none) {
  .human-label { opacity: 1; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 32px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .door-art { justify-self: center; max-width: 480px; }
}
