@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Playfair+Display:wght@400;500;600;700&display=swap");

:root {
  --teal-1: #0b6e6e;
  --teal-2: #0e8a8a;
  --teal-3: #3bb2b2;
  --cream-1: #f7f1e9;
  --cream-2: #efe3d3;
  --ink: #1b2a2a;
  --shadow: rgba(14, 20, 20, 0.2);
  --glass: rgba(247, 241, 233, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream-1);
  min-height: 100vh;
}

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

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.35;
}

.blob-1 {
  background: radial-gradient(circle at 30% 30%, var(--teal-3), transparent 60%);
  top: -120px;
  left: -140px;
}

.blob-2 {
  background: radial-gradient(circle at 70% 30%, var(--teal-2), transparent 65%);
  bottom: -180px;
  right: -120px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(14, 20, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 20, 20, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 8vw 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.topbar.nav-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  padding: 30px 8vw 30px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 36px;
  background: var(--glass);
  border: 1px solid rgba(14, 20, 20, 0.1);
  box-shadow: 0 24px 60px var(--shadow);
  border-radius: 26px;
  backdrop-filter: blur(8px);
  transform: translateZ(0);
  position: relative;
}

.hero-inner::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(14, 20, 20, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.window-chrome {
  position: absolute;
  top: 22px;
  left: 30px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.window-chrome span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.window-chrome span:nth-child(1) { background: #ff5f56; }
.window-chrome span:nth-child(2) { background: #ffbd2e; }
.window-chrome span:nth-child(3) { background: #27c93f; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-1);
  color: var(--cream-1);
  font-size: 14px;
  letter-spacing: 0.4px;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin: 12px 0;
}

h1 {
  font-size: 48px;
}

.subtitle {
  font-size: 15px;
  color: rgba(27, 42, 42, 0.8);
}

.summary {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
}

.links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.link-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(14, 20, 20, 0.2);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 25px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px var(--shadow);
}

.tab {
  border: none;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.tab.active {
  background: var(--teal-1);
  color: var(--cream-1);
}

.tab.ghost {
  background: rgba(255, 255, 255, 0.5);
}

.tab:hover {
  transform: translateY(-2px);
}

main.stacked {
  padding: 0 8vw 80px;
}

.section-card {
  max-width: 1100px;
  margin: 0 auto 22px;
  padding: 18px 4px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, padding 0.3s ease;
}

.section-card::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, transparent, rgba(27, 42, 42, 0.15), transparent);
}

.section-card.is-focused,
.section-card:hover {
  background: var(--glass);
  border: 1px solid rgba(14, 20, 20, 0.1);
  box-shadow: 0 22px 50px var(--shadow);
  padding: 26px 28px;
}

.section-card.boxy {
  background: var(--glass);
  border: 1px solid rgba(14, 20, 20, 0.1);
  box-shadow: 0 22px 50px var(--shadow);
  padding: 26px 28px;
}

.section-card.boxy::after {
  content: none;
}

.section-card ul {
  padding-left: 18px;
  line-height: 1.6;
}

.section-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}

.profile-wrap {
  text-align: center;
}

.profile-frame {
  width: 220px;
  height: 260px;
  margin: 0 auto 10px;
  border-radius: 24px;
  border: 1px solid rgba(14, 20, 20, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(14, 138, 138, 0.1));
  box-shadow: inset 0 0 0 2px rgba(14, 20, 20, 0.06), 0 18px 40px var(--shadow);
  display: grid;
  place-items: center;
}

.profile-placeholder {
  font-size: 14px;
  color: rgba(27, 42, 42, 0.6);
}

.edu {
  display: grid;
  gap: 18px;
}

.edu-highlight {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.skills-title {
  opacity: 0;
  max-height: 0;
  margin: 0;
  transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
}

.skills-orbit {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 138, 138, 0.08), transparent);
  overflow: hidden;
}

.skills-orbit.is-stacked {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  min-height: auto;
}

.section-card.skills-stacked .skills-title {
  opacity: 1;
  max-height: 60px;
  margin: 0 0 10px;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--teal-1);
  color: var(--cream-1);
  display: grid;
  place-items: center;
  font-weight: 600;
  box-shadow: 0 18px 40px var(--shadow);
}

.skills-orbit.is-stacked .core {
  display: none;
}

