:root {
  color-scheme: light;
  --paper: #f7f8f3;
  --paper-2: #ffffff;
  --ink: #141414;
  --ink-soft: #4d4b47;
  --line: rgba(20, 20, 20, 0.14);
  --line-strong: rgba(20, 20, 20, 0.32);
  --accent: #f2553d;
  --accent-2: #00a67e;
  --accent-3: #e5c100;
  --accent-4: #234ce8;
  --dark: #171713;
  --dark-soft: #d8ddd3;
  --shadow: 0 24px 80px rgba(20, 20, 20, 0.16);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 76px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
}

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

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 243, 0.74);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled,
.site-header.solid {
  border-bottom-color: var(--line);
  background: rgba(247, 248, 243, 0.92);
}

.brand-mark {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 700 0.86rem/1 Space Grotesk, sans-serif;
  letter-spacing: 0;
  box-shadow: 6px 6px 0 var(--accent-3);
}

.brand-mark span {
  transform: translateY(1px);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.62);
}

.main-nav a {
  min-width: 82px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.icon-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.icon-link {
  width: 48px;
  aspect-ratio: 1;
  background: var(--paper-2);
  color: var(--ink);
}

.button {
  padding: 0 18px;
}

.button svg,
.icon-link svg,
.tile svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--accent);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button:hover,
.icon-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent-2);
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(28px, 6vw, 92px);
  min-height: calc(86svh - var(--header-height));
  overflow: hidden;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 72px) clamp(42px, 5vw, 64px);
}

.motion-field,
.hero-noise,
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-noise {
  z-index: -2;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(242, 85, 61, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(0, 166, 126, 0.16), transparent 28%),
    radial-gradient(circle at 55% 76%, rgba(35, 76, 232, 0.11), transparent 34%);
}

.hero-grid {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08));
}

.hero-copy {
  min-width: 0;
  max-width: 920px;
}

