:root {
  --ink: #11131c;
  --muted-ink: #323746;
  --paper: rgba(255, 255, 255, 0.9);
  --paper-strong: rgba(255, 255, 255, 0.96);
  --sky-a: #b7f0ff;
  --sky-b: #40c3ff;
  --sky-c: #0c95df;
  --pink: #ff3c99;
  --yellow: #fff04c;
  --green: #67ff86;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  --tight-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #080d17;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #080d17;
}

.bg-image,
.bg-compression,
.bg-grain {
  position: absolute;
  inset: 0;
}

.bg-image {
  inset: -20px;
  background-image: url("bg.jpg");
  background-position: center;
  background-size: cover;
  filter: blur(2.6px) saturate(0.72) contrast(0.84) brightness(0.72);
  transform: scale(1.045);
}

.bg-compression {
  opacity: 0.88;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.2), rgba(5, 10, 18, 0.58)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 60, 153, 0.07) 0,
      rgba(255, 60, 153, 0.07) 2px,
      transparent 2px,
      transparent 22px,
      rgba(64, 195, 255, 0.06) 22px,
      rgba(64, 195, 255, 0.06) 24px,
      transparent 24px,
      transparent 48px
    );
}

.bg-grain {
  inset: -18%;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  animation: grain-shift 650ms steps(2, end) infinite;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(30px, 6vw, 56px) clamp(18px, 5vw, 50px) clamp(26px, 5vw, 44px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 4px solid rgba(4, 80, 123, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 22%),
    linear-gradient(135deg, var(--sky-a) 0%, var(--sky-b) 45%, #90e9ff 46%, var(--sky-c) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotate(-0.35deg);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.36) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  mix-blend-mode: screen;
}

.banner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--sky-b));
}

.banner > * {
  position: relative;
  z-index: 1;
}

.banner-code,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.banner-code {
  margin: 0 0 16px;
  padding: 8px 11px;
  color: #083b58;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 -1px 0 rgba(0, 81, 126, 0.12);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.2rem, 10.5vw, 7.4rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 0.86;
  text-shadow: 0 3px 0 rgba(4, 89, 132, 0.22), 0 14px 28px rgba(4, 50, 82, 0.22);
}

.subtitle {
  max-width: 720px;
  margin: 18px auto 0;
  color: #063047;
  font-size: clamp(0.94rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}

.card,
.micro-card,
.social-link {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--tight-shadow);
  backdrop-filter: blur(8px);
}

.card {
  padding: clamp(18px, 4vw, 28px);
}

.bio-card {
  margin-bottom: 16px;
  transform: rotate(0.25deg) translateX(3px);
}

.section-label {
  padding: 8px 10px;
  color: #ffffff;
  background: #11131c;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.1);
}

.quote-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.punchline {
  margin: 0;
  padding: 14px 16px;
  border-left: 6px solid var(--pink);
  border-radius: 6px;
  color: #11131c;
  background: linear-gradient(90deg, rgba(17, 19, 28, 0.07), rgba(64, 195, 255, 0.08));
  font-size: clamp(1.2rem, 3.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.08;
}

.punchline:nth-child(2) {
  border-left-color: var(--yellow);
  transform: rotate(-0.22deg) translateX(6px);
}

.punchline:nth-child(3) {
  border-left-color: var(--green);
  transform: rotate(0.2deg) translateX(-4px);
}

.punchline:nth-child(4) {
  border-left-color: var(--sky-b);
  transform: rotate(-0.15deg) translateX(3px);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.micro-card {
  min-height: 178px;
  padding: 20px;
  transform: rotate(-0.28deg);
}

.micro-card-alt {
  transform: rotate(0.32deg) translateY(4px);
}

.micro-card h2,
.links-heading h2 {
  margin: 15px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 0.95;
}

.micro-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.links-section {
  margin-top: 4px;
}

.links-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.links-heading h2 {
  max-width: 650px;
  margin: 0;
  text-align: right;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.social-link {
  position: relative;
  min-height: 150px;
  padding: 17px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--sky-b));
}

.social-link:nth-child(1) {
  transform: rotate(-0.28deg);
}

.social-link:nth-child(2) {
  transform: rotate(0.24deg) translateY(5px);
}

.social-link:nth-child(3) {
  transform: rotate(-0.18deg) translateY(1px);
}

.social-link:nth-child(4) {
  transform: rotate(0.32deg) translateY(4px);
}

.platform,
.social-note {
  display: block;
  color: var(--muted-ink);
  font-weight: 700;
  line-height: 1.2;
}

.platform {
  margin-top: 7px;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
}

.social-link strong {
  display: block;
  margin: 18px 0 10px;
  color: #11131c;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 0.95;
}

.social-note {
  font-size: 0.86rem;
}

.footer-line {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) {
  .social-link:hover {
    background: var(--paper-strong);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(-5px) scale(1.025);
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(680px, calc(100% - 24px));
    padding-top: 18px;
  }

  .status-grid,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .links-heading {
    display: grid;
    align-items: flex-start;
  }

  .links-heading h2 {
    text-align: left;
  }
}

@media (max-width: 540px) {
  body {
    letter-spacing: 0.015em;
  }

  .banner {
    padding: 28px 14px 26px;
  }

  .status-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .micro-card,
  .social-link {
    min-height: 134px;
  }

  .punchline:nth-child(n),
  .bio-card,
  .micro-card,
  .micro-card-alt,
  .social-link:nth-child(n) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 1%);
  }
  50% {
    transform: translate(1%, -2%);
  }
  75% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}
