:root {
  color-scheme: light;
  --bg: #f9f9f8;
  --text: #1f1f1a;
  --text-secondary: #636360;
  --text-tertiary: #9a9a96;
  --line: rgba(0, 0, 0, 0.08);
  --hover-surface: rgba(0, 0, 0, 0.045);
  --surface: #fff;
  --empty: rgba(31, 31, 26, 0.07);
  --accent: #7c3aed;
  --footer-bg: #ffffff;
  --footer-text: #1f1f1a;
  --footer-muted: #73736f;
  --footer-line: rgba(0, 0, 0, 0.09);
  --footer-chip: #1f1f1a;
  --footer-mark-filter: invert(1);
}

.dark {
  color-scheme: dark;
  --bg: #0e0e0d;
  --text: #e7e7e2;
  --text-secondary: #a3a39e;
  --text-tertiary: #6f6f6a;
  --line: rgba(255, 255, 255, 0.08);
  --hover-surface: rgba(255, 255, 255, 0.055);
  --surface: #161615;
  --empty: rgba(231, 231, 226, 0.07);
  --accent: #9b6df4;
  --footer-bg: #161615;
  --footer-text: #f1f1ec;
  --footer-muted: #9a9a95;
  --footer-line: rgba(255, 255, 255, 0.1);
  --footer-chip: #f1f1ec;
  --footer-mark-filter: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (hover: hover) and (pointer: fine) {
  .has-smooth-cursor,
  .has-smooth-cursor * {
    cursor: none !important;
  }
}

.smooth-cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 27px;
  height: 30px;
  opacity: 0;
  pointer-events: none;
  transform-origin: 12.5px 2.5px;
  transition: opacity 250ms ease;
  will-change: transform;
}

.smooth-cursor.is-visible {
  opacity: 1;
}

