:root {
  --bg: #f7f2ea;
  --bg-soft: rgba(255, 255, 255, 0.58);
  --text: #101010;
  --muted: #4e4a45;
  --hero-red: #d51f17;
  --yc-orange: #ff6d1f;
  --harvard-crimson: #a51c30;
  --neurips-purple: #5b2ca0;
  --iclr-blue: #1667c7;
  --icml-green: #0b8a6b;
  --line: rgba(16, 16, 16, 0.14);
  --card-border: rgba(16, 16, 16, 0.08);
  --shadow: 0 24px 70px rgba(124, 64, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(16, 16, 16, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(213, 31, 23, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 109, 31, 0.018) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(213, 31, 23, 0.1), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255, 109, 31, 0.12), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 56%, #efe8de 100%);
  background-size: 38px 38px, 38px 38px, 152px 152px, 152px 152px, auto, auto, auto;
  background-position: 0 0, 0 0, -18px -12px, -18px -12px, 0 0, 0 0, 0 0;
  background-attachment: fixed, fixed, fixed, fixed, scroll, scroll, scroll;
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.5;
}

.page-shell::before {
  top: 7vh;
  left: -8rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(213, 31, 23, 0.07) 0%, rgba(213, 31, 23, 0.02) 34%, transparent 72%);
}

.page-shell::after {
  right: -10rem;
  bottom: 18vh;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(255, 109, 31, 0.06) 0%, rgba(255, 109, 31, 0.018) 32%, transparent 72%);
}

.hero,
.content-sections {
  width: min(1200px, calc(100vw - 3rem));
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 3rem 0 1rem;
}

.hero-copy {
  padding-top: 2vh;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.6rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 700;
  color: var(--hero-red);
}

.credential-list {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.credential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.15;
  text-transform: lowercase;
  letter-spacing: -0.035em;
}

.credential-text {
  max-width: 44rem;
}

.word-yc {
  color: var(--yc-orange);
}

.word-harvard {
  color: var(--harvard-crimson);
}

.word-neurips {
  color: var(--neurips-purple);
}

.word-iclr {
  color: var(--iclr-blue);
}

.word-icml {
  color: var(--icml-green);
}

.credential-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.credential-logos img {
  height: 1.55rem;
  width: auto;
}

.credential-logos img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 1.4rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
  border-color: rgba(16, 16, 16, 0.25);
  transform: translateY(-1px);
}

.scroll-indicator {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.scroll-line {
  width: 4rem;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: pulse-line 1.8s ease-in-out infinite;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 600;
}

h3 {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.content-sections {
  padding: 3rem 0 5rem;
}

.content-section + .content-section {
  margin-top: 4.5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.section-index,
.section-kicker,
.entry-label,
.entry-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.section-index,
.entry-label {
  text-transform: uppercase;
}

.section-kicker {
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.35rem;
}

.project-proficiencies {
  margin-top: 1.35rem;
}

.project-proficiencies-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.project-proficiencies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 1.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 240, 0.72)),
    var(--bg-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.project-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 16, 16, 0.05), transparent 68%);
  pointer-events: none;
}

.project-card-accent {
  height: 0.38rem;
}

.project-media-shell {
  padding: 1.1rem 1.1rem 0;
}