.site-header > *,
.hero-section > *,
.split-layout > *,
.game-stage > *,
.resume-layout > *,
.resume-title-row > * {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.entry-meta {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: Space Grotesk, Inter, sans-serif;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 11.2vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: #2c2c28;
  font-size: clamp(1.08rem, 2vw, 1.46rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.signal-panel {
  align-self: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 10px 10px 0 var(--accent-4);
  transform: rotate(1.25deg);
}

.signal-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  font-weight: 800;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.ticker-section {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--accent-3);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 14px 0;
  color: var(--ink);
  font: 800 0.9rem/1 Space Grotesk, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  position: relative;
  white-space: nowrap;
}

.ticker-track span::after {
  position: absolute;
  right: -23px;
  color: var(--accent);
  content: "/";
}

.content-band {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.content-band > *,
.resume-hero,
.resume-layout {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--accent);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.split-layout h2,
.resume-title-row h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.section-heading {
  display: grid;
  max-width: 860px;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 6vw, 5.1rem);
  line-height: 0.96;
}

.section-lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.68;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p,
.resume-hero p,
.resume-section p,
.resume-entry li,
.plain-list,
.timeline-item p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.tile-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  min-height: 240px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper-2);
  box-shadow: 8px 8px 0 rgba(20, 20, 20, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile:nth-child(2) {
  box-shadow: 8px 8px 0 rgba(0, 166, 126, 0.28);
}

.tile:nth-child(3) {
  box-shadow: 8px 8px 0 rgba(242, 85, 61, 0.28);
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 0 rgba(35, 76, 232, 0.24);
}

.tile svg {
  margin-bottom: 30px;
  color: var(--accent-4);
}

.tile h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.tile p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.projects-band {
  background:
    linear-gradient(135deg, rgba(0, 166, 126, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(35, 76, 232, 0.07), transparent 38%),
    var(--paper);
}

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

.project-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 8px 8px 0 rgba(20, 20, 20, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.project-card:nth-child(2n) {
  box-shadow: 8px 8px 0 rgba(0, 166, 126, 0.25);
}

.project-card:nth-child(3n) {
  box-shadow: 8px 8px 0 rgba(242, 85, 61, 0.24);
}

.project-card:hover {
  transform: translateY(-5px);
  background: var(--paper-2);
  box-shadow: 12px 12px 0 rgba(35, 76, 232, 0.22);
}

.project-card-top,
.project-link,
.footer-links {
  display: flex;
  align-items: center;
}

.project-card-top {
  justify-content: space-between;
  gap: 16px;
}

.project-icon {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--accent-3);
}

.project-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.35;
}

.project-link {
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-link svg {
  width: 15px;
  height: 15px;
}

.project-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.05;
}

.project-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.project-tags span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(229, 193, 0, 0.14);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.playable-card {
  background:
    linear-gradient(160deg, rgba(229, 193, 0, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.playable-card .project-link {
  color: var(--accent-4);
}

.game-page {
  min-height: calc(100svh - var(--header-height));
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(242, 85, 61, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(0, 166, 126, 0.08), transparent 38%),
    var(--paper);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.game-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(100%, 1340px);
  min-height: calc(100svh - var(--header-height));
  margin-inline: auto;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 5vw, 72px);
}

.game-copy {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.game-copy h1 {
  max-width: 9.6ch;
  margin-bottom: 0;
  overflow-wrap: break-word;
  font-size: clamp(3rem, 6.3vw, 7rem);
  line-height: 0.86;
  text-wrap: balance;
}

.ttt-stage .game-copy h1 {
  max-width: 8.6ch;
  font-size: clamp(2.8rem, 5.8vw, 6.2rem);
}

.game-lede {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.65;
}

.game-actions,
.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-console {
  display: grid;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(16px, 2.6vw, 28px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 12px 12px 0 rgba(20, 20, 20, 0.12);
}

.checkers-console {
  box-shadow: 12px 12px 0 rgba(242, 85, 61, 0.24);
}

.ttt-console {
  box-shadow: 12px 12px 0 rgba(35, 76, 232, 0.2);
}

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

.status-pill {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(247, 248, 243, 0.78);
}

.status-pill span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill strong {
  overflow-wrap: anywhere;
  font-family: Space Grotesk, Inter, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1;
}

.game-message {
  margin: 0;
  border-left: 5px solid var(--accent-2);
  padding: 10px 0 10px 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.game-button[disabled],
.ttt-cell[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
}

.checkers-board-wrap {
  display: grid;
  place-items: center;
}

.checkers-board {
  display: grid;
  width: min(100%, 620px);
  aspect-ratio: 1;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 18px 46px rgba(20, 20, 20, 0.18);
}

.checker-square {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.checker-square.light {
  background: #f0eadb;
}

.checker-square.dark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent),
    #242620;
}

.checker-square.is-last {
  box-shadow: inset 0 0 0 4px rgba(229, 193, 0, 0.8);
}

.checker-square.is-selected {
  box-shadow: inset 0 0 0 4px var(--accent-3);
}

.checker-square.is-legal::after {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 5px rgba(229, 193, 0, 0.22);
  content: "";
}

.checker-square.is-capture::after {
  width: 56%;
  border: 3px solid var(--accent);
  background: rgba(242, 85, 61, 0.1);
}

.checker-piece {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(20, 20, 20, 0.42);
  border-radius: 50%;
  color: var(--ink);
  font-family: Space Grotesk, Inter, sans-serif;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 -8px 0 rgba(20, 20, 20, 0.16),
    0 8px 0 rgba(20, 20, 20, 0.22);
  animation: piece-pop 180ms ease;
}

.checker-piece.red {
  background: var(--accent);
  color: var(--paper);
}

.checker-piece.blue {
  background: var(--accent-4);
  color: var(--paper);
}

.checker-piece.king {
  border-color: var(--accent-3);
  box-shadow:
    inset 0 -8px 0 rgba(20, 20, 20, 0.16),
    0 0 0 5px rgba(229, 193, 0, 0.28),
    0 8px 0 rgba(20, 20, 20, 0.22);
}

.ttt-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  perspective: 1200px;
}

.ttt-layer-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(247, 248, 243, 0.9);
  box-shadow: 7px 7px 0 rgba(20, 20, 20, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ttt-layer-card:nth-child(1) {
  transform: translateY(18px) rotate(-1deg);
}

.ttt-layer-card:nth-child(2) {
  box-shadow: 7px 7px 0 rgba(0, 166, 126, 0.22);
}

.ttt-layer-card:nth-child(3) {
  transform: translateY(-18px) rotate(1deg);
  box-shadow: 7px 7px 0 rgba(242, 85, 61, 0.22);
}

.ttt-layer-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(35, 76, 232, 0.2);
}

.ttt-layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ttt-layer-header h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.ttt-layer-header span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.ttt-cell {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  font-family: Space Grotesk, Inter, sans-serif;
  font-size: clamp(1.55rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.ttt-cell:hover:not([disabled]) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent-3);
}

.ttt-cell.is-x {
  background: rgba(35, 76, 232, 0.12);
  color: var(--accent-4);
}

.ttt-cell.is-o {
  background: rgba(242, 85, 61, 0.14);
  color: var(--accent);
}

.ttt-cell.is-last {
  box-shadow: inset 0 0 0 4px rgba(229, 193, 0, 0.5);
}

.ttt-cell.is-winning {
  background: var(--accent-3);
  color: var(--ink);
  animation: win-pulse 760ms ease-in-out infinite alternate;
}

.dark-band {
  background: var(--dark);
  color: var(--paper);
}

.dark-band .section-kicker,
.dark-band .timeline-item span {
  color: var(--accent-3);
}

.dark-band .timeline-item {
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-band .timeline-item p {
  color: var(--dark-soft);
}

.timeline-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.timeline-item span {
  font-family: Space Grotesk, Inter, sans-serif;
  font-weight: 800;
}

.timeline-item p {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--ink);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.resume-page {
  padding-top: clamp(28px, 5vw, 64px);
}

.resume-hero {
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 72px) clamp(38px, 6vw, 78px);
}

.resume-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
}

.resume-title-row h1 {
  max-width: 9ch;
  margin-bottom: 20px;
}

.resume-title-row p {
  max-width: 760px;
  margin-bottom: 0;
}

.resume-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  padding: 0 clamp(20px, 5vw, 72px) clamp(64px, 8vw, 110px);
}

.resume-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  display: grid;
  gap: 18px;
}

.sidebar-block {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper-2);
  box-shadow: 7px 7px 0 rgba(0, 166, 126, 0.22);
}

.sidebar-block h2,
.resume-section h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
}

