:root {
  --ink: #111111;
  --paper: #fffdf2;
  --surface: #ffffff;
  --text: #111111;
  --sub: #2d2d2d;
  --muted: #5f5f5f;
  --cyan: #9deff4;
  --pink: #ff5ca8;
  --yellow: #fff066;
  --green: #a8f77a;
  --blue: #7fa6ff;
  --violet: #c6a5ff;
  --orange: #ff9f5c;
  --accent: var(--cyan);
  --border: 4px solid var(--ink);
  --border-sm: 3px solid var(--ink);
  --shadow: 10px 10px 0 var(--ink);
  --shadow-sm: 6px 6px 0 var(--ink);
  --shadow-xs: 4px 4px 0 var(--ink);
}

html.light {
  --paper: #f7fff2;
  --surface: #fff8ff;
  --cyan: #7df7ff;
  --pink: #ff78bd;
  --yellow: #ffe95c;
  --green: #95ff73;
  --blue: #8ab7ff;
  --violet: #d2b0ff;
  --orange: #ffb069;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17, 17, 17, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--yellow);
}

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

img {
  display: block;
  max-width: 100%;
}

.display,
h1,
h2 {
  font-family: "Archivo Black", Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.mono {
  font-family: "Space Mono", monospace;
}

.page {
  position: relative;
  z-index: 2;
}

.container {
  width: min(1140px, calc(100% - 34px));
  margin: auto;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 64%, var(--cyan) 64% 73%, transparent 73%),
    linear-gradient(245deg, transparent 0 70%, var(--pink) 70% 80%, transparent 80%),
    linear-gradient(180deg, #f8f5ff 0%, #fffdf2 46%, #eafffb 100%);
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  border: var(--border);
  box-shadow: var(--shadow);
  transform: rotate(-10deg);
}

.bg::before {
  width: 300px;
  height: 130px;
  top: 130px;
  right: -72px;
  background: var(--pink);
}

.bg::after {
  width: 220px;
  height: 220px;
  left: -88px;
  bottom: 90px;
  background:
    radial-gradient(var(--ink) 2px, transparent 3px) 0 0 / 16px 16px,
    var(--yellow);
  transform: rotate(18deg);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cursor,
.cursor-ring {
  position: fixed;
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    width: 12px;
    height: 12px;
    background: var(--ink);
    border: 2px solid var(--paper);
    transform: translate(-50%, -50%) rotate(8deg);
  }

  .cursor-ring {
    display: block;
    width: 36px;
    height: 36px;
    border: var(--border-sm);
    background: rgba(255, 240, 102, .35);
    transform: translate(-50%, -50%);
    transition: width .18s ease, height .18s ease, background .18s ease;
  }
}

nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: min(1140px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface);
  border: var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: none;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-weight: 900;
}

.brand .display {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.theme-btn,
.menu {
  align-items: center;
  border: var(--border-sm);
  border-radius: 0;
  color: var(--ink);
  justify-content: center;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: inline-flex;
  font: 800 12px "Space Mono", monospace;
  padding: 8px 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-links a:nth-child(2n) {
  background: var(--cyan);
}

.nav-links a:nth-child(3n) {
  background: var(--yellow);
}

.theme-btn {
  background: var(--pink);
}

.nav-links a:hover,
.nav-links a.active,
.theme-btn:hover,
.menu:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.menu {
  display: none;
  min-width: 72px;
  background: var(--yellow);
}

section {
  position: relative;
  padding: 108px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: 70px;
  top: -70px;
  background: var(--green);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  transform: rotate(20deg);
  z-index: -1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-family: "Space Mono", monospace;
  font-size: .82rem;
  font-weight: 700;
  transform: rotate(-1deg);
}

.dot {
  width: 12px;
  height: 12px;
  margin-right: 16px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 16px 0 0 var(--pink);
}

h1 {
  max-width: 790px;
  margin: 0 0 18px;
  font-size: 5.6rem;
  line-height: .92;
  text-transform: uppercase;
}

.gradient {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 0 .16em .08em;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border);
  box-shadow: 12px 12px 0 var(--pink);
  transform: rotate(-1deg);
}

.typing {
  min-height: 34px;
  width: fit-content;
  max-width: 100%;
  margin: 24px 0 20px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font: 700 1rem "Space Mono", monospace;
}

.caret {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  margin-left: 4px;
  background: var(--pink);
  vertical-align: -.2em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--sub);
  font-size: 1.05rem;
  font-weight: 600;
}

.lead a,
.info-row a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-sm);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn::after {
  content: ">";
  margin-left: 9px;
  font-family: "Space Mono", monospace;
}

.btn.primary {
  background: var(--cyan);
}