.project-media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px dashed rgba(16, 16, 16, 0.18);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(213, 31, 23, 0.06), rgba(255, 109, 31, 0.08)),
    rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.82);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-accent-red {
  background: linear-gradient(90deg, #d51f17, #ff6d1f);
}

.project-card-accent-orange {
  background: linear-gradient(90deg, #ff7a18, #ffb347);
}

.project-card-accent-blue {
  background: linear-gradient(90deg, #1667c7, #58a6ff);
}

.project-card-accent-gold {
  background: linear-gradient(90deg, #c98911, #f0c45c);
}

.project-card-accent-green {
  background: linear-gradient(90deg, #0b8a6b, #4dc59b);
}

.project-card-accent-rose {
  background: linear-gradient(90deg, #b43867, #e27ea7);
}

.project-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem 1.4rem 1.45rem;
}

.project-card .entry-body {
  min-height: 5.6rem;
}

.project-card .entry-body h3 {
  font-size: 1.72rem;
  line-height: 0.98;
}

.project-card .entry-body p {
  font-size: 1rem;
  color: #3d3833;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem 0.45rem 0.5rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1;
  color: #2f2a26;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.tech-react .tech-icon {
  background: #119db7;
}

.tech-next .tech-icon,
.tech-electron .tech-icon {
  background: #111;
}

.tech-js .tech-icon {
  background: #d9b400;
  color: #111;
}

.tech-python .tech-icon {
  background: linear-gradient(135deg, #326da8, #f2c84b);
  color: #111;
}

.tech-html .tech-icon {
  background: #de4b25;
}

.tech-css .tech-icon {
  background: #1d7ed6;
}

.tech-tailwind .tech-icon {
  background: #0ea5a6;
}

.tech-pytorch .tech-icon {
  background: #e36d2f;
}

.tech-tensorflow .tech-icon {
  background: #ef8e00;
}

.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(16, 16, 16, 0.18);
}

.entry-card {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  background: var(--bg-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.entry-card .entry-label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #25201c;
}

.entry-date {
}

.entry-body p {
  margin-top: 0.45rem;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.42;
  color: var(--muted);
}

.entry-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(16, 16, 16, 0.18);
}

.entry-link-muted {
  color: var(--muted);
  border-bottom-color: rgba(16, 16, 16, 0.1);
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.45;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

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

  .scroll-line {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-card {
    grid-template-columns: 1fr;
  }
}

.grey{
  color: grey;
}

@media (max-width: 720px) {
  .hero,
  .content-sections {
    width: min(calc(100vw - 1.5rem), 1200px);
  }

  .hero {
    gap: 1rem;
    padding: 0.85rem 0 0.55rem;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 13vw, 4.6rem);
    line-height: 0.9;
    text-wrap: balance;
  }

  .credential {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    font-size: 1.18rem;
  }

  .credential-text {
    flex: 1;
    min-width: 0;
  }

  .credential-logos {
    display: none;
  }

  .social-links {
    gap: 0.55rem 0.65rem;
    margin-top: 1.15rem;
  }

  .social-links .grey {
    display: none;
  }

  .social-links a {
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
  }

  .scroll-indicator {
    margin-top: 0.1rem;
  }

  .scroll-line {
    width: 3rem;
  }

  .content-sections {
    padding: 1.1rem 0 4rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

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

  .project-card-copy {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .project-card .entry-body {
    min-height: auto;
  }

  .project-card .entry-body h3 {
    font-size: 1.45rem;
  }

  .project-media-shell {
    padding: 0.9rem 0.9rem 0;
  }

  .project-media-tag {
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.34rem 0.55rem;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .entry-list {
    gap: 0.85rem;
  }

  .entry-card {
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1.2rem;
  }

  .entry-meta {
    gap: 0.2rem;
  }

  .entry-card .entry-label {
    font-size: 0.9rem;
  }

  .entry-body h3 {
    line-height: 1.05;
  }

  .entry-body p {
    font-size: 0.95rem;
  }

  .content-section + .content-section {
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .hero,
  .content-sections {
    width: min(calc(100vw - 1rem), 1200px);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.3rem, 11.8vw, 3.35rem);
    letter-spacing: -0.06em;
  }

  .credential-list {
    margin-top: 1.6rem;
    gap: 0.8rem;
  }

  .scroll-line {
    width: 2.35rem;
  }

  .credential {
    gap: 0.55rem;
    font-size: 1.06rem;
  }

  .project-proficiencies-list {
    gap: 0.45rem;
  }

  .tech-badge {
    font-size: 0.76rem;
    padding: 0.42rem 0.64rem 0.42rem 0.48rem;
  }

  .tech-icon {
    min-width: 1.45rem;
    height: 1.45rem;
    font-size: 0.62rem;
  }

  .project-card {
    border-radius: 1.35rem;
  }
}