.plain-list,
.tag-list,
.resume-entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list {
  display: grid;
  gap: 11px;
}

.plain-list a {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tag-list,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list li,
.skill-cloud span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.resume-main {
  display: grid;
  gap: 22px;
}

.resume-section {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.resume-section p:last-child {
  margin-bottom: 0;
}

.resume-entry {
  display: grid;
  gap: 20px;
}

.resume-entry + .resume-entry {
  margin-top: 30px;
}

.resume-entry h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.entry-meta {
  margin-bottom: 0;
  color: var(--accent);
}

.resume-entry ul {
  display: grid;
  gap: 10px;
}

.resume-entry li {
  position: relative;
  padding-left: 24px;
}

.resume-entry li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  content: "";
}

.resume-entry.compact {
  gap: 12px;
}

.resume-entry.compact p {
  margin-bottom: 0;
}

.skill-groups {
  display: grid;
  gap: 18px;
}

.skill-group {
  display: grid;
  gap: 10px;
}

.skill-group h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes piece-pop {
  from {
    transform: scale(0.82);
  }
  to {
    transform: scale(1);
  }
}

@keyframes win-pulse {
  from {
    box-shadow: inset 0 0 0 2px rgba(20, 20, 20, 0.28);
  }
  to {
    box-shadow: inset 0 0 0 6px rgba(20, 20, 20, 0.2);
  }
}

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

  .motion-field {
    display: none;
  }
}

@media (max-width: 920px) {
  .hero-section,
  .split-layout,
  .game-stage,
  .resume-layout,
  .resume-title-row {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .signal-panel {
    max-width: 420px;
    transform: none;
  }

  .three-up {
    grid-template-columns: 1fr;
  }

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

  .game-stage {
    align-items: start;
    min-height: auto;
  }

  .game-copy h1 {
    max-width: 12ch;
  }

  .ttt-layers {
    grid-template-columns: 1fr;
  }

  .ttt-layer-card,
  .ttt-layer-card:nth-child(1),
  .ttt-layer-card:nth-child(3),
  .ttt-layer-card:hover {
    transform: none;
  }

  .tile {
    min-height: 0;
  }

  .resume-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-title-row .button {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  body {
    background-size: 42px 42px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding-inline: 16px;
  }

  .main-nav {
    justify-self: end;
    max-width: 100%;
    gap: 4px;
    padding: 4px;
  }

  .main-nav a {
    min-width: 0;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .icon-link {
    display: none;
  }

  .brand-mark {
    width: 44px;
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-copy h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .hero-lede {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: calc(100% - 8px);
  }

  .button {
    justify-content: center;
  }

  .signal-row {
    grid-template-columns: 72px 1fr;
    padding-inline: 14px;
  }

  .signal-panel {
    max-width: calc(100% - 10px);
  }

  .split-layout h2,
  .section-heading h2,
  .resume-title-row h1 {
    font-size: clamp(2.25rem, 13vw, 3.9rem);
  }

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

  .project-card {
    min-height: 0;
  }

  .game-stage {
    padding-top: 34px;
  }

  .game-copy h1 {
    font-size: clamp(2.55rem, 13vw, 4.6rem);
  }

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

  .game-actions,
  .game-toolbar {
    display: grid;
  }

  .resume-sidebar {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
