:root {
  --bg: #030806;
  --bg-soft: #06100b;
  --surface: rgba(8, 20, 14, 0.72);
  --surface-solid: #08140e;
  --surface-hover: #0b1c13;
  --border: rgba(74, 222, 128, 0.15);
  --border-strong: rgba(74, 222, 128, 0.34);
  --text: #e9fff0;
  --muted: #91a89a;
  --emerald: #4ade80;
  --emerald-bright: #22c55e;
  --emerald-deep: #15803d;
  --emerald-faint: rgba(74, 222, 128, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
  --header-height: 68px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
}

body::selection {
  background: var(--emerald);
  color: #021008;
}

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

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

button {
  font: inherit;
}

code {
  color: var(--emerald);
  font-size: 0.9em;
}

/* Progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0%;
  height: 4px;
  z-index: 5000;
  background: linear-gradient(90deg, #15803d, #22c55e, #86efac);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.7);
  transition: width 0.08s linear;
}

/* Background atmosphere */
.ambient {
  position: fixed;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.09;
  pointer-events: none;
  z-index: -3;
}

.ambient-a {
  top: -180px;
  left: -180px;
  background: #22c55e;
}

.ambient-b {
  right: -220px;
  top: 38%;
  background: #047857;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(74,222,128,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34,197,94,0.075), transparent 67%);
  transition: opacity 0.25s ease;
}

/* Header */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), calc(100% - 32px));
  min-height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(3, 8, 6, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 3000;
}

.logo {
  flex: 0 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--emerald);
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color .22s ease, background .22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--emerald-faint);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: var(--text);
  transition: .25s ease;
}

/* Layout */
.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(80px, 10vw, 130px) 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .78fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding-top: 130px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(100deg, #dcfce7 0%, #4ade80 55%, #16a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 180% 180%;
  animation: gradientShift 6s ease infinite;
}

.hero-description {
  max-width: 720px;
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.hero-actions,
.social-row,
.project-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 750;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.button.primary {
  color: #031008;
  border-color: transparent;
  background: var(--emerald);
}

.button.secondary {
  background: rgba(255,255,255,.025);
}

.button:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.social-row {
  margin-top: 24px;
}

.social-row a {
  color: var(--muted);
  font-size: .91rem;
}

.social-row a:hover {
  color: var(--emerald);
}

.scroll-cue {
  width: max-content;
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64806c;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.scroll-cue span {
  width: 34px;
  height: 1px;
  background: var(--emerald);
  animation: cuePulse 1.8s ease infinite;
}

/* Profile */
.profile-panel {
  min-width: 0;
}

.profile-orbit {
  position: relative;
  padding: clamp(12px, 2vw, 24px);
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(74,222,128,.18);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  animation: orbitSpin 18s linear infinite;
}

.orbit-two {
  inset: 7%;
  border-style: dashed;
  opacity: .55;
  animation: orbitSpinReverse 24s linear infinite;
}

.profile-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 36% 36% 24px 24px;
  background: #07110c;
  box-shadow: var(--shadow);
}

.profile-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.75;
  object-fit: cover;
}

.profile-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,8,6,.85), transparent 44%);
}

.profile-tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(3,8,6,.74);
  backdrop-filter: blur(12px);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.edit-hint {
  color: #607568;
  text-align: center;
  font-size: .8rem;
}

/* Shared headings */
.section-heading {
  max-width: 800px;
  margin-bottom: 44px;
}

.section-heading h2,
.contact-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.section-heading > p:not(.eyebrow),
.contact-card > p:not(.eyebrow) {
  color: var(--muted);
}

.glass-card,
.stat-card,
.course-card,
.completed-course,
.project-card,
.experience-card,
.organization-card,
.hobby-card,
.contact-card {
  border: 0.8px solid var(--border);
  background: linear-gradient(145deg, rgba(9,22,15,.82), rgba(5,13,9,.65));
  box-shadow: var(--shadow);
}

/* Bio */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
}

.glass-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-xl);
}

.glass-card h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.glass-card p {
  color: var(--muted);
}

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

.stat-card {
  min-width: 0;
  min-height: 155px;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .25s ease, transform .25s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.stat-card span {
  color: var(--muted);
  font-size: .8rem;
}

.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

/* Course tabs */
.course-tabs {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5,13,9,.72);
}

.course-tab {
  min-height: 43px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.course-tab.active {
  color: #031008;
  background: var(--emerald);
}

.course-panel {
  min-width: 0;
}

.course-list {
  display: grid;
  gap: 16px;
}

.course-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
}

.course-topline > div {
  min-width: 0;
}

