:root {
  --ink: #10005c;
  --ink-strong: #050029;
  --hot-pink: #ff1493;
  --laser-blue: #00f5ff;
  --acid-green: #6dff00;
  --banana: #fff200;
  --orange: #ff7b00;
  --paper: #fffbd1;
  --panel: #e8e8e8;
  --shadow: #4b3f2f;
  --visited: #7100a8;
  --blueprint: #07145f;
  --cream: #fff8c7;
  --newsprint: #f5f0d2;
  --max-width: 1180px;
  --hand-cursor: url("assets/pointing-right-finger.svg") 31 11, pointer;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff200' stroke='%23050029' stroke-width='2' d='M4 2l20 14-9 2 5 9-4 2-5-9-7 6z'/%3E%3C/svg%3E") 4 2, auto;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #00e7ff 0%, #fff200 35%, #ff8bd8 68%, #72ff00 100%);
  background-attachment: fixed;
}

a {
  color: #001bff;
  cursor: var(--hand-cursor);
  font-weight: 800;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  background: var(--banana);
  color: #000;
  outline: 3px solid var(--hot-pink);
  text-decoration: none;
}

.skip-link {
  background: #000;
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -6rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
}

.mode-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.mode-toggle {
  padding: 0.55rem 0.85rem;
  border-width: 4px;
  border-style: outset;
  border-color: #fff #555 #555 #fff;
  background: linear-gradient(180deg, var(--banana), var(--orange));
  color: #0000ee;
  cursor: var(--hand-cursor);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.mode-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 3px outset #fff;
  background: var(--laser-blue);
  color: #000;
  cursor: help;
  font-family: "Courier New", monospace;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.mode-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 10;
  width: min(19rem, calc(100vw - 2rem));
  padding: 0.65rem;
  border: 4px ridge var(--banana);
  background: #000;
  color: var(--acid-green);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(-0.25rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.mode-help:hover .mode-tooltip,
.mode-help:focus .mode-tooltip,
.mode-help:focus-visible .mode-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.mode-toggle:hover,
.mode-toggle:focus-visible {
  filter: saturate(1.25);
  outline: 3px solid var(--hot-pink);
}

.page-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(calc(100% - 1.25rem), var(--max-width));
  margin: 0.65rem auto 1rem;
  border: 8px ridge var(--hot-pink);
  outline: 4px double var(--laser-blue);
  outline-offset: 5px;
  background: rgba(255, 251, 209, 0.92);
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.45),
    0 0 0 3px var(--banana),
    0 0 30px rgba(255, 20, 147, 0.45);
}

.site-header {
  padding: 0.8rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, #001bff, #ff1493, #ff7b00);
  border-bottom: 6px groove var(--banana);
}

.title-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  border: 6px double #fff;
  color: #fff;
  text-align: center;
  text-shadow: 3px 3px 0 #000;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(0deg, rgba(0, 245, 255, 0.10) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, rgba(16, 0, 92, 0.92), rgba(0, 0, 0, 0.75));
}

.title-card::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 3px groove var(--cream);
  box-shadow:
    inset 5px 5px 0 rgba(255, 255, 255, 0.18),
    inset -5px -5px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

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

.pretitle,
.subtitle {
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: 800;
}

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

h1,
h2,
h3,
p,
li,
td,
th,
caption,
figcaption,
.pretitle,
.subtitle,
.authors,
.fine-print,
.tag-strip,
.profile-tags-label,
.keyword-cloud span {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%2300f5ff' stroke='%23050029' stroke-width='2' d='M13 3h6v3h-2v20h2v3h-6v-3h2V6h-2z'/%3E%3Cpath stroke='%23fff200' stroke-width='2' d='M10 6h12M10 26h12'/%3E%3C/svg%3E") 16 16, text;
}

h1 {
  display: inline-block;
  margin: 0.2rem 0 0.35rem;
  color: var(--banana);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow:
    2px 2px 0 #000,
    -2px 2px 0 #000,
    2px -2px 0 #000,
    -2px -2px 0 #000,
    0 0 4px #fff,
    0 0 10px var(--cream),
    0 0 18px rgba(0, 245, 255, 0.62),
    0 0 30px rgba(255, 20, 147, 0.58);
  animation: title-neon 3.2s steps(2, end) infinite;
}

