:root {
  --ink: #101312;
  --paper: #fffdf6;
  --green: #60d83b;
  --deep: #0d5b35;
  --blue: #59c9ff;
  --yellow: #ffe66d;
  --line: #171717;
  --muted: #eef5e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(16, 19, 18, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(16, 19, 18, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 9% 28%, rgba(255, 230, 109, 0.7), transparent 22%),
    radial-gradient(circle at 86% 72%, rgba(89, 201, 255, 0.36), transparent 28%),
    var(--paper);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  width: min(1160px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 8px 8px 0 var(--line);
  position: relative;
  z-index: 4;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 950;
}

.logo img {
  width: 52px;
  height: 52px;
  border: 2px solid var(--line);
  border-radius: 16px;
  object-fit: cover;
  background: white;
}

.logo span {
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 8px;
}

nav a,
.actions a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: white;
  font-weight: 900;
  box-shadow: 0 5px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

nav a:hover,
.actions a:hover {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--line);
}

.hero {
  width: min(1160px, calc(100% - 28px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: 42px;
  padding: 44px 0 30px;
}

.tag {
  width: fit-content;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--yellow);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 950;
}

h1 {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: clamp(4.3rem, 10vw, 9rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: lowercase;
}

h1 span {
  display: block;
  width: fit-content;
  animation: typeIn 880ms cubic-bezier(.2,.8,.2,1) both;
}

h1 span:nth-child(2) {
  color: var(--deep);
  margin-left: 0.42em;
  animation-delay: 120ms;
}

h1 span:nth-child(3) {
  color: #288ec5;
  animation-delay: 240ms;
}

.ticker {
  width: fit-content;
  margin: 22px 0 0;
  padding: 11px 22px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--green);
  box-shadow: 0 7px 0 var(--line);
  font-size: 1.45rem;
  font-weight: 950;
  transform: rotate(-2deg);
}

.bio {
  max-width: 590px;
  margin: 30px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.48;
  font-weight: 760;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions .primary {
  background: var(--green);
}

.actions .secondary {
  background: var(--blue);
}

.desk {
  min-height: 620px;
  display: grid;
  place-items: center;
  position: relative;
}

.desk::before {
  content: "";
  position: absolute;
  width: min(86vw, 580px);
  aspect-ratio: 1.1;
  border: 2px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(135deg, #dfffd3, #f4fff0 52%, #dff4ff);
  box-shadow: 18px 18px 0 var(--line);
  transform: rotate(3deg);
}

.desk img {
  width: min(86vw, 640px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 18px rgba(16, 19, 18, 0.2));
  animation: laptopFloat 4.4s ease-in-out infinite;
}

.window {
  position: absolute;
  z-index: 3;
  border: 2px solid var(--line);
  background: white;
  box-shadow: 7px 7px 0 var(--line);
}

.window-a {
  left: 6px;
  top: 80px;
  width: 190px;
  padding: 14px;
  border-radius: 18px;
  transform: rotate(-7deg);
  animation: bobLeft 3.5s ease-in-out infinite;
}

.window-a span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--green);
}

.window-a strong {
  display: block;
  margin-top: 18px;
  font-size: 0.95rem;
}

.window-b {
  right: 4px;
  bottom: 104px;
  width: 184px;
  padding: 15px;
  border-radius: 20px;
  transform: rotate(6deg);
  animation: bobRight 3.9s ease-in-out infinite;
}

.window-b small {
  display: block;
  margin-bottom: 14px;
  font-weight: 950;
  text-transform: uppercase;
  color: var(--deep);
}

.bars {
  height: 78px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.bars i {
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 10px 10px 4px 4px;
  background: var(--green);
  animation: bars 1.2s ease-in-out infinite alternate;
}

.bars i:nth-child(1) { height: 32%; }
.bars i:nth-child(2) { height: 56%; animation-delay: 0.1s; }
.bars i:nth-child(3) { height: 76%; animation-delay: 0.2s; }
.bars i:nth-child(4) { height: 95%; animation-delay: 0.3s; }

.marquee {
  overflow: hidden;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--ink);
  color: white;
}

.marquee div {
  display: flex;
  width: max-content;
  animation: slide 17s linear infinite;
}

.marquee span {
  padding: 16px 26px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.lore {
  width: min(1160px, calc(100% - 28px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lore article {
  min-height: 224px;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 8px 8px 0 rgba(16, 19, 18, 0.12);
}

.lore p {
  width: fit-content;
  margin: 0 0 34px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--muted);
  font-weight: 950;
}

.lore h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.lore span {
  display: block;
  line-height: 1.45;
  font-weight: 760;
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(58px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes laptopFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes bobLeft {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(12px) rotate(-4deg); }
}

@keyframes bobRight {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes bars {
  to {
    transform: scaleY(0.72);
    filter: brightness(1.16);
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
  }

  .logo span {
    display: none;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  nav a {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .desk {
    min-height: 450px;
    order: -1;
  }

  .window-a {
    left: 0;
    top: 42px;
    width: 158px;
  }

  .window-b {
    right: 0;
    bottom: 40px;
    width: 150px;
  }

  .lore {
    grid-template-columns: 1fr;
  }
}