.skill {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(14, 20, 20, 0.15);
  font-size: 13px;
  box-shadow: 0 10px 24px var(--shadow);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.skills-orbit.is-stacked .skill {
  position: static;
  animation: none;
}

.s1 { top: 6%; left: 6%; animation-delay: 0s; }
.s2 { top: 12%; right: 6%; animation-delay: 0.2s; }
.s3 { top: 30%; left: 2%; animation-delay: 0.4s; }
.s4 { top: 8%; right: 28%; animation-delay: 0.6s; }
.s5 { top: 52%; left: 6%; animation-delay: 0.8s; }
.s6 { top: 70%; right: 10%; animation-delay: 1s; }
.s7 { top: 82%; left: 22%; animation-delay: 1.2s; }
.s8 { top: 22%; right: 32%; animation-delay: 1.4s; }
.s9 { top: 46%; right: 2%; animation-delay: 1.6s; }
.s10 { top: 60%; left: 38%; animation-delay: 1.8s; }
.s11 { top: 14%; left: 36%; animation-delay: 2s; }
.s12 { top: 74%; right: 34%; animation-delay: 2.2s; }
.s13 { top: 48%; left: 62%; animation-delay: 2.4s; }
.s14 { top: 34%; left: 64%; animation-delay: 2.6s; }
.s15 { top: 86%; right: 18%; animation-delay: 2.8s; }
.s16 { top: 40%; left: 22%; animation-delay: 3s; }
.s17 { top: 62%; right: 46%; animation-delay: 3.2s; }
.s18 { top: 24%; left: 74%; animation-delay: 3.4s; }
.s19 { top: 88%; left: 6%; animation-delay: 3.6s; }
.s20 { top: 6%; left: 58%; animation-delay: 3.8s; }
.s21 { top: 26%; left: 48%; animation-delay: 4s; }
.s22 { top: 58%; right: 28%; animation-delay: 4.2s; }
.s23 { top: 92%; left: 50%; animation-delay: 4.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--teal-1), transparent);
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-1);
  margin-top: 6px;
  box-shadow: 0 6px 12px var(--shadow);
}

/* ── Center-line work experience timeline ─────────────── */

.exp-timeline {
  position: relative;
  padding: 12px 0 12px;
}

/* Gray center track line */
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(27, 42, 42, 0.12);
  transform: translateX(-50%);
}

/* Teal scrolling circle */
.exp-cursor {
  position: absolute;
  left: 50%;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal-3);
  box-shadow: 0 0 0 3px var(--cream-1), 0 0 0 5px var(--teal-3);
  transform: translate(-50%, -50%);
  transition: top 0.15s ease;
  z-index: 2;
  pointer-events: none;
}

.exp-event {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 0 20px;
  margin-bottom: 40px;
  align-items: start;
}

/* Center dot on the line */
.exp-dot {
  grid-column: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-1);
  border: 2px solid var(--cream-1);
  box-shadow: 0 0 0 1px var(--teal-1);
  margin-top: 8px;
  justify-self: center;
  z-index: 1;
}

/* Right side: card in column 3 */
.exp-right .exp-card {
  grid-column: 3;
  grid-row: 1;
}
.exp-right .exp-dot {
  grid-row: 1;
}

/* Left side: card in column 1 */
.exp-left .exp-card {
  grid-column: 1;
  grid-row: 1;
}
.exp-left .exp-dot {
  grid-row: 1;
}

.exp-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.exp-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.exp-card li {
  font-size: 14px;
  margin-bottom: 5px;
}

@media (max-width: 720px) {
  .exp-timeline::before { left: 8px; transform: none; }
  .exp-cursor { left: 8px; }
  .exp-event {
    grid-template-columns: 24px 1fr;
    gap: 0 12px;
  }
  .exp-dot { grid-column: 1; }
  .exp-right .exp-card,
  .exp-left .exp-card {
    grid-column: 2;
    grid-row: 1;
  }
  .exp-left .exp-dot { grid-column: 1; }
}

.stack {
  display: grid;
  gap: 16px;
}

.stack-item {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

.project-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 34px var(--shadow);
}

.project-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(14, 110, 110, 0.15);
  color: var(--teal-1);
  margin-bottom: 8px;
}

.project-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.diary {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cream-2);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 26px 70px var(--shadow);
  position: relative;
}

.diary::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(27, 42, 42, 0.2);
  pointer-events: none;
}

.diary-cover {
  background: linear-gradient(120deg, rgba(14, 110, 110, 0.2), rgba(255, 255, 255, 0.6));
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(27, 42, 42, 0.12);
}

.diary-entry {
  background: repeating-linear-gradient(
    to bottom,
    rgba(27, 42, 42, 0.08) 0px,
    rgba(27, 42, 42, 0.08) 1px,
    transparent 1px,
    transparent 26px
  );
  padding: 20px 18px 24px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(27, 42, 42, 0.12);
  display: block;
}

.diary-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--shadow);
}

.entry-cta {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--teal-1);
}

.diary-post {
  max-width: 880px;
}

.diary-content {
  position: relative;
  z-index: 1;
}