.subtitle {
  max-width: 48rem;
  margin-inline: auto;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.ticker {
  display: block;
  margin-top: 0.75rem;
  padding: 0.45rem;
  border: 4px inset var(--banana);
  background: #000;
  color: var(--acid-green);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-shadow: 0 0 8px var(--acid-green);
}

.layout-table {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
  background:
    linear-gradient(90deg, rgba(255, 20, 147, 0.12), rgba(0, 245, 255, 0.12)),
    var(--paper);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.panel,
.window {
  position: relative;
  border-width: 4px;
  border-style: outset;
  border-color: #fff #777 #777 #fff;
  background: var(--panel);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.panel::after,
.window::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(5, 0, 41, 0.24);
  pointer-events: none;
}

.panel:hover,
.window:hover {
  box-shadow:
    7px 7px 0 rgba(0, 0, 0, 0.38),
    0 0 20px rgba(0, 245, 255, 0.26),
    0 0 28px rgba(255, 20, 147, 0.18);
}

.panel {
  padding: 0.75rem;
}

.panel h2 {
  margin: 0 0 0.6rem;
  padding: 0.25rem;
  border: 3px outset #d8d8d8;
  background: var(--ink);
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.nav-panel a,
.contact-panel a {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0.4rem 0;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  border: 3px outset #fff;
  background: var(--banana);
  color: #0000ee;
  overflow-wrap: anywhere;
}

.nav-panel a::before,
.contact-panel a::before {
  content: ">";
  position: absolute;
  left: 0.35rem;
  color: var(--hot-pink);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.contact-icon {
  display: none;
}

.contact-panel span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-panel a:hover,
.contact-panel a:hover,
.big-button:hover {
  filter: saturate(1.35);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.42);
}

.counter {
  padding: 0.4rem;
  border: 4px inset #fff;
  background: #000;
  color: #ff2e2e;
  font-family: "Courier New", monospace;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 0 10px #ff2e2e;
}

.fine-print {
  color: #3b315e;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
}

.stamp-panel {
  background: #fff;
  text-align: center;
}

.construction {
  margin: 0.2rem 0 0.5rem;
  padding: 0.4rem;
  border: 3px dashed #000;
  background: var(--banana);
  color: #cf0000;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.main-content {
  display: grid;
  gap: 0.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-photo-track, minmax(220px, 0.42fr));
  gap: 0.9rem;
  align-items: start;
}

.hero-grid > .about-window,
.hero-grid > .photo-card {
  min-height: var(--hero-card-height, 0);
}

.about-window {
  display: flex;
  flex-direction: column;
}

.about-window .window-body {
  flex: 1;
}

.window {
  min-width: 0;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 3px solid #777;
  background: #000080;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 900;
  text-shadow: 1px 1px 0 #000;
  box-shadow:
    inset 0 2px 0 #7fc9ff,
    inset 0 -2px 0 #00003d;
}

.window-body {
  padding: clamp(0.9rem, 2vw, 1.25rem);
  background:
    linear-gradient(90deg, rgba(255, 20, 147, 0.12), transparent 4rem calc(100% - 4rem), rgba(109, 255, 0, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    #fffbd1;
}

.window-body h2 {
  margin: 0.15rem 0 0.6rem;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--hot-pink);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}

.window-body h3 {
  margin: 0 0 0.4rem;
  color: #b0005a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.window-body p,
.window-body li,
.resume-table,
.stats-table {
  font-size: 1rem;
  line-height: 1.55;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.5rem;
  border: 3px outset #fff;
  background: var(--acid-green);
  color: #000;
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--hot-pink);
  transform: rotate(-1deg);
}

.boring-mode .research-window .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #334155;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.08);
  transform: none;
}

.boring-mode .research-window .section-kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #64748b;
  box-shadow: none;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.keyword-cloud span,
.tag-strip {
  display: inline-block;
  padding: 0.28rem 0.5rem;
  border: 2px inset #d8faff;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.24), transparent 42%),
    #050029;
  color: var(--acid-green);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(109, 255, 0, 0.65);
}

.keyword-cloud span::before {
  content: ":: ";
  color: var(--laser-blue);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border: 4px groove var(--hot-pink);
  background:
    linear-gradient(90deg, rgba(255, 242, 0, 0.28), rgba(0, 245, 255, 0.20)),
    #050029;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.32),
    4px 4px 0 rgba(0, 0, 0, 0.24);
}

.profile-tags .profile-tags-label {
  display: inline-block;
  width: fit-content;
  padding: 0.28rem 0.5rem;
  border: 3px outset #fff;
  background: var(--banana);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink-strong);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.7),
    inset -2px -2px 0 rgba(0, 0, 0, 0.22),
    2px 2px 0 var(--hot-pink);
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.65);
}

