:root {
  --bg: #08090a;
  --fg: #f4f4f5;
  --muted: #8b8f97;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #22d3ee;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 55% 45% at 88% -5%, rgba(34, 211, 238, 0.13), transparent 62%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1.1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 58%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 58%);
  opacity: 0.45;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.avatar-wrap,
.real-name,
.section {
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 808px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.locale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.locale:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}

.locale.is-pressed {
  animation: locale-poke 0.35s ease;
}

.identity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  margin-top: clamp(48px, 5vw, 56px);
}

.identity__copy {
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--fg);
}

.home-link {
  display: inline-block;
  color: var(--fg);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.home-link:hover {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.22);
}

.identity__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.real-name {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.real-name:hover {
  color: var(--fg);
}

.meta-divider {
  flex: none;
  width: 1px;
  height: 14px;
  background: var(--line);
}

.socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transform-origin: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  transform: scale(1.04);
}

.social svg {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
}

.avatar-wrap {
  position: relative;
  flex: none;
  width: clamp(80px, 12vw, 128px);
  aspect-ratio: 1;
  transform-origin: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
  filter: blur(14px);
  opacity: 0.7;
  animation: glow-breathe 5s ease-in-out infinite;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 6px rgba(34, 211, 238, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.avatar-wrap:hover .avatar {
  transform: scale(1.035);
}

.section {
  max-width: 640px;
  margin-top: clamp(32px, 4vw, 40px);
  -webkit-tap-highlight-color: transparent;
}

.section--what {
  margin-top: clamp(48px, 6vw, 56px);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section__mark {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform-origin: center;
  animation: dot-breathe 3.6s ease-in-out infinite;
}

.section__mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.section__head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.section__head h2[data-poke],
.section__text[data-poke] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.section__head h2[data-poke]:hover {
  color: var(--fg);
}

.section__text {
  margin: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  line-height: 1.6;
  color: #e6e6e8;
  text-wrap: balance;
  transition: color 0.2s ease;
}

.section__text[data-poke]:hover {
  color: #fff;
}

.section__text strong {
  font-weight: 650;
  color: var(--fg);
}

.outro {
  max-width: 640px;
  margin: clamp(40px, 6vw, 56px) 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.outro[data-poke] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.outro[data-poke]:hover {
  color: #b6bac2;
}

.outro s {
  display: inline-block;
  color: rgba(255, 255, 255, 0.35);
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-decoration-thickness: 1px;
}

.outro__yes {
  display: inline-block;
  color: var(--fg);
  transform-origin: center;
}

@keyframes press {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes name-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px) rotate(-0.4deg);
  }
  40% {
    transform: translateX(4px) rotate(0.4deg);
  }
  60% {
    transform: translateX(-3px) rotate(-0.2deg);
  }
  80% {
    transform: translateX(3px) rotate(0.2deg);
  }
}

a.is-pressed,
button.is-pressed {
  animation: press 0.24s ease;
}

.home-link.is-pressed {
  animation: name-shake 0.32s ease;
}

.social.is-pressed {
  animation: social-rubber 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-wrap.is-poked {
  animation: avatar-rubber 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-name.is-poked {
  animation: tag-wiggle 0.4s ease;
}

.section__head h2.is-poked {
  animation: heading-nudge 0.45s ease-in-out;
}

.section:has(.is-poked) .section__mark::after {
  animation: dot-pulse 0.45s ease-in-out;
}

.section--what .section__text.is-poked {
  animation: text-jitter-x 0.45s ease-in-out;
}

.section--why .section__text.is-poked {
  animation: text-jitter-y 0.45s ease-in-out;
}

.outro.is-poked s {
  animation: no-flicker 0.5s ease;
}

.outro.is-poked .outro__yes {
  animation: yes-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
}

@keyframes locale-poke {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  35% {
    transform: rotate(-7deg) scale(0.95);
  }
  70% {
    transform: rotate(7deg) scale(0.97);
  }
}

@keyframes social-rubber {
  0% {
    transform: translateX(0) scale(1, 1) rotate(0);
  }
  18% {
    transform: translateX(-3px) scale(1.18, 0.82) rotate(-8deg);
  }
  42% {
    transform: translateX(5px) scale(0.9, 1.1) rotate(6deg);
  }
  62% {
    transform: translateX(-2px) scale(1.06, 0.96) rotate(-3deg);
  }
  80% {
    transform: translateX(1px) scale(0.98, 1.02) rotate(1deg);
  }
  100% {
    transform: translateX(0) scale(1, 1) rotate(0);
  }
}

@keyframes avatar-rubber {
  0%,
  100% {
    transform: scale(1, 1) rotate(0);
  }
  20% {
    transform: scale(0.94, 1.06) rotate(-2deg);
  }
  45% {
    transform: scale(1.08, 0.94) rotate(2deg);
  }
  65% {
    transform: scale(0.97, 1.03) rotate(-1deg);
  }
  82% {
    transform: scale(1.02, 0.99) rotate(0.5deg);
  }
}

@keyframes tag-wiggle {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-1.5px);
  }
  50% {
    transform: translateX(1.5px);
  }
  75% {
    transform: translateX(-1px);
  }
}

@keyframes heading-nudge {
  0%,
  100% {
    transform: translateX(0);
    color: var(--muted);
  }
  30% {
    transform: translateX(3px);
    color: var(--fg);
  }
  60% {
    transform: translateX(-1px);
    color: var(--fg);
  }
}

@keyframes dot-pulse {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  30% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes dot-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes text-jitter-x {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-1.5px);
  }
  50% {
    transform: translateX(1.5px);
  }
  75% {
    transform: translateX(-1px);
  }
}

@keyframes text-jitter-y {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-2px);
  }
  65% {
    transform: translateY(1.5px);
  }
  85% {
    transform: translateY(-1px);
  }
}

