@font-face {
  font-family: "PP Mondwest Regular";
  src: url("../fonts/pp-mondwest-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/fragment-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

html.smooth-scroll {
  overflow: hidden;
}

body.smooth-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  font-weight: 400;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.5;
}

.page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

/* Header / Nav */
.site-header {
  padding: 90px 0 0;
}

.site-header a {
  display: block;
}

.site-header h1 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: normal;
  color: rgb(25, 25, 25);
}

.site-header h1 + h1 {
  font-weight: 400;
  color: rgb(64, 64, 64);
}

/* Home page hero */
.hero-section {
  padding: 90px 0;
}

.hero-section .hero-name {
  font-family: "PP Mondwest Regular", sans-serif;
  font-size: 16px;
  color: #404040;
}

.hero-section .hero-title {
  font-family: "PP Mondwest Regular", sans-serif;
  font-size: 16px;
  color: #404040;
}

/* Content sections */
.content-section {
  margin-bottom: 60px;
}

.content-section p,
.content-section h1 {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: rgb(64, 64, 64);
  font-family: "Inter", sans-serif;
}

.content-section p a,
.content-section h1 a {
  color: #404040;
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.content-section p a:hover,
.content-section h1 a:hover {
  text-decoration-color: #000;
}

/* 3D Navigation Cards */
.nav-cards-3d {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 60px 0;
  gap: 20px;
}

.nav-card-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-card-3d:hover {
  opacity: 0.9;
}

.nav-card-title {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgb(64, 64, 64);
  margin-top: 24px;
  text-align: center;
}

/* 3D Folder */
.folder-container {
  width: 180px;
  height: 160px;
  perspective: 1200px;
}

.folder {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(1200px);
  transform-origin: 50% 100%;
}

.folder-back {
  position: absolute;
  width: 163px;
  height: 142px;
  left: 9px;
  top: 0;
  background: linear-gradient(180deg, #e8734a 0%, #fc5003 52%);
  border-radius: 12px;
  z-index: 0;
}

.folder-paper {
  position: absolute;
  width: 140px;
  height: 106px;
  left: 20px;
  top: 24px;
  background: linear-gradient(180deg, #fff 0%, #f4f4f4 15%);
  border-radius: 10px;
  transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.folder-paper-1 { z-index: 1; }
.folder-paper-2 { z-index: 2; }
.folder-paper-3 { z-index: 3; }

.folder-front {
  position: absolute;
  width: 163px;
  height: 142px;
  left: 9px;
  top: 0;
  background: linear-gradient(180deg, #fd956b 0%, #fc5003 52%);
  border-radius: 12px;
  box-shadow: inset 0 0.75px 0 #ffb697;
  z-index: 4;
  transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-card-3d:hover .folder-front {
  transform: rotateX(-55deg);
}

.nav-card-3d:hover .folder-paper-1 {
  transform: rotateX(-20deg);
}

.nav-card-3d:hover .folder-paper-2 {
  transform: rotateX(-35deg);
}

.nav-card-3d:hover .folder-paper-3 {
  transform: rotateX(-45deg);
}

/* Papers Stack (Essays) */
.papers-container {
  width: 180px;
  height: 160px;
  perspective: 1200px;
}

.papers-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.paper {
  position: absolute;
  border-radius: 10px;
  transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.paper-back {
  width: 140px;
  height: 106px;
  left: 20px;
  top: 24px;
  background: linear-gradient(180deg, #fff 8%, #f4f4f4 104%);
  border: 1px solid rgba(237, 237, 237, 0.5);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(204, 204, 204, 0.25);
  transform: rotate(3deg);
  z-index: 1;
}

.paper-mid {
  width: 140px;
  height: 106px;
  left: 20px;
  top: 24px;
  background: linear-gradient(180deg, #fff 0%, #f4f4f4 133%);
  border: 1px solid rgba(237, 237, 237, 0.75);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(204, 204, 204, 0.25);
  transform: rotate(2deg);
  z-index: 2;
}

.paper-front {
  width: 140px;
  height: 106px;
  left: 20px;
  top: 24px;
  background: linear-gradient(180deg, #fff 100%, #f2f2f2 117%);
  border: 1px solid rgb(237, 237, 237);
  border-radius: 10px;
  box-shadow: -0.18px 0.6px 0.63px -1.25px rgba(181, 181, 181, 0.18),
              -0.69px 2.29px 2.39px -2.5px rgba(181, 181, 181, 0.16),
              -3px 10px 10.44px -3.75px rgba(181, 181, 181, 0.06);
  z-index: 3;
  padding: 12px;
  overflow: hidden;
}

.paper-front p {
  font-size: 8px;
  line-height: 1.4;
  color: rgb(128, 128, 128);
  text-align: center;
}

.nav-card-3d:hover .paper-back {
  transform: rotate(8deg) translateY(-5px);
}

.nav-card-3d:hover .paper-mid {
  transform: rotate(5deg) translateY(-3px);
}

.nav-card-3d:hover .paper-front {
  transform: rotate(0deg) translateY(-2px);
}

/* Clock (Experiments) */
.clock-container {
  width: 180px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.clock {
  position: relative;
  width: 134px;
  height: 134px;
  background: linear-gradient(180deg, #e6e6e6 6%, #ababab 100%);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.clock-face {
  position: relative;
  width: 120px;
  height: 120px;
  background: #fff;
  border: 0.64px solid rgb(222, 222, 222);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
}

.clock-hour {
  width: 3px;
  height: 28px;
  background: rgb(25, 25, 25);
  transform: translateX(-50%) rotate(-45deg);
}

.clock-minute {
  width: 2px;
  height: 36px;
  background: rgb(252, 80, 3);
  transform: translateX(-50%) rotate(30deg);
}

.clock-center {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgb(25, 25, 25);
  border-radius: 50%;
  z-index: 2;
}

.nav-card-3d:hover .clock {
  transform: perspective(1200px) rotateY(-10deg) rotateX(5deg);
}

.nav-card-3d:hover .clock-hour {
  animation: clockHour 1s ease-in-out infinite;
}

.nav-card-3d:hover .clock-minute {
  animation: clockMinute 2s linear infinite;
}

@keyframes clockHour {
  0%, 100% { transform: translateX(-50%) rotate(-45deg); }
  50% { transform: translateX(-50%) rotate(45deg); }
}

@keyframes clockMinute {
  0% { transform: translateX(-50%) rotate(30deg); }
  100% { transform: translateX(-50%) rotate(390deg); }
}

/* Experience section */
.experience-section {
  margin: 60px 0;
}

.experience-section h1 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 30px;
  color: rgb(25, 25, 25);
}

.experience-item {
  margin-bottom: 40px;
}

.experience-item h1 {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  margin-bottom: 12px;
  color: rgb(64, 64, 64);
}

.experience-item h1 a {
  color: rgb(64, 64, 64);
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.experience-item h1 a:hover {
  text-decoration-color: rgb(25, 25, 25);
}

/* Features section */
.features-section {
  margin: 60px 0;
}

.features-section h1 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 30px;
  color: rgb(25, 25, 25);
}

.feature-item {
  margin-bottom: 16px;
}

.feature-item h2 {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: rgb(64, 64, 64);
}

.feature-item h2 a {
  color: rgb(64, 64, 64);
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.feature-item h2 a:hover {
  text-decoration-color: rgb(25, 25, 25);
}

/* Project listing */
.project-listing {
  padding: 60px 0;
}

.project-card {
  display: block;
  margin-bottom: 60px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  perspective: 1200px;
}

.project-card:hover {
  opacity: 0.85;
}

.project-card-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.project-card-image img,
.project-card-image video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-card-image .gradient-placeholder {
  background: linear-gradient(rgb(255, 255, 255) 0%, rgb(244, 244, 244) 15%);
  border-radius: 10px;
  aspect-ratio: 16/10;
}

.project-card-title {
  font-family: "PP Mondwest Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.project-card-meta {
  font-family: "PP Mondwest Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #9f9fa1;
  letter-spacing: 0.25em;
}

/* Essay listing */
.essay-listing {
  padding: 60px 0;
}

.essay-intro {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.essay-card {
  display: block;
  padding: 40px 0;
  border-top: 1px solid rgb(230, 230, 230);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.essay-card:last-child {
  border-bottom: 1px solid rgb(230, 230, 230);
}

.essay-card:hover {
  opacity: 0.7;
}

.essay-card-title {
  font-family: "PP Mondwest Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
  line-height: 1.6;
}

.essay-card-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.essay-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.essay-card-preview {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  max-height: 3.6em;
  overflow: hidden;
}

.essay-card-read-time {
  font-size: 14px;
  color: #999;
  margin-top: 8px;
}

/* Experiments */
.experiments-listing {
  padding: 60px 0;
}

.experiments-intro {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 60px;
}

.experiment-card {
  margin-bottom: 80px;
}

.experiment-card-title {
  font-family: "PP Mondwest Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.experiment-card-title a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
}

.experiment-card-title a:hover {
  text-decoration-color: #000;
}

.experiment-card-description {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* Project detail page */
.project-detail {
  padding: 60px 0;
}

.project-detail-hero {
  margin-bottom: 40px;
}

.project-detail-hero h1 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-detail-hero .project-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.collaborators {
  margin: 40px 0;
}

.collaborators h1 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.collaborators .collaborator-links {
  font-size: 16px;
  line-height: 1.5;
}

.collaborators .collaborator-links a {
  color: #404040;
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.collaborators .collaborator-links a:hover {
  text-decoration-color: #000;
}

.project-section {
  margin: 60px 0;
}

.project-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.project-section-header h1 {
  font-size: 16px;
  font-weight: 500;
}

.project-section-header .section-number {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.project-section p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-media {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
}

.project-media img,
.project-media video {
  width: 100%;
  border-radius: 10px;
}

.project-media .gradient-bg {
  background: linear-gradient(rgb(255, 255, 255) 0%, rgb(244, 244, 244) 15%);
  border-radius: 10px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afterthought {
  margin: 60px 0;
  font-size: 16px;
  line-height: 1.5;
}

.related-projects {
  margin: 60px 0;
  padding-top: 40px;
  border-top: 1px solid rgb(230, 230, 230);
}

.related-projects h1 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}

.related-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
}

.related-link a {
  color: #404040;
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.related-link a:hover {
  text-decoration-color: #000;
}

/* Essay detail */
.essay-detail {
  padding: 60px 0;
}

.essay-detail h1 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
}

.essay-detail .essay-subtitle {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.essay-section {
  margin-bottom: 40px;
}

.essay-section h1 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.essay-section p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgb(230, 230, 230);
  margin-top: 80px;
}

.site-footer h1 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
  color: rgb(25, 25, 25);
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-links h1 {
  font-size: 16px;
  font-weight: 400;
  color: rgb(64, 64, 64);
}

.footer-links a {
  color: rgb(64, 64, 64);
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  text-decoration-color: rgb(25, 25, 25);
}

.footer-copyright {
  font-size: 14px;
  color: rgb(159, 159, 161);
}

/* Letter-spaced heading style */
.letter-spaced {
  letter-spacing: 0.25em;
}

/* I believe section */
.believe-section {
  margin: 60px 0;
}

.believe-section h1 {
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: rgb(25, 25, 25);
}

/* Closing section */
.closing-section {
  margin: 60px 0;
}

.closing-section h1 {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: rgb(64, 64, 64);
}

.closing-section a {
  color: rgb(64, 64, 64);
  text-decoration: underline;
  text-decoration-color: rgb(217, 217, 217);
  text-underline-offset: 3px;
}

.closing-section a:hover {
  text-decoration-color: rgb(25, 25, 25);
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    padding: 0 20px;
  }

  .site-header {
    padding: 40px 0 0;
  }

  .hero-section {
    padding: 40px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0 16px;
  }
}