.profile-tags .profile-tags-label::before {
  content: none;
}

.photo-card {
  display: block;
  align-self: start;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  border: 5px ridge var(--laser-blue);
  background:
    linear-gradient(90deg, rgba(255, 242, 0, 0.30), transparent 50%, rgba(0, 245, 255, 0.18)),
    #10005c;
  color: #fff;
}

.photo-contact {
  min-width: 0;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 4px groove var(--banana);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.photo-contact h2 {
  margin: 0 0 0.55rem;
  padding: 0.25rem;
  border: 3px outset #fff;
  background: var(--banana);
  color: var(--ink-strong);
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  text-align: center;
  text-transform: uppercase;
}

.photo-card figure {
  display: block;
  min-height: 0;
  margin: 0;
}

.photo-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 839 / 943;
  border-width: 5px;
  border-style: ridge;
  border-color: #fff var(--banana) var(--hot-pink) var(--laser-blue);
  background: var(--cream);
  object-fit: cover;
  object-position: center;
  box-shadow:
    5px 5px 0 rgba(0, 0, 0, 0.42),
    0 0 18px rgba(255, 242, 0, 0.40);
}

.photo-card figcaption {
  padding: 0.35rem;
  border: 3px outset #fff;
  background: var(--banana);
  color: var(--ink-strong);
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.authors {
  color: #6a003a;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.big-button {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-width: 4px;
  border-style: outset;
  border-color: #fff #555 #555 #fff;
  background: linear-gradient(180deg, var(--banana), var(--orange));
  color: #0000ee;
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-decoration: underline;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
}

.alt-button {
  background: linear-gradient(180deg, var(--laser-blue), #00a1ff);
  color: #0000ee;
}

.stats-table,
.resume-table {
  width: 100%;
  margin-top: 1rem;
  border: 4px ridge var(--hot-pink);
  border-collapse: separate;
  border-spacing: 0;
  background: #fffde6;
  color: #050029;
  font-family: "Courier New", monospace;
}

.stats-table caption,
.resume-table caption {
  padding: 0.35rem;
  border: 3px ridge #fff;
  background: #000;
  color: var(--acid-green);
  font-weight: 900;
  text-align: left;
}

.stats-table th,
.stats-table td,
.resume-table th,
.resume-table td {
  padding: 0.65rem;
  border: 2px solid rgba(16, 0, 92, 0.68);
  vertical-align: top;
}

.stats-table td,
.resume-table td {
  background: rgba(255, 255, 255, 0.72);
}

.stats-table th,
.resume-table th {
  width: 11rem;
  border-left: 6px solid var(--hot-pink);
  background: var(--banana);
  color: var(--ink-strong);
  text-align: left;
  text-transform: uppercase;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.65),
    inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}

.resume-table thead th:nth-child(1),
.resume-table tbody td:nth-child(1) {
  width: 9rem;
}

.resume-table thead th:nth-child(2),
.resume-table tbody td:nth-child(2) {
  width: 13rem;
}

.resume-table thead th:nth-child(3),
.resume-table tbody td:nth-child(3) {
  width: auto;
}

.project-grid,
.resume-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-card,
.resume-columns section {
  padding: 0.8rem;
  border: 4px groove var(--hot-pink);
  background:
    linear-gradient(90deg, rgba(255, 242, 0, 0.34), rgba(0, 245, 255, 0.18)),
    var(--newsprint);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.45),
    4px 4px 0 rgba(0, 0, 0, 0.18);
}

.project-card {
  transform: rotate(-0.35deg);
}