.cursor-arrow,
.cursor-hand {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transform-origin: 12.5px 2.5px;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-arrow {
  width: 25px;
  height: 28px;
}

.cursor-arrow img,
.cursor-hand img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cursor-hand {
  width: 27px;
  height: 30px;
  opacity: 0;
  transform: scale(0.72) rotate(-12deg);
}

.cursor-theme-dark {
  opacity: 0;
}

.dark .cursor-theme-light {
  opacity: 0;
}

.dark .cursor-theme-dark {
  opacity: 1;
}

.smooth-cursor.is-hand .cursor-arrow {
  opacity: 0;
  transform: scale(0.72) rotate(12deg);
}

.smooth-cursor.is-hand .cursor-hand {
  opacity: 1;
  transform: scale(1);
}

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.page-shell {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell > section + section {
  margin-top: 3.5rem;
}

.avatar {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75rem;
}

.keyword {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.keyword:hover,
.keyword:focus-visible {
  color: color-mix(in srgb, var(--text) 78%, var(--bg));
}

.keyword-christchurch,
.keyword-christchurch:hover,
.keyword-christchurch:focus-visible {
  color: #24a148;
}

.keyword-kovo {
  color: #e94090;
}

.keyword-kovo-label {
  background-image: linear-gradient(90deg, #e94090 0%, #ff7a3d 48%, #8b46d5 100%);
  background-position: 0 50%;
  background-size: 140% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 180ms ease;
}

.keyword-kovo:hover .keyword-kovo-label,
.keyword-kovo:focus-visible .keyword-kovo-label {
  background-position: 100% 50%;
}

.keyword-infinity,
.keyword-infinity:hover,
.keyword-infinity:focus-visible {
  color: #e94090;
}

.keyword:focus-visible {
  border-radius: 0.15rem;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 30%, transparent);
}

.confetti-piece {
  position: fixed;
  z-index: 101;
  left: var(--origin-x);
  top: var(--origin-y);
  width: var(--piece-width);
  height: var(--piece-height);
  border-radius: 1.5px;
  background: var(--confetti-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  will-change: transform, opacity;
  animation: confetti-pop var(--duration) cubic-bezier(0.16, 0.7, 0.25, 1) forwards;
}

.confetti-piece--dot {
  border-radius: 50%;
}

.confetti-piece--ribbon {
  border-radius: 999px;
}

.confetti-burst {
  position: fixed;
  z-index: 100;
  left: var(--origin-x);
  top: var(--origin-y);
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--confetti-color);
  border-radius: 50%;
  pointer-events: none;
  animation: confetti-ring 430ms cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}

.mega-confetti-canvas {
  position: fixed;
  z-index: 103;
  inset: 0;
  pointer-events: none;
}

.mega-confetti-flash {
  position: fixed;
  z-index: 102;
  left: var(--origin-x);
  top: var(--origin-y);
  width: 24px;
  height: 24px;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow:
    0 0 26px 12px rgba(255, 214, 10, 0.72),
    0 0 75px 28px rgba(255, 45, 146, 0.38);
  pointer-events: none;
  animation: mega-confetti-flash 720ms cubic-bezier(0.12, 0.72, 0.2, 1) forwards;
}

@keyframes mega-confetti-flash {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.12);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

.hold-confetti-pill {
  position: fixed;
  z-index: 10000;
  width: 96px;
  height: 16px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    0 2px 7px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 color-mix(in srgb, white 58%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.78);
  transform-origin: center bottom;
  transition: opacity 120ms ease, transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.hold-confetti-pill::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 2;
  border: 1px solid color-mix(in srgb, white 25%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.hold-confetti-pill.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hold-confetti-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(105deg, #ff375f, #ff9f0a 18%, #ffd60a 34%, #30d158 52%, #0a84ff 70%, #bf5af2 86%, #ff2d92);
  background-size: 180% 100%;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  animation: hold-confetti-shimmer 1.2s linear infinite;
}

.hold-confetti-progress::after {
  content: "";
  position: absolute;
  inset: 1px 4px auto;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  filter: blur(0.3px);
}

.hold-confetti-pill.is-complete {
  transform: scale(1.15);
}

body.is-holding-confetti {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes hold-confetti-shimmer {
  to { background-position: 180% 0; }
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  42% {
    opacity: 1;
    transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1) rotate(var(--spin-mid));
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(0.82) rotate(var(--spin));
  }
}

@keyframes confetti-ring {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.8);
  }
}

.tooltip {
  position: fixed;
  z-index: 50;
  width: max-content;
  max-width: min(24rem, calc(100vw - 3rem));
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--surface);
  background-image: none;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  transform: translate(-50%, calc(-100% + 0.35rem)) scale(0.96);
  transform-origin: bottom;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.keyword:hover > .tooltip,
.keyword:focus-visible > .tooltip,
.activity-day:hover > .tooltip,
.activity-day:focus-visible > .tooltip {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

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

.project-card {
  grid-column: span 1;
  overflow: visible;
  border-radius: 0.5rem;
  background: var(--surface);
  color: inherit;
  box-shadow: 0 0 0 2px var(--empty);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10), 0 0 0 2px var(--line);
  outline: none;
}

.project-card-static:hover {
  transform: none;
  box-shadow: 0 0 0 2px var(--empty);
}

.project-card-static {
  cursor: default;
}

.project-card-sideby {
  cursor: pointer;
}

.project-card-sideby:hover,
.project-card-sideby:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10), 0 0 0 2px var(--line);
  outline: none;
}

.project-art {
  position: relative;
  aspect-ratio: 40 / 21;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #fff;
}

.project-art > img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 82%;
  height: 82%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.project-art-sideby > img {
  width: 100%;
  height: 100%;
}

.project-copy {
  padding: 1rem;
}

.project-copy h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.project-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5rem;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.activity-account {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 150ms ease;
}

.activity-account:hover,
.activity-account:focus-visible {
  color: var(--text);
  outline: none;
}

:root {
  --contribution-0: #ebedf0;
  --contribution-1: #9be9a8;
  --contribution-2: #40c463;
  --contribution-3: #30a14e;
  --contribution-4: #216e39;
}

.dark {
  --contribution-0: #161b22;
  --contribution-1: #0e4429;
  --contribution-2: #006d32;
  --contribution-3: #26a641;
  --contribution-4: #39d353;
}

.contribution-panel {
  margin-top: 1.5rem;
  width: 100%;
  margin-left: 0;
}

.activity-scroll {
  width: 100%;
  padding: 0.25rem 0 0.5rem;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.activity-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

.activity-scroll::-webkit-scrollbar-track,
.activity-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border: 0;
}

.activity-scroll:focus-visible {
  border-radius: 0.35rem;
  box-shadow: 0 0 0 2px var(--line);
}

.activity-grid {
  display: grid;
  grid-template-rows: repeat(7, 8px);
  grid-auto-columns: 8px;
  grid-auto-flow: column;
  gap: 2px;
  width: max-content;
}

.activity-day {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--contribution-0);
  outline: none;
}

