:root,
html[data-theme="dark"] {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #ffffff;
  --faint: #ffffff;
  --title: #7eb8ff;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --surface: #1c1c1e;
  --control-bg: rgba(0, 0, 0, 0.45);
  --control-hover: rgba(0, 0, 0, 0.7);
  --banner-base: #061018;
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1080px;
  --nav-h: 72px;
  --pad: clamp(20px, 5vw, 64px);
}

html[data-theme="light"] {
  --bg: #f3f0e8;
  --ink: #161616;
  --muted: #1d1d1d;
  --faint: #333333;
  --title: #2f6fbf;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.22);
  --glass: rgba(20, 20, 20, 0.05);
  --glass-strong: rgba(20, 20, 20, 0.08);
  --glass-hover: rgba(20, 20, 20, 0.1);
  --shadow: 0 16px 40px rgba(40, 30, 10, 0.12);
  --surface: #e6e2d8;
  --control-bg: rgba(255, 255, 255, 0.72);
  --control-hover: rgba(255, 255, 255, 0.9);
  --banner-base: #8fb7d8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  background-image: none;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home {
  animation: fade-up 0.55s ease 0.12s both;
}

#featured {
  animation: fade-up 0.55s ease 0.24s both;
}

#activity,
.footer {
  animation: fade-up 0.55s ease 0.36s both;
}

.banner-page .hero {
  animation: fade-up 0.55s ease 0.12s both;
}

.banner-page #projects,
.banner-page #gallery {
  animation: fade-up 0.55s ease 0.24s both;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  background-image: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

html::before,
html::after,
body::before,
body::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}

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

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

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

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--control-bg);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle:hover {
  background: var(--control-hover);
}

.wrap {
  width: 100%;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.glass {
  background: var(--bg);
  border: 1px solid var(--line);
}

.nav-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  pointer-events: auto;
}

html[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(20, 20, 20, 0.1);
  box-shadow: 0 8px 24px rgba(40, 30, 10, 0.1);
}

.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.72;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .nav a:hover,
html[data-theme="light"] .nav a.active {
  background: rgba(20, 20, 20, 0.08);
}

main {
  flex: 1;
  padding: 75px 0 48px;
}

.profile-page,
.banner-page {
  display: block;
  width: 100%;
  padding: 0 0 48px;
}

.profile-page + .footer,
main + .footer {
  padding-top: 8px;
}

.profile {
  position: relative;
  overflow: visible;
}

.banner {
  position: relative;
  width: 100%;
  height: min(22vw, 220px);
  min-height: 140px;
  overflow: hidden;
  background: var(--banner-base);
}

.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.photos-page .banner img {
  object-position: 50% 32%;
}

.projects-page .banner img {
  object-position: 50% 58%;
}

.banner-body {
  padding-top: 28px;
}

.banner-day {
  opacity: 0;
}

html[data-theme="light"] .banner-day {
  opacity: 1;
}

html[data-theme="light"] .banner-night {
  opacity: 0;
}

.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: var(--bg);
  mask-image: linear-gradient(to bottom, transparent, #000);
}

html.theme-ready,
html.theme-ready body,
html.theme-ready .page,
html.theme-ready .nav,
html.theme-ready .theme-toggle,
html.theme-ready .icon-link,
html.theme-ready .intro-role,
html.theme-ready .intro-text h1,
html.theme-ready .about h2,
html.theme-ready .panel-head h2,
html.theme-ready .page-title,
html.theme-ready .article h1,
html.theme-ready .slide h3,
html.theme-ready .post h3,
html.theme-ready .about-copy,
html.theme-ready .fact,
html.theme-ready .fact-icon,
html.theme-ready .fact-social,
html.theme-ready .panel-head a,
html.theme-ready .back,
html.theme-ready .slider-btn {
  transition: background-color 0.65s ease, color 0.65s ease, border-color 0.65s ease,
    box-shadow 0.65s ease;
}

html.theme-ready .banner,
html.theme-ready .banner::after {
  transition: background-color 0.65s ease;
}