.project-card:nth-child(even) {
  transform: rotate(0.35deg);
}

.project-card:nth-child(even) {
  border-color: var(--acid-green);
  background:
    linear-gradient(90deg, rgba(255, 20, 147, 0.16), rgba(255, 255, 255, 0.80)),
    #fff9df;
}

.project-card h3,
.resume-columns h3 {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border: 3px outset #fff;
  background: #000080;
  color: #fff;
  box-shadow:
    4px 4px 0 var(--laser-blue),
    7px 7px 0 rgba(0, 0, 0, 0.35);
  text-shadow:
    1px 1px 0 #000,
    0 0 8px var(--laser-blue);
}

.tag-strip {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.resume-columns {
  margin-top: 1rem;
}

.star-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.star-list li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.5rem;
}

.star-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hot-pink);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.award-ribbon {
  margin: 1rem 0 0;
  padding: 0.8rem;
  border: 4px dashed #000;
  background: var(--hot-pink);
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}

.site-footer {
  padding: 0.8rem;
  border-top: 6px groove var(--banana);
  background: #000;
  color: #fff;
  text-align: center;
}

.click-burst {
  position: fixed;
  z-index: 9999;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--ink-strong);
  background: var(--banana);
  box-shadow: 0 0 0 2px var(--hot-pink), 0 0 12px var(--laser-blue);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: click-burst 650ms ease-out forwards;
}

.site-footer a {
  color: var(--acid-green);
}

.site-footer .fine-print {
  color: #ddd;
}

.boring-mode *,
.boring-mode *::before,
.boring-mode *::after {
  animation: none !important;
  cursor: auto !important;
  text-shadow: none !important;
  transform: none !important;
}

.boring-mode a,
.boring-mode button {
  cursor: pointer !important;
}

.boring-mode a *,
.boring-mode button * {
  cursor: pointer !important;
}

.boring-mode body {
  background: #f6f7fb;
  color: #1f2937;
  font-family: Georgia, "Times New Roman", serif;
}