.btn:hover {
  transform: translate(5px, 5px);
  box-shadow: 1px 1px 0 var(--ink);
  background: var(--yellow);
}

.hero-board {
  position: relative;
  min-height: 450px;
  padding: 22px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border);
  box-shadow: 16px 16px 0 var(--ink);
  transform: rotate(1.2deg);
}

.hero-board::before,
.hero-board::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
}

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

.hero-board::before {
  width: 84px;
  height: 84px;
  right: -28px;
  top: -28px;
  background: var(--pink);
  transform: rotate(14deg);
}

.hero-board::after {
  width: 96px;
  height: 38px;
  left: -26px;
  bottom: 36px;
  background: var(--green);
  transform: rotate(-12deg);
}

.board-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 22px;
  background: var(--surface);
  border: var(--border-sm);
}

.board-top span {
  width: 13px;
  height: 13px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.board-top span:nth-child(2) {
  background: var(--yellow);
}

.board-top span:nth-child(3) {
  background: var(--green);
}

.board-top strong {
  margin-left: auto;
  font-family: "Space Mono", monospace;
  font-size: .78rem;
}

.avatar-lockup {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.avatar-pixel {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  color: var(--ink);
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, .4) 38% 50%, transparent 50%),
    var(--cyan);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 4.1rem;
}

.avatar-lockup small {
  display: inline-block;
  padding: 4px 8px;
  margin-bottom: 8px;
  color: var(--ink);
  background: var(--pink);
  border: 2px solid var(--ink);
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.avatar-lockup h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.quest-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.quest-list span {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-weight: 900;
}

.quest-list span:nth-child(2) {
  background: var(--cyan);
}

.quest-list span:nth-child(3) {
  background: var(--violet);
}

.mini-console {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.screen-lines {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--ink);
  border: 3px solid var(--ink);
}

.screen-lines span {
  height: 9px;
  background: var(--green);
}

.screen-lines span:nth-child(2) {
  width: 72%;
  background: var(--cyan);
}

.screen-lines span:nth-child(3) {
  width: 48%;
  background: var(--pink);
}

.console-buttons {
  display: flex;
  gap: 9px;
}

.console-buttons i {
  width: 26px;
  height: 26px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.glass {
  position: relative;
  color: var(--ink);
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--cyan)) 30%, transparent) 0 34%, transparent 34%);
}

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

.glass:hover {
  transform: translate(5px, 5px);
  box-shadow: 2px 2px 0 var(--ink);
}

.stat {
  min-height: 126px;
  display: grid;
  place-items: center;
  padding: 20px 14px;
  text-align: center;
  background: color-mix(in srgb, var(--c, var(--cyan)) 58%, white);
}

