:root {
  --bg: #f7efcf;
  --card-border: #d7c783;
  --card-border-soft: #e8dcaa;
  --fg: #1f211b;
  --muted: #6f653b;
  --accent: #9d0006;
  --hover: #620004;
  --signal: #35b986;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.5rem;
  background: var(--bg);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Mono",
    Menlo, Monaco, Consolas, "Roboto Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum", "calt";
  -ms-overflow-style: none;
  overflow-x: hidden;
  width: 100%;
}

body::before {
  animation: grid-drift 18s linear infinite;
  background-image:
    linear-gradient(rgba(125, 106, 43, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 106, 43, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.52), transparent 62%);
  opacity: 0.3;
  pointer-events: none;
  position: fixed;
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.52), transparent 62%);
  z-index: 0;
}

body::after {
  animation: signal-sweep 8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(125, 106, 43, 0.16), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.55;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 28vh;
  z-index: 0;
}

/* Header */
.site-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--card-border-soft);
  box-shadow: 0 12px 30px rgba(125, 106, 43, 0.025);
  display: grid;
  grid-template-columns: 1fr;
  left: 0;
  min-height: 4rem;
  opacity: 0;
  padding: 0 1.5rem;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(-100%);
  transition: opacity 0.22s ease, transform 0.28s ease;
  z-index: 20;
}

.site-header.is-measuring,
.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-visible {
  pointer-events: auto;
}

.site-header.is-measuring {
  pointer-events: none;
  visibility: hidden;
}

.header-name {
  border-bottom: none;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  justify-self: center;
  transform-origin: center;
}

.site-header.is-docking .header-name {
  animation: name-dock 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header-name:hover {
  color: var(--hover);
}

.landing-left h1 {
  font-size: clamp(1.45rem, 2.45vw, 1.95rem);
  line-height: 1.15;
  max-width: 13em;
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.24s ease;
}

.landing-left h1::after {
  animation: cursor-blink 1.1s steps(2, end) infinite;
  content: "_";
  font-weight: 500;
  margin-left: 0.15em;
  /* secondary accent when a theme defines --accent2; unchanged otherwise */
  color: var(--accent2, currentColor);
}

body.is-name-docked .landing-left h1 {
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.96);
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  width: min(100vw, 1160px);
  z-index: 1;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--accent);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.4rem;
  font-weight: 500;
}

h3 {
  font-size: 0.9375rem;
  color: var(--fg);
}

p {
  margin: 0.75rem 0;
  overflow-wrap: break-word;
}

.landing-left .proof,
.card p,
.work-card h3,
.work-card p,
.work-card li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--card-border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--hover);
  border-bottom-color: var(--hover);
}

.muted {
  color: var(--muted);
}

.dates {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Landing */
.landing {
  display: grid;
  gap: 4.5rem;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: calc(100vh - 7rem);
  padding: 5rem 0 4rem;
}

.landing-left {
  align-self: start;
  position: sticky;
  top: 4rem;
}

.profile-portrait {
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(97, 82, 22, 0.1);
  margin: 0 0 1.25rem;
  overflow: hidden;
  width: clamp(5.5rem, 9vw, 7rem);
}

.profile-portrait img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  width: 100%;
}

.landing-left .proof {
  color: var(--fg);
  font-size: 0.75rem;
  line-height: 1.55;
}

.landing-left .proof {
  margin-top: 0.95rem;
  max-width: 42em;
}

.landing-left .meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.links {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.45rem;
  font-size: 0.75rem;
}

.links a {
  border-bottom: none;
  color: var(--muted);
}

.links a:hover {
  color: var(--hover);
}

/* Contact actions: quick icon links + prominent resume / github buttons */
.contact-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 22rem;
}