.boring-mode .page-shell {
  width: min(calc(100% - 2rem), 1040px);
  margin: 1rem auto 2rem;
  border: 1px solid #d1d5db;
  outline: 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.boring-mode .site-header {
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.boring-mode .mode-control {
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.boring-mode .mode-toggle {
  border: 2px solid #0f172a;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: none;
  box-shadow: none;
  animation: none !important;
}

.boring-mode .mode-toggle:hover,
.boring-mode .mode-toggle:focus-visible {
  background:
    linear-gradient(90deg, #ff3b3b, #ffb000, #fff200, #35d66b, #00a8ff, #7c3aed, #ff3b3b);
  background-size: 220% 100%;
  box-shadow:
    0 0 0 3px rgba(255, 242, 0, 0.55),
    0 0 16px rgba(0, 168, 255, 0.30);
  animation: boring-button-rainbow 2.2s linear infinite, boring-button-pulse 1.25s ease-in-out infinite alternate !important;
}

.boring-mode .mode-help {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

.boring-mode .mode-tooltip {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #334155;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.boring-mode .title-card {
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: left;
}

.boring-mode .title-card::before,
.boring-mode .title-card::after {
  content: none;
}

.boring-mode .pretitle {
  color: #64748b;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boring-mode h1 {
  margin: 0.2rem 0 0.5rem;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: none;
}

.boring-mode .subtitle {
  max-width: 46rem;
  margin: 0;
  color: #475569;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.boring-mode .ticker,
.boring-mode .click-burst {
  display: none;
}

.boring-mode .layout-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
  background: #fff;
}

.boring-mode .sidebar {
  display: block;
}

.boring-mode .main-content {
  order: 2;
}

.boring-mode .nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding: 0.7rem 1rem;
}

.boring-mode .panel,
.boring-mode .window,
.boring-mode .photo-card,
.boring-mode .project-card,
.boring-mode .resume-columns section {
  border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: none;
}

.boring-mode .panel::after,
.boring-mode .window::after {
  content: none;
}

.boring-mode .panel h2,
.boring-mode .window-bar,
.boring-mode .photo-card figcaption,
.boring-mode .section-kicker,
.boring-mode .project-card h3,
.boring-mode .resume-columns h3 {
  display: block;
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.boring-mode .window-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #d1d5db;
  background: #f8fafc;
  color: #334155;
}

.boring-mode .window-body {
  padding: 1.25rem;
  background: #fff;
}

.boring-mode .window-body h2 {
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-decoration: none;
}

.boring-mode .window-body h3 {
  color: #1f2937;
}

.boring-mode .nav-panel h2 {
  margin: 0 0.45rem 0 0;
}

.boring-mode .nav-panel a,
.boring-mode .contact-panel a,
.boring-mode .big-button {
  display: block;
  margin: 0.45rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-transform: none;
  box-shadow: none;
}

.boring-mode .nav-panel a {
  display: inline-flex;
  margin: 0;
  padding: 0.12rem 0;
  white-space: nowrap;
}

.boring-mode .nav-panel a::before,
.boring-mode .contact-panel a::before {
  content: none;
}

.boring-mode .contact-panel a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.boring-mode .contact-icon {
  display: inline-grid;
  flex: 0 0 1.45rem;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1;
}

.boring-mode .action-row {
  gap: 1rem;
}

.boring-mode .action-row .big-button {
  display: inline;
}

.boring-mode .visitor-panel {
  display: none;
}

.boring-mode .stamp-panel {
  display: none;
}

.boring-mode .counter {
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #111827;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.boring-mode .fine-print,
.boring-mode .authors {
  color: #64748b;
}

.boring-mode .construction,
.boring-mode .award-ribbon {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.boring-mode .keyword-cloud span,
.boring-mode .tag-strip {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
}

.boring-mode .tag-strip {
  border-radius: 0.75rem;
}

.boring-mode .keyword-cloud span::before {
  content: none;
}

.boring-mode .profile-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: none;
}

.boring-mode .profile-tags .profile-tags-label {
  display: inline-flex;
  width: auto;
  margin-bottom: 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  text-shadow: none;
}

.boring-mode .photo-card {
  color: #1f2937;
  padding: 1rem;
}

.boring-mode .photo-contact {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: none;
}

.boring-mode .photo-contact h2 {
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boring-mode .photo-card img {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: none;
}

.boring-mode .photo-card figcaption {
  margin-top: 0.75rem;
  color: #64748b;
}

.boring-mode .stats-table,
.boring-mode .resume-table {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.boring-mode .stats-table caption,
.boring-mode .resume-table caption {
  border: 0;
  background: #f8fafc;
  color: #334155;
}

.boring-mode .stats-table th,
.boring-mode .stats-table td,
.boring-mode .resume-table th,
.boring-mode .resume-table td {
  border: 1px solid #e5e7eb;
  background: #fff;
}

.boring-mode .stats-table th,
.boring-mode .resume-table th {
  border-left: 0;
  background: #f8fafc;
  color: #334155;
  box-shadow: none;
}

.boring-mode .project-card,
.boring-mode .project-card:nth-child(even) {
  background: #fff;
}

@media (max-width: 860px) {
  .boring-mode .layout-table {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .boring-mode .main-content {
    order: 2;
  }

  .boring-mode .sidebar {
    order: 1;
  }
}

@media (max-width: 560px) {
  .boring-mode .page-shell {
    width: min(calc(100% - 1rem), 1040px);
    border-width: 1px;
    box-shadow: none;
  }

  .boring-mode .site-header,
  .boring-mode .layout-table {
    padding: 1rem;
  }

  .boring-mode .mode-toggle {
    margin-left: 0;
  }

  .boring-mode .mode-control {
    justify-content: flex-start;
  }

  .boring-mode .panel,
  .boring-mode .window,
  .boring-mode .photo-card,
  .boring-mode .project-card,
  .boring-mode .resume-columns section {
    width: 100%;
    min-width: 0;
  }

  .boring-mode .keyword-cloud,
  .boring-mode .action-row {
    align-items: flex-start;
  }

  .boring-mode .tag-strip {
    border-radius: 0.75rem;
  }

  .boring-mode .resume-table tr {
    border: 1px solid #e5e7eb;
  }

  .boring-mode .resume-table td:first-child {
    background: #f8fafc;
  }
}

.boring-mode .star-list li::before {
  color: #64748b;
}

.boring-mode .site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
}

.boring-mode .site-footer a {
  color: #1d4ed8;
}

.blink {
  animation: blink 0.85s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.28;
  }
}

@keyframes title-neon {
  0%,
  100% {
    text-shadow:
      2px 2px 0 #000,
      -2px 2px 0 #000,
      2px -2px 0 #000,
      -2px -2px 0 #000,
      0 0 4px #fff,
      0 0 10px var(--cream),
      0 0 18px rgba(0, 245, 255, 0.62),
      0 0 30px rgba(255, 20, 147, 0.58);
  }

  50% {
    text-shadow:
      2px 2px 0 #000,
      -2px 2px 0 #000,
      2px -2px 0 #000,
      -2px -2px 0 #000,
      0 0 5px #fff,
      0 0 14px var(--cream),
      0 0 24px rgba(0, 245, 255, 0.76),
      0 0 44px rgba(255, 20, 147, 0.72);
  }
}

@keyframes click-burst {
  to {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      rotate(var(--burst-rotation))
      translateX(var(--burst-distance))
      scale(0.2);
  }
}

@keyframes boring-button-rainbow {
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes boring-button-pulse {
  50% {
    box-shadow:
      0 0 0 4px rgba(255, 242, 0, 0.75),
      0 0 24px rgba(255, 20, 147, 0.35);
  }
}

@media (max-width: 860px) {
  .layout-table,
  .hero-grid,
  .project-grid,
  .resume-columns {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .layout-table {
    display: flex;
    flex-direction: column;
  }

  .photo-card {
    display: block;
    align-self: center;
    width: min(100%, 24rem);
    margin-inline: auto;
  }

  .photo-card figure {
    display: grid;
  }

  .photo-card img {
    height: auto;
  }

  .profile-tags {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(calc(100% - 0.5rem), var(--max-width));
    border-width: 4px;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.45);
  }

  .site-header,
  .layout-table {
    padding: 0.55rem;
  }

  .window-bar {
    font-size: 0.78rem;
  }

  .mode-tooltip {
    position: fixed;
    top: 3.25rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .stats-table,
  .stats-table caption,
  .stats-table tbody,
  .stats-table tr,
  .stats-table th,
  .stats-table td,
  .resume-table,
  .resume-table caption,
  .resume-table thead,
  .resume-table tbody,
  .resume-table tr,
  .resume-table th,
  .resume-table td {
    display: block;
  }

  .stats-table tr {
    border: 3px double var(--ink);
  }

  .stats-table th {
    width: auto;
    border-left-width: 0;
  }

  .stats-table td {
    border-width: 0 0 2px;
    overflow-wrap: anywhere;
  }

  .resume-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .resume-table tr {
    margin: 0 0 0.85rem;
    padding: 0.55rem;
    border: 3px double var(--ink);
    background:
      linear-gradient(90deg, rgba(255, 242, 0, 0.22), rgba(0, 245, 255, 0.12)),
      #fffde6;
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.52),
      3px 3px 0 rgba(0, 0, 0, 0.20);
  }

  .resume-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.22rem;
    align-items: start;
    padding: 0.55rem;
    border-width: 0;
    background: rgba(255, 255, 255, 0.64);
    overflow-wrap: anywhere;
  }

  .resume-table td + td {
    border-top: 2px dotted rgba(16, 0, 92, 0.35);
  }

  .resume-table td::before {
    display: block;
    color: #b0005a;
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .resume-table td:nth-child(1)::before {
    content: "When";
  }

  .resume-table td:nth-child(2)::before {
    content: "Where";
  }

  .resume-table td:nth-child(3)::before {
    content: "What";
  }

  .resume-table td:first-child {
    background: rgba(255, 242, 0, 0.28);
    font-weight: 900;
  }

  .boring-mode .resume-table tr {
    padding: 0.6rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: none;
  }

  .boring-mode .resume-table td {
    background: #fff;
  }

  .boring-mode .resume-table td:first-child {
    background: #f8fafc;
  }

  .boring-mode .resume-table td::before {
    color: #64748b;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blink {
    animation: none;
  }

  h1,
  .click-burst,
  .boring-mode .mode-toggle {
    animation: none !important;
  }
}