.stat strong {
  display: block;
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ticker {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  overflow: hidden;
  color: var(--ink);
  background: var(--pink);
  border-block: var(--border);
  font: 900 1.15rem "Archivo Black", Inter, sans-serif;
  text-transform: uppercase;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.ticker span::after {
  content: "/";
}

.section-head {
  margin-bottom: 42px;
}

.section-head.center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head.center .label {
  margin-right: auto;
  margin-left: auto;
}

.section-head p {
  margin: 12px auto 0;
  color: var(--sub);
  font-weight: 700;
}

.label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-family: "Space Mono", monospace;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.label.pink {
  background: var(--pink);
}

.label.blue {
  background: var(--blue);
}

.label.violet {
  background: var(--violet);
}

.label.green {
  background: var(--green);
}

h2 {
  margin: 16px 0 0;
  font-size: 3.15rem;
  line-height: 1.03;
  text-transform: uppercase;
}

.two {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 30px;
  align-items: start;
}

.card {
  padding: 28px;
}

.card p {
  margin: 0;
  color: var(--sub);
  font-weight: 650;
}

.card p + p {
  margin-top: 16px;
}

.text-mark {
  padding: 0 4px;
  color: var(--ink);
  background: var(--yellow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.text-mark.blue {
  background: var(--cyan);
}

.info {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-family: "Space Mono", monospace;
  font-size: .86rem;
}

.info-row b {
  color: var(--ink);
}

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

.mini {
  min-height: 235px;
  background: color-mix(in srgb, var(--c, var(--cyan)) 46%, white);
}

.mini h3,
.skill h3,
.project h3,
.exp h3,
.card > h3 {
  margin: 0;
  font-family: "Archivo Black", Inter, sans-serif;
  letter-spacing: 0;
  line-height: 1.1;
}

.mini h3 {
  margin-top: 16px;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.mini p {
  margin-top: 10px;
  font-size: .95rem;
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-family: "Space Mono", monospace;
  font-weight: 900;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: color-mix(in srgb, var(--c, var(--cyan)) 38%, white);
}

.project-img {
  position: relative;
  height: 254px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: var(--border);
}

.project-img::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 3px solid var(--ink);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.04);
  transition: transform .32s ease;
}

.project:hover .project-img img {
  transform: scale(1.06) rotate(-1deg);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
}

.project-body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.project-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.project h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
}

.project small,
.company {
  display: inline-block;
  margin-top: 6px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.project p,
.exp p {
  margin: 0;
  color: var(--sub);
  font-weight: 650;
}

.project .btn {
  min-height: 38px;
  padding: 9px 12px;
  background: var(--surface);
  pointer-events: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 .75rem "Space Mono", monospace;
}

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 26px;
  width: 9px;
  background: var(--pink);
  border: 3px solid var(--ink);
}

.exp {
  margin-left: 72px;
  background: color-mix(in srgb, var(--c, var(--cyan)) 34%, white);
}

.exp::after {
  content: "";
  position: absolute;
  top: 34px;
  left: -58px;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
  transform: rotate(12deg);
}

.exp header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.exp h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
}

.exp small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.check {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check li {
  position: relative;
  padding-left: 28px;
  color: var(--sub);
  font-weight: 650;
}

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 14px;
  height: 14px;
  background: var(--c, var(--cyan));
  border: 2px solid var(--ink);
  transform: rotate(10deg);
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill {
  min-height: 180px;
  background: color-mix(in srgb, var(--c, var(--cyan)) 38%, white);
}

.skill h3 {
  margin-bottom: 18px;
  font-size: 1rem;
  text-transform: uppercase;
}

.meter-panel {
  margin: 20px 0;
  padding: 16px;
  background: var(--surface);
  border: var(--border-sm);
  box-shadow: var(--shadow-xs);
}

.meter-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.meter-panel strong {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 1.8rem;
}

.meter {
  height: 20px;
  margin-top: 12px;
  background: var(--paper);
  border: 3px solid var(--ink);
}

.meter span {
  display: block;
  width: 91%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 10px, var(--pink) 10px 20px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px;
  background: color-mix(in srgb, var(--c, var(--cyan)) 38%, white);
}

.contact-card .icon {
  flex: none;
}

.contact-card b {
  display: block;
  margin-bottom: 3px;
  font-family: "Space Mono", monospace;
  font-size: .78rem;
  text-transform: uppercase;
}

.contact-card span span {
  color: var(--sub);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cta {
  margin-top: 34px;
  padding: 42px 30px;
  text-align: center;
  background: var(--yellow);
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  max-width: 650px;
  margin: 14px auto 26px;
  color: var(--sub);
  font-weight: 700;
}

.cta-actions {
  justify-content: center;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 36px 0 0;
  color: var(--sub);
  font-family: "Space Mono", monospace;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  min-width: 150px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  font: 900 .78rem "Space Mono", monospace;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sound-toggle:hover {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}

.sound-toggle.is-playing {
  background: var(--green);
}

.sound-toggle.is-error {
  background: var(--pink);
}

.sound-icon {
  display: grid;
  width: 40px;
  height: 34px;
  place-items: center;
  flex: none;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  font-size: .7rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .two {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: auto;
    transform: none;
  }

  .stats,
  .skills,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  nav {
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .menu {
    display: inline-flex;
  }

  .mobile-open .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: -4px;
    right: -4px;
    display: grid;
    padding: 12px;
    background: var(--surface);
    border: var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links a,
  .theme-btn {
    justify-content: center;
    text-align: center;
  }

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .projects,
  .pill-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .exp::after {
    display: none;
  }

  .exp {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 24px 24px;
  }

  .container {
    width: min(100% - 24px, 1140px);
  }

  nav {
    top: 10px;
    width: calc(100% - 36px);
    box-shadow: var(--shadow-sm);
  }

  .brand .display {
    display: none;
  }

  section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 124px;
  }

  .hero-copy::before {
    display: none;
  }

  h1 {
    font-size: 3.05rem;
  }

  .gradient {
    box-shadow: var(--shadow-sm);
  }

  .lead {
    font-size: .98rem;
  }

  .avatar-lockup,
  .mini-console,
  .stats,
  .skills,
  .contact-grid,
  .info-row {
    grid-template-columns: 1fr;
  }

  .hero-board {
    padding: 16px;
    box-shadow: var(--shadow-sm);
  }

  .avatar-pixel {
    width: 96px;
    height: 96px;
    font-size: 3.2rem;
  }

  .project-img {
    height: 210px;
  }

  .project-top,
  .exp header {
    display: grid;
  }

  .ticker {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: .92rem;
  }

  .ticker span {
    white-space: normal;
  }

  .sound-toggle {
    right: 14px;
    bottom: 14px;
    min-width: auto;
    padding: 10px;
  }

  .sound-text {
    display: none;
  }
}