.diary-content a {
  color: var(--teal-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.diary-photo {
  margin: 22px 0;
}

.photo-frame {
  width: 100%;
  height: 240px;
  border-radius: 18px;
  border: 1px solid rgba(14, 20, 20, 0.12);
  background: linear-gradient(135deg, rgba(14, 110, 110, 0.18), rgba(255, 255, 255, 0.8));
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px var(--shadow);
}

.photo-frame.wide {
  height: 300px;
}

.photo-placeholder {
  font-size: 14px;
  color: rgba(27, 42, 42, 0.6);
}

.entry-date {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(27, 42, 42, 0.6);
}

.footer {
  padding: 30px 8vw 50px;
  color: rgba(27, 42, 42, 0.7);
}

.muted {
  color: rgba(27, 42, 42, 0.7);
}

@media (max-width: 720px) {
  h1 { font-size: 36px; }
  .hero-inner { padding: 56px 26px 26px; }
  .skills-orbit { min-height: 520px; }
  .topbar-inner { justify-content: flex-start; }
  .profile-frame { width: 180px; height: 220px; }
  .window-chrome { left: 22px; }
  .hero-inner::before { left: 12px; right: 12px; }
}




.project-pill-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(14, 110, 110, 0.15);
  color: var(--teal-1);
  margin-bottom: 0;
}

.project-tag.brand-google {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(14, 20, 20, 0.12);
  color: transparent;
  background-image: linear-gradient(90deg, #4285F4 0%, #DB4437 28%, #F4B400 56%, #0F9D58 84%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
}

.project-tag.brand-uw {
  background: rgba(75, 46, 131, 0.12);
  border: 1px solid rgba(75, 46, 131, 0.3);
  color: #4b2e83;
  font-weight: 600;
}


.project-card.is-link {
  cursor: pointer;
}

.project-card.is-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(14, 20, 20, 0.22);
}

.project-hint {
  font-size: 13px;
  color: rgba(27, 42, 42, 0.55);
  line-height: 1;
}


.profile-frame {
  overflow: hidden;
}

.profile-photo {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.build-title {
  position: relative;
  display: inline-block;
}

.build-word {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
}

.build-word.is-typing::after {
  content: "|";
  font-weight: 300;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ── Blog index page ──────────────────────────────────── */

.blog-index {
  max-width: 720px;
  margin: 60px auto 100px;
  padding: 0 6vw;
}

.blog-index-header {
  margin-bottom: 56px;
}

.blog-index-sub {
  font-size: 17px;
  color: rgba(27, 42, 42, 0.65);
  margin: 8px 0 0;
  line-height: 1.6;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-list-item {
  display: block;
  padding: 36px 0;
  border-top: 1px solid rgba(27, 42, 42, 0.1);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.blog-list-item:last-child {
  border-bottom: 1px solid rgba(27, 42, 42, 0.1);
}

.blog-list-item:hover {
  opacity: 0.75;
}

.blog-list-date {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(27, 42, 42, 0.45);
  margin-bottom: 10px;
}

.blog-list-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.3;
}

.blog-list-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(27, 42, 42, 0.7);
  margin: 0 0 14px;
}

.blog-list-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-1);
}

/* ── Blog post layout ─────────────────────────────────── */

.blog-page {
  display: grid;
  grid-template-columns: 200px 1fr;
  max-width: 1320px;
  margin: 48px auto 0;
  padding: 0 3vw 100px;
  gap: 0 56px;
  align-items: start;
}

/* Sticky TOC */
.toc-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: 0 18px;
}

/* Gray track column — stretches to nav height via CSS Grid */
.toc-track {
  position: relative;
  background: rgba(27, 42, 42, 0.15);
  border-radius: 2px;
}

/* Teal bar grows from top inside the track */
.toc-progress {
  position: absolute;
  top: 0;
  left: -0.5px;
  width: 3px;
  height: 0;
  background: #3bb2b2;
  border-radius: 2px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc-link {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(27, 42, 42, 0.5);
  text-decoration: none;
  transition: color 0.18s ease;
}

.toc-link:hover {
  color: var(--ink);
}

.toc-link.active {
  color: var(--teal-1);
  font-weight: 500;
}

/* Blog article */
.blog-header {
  margin-bottom: 52px;
}

.blog-meta {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(27, 42, 42, 0.48);
  margin: 0 0 14px;
}

.blog-title {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

.blog-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 600;
  margin: 52px 0 18px;
  color: var(--ink);
  scroll-margin-top: 100px;
}

.blog-body p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 18px;
  color: var(--ink);
}

.blog-body ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

.blog-body li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--ink);
}

.blog-body em {
  font-style: italic;
  color: rgba(27, 42, 42, 0.85);
}

.blog-body strong {
  font-weight: 600;
}

@media (max-width: 820px) {
  .blog-page {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    display: none;
  }
  .blog-title {
    font-size: 30px;
  }
}