.contact-quick {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

/* bare (unboxed) icons for the quick row */
.icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: none; /* cancel the global dotted link underline */
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

/* "Copied!" confirmation shown when the email address is copied */
.copied-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.icon-link.is-copied .copied-toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* footer contact row keeps the section's rhythm */
.contact-quick--footer {
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.icon-link svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.icon-link:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translateY(-1px);
}

/* wide labelled buttons: resume (primary) + github */
.action-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, #fff);
  transition: color 0.16s ease, border-color 0.16s ease,
    background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.action-btn .action-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.action-btn .action-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.action-btn .action-arrow {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.7;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.action-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(97, 82, 22, 0.1);
}

.action-btn:hover .action-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* resume carries a touch more weight as the primary action */
.action-btn.is-primary {
  color: var(--fg);
  border-color: var(--muted);
}

.action-btn.is-primary .action-label {
  font-weight: 600;
}

/* résumé CTA icon + arrow pick up the secondary accent when set */
.action-btn.is-primary .action-icon,
.action-btn.is-primary .action-arrow {
  color: var(--accent2, currentColor);
}

/* resume: open button + dedicated download square */
.resume-group {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.resume-group .action-btn {
  flex: 1;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, #fff);
  transition: color 0.16s ease, border-color 0.16s ease,
    background-color 0.16s ease, transform 0.16s ease;
}

.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  transition: transform 0.16s ease;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-btn.is-download:hover svg {
  transform: translateY(2px);
}

.landing-right {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.landing-group h2 {
  border-bottom: 1px solid var(--card-border);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  max-width: max-content;
  padding-bottom: 0.3rem;
  text-transform: uppercase;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.link-list a {
  align-items: center;
  border: none;
  color: var(--muted);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  padding: 0.35rem 0;
  transition: color 0.16s ease, transform 0.16s ease;
}

.link-list a::after {
  color: var(--accent2, var(--muted));
  content: "↗";
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.link-list .view-link {
  color: var(--accent);
  display: inline-block;
  font-size: 0.75rem;
  margin-top: 0.45rem;
  padding: 0.2rem 0 0;
  width: max-content;
}

.link-list .view-link::after {
  content: "↓";
  margin-left: 0.4rem;
}

.link-list .view-link:hover {
  color: var(--hover);
}

.link-list a:hover strong,
.link-list a:hover em {
  color: var(--hover);
}

.link-list a:hover {
  transform: translateX(0.25rem);
}

.link-list strong,
.link-list em,
.link-list small {
  display: block;
}

.link-list strong {
  color: var(--fg);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 600;
}

.link-list em {
  color: var(--fg);
  font-size: 0.8125rem;
  font-style: normal;
  margin-top: 0.1rem;
}

.link-list small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: auto;
  white-space: nowrap;
}

.link-list.compact a {
  padding-bottom: 0;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-tags li {
  color: var(--fg);
  font-size: 0.8125rem;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  background: transparent;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.card-head h3 {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.role {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 0.75rem;
}

.card p {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
}

.card-links {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.card-links a {
  color: var(--muted);
  border-bottom: none;
}

.card-links a:hover {
  color: var(--hover);
}

/* Selected work */
.selected-work {
  margin-bottom: 3rem;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  flex: 1;
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
}

.slider-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 2rem;
  justify-content: center;
  padding: 0;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 2rem;
}

.slider-button:hover {
  border-color: var(--accent);
  color: var(--hover);
  transform: translateY(-1px);
}

.slider-button:disabled {
  color: var(--card-border);
  cursor: default;
  transform: none;
}

.work-grid {
  display: flex;
  gap: 1rem;
  overflow-x: hidden;
  padding: 0.15rem 0 0.8rem;
  scroll-padding-left: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-grid::-webkit-scrollbar {
  display: none;
}

.work-card {
  background: rgba(241, 235, 217, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  flex: 0 0 calc((100% - 2rem) / 3);
  padding: 1.1rem;
  min-width: 0;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.work-card::before {
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 45%;
  top: 0;
  transition: opacity 0.18s ease;
}

.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(125, 106, 43, 0.1);
  transform: translateY(-0.25rem);
}

.work-card:hover::before {
  opacity: 1;
}

.work-kicker {
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.work-card h3 {
  color: var(--accent);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.work-card p {
  font-size: 0.875rem;
  margin: 0;
}

.work-facts {
  border-top: 1px solid rgba(215, 199, 131, 0.72);
  margin: 0.9rem 0 0;
  padding-top: 0.65rem;
}

.work-facts div {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 4.5rem 1fr;
  margin: 0.35rem 0;
}

.work-facts dt,
.work-facts dd {
  font-size: 0.75rem;
  margin: 0;
}

.work-facts dt {
  color: var(--muted);
  text-transform: uppercase;
}

.work-facts dd {
  color: var(--fg);
}

/* Experience */
.experience {
  margin-bottom: 3rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0.25rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 1px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 2.25rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

.job-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}

.job-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.job-org {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0.2rem 0 0.5rem;
}

.job-bullets {
  list-style: square;
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}

.job-bullets li {
  margin: 0.4rem 0;
  font-size: 0.8rem;
}

.job-bullets li::marker {
  color: var(--accent);
}

.job-bullets li strong {
  font-weight: 600;
  color: var(--accent);
}

/* Education */
.education {
  margin-bottom: 3rem;
}

.edu-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.edu-row h3 {
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 600;
}

.edu-row p {
  margin: 0.25rem 0;
  font-size: 0.9375rem;
}

/* Skills */
.skills {
  margin-bottom: 2rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-col h3 {
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tags li {
  font-size: 0.875rem;
  color: var(--fg);
}

/* Building (open-source / side projects) */
.building {
  margin-bottom: 3rem;
}

.building-intro {
  margin: -0.5rem 0 1.5rem;
  max-width: 46em;
  color: var(--muted);
  font-size: 0.875rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  background: rgba(241, 235, 217, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 1.1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.project-card::before {
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  height: 1px;
  left: 0;
  right: 45%;
  top: 0;
  position: absolute;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(125, 106, 43, 0.1);
  transform: translateY(-0.25rem);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h3 {
  color: var(--accent);
  font-size: 0.9375rem;
  margin: 0 0 0.6rem;
  overflow-wrap: break-word;
}

.project-card h3 a {
  color: inherit;
  border-bottom: 0;
}

.project-card h3 a:hover {
  color: var(--hover);
}

.project-card p {
  font-size: 0.875rem;
  margin: 0;
}
/* only the description grows, so kicker + title stay pinned together
   when a taller sibling stretches the row */
.project-card h3 + p {
  flex: 1;
}

.project-repo,
.project-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(215, 199, 131, 0.72);
  color: var(--muted);
  font-size: 0.75rem;
}

.project-repo {
  border-bottom: 0;
  transition: color 0.16s ease;
}

.project-repo svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

.project-repo:hover {
  color: var(--accent);
}

/* multi-link footer (e.g. GitHub + npm): divider sits on the wrapper */
.project-links {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(215, 199, 131, 0.72);
}

.project-links .project-repo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.project-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--signal);
  flex: 0 0 auto;
}

/* Thinking */
.thinking {
  margin-bottom: 3rem;
}

.thinking-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.thinking-grid p {
  border-left: 1px solid var(--card-border);
  color: var(--fg);
  font-size: 0.875rem;
  margin: 0;
  padding-left: 1rem;
}

/* Contact */
.contact-note {
  border-top: 1px solid var(--card-border-soft);
  margin-top: 2rem;
  padding-top: 2rem;
}

.contact-note p {
  font-size: 0.875rem;
  max-width: 48em;
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--card-border-soft);
  color: var(--muted);
  font-size: 0.8125rem;
  position: relative;
  z-index: 1;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor */
.cursor-dot,
.cursor-ring {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 100;
}

.cursor-dot {
  background: var(--accent);
  border-radius: 999px;
  height: 7px;
  transform: translate(-50%, -50%);
  width: 7px;
}

.cursor-ring {
  border: 1px solid var(--accent);
  border-radius: 999px;
  height: 30px;
  transform: translate(-50%, -50%);
  transition: height 0.18s ease, opacity 0.18s ease, width 0.18s ease;
  width: 30px;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .work-card,
body.has-custom-cursor .profile-portrait {
  cursor: none;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
  opacity: 1;
}

body.has-custom-cursor.is-cursor-hovering .cursor-ring {
  height: 52px;
  width: 52px;
}

@keyframes name-dock {
  from {
    opacity: 0.95;
    transform: translate(var(--name-x, 0), var(--name-y, 0)) scale(var(--name-scale, 1.6));
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

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

@keyframes grid-drift {
  to {
    background-position: 52px 52px;
  }
}

@keyframes signal-sweep {
  0%,
  100% {
    transform: translateY(-16vh);
  }

  50% {
    transform: translateY(42vh);
  }
}

/* Responsive */
@media (max-width: 720px) {
  .site-header {
    min-height: 3.5rem;
    padding: 0 1rem;
  }

  .header-name {
    font-size: 0.875rem;
  }

  main {
    max-width: calc(100vw - 4rem);
    padding: 3rem 0 2rem;
    width: calc(100vw - 4rem);
  }

  section,
  .card,
  .stat,
  .work-card {
    max-width: 100%;
  }

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

  h1 {
    font-size: 1.625rem;
  }

  .landing-left .proof,
  .card p,
  .work-card p,
  .work-facts dd {
    max-width: 38ch;
  }

  .landing {
    display: block;
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .landing-left {
    position: static;
  }

  .profile-portrait {
    margin-bottom: 1rem;
    width: 5.75rem;
  }

  .landing-left h1 {
    font-size: 1.35rem;
  }

  .landing-right {
    margin-top: 3rem;
  }

  .link-list a {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .link-list a::after {
    display: none;
  }

  .link-list .view-link::after {
    display: inline;
  }

  .link-list small {
    margin-left: 0;
    white-space: normal;
  }

  .card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .dates {
    white-space: normal;
  }

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

  .section-head {
    align-items: flex-end;
  }

  .slider-button {
    height: 1.85rem;
    width: 1.85rem;
  }

  .work-grid {
    padding-right: 0;
  }

  .work-card {
    flex-basis: 100%;
  }

  .work-facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .edu-row {
    flex-direction: column;
  }
}

@media (pointer: coarse) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .work-card,
  body.has-custom-cursor .profile-portrait {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

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

  .site-header,
  .site-header.is-docking .header-name {
    animation: none;
    transition: none;
  }

  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .work-card,
  body.has-custom-cursor .profile-portrait {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