.course-status {
  display: inline-flex;
  margin-right: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(74,222,128,.24);
  border-radius: 999px;
  color: var(--emerald);
  background: rgba(74,222,128,.06);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.course-code {
  color: var(--emerald);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.course-topline h3,
.completed-course h3 {
  margin: 6px 0 0;
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
}

.course-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform .3s ease, background .3s ease;
}

.course-toggle:hover {
  background: var(--emerald-faint);
}

.course-card.open .course-toggle {
  transform: rotate(45deg);
}

.course-details {
  max-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0 26px;
  opacity: 0;
  transition: max-height .48s ease, padding .36s ease, opacity .32s ease;
}

.course-card.open .course-details {
  max-height: 760px;
  padding: 0 26px 28px;
  opacity: 1;
}

.course-details h4 {
  margin: 0 0 8px;
}

.course-details p {
  margin-top: 0;
  color: var(--muted);
}

.semester-stack {
  display: grid;
  gap: 26px;
}

.semester-block {
  min-width: 0;
}

.semester-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.semester-heading .course-status {
  flex: 0 0 auto;
  margin-right: 0;
}

.semester-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

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

.completed-course {
  position: relative;
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.completed-course .check {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #031008;
  background: var(--emerald);
  font-weight: 900;
}

.completed-course p {
  color: var(--muted);
}

/* Tags */
.tag-row span {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #bdd5c5;
  background: rgba(74,222,128,.035);
  font-size: .77rem;
}

/* Projects */
.project-category + .project-category {
  margin-top: 100px;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.category-index {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--emerald);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.category-heading .eyebrow {
  margin-bottom: 5px;
}

.category-heading h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

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

.project-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform .28s ease, border-color .28s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  border-color: var(--border-strong);
}

.project-image {
  position: relative;
  overflow: hidden;
  background: #07110c;
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.project-type {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 999px;
  background: rgba(3,8,6,.78);
  color: var(--emerald);
  backdrop-filter: blur(10px);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.project-content {
  position: relative;
  padding: 28px;
}

.project-number {
  position: absolute;
  right: 24px;
  top: 20px;
  color: rgba(74,222,128,.16);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.project-content h3 {
  margin: 0 0 14px;
  padding-right: 58px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.project-content p {
  min-height: 76px;
  color: var(--muted);
}

.project-links {
  margin-top: 24px;
}

.project-links a {
  font-size: .88rem;
  font-weight: 750;
}

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

/* Experience */
.experience-grid {
  display: grid;
  gap: 24px;
}

.experience-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-xl);
  transform-style: preserve-3d;
}

.experience-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.experience-type,
.experience-duration,
.organization-label {
  color: var(--emerald);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.experience-topline h3 {
  margin: 9px 0 4px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.experience-place,
.experience-card > p,
.organization-card > p:last-child {
  color: var(--muted);
}

.experience-place {
  margin: 0;
}

.experience-duration {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--emerald-faint);
}

/* Clubs & organizations */
.organization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.organization-card {
  position: relative;
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease;
}

.organization-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.organization-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(74,222,128,.18);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.organization-label {
  margin: 0 56px 18px 0;
}

.organization-card h3 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
}

.organization-card strong {
  display: block;
  margin-bottom: 14px;
  color: #d7f5e1;
}

.organization-card > p:last-child {
  margin-bottom: 0;
}

/* Hobbies */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hobby-card {
  min-width: 0;
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease;
}

.hobby-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.hobby-card > span {
  font-size: 2rem;
}

.hobby-card h3 {
  margin: 20px 0 8px;
}

.hobby-card p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
}

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 70px);
  border-radius: var(--radius-xl);
  text-align: center;
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-pulse {
  position: absolute;
  z-index: 0;
  width: 280px;
  aspect-ratio: 1;
  left: 50%;
  bottom: -220px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--emerald);
  filter: blur(90px);
  opacity: .12;
}

.contact-card .button {
  margin-top: 14px;
}

/* Footer */
footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
  padding: 30px 0 44px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  color: #6d8173;
  font-size: .84rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  width: 58px;
  height: 58px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(5,13,9,.84);
  backdrop-filter: blur(12px);
  color: var(--emerald);
  cursor: pointer;
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--surface-hover);
}

.back-to-top span,
.back-to-top small {
  display: block;
  line-height: 1;
}

.back-to-top span {
  font-size: 1.25rem;
}

.back-to-top small {
  margin-top: 5px;
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .12em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation keyframes */
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes cuePulse {
  0%,100% { transform: scaleX(.45); transform-origin: left; opacity: .5; }
  50% { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 145px;
  }

  .profile-panel {
    width: min(540px, 100%);
  }

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

  .course-details {
    grid-template-columns: 1fr;
  }

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

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

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

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(3,8,6,.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    top: 12px;
    width: calc(100% - 22px);
    padding: 0 13px;
  }

  .section {
    width: min(100% - 26px, var(--max-width));
    padding: 82px 0;
  }

  .hero {
    padding-top: 120px;
    gap: 52px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 160px;
  }

  .scroll-cue {
    margin-top: 42px;
  }

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

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

  .course-topline {
    padding: 20px;
  }

  .course-status {
    display: table;
    margin: 0 0 6px;
  }

  .semester-heading .course-status {
    display: inline-flex;
    margin: 0;
  }

  .course-details,
  .course-card.open .course-details {
    padding-left: 20px;
    padding-right: 20px;
  }

  .category-heading {
    align-items: flex-start;
  }

  .category-index {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .project-content {
    padding: 22px;
  }

  .project-content p {
    min-height: 0;
  }

  .experience-topline {
    flex-direction: column;
  }

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

  .hobby-card {
    min-height: auto;
  }

  .contact-card {
    padding-inline: 22px;
  }

  .contact-card .button {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .back-to-top {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .cursor-glow {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .section {
    width: calc(100% - 20px);
  }

  .site-header {
    width: calc(100% - 16px);
  }

  .project-content h3 {
    padding-right: 0;
  }

  .project-number {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .orbit {
    display: none;
  }
}