.activity-day[data-level="0"] { background: var(--contribution-0); }
.activity-day[data-level="1"] { background: var(--contribution-1); }
.activity-day[data-level="2"] { background: var(--contribution-2); }
.activity-day[data-level="3"] { background: var(--contribution-3); }
.activity-day[data-level="4"] { background: var(--contribution-4); }

.activity-day:hover,
.activity-day:focus-visible {
  z-index: 20;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: block;
  width: 19px;
  height: 19px;
  opacity: 0.55;
  transition: opacity 150ms ease, transform 150ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.social-links img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.dark .social-links img {
  filter: invert(1);
}

.site-footer {
  position: relative;
  overflow: hidden;
  width: min(calc(100% - 3rem), 33rem);
  margin: 0 auto max(2rem, env(safe-area-inset-bottom));
  padding: 1.5rem;
  border: 1px solid var(--footer-line);
  border-radius: 1.25rem;
  background: var(--footer-bg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  color: var(--footer-muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 70, 213, 0.16), rgba(233, 64, 144, 0.08) 45%, transparent 72%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-intro {
  min-width: 0;
}

.footer-mark-wrap {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-items: center;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--footer-chip);
  flex: none;
}

.footer-mark {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  filter: var(--footer-mark-filter);
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.footer-identity .footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.footer-identity strong {
  color: var(--footer-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.footer-identity small {
  color: var(--footer-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}

.footer-nav a {
  padding: 0.48rem 0.6rem;
  border-radius: 999px;
  background: transparent;
  color: var(--footer-muted);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--footer-text) 7%, transparent);
  color: var(--footer-text);
  outline: none;
}

.footer-nav .footer-contact {
  background: var(--footer-text);
  color: var(--footer-bg);
  margin-left: 0.2rem;
  padding-inline: 0.78rem;
}

.footer-nav .footer-contact:hover,
.footer-nav .footer-contact:focus-visible {
  background: var(--footer-text);
  color: var(--footer-bg);
  transform: translateY(-1px);
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--footer-line);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.footer-base p {
  margin: 0;
}

.legal-back {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--text);
  outline: none;
}

.legal-page {
  min-height: calc(100vh - 10rem);
  padding-top: 3rem;
}

.legal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.legal-brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}

.legal-brand-mark img {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.dark .legal-brand-mark img {
  filter: invert(1);
}

.legal-brand strong {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.legal-tabs {
  display: flex;
  gap: 0.25rem;
}

.legal-tabs a {
  min-height: 2rem;
  padding: 0.42rem 0.68rem;
  border-radius: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-decoration: none;
}

.legal-tabs a:hover,
.legal-tabs a:focus-visible,
.legal-tabs a[aria-current="page"] {
  background: var(--hover-surface);
  color: var(--text);
  outline: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.legal-section {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.055);
}

.legal-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #e94090, #ff7a3d 50%, #8b46d5);
}

.legal-section h1 {
  font-size: clamp(2.35rem, 10vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.legal-section h2 {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.legal-section a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 0.18em;
}

.legal-kicker {
  margin: 0 0 1rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.legal-section p {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-section .legal-lead {
  max-width: 29rem;
  margin-top: 1.35rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.theme-transition::view-transition-old(root) {
  z-index: 1;
}

html.theme-transition::view-transition-new(root) {
  z-index: 2;
  clip-path: circle(0 at var(--theme-x) var(--theme-y));
  animation: theme-reveal 620ms cubic-bezier(0.55, 0, 0.25, 1) forwards;
}

@keyframes theme-reveal {
  to {
    clip-path: circle(var(--theme-radius) at var(--theme-x) var(--theme-y));
  }
}

@media (max-width: 575px) {
  .page-shell {
    padding: max(3rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(3rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  }

  .page-shell > section + section {
    margin-top: 3rem;
  }

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

  .project-card {
    min-height: 44px;
  }

  .site-footer {
    width: calc(100% - 2.5rem);
  }

  .footer-main,
  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .legal-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-tabs a {
    flex: 1;
    text-align: center;
  }

}

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

  html.theme-transition::view-transition-new(root) {
    animation: none;
    clip-path: none;
  }

  .confetti-piece {
    display: none;
  }

  .confetti-burst {
    display: none;
  }

  .smooth-cursor {
    display: none;
  }

  .hold-confetti-pill {
    transition: none;
  }

  .hold-confetti-progress {
    animation: none;
  }
}

@media (pointer: coarse) {
  .smooth-cursor {
    display: none;
  }
}