@keyframes no-flicker {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.35);
    text-decoration-color: rgba(255, 255, 255, 0.45);
    transform: translateX(0) rotate(0) scale(1);
  }
  15% {
    color: rgba(255, 255, 255, 0.9);
    text-decoration-color: rgba(255, 255, 255, 0.95);
    transform: translateX(-4px) rotate(-8deg) scale(1.12);
  }
  35% {
    color: rgba(255, 255, 255, 0.65);
    text-decoration-color: rgba(255, 255, 255, 0.75);
    transform: translateX(3px) rotate(7deg) scale(1.06);
  }
  55% {
    color: rgba(255, 255, 255, 0.45);
    text-decoration-color: rgba(255, 255, 255, 0.55);
    transform: translateX(-3px) rotate(-5deg) scale(1.02);
  }
  75% {
    color: rgba(255, 255, 255, 0.38);
    text-decoration-color: rgba(255, 255, 255, 0.48);
    transform: translateX(1.5px) rotate(2deg) scale(1);
  }
}

@keyframes yes-pop {
  0%,
  100% {
    color: var(--fg);
    transform: scale(1) rotate(0);
  }
  30% {
    color: var(--accent);
    transform: scale(1.35) rotate(-2deg);
  }
  60% {
    color: var(--accent);
    transform: scale(0.95) rotate(1deg);
  }
  82% {
    color: var(--fg);
    transform: scale(1.06) rotate(0);
  }
}

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

.identity,
.section,
.outro {
  animation: rise 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.identity {
  animation-delay: 0.05s;
}

.section--what {
  animation-delay: 0.12s;
}

.section--why {
  animation-delay: 0.18s;
}

.outro {
  animation-delay: 0.24s;
}

@media (min-width: 720px) {
  .shell {
    max-width: 856px;
    padding: 36px 48px 40px;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 20px 22px 28px;
  }

  .identity {
    gap: 14px;
    margin-top: 40px;
  }

  .identity__meta {
    gap: 10px;
    margin-top: 8px;
  }

  .real-name {
    font-size: 11px;
  }

  .meta-divider {
    height: 12px;
  }

  .social {
    width: 28px;
    height: 28px;
  }

  .social svg {
    width: 14px;
    height: 14px;
  }

  .avatar-wrap {
    width: 76px;
  }

  .section--what {
    margin-top: 48px;
  }

  .section {
    margin-top: 36px;
  }

  .section__head {
    margin-bottom: 10px;
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  .shell {
    padding: 16px 18px;
  }

  .topbar {
    font-size: 10px;
  }

  .locale {
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
  }

  .identity {
    gap: 12px;
    margin-top: 24px;
  }

  .avatar-wrap {
    width: 64px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 2.6rem);
  }

  .identity__meta {
    gap: 8px;
    margin-top: 6px;
  }

  .real-name {
    font-size: 10px;
  }

  .meta-divider {
    height: 11px;
  }

  .social {
    width: 26px;
    height: 26px;
  }

  .social svg {
    width: 13px;
    height: 13px;
  }

  .section--what {
    margin-top: 26px;
  }

  .section {
    margin-top: 24px;
  }

  .section__head {
    margin-bottom: 8px;
  }

  .section__text {
    font-size: 1.05rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity,
  .section,
  .outro {
    animation: none;
  }

  .section__mark,
  .avatar-wrap::before {
    animation: none;
  }

  .locale,
  .home-link,
  .social,
  .social svg,
  .avatar {
    transition: none;
  }

  .avatar-wrap:hover .avatar,
  .social:hover,
  .locale:hover {
    transform: none;
  }

  a.is-pressed,
  button.is-pressed,
  .home-link.is-pressed,
  .locale.is-pressed,
  .social.is-pressed,
  .avatar-wrap.is-poked,
  .real-name.is-poked,
  .section__head h2.is-poked,
  .section:has(.is-poked) .section__mark::after,
  .section--what .section__text.is-poked,
  .section--why .section__text.is-poked,
  .outro.is-poked s,
  .outro.is-poked .outro__yes {
    animation: none;
  }
}