html.theme-ready .banner img {
  transition: opacity 0.7s ease;
}

.home,
.profile-page .panel {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 36px var(--pad) 8px;
}

.profile-page .panel {
  border-top: 0;
}

.intro {
  display: flex;
  align-items: center;
  gap: 28px;
}

.intro-text h1 {
  margin: 0;
  color: var(--ink);
}

.intro-role {
  margin-top: 6px;
  color: var(--title);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about {
  padding-top: 40px;
}

.about h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.pfp {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 28px;
  background: var(--surface);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
}

.fact {
  display: grid;
  grid-template-columns: 22px minmax(0, max-content);
  column-gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.fact-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--ink);
}

.fact-icon svg {
  width: 18px;
  height: 18px;
}

.fact-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fact-social {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.fact-social svg {
  width: 18px;
  height: 18px;
}

.fact-social:hover {
  color: var(--title);
}

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

.about h2,
.panel-head h2,
.page-title,
.article h1,
.slide h3,
.project-card h3,
.post h3,
.gallery-section h2,
.cat-card h2 {
  color: var(--title);
}

.profile-links a,
.panel-head a,
.back {
  color: var(--ink);
}

.fact > span:last-child {
  min-width: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.profile-links a,
.panel-head a {
  font-size: 14px;
  font-weight: 500;
}

.profile-links a:hover,
.panel-head a:hover {
  text-decoration: underline;
}

.panel {
  padding: 28px var(--pad) 8px;
  border-top: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head h2 {
  font-size: 20px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.about-copy {
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.about-copy a {
  color: var(--title);
  text-decoration: none;
}

.slider {
  position: relative;
}

.slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0 4px;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 min(64vw, 260px);
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
}

.slide h3 {
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.slider-btn {
  position: absolute;
  top: 28%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--control-bg);
  color: var(--ink);
  cursor: pointer;
}

.panel-head .slider-btn {
  position: static;
  width: 32px;
  height: 32px;
}

.slider-btn svg {
  width: 16px;
  height: 16px;
}

.slider-btn.prev {
  left: -4px;
}

.slider-btn.next {
  right: -4px;
}

.slider-btn:hover {
  background: var(--control-hover);
}

.gallery-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-link:hover {
  color: var(--title);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 20px;
}

.cat-card {
  display: block;
  color: inherit;
}

.cat-card h2 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.cat-card p {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.8;
}

.flip-stage {
  perspective: 1100px;
  aspect-ratio: 4 / 3;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-inner.is-flipped {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-face img,
.flip-face video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.7;
}

.crumbs a {
  opacity: 1;
}

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

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

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.play-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
}

.gallery-item.is-video .play-mark {
  width: 32px;
  height: 32px;
}

.play-mark::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  width: min(92vw, 1100px);
  height: min(82vh, 820px);
}

.lightbox-stage img,
.lightbox-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-player {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 14px;
}

.lightbox-player video {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: calc(100% - 46px);
}

.video-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  pointer-events: auto;
}

.video-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.video-toggle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.video-toggle:not(.is-paused)::before {
  width: 10px;
  height: 12px;
  border: 0;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}

.video-seek {
  flex: 1;
  height: 18px;
  margin: 0;
  accent-color: #ffffff;
  cursor: pointer;
}

.video-time {
  flex: none;
  min-width: 84px;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 18px;
  height: 18px;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.lightbox-count {
  position: absolute;
  top: 22px;
  left: 20px;
  color: #fff;
  font-size: 13px;
  pointer-events: none;
}

.featured-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.featured-item,
.activity-item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border-bottom: 0;
}

.featured-item {
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
}

.featured-item img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}

.featured-item strong,
.activity-item strong {
  display: block;
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.featured-item span,
.activity-item em {
  color: var(--faint);
  font-size: 13px;
  font-style: normal;
}

.activity-item:hover strong {
  text-decoration: underline;
}

.hero {
  margin-bottom: 36px;
  text-align: center;
}

.hero .lede {
  margin-left: auto;
  margin-right: auto;
}

h1,
.page-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.title-note {
  color: var(--title);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero .title-note {
  margin-top: 8px;
}

.panel-head .title-note {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.lede {
  max-width: 640px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.section {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
}

.section h2 {
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.section p,
.body-copy {
  margin-top: 12px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.projects {
  display: block;
}

.project-grid {
  column-count: 3;
  column-gap: 16px;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
}

.active-star {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 6px;
  color: var(--title);
  vertical-align: -0.08em;
}

.active-star svg {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.project-stack {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.project-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.project-card,
.slide[data-project] {
  cursor: pointer;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.project-modal[hidden] {
  display: none;
}

.project-sheet {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 28px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
}

.project-sheet .lightbox-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
}

.project-sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  clear: both;
}

.project-carousel {
  position: sticky;
  top: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-hero {
  width: 100%;
  height: min(64vh, 560px);
  object-fit: contain;
  object-position: center;
}

.project-copy h2 {
  margin-top: 0;
}

.project-carousel .slider-btn {
  top: 50%;
  transform: translateY(-50%);
}

.project-carousel .slider-btn.prev {
  left: 10px;
}

.project-carousel .slider-btn.next {
  right: 10px;
}

.project-carousel-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
}

.project-sheet h2 {
  margin: 0;
  color: var(--title);
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.project-readme h3 {
  margin: 18px 0 8px;
  color: var(--title);
  font-size: 16px;
  font-weight: 590;
}

.project-readme p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}


.project {
  overflow: hidden;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.media img,
.media video,
.media iframe,
.media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media video {
  z-index: 1;
  opacity: 0;
}

.media video.is-on {
  opacity: 1;
}

.media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  font-size: 12px;
  color: var(--muted);
}

.project-body {
  padding: 18px 0 0;
}

.project-body h3 {
  font-size: 22px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.meta {
  margin-top: 6px;
  color: var(--faint);
  font-size: 13px;
}

.project-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.stack span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.posts {
  display: grid;
  gap: 12px;
}

.post {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post em {
  color: var(--faint);
  font-size: 13px;
  font-style: normal;
}

.post h3 {
  font-size: 22px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

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

.article {
  max-width: 720px;
}

.article h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.article .meta {
  margin-top: 14px;
}

.article .body-copy {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.65;
}

.article .body-copy p:first-child {
  margin-top: 0;
}

.back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px var(--pad) 36px;
  color: var(--faint);
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line);
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

.icon-link:hover {
  color: var(--ink);
  background: var(--glass-hover);
}

.mock {
  width: 100%;
  height: 100%;
  padding: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.45);
}

.mock-row,
.mock-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.mock-row {
  height: 12px;
  margin-bottom: 8px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 10px;
}

.mock-card {
  min-height: 92px;
  padding: 12px;
}

.mock-card b {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .nav-wrap {
    top: 12px;
  }

  .nav {
    max-width: calc(100vw - 72px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .profile {
    min-height: auto;
  }

  .banner {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .pfp {
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }

  .home,
  .profile-page .panel {
    padding: 28px var(--pad) 8px;
  }

  .about {
    padding-top: 32px;
  }

  .slide {
    flex-basis: 84vw;
  }

  .project-grid {
    column-count: 2;
    column-gap: 10px;
  }

  .project-sheet {
    padding: 18px 16px 28px;
  }

  .project-sheet-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-carousel {
    position: relative;
    top: auto;
  }

  .project-hero {
    height: min(42vh, 320px);
  }

  .slider-btn {
    width: 32px;
    height: 32px;
  }

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

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .featured-item {
    grid-template-columns: 76px 1fr;
    gap: 12px;
  }

  .featured-item img {
    width: 76px;
    height: 56px;
  }

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

  main {
    padding: 64px 0 32px;
  }

  .profile-page {
    padding-top: 0;
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .media {
    aspect-ratio: 16 / 10;
  }
}

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