/* ========================================
   PAGE TRANSITION
======================================== */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

html.page-entering .page-wrap {
  transform: translateY(60px);
  opacity: 0;
}

html.page-entered .page-wrap {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

html.page-leaving .page-wrap {
  transform: translateY(-60px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.55, 0, 1, 0.45),
              opacity 0.38s cubic-bezier(0.55, 0, 1, 0.45);
}

.page-wrap {
  min-height: 100vh;
}


/* ========================================
   GLOBAL RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PT Sans', sans-serif;
  background-color: #fdfcf9;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  body { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  body { padding: 0 1rem; }
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}


/* ========================================
   FIXED LEFT: SOCIAL ICONS
======================================== */
.side-social {
  position: fixed;
  left: 1.2rem;
  top: 35%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2000;
}

.side-social a {
  font-size: 1.25rem;
  transition: color 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #555;
}

.side-social a:hover {
  transform: scale(1.15);
  color: #111;
}

@media (max-width: 1024px) {
  .side-social { display: none; }
}


/* ========================================
   FIXED RIGHT: SIDE NAV
======================================== */
.side-nav {
  position: fixed;
  right: 1.2rem;
  top: 35%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 2000;
  align-items: flex-end;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: color 0.2s ease;
  color: #999;
}

.side-nav-item:hover { color: #555; }
.side-nav-item.active { color: #111; }

.side-nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  opacity: 0.55;
}

.side-nav-item:hover .side-nav-label { opacity: 0.8; }
.side-nav-item.active .side-nav-label { opacity: 1; }

.side-nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.side-nav-item.active .side-nav-dot {
  transform: scale(1.8);
  background-color: #111;
}

.side-nav-item:hover .side-nav-dot { transform: scale(1.4); }

@media (max-width: 1024px) {
  .side-nav { display: none; }
}


/* ========================================
   HEADER
======================================== */
:root {
  --peek: clamp(3rem, 5vw, 5rem);
}

header {
  background-color: #fdfcf9;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 0 0.4rem;
  overflow: visible;
}

.header-name {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(3rem, 7vw, 6.5rem);
  color: #111;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  transform: rotate(-1deg);
  transition: color 0.2s ease;
}

.header-name:hover { color: #00376f; }


/* ========================================
   HERO
======================================== */
.hero-full {
  background: #fdfcf9;
  border-bottom: none;
  overflow: visible;
  position: relative;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 400px 1fr;
  align-items: center;
  min-height: calc(100vh - clamp(6rem, 12vw, 11rem));
  position: relative;
  margin-top: calc(var(--peek) * -1);
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem 3rem;
}

.hero-photo-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.hero-photo-main {
  display: block;
  max-height: 88vh;
  width: auto;
  max-width: 100%;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-right-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 2rem;
  gap: 0.8rem;
  overflow: visible;
}

.hero-callout {
  font-family: 'PT Sans', sans-serif;
  font-size: clamp(2rem, 3vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  letter-spacing: -0.02em;
}

.hero-currently-label-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
}

.hero-currently-label-inline::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: #00376f;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.hero-currently-typed-wrap {
  min-height: 7rem;
  display: flex;
  align-items: flex-start;
}

.hero-currently-typed-text {
  font-family: 'Noto Serif', serif;
  font-size: clamp(1rem, 1.6vw, 1.7rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.typewriter-cursor {
  color: #c41230;
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}

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

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  :root { --peek: 2rem; }

  .hero-main {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
    margin-top: calc(var(--peek) * -1);
  }

  .hero-photo-wrap {
    order: -1;
    height: 60vw;
  }

  .hero-photo-main {
    max-height: 60vw;
  }

  .hero-text-side,
  .hero-right-side {
    padding: 1rem 0;
  }
}


/* ========================================
   BUTTONS
======================================== */
.btn-custom {
  background-color: #111;
  color: #fdfcf9;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.btn-custom:hover { background-color: #00376f; color: #fff; }

.btn-custom-outline {
  background-color: transparent;
  color: #111;
  border: 1.5px solid #111;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-custom-outline:hover { background-color: #00376f; color: #fdfcf9; border-color: #00376f; }


/* ========================================
   FOOTER
======================================== */
footer {
  background-color: transparent;
  color: #111;
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.footer-rule {
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 10px;
  overflow: visible;
}

.footer-rule svg {
  width: 100%;
  height: 10px;
  display: block;
}

.footer-name {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.2rem;
  color: #111;
  display: inline-block;
  transform: rotate(-0.5deg);
  line-height: 1;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-right a {
  font-size: 1rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-right a:hover { color: #111; }

.footer-text-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-about-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  border-left: 1px solid #ccc;
  padding-left: 1.4rem;
}


/* ========================================
   GALLERY — MASONRY
======================================== */
.gallery {
  columns: 4 220px;
  column-gap: 0.5rem;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-box {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.photo-box img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.photo-box:hover img { transform: scale(1.03); }

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.7rem;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: white;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.photo-box:hover .caption { opacity: 1; }

@media (max-width: 900px) { .gallery { columns: 3 180px; } }
@media (max-width: 600px) { .gallery { columns: 2 140px; } }


/* ========================================
   PHOTO SCROLL GRID
======================================== */
.photo-scroll-grid { width: 100%; max-width: 1200px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 0; }
.scroll-track { display: flex; gap: 7px; min-width: max-content; }
.photo-column { display: flex; flex-direction: column; gap: 7px; width: 350px; flex: 0 0 auto; }
.photo-column figure { height: 200px; margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: #f0f0f0; }
.photo-column figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.photo-column figure figcaption { position: absolute; bottom: 0; background: rgba(0,0,0,0.6); color: white; padding: 0.6rem 1rem; font-size: 0.60rem; width: 100%; opacity: 0; transition: opacity 0.3s ease-in-out; }
.photo-column figure:hover img { transform: scale(1.05); }
.photo-column figure:hover figcaption { opacity: 1; }
.photo-scroll-grid::-webkit-scrollbar { height: 8px; }
.photo-scroll-grid::-webkit-scrollbar-thumb { background-color: #888; border-radius: 4px; }
.photo-scroll-grid::-webkit-scrollbar-thumb:hover { background-color: #555; }


/* ========================================
   HOME SECTIONS
======================================== */
.home-section { margin-bottom: 5rem; }

.section-label { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.section-label-text { font-family: 'Permanent Marker', cursive; font-size: 1.3rem; color: #111; white-space: nowrap; font-weight: normal; }
.section-label::after { content: ''; flex: 1; height: 1px; background: #111; }
.section-label-link { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #111; text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.section-label-link:hover { color: dodgerblue; }

.article-list-home { display: flex; flex-direction: column; }
.article-row-home { display: grid; grid-template-columns: 100px 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid #e8e8e8; text-decoration: none; color: inherit; }
.article-row-home:first-child { border-top: 1px solid #e8e8e8; }
.article-row-home:hover .article-row-title { color: dodgerblue; }
.article-row-date { font-family: monospace; font-size: 0.75rem; color: #aaa; white-space: nowrap; }
.article-row-title { font-size: 0.97rem; font-weight: 600; color: #111; line-height: 1.4; transition: color 0.2s ease; }
.article-row-pub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #bbb; white-space: nowrap; }

@media (max-width: 600px) {
  .article-row-home { grid-template-columns: 1fr; gap: 0.3rem; }
  .article-row-pub { display: none; }
}

.projects-grid-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid #e8e8e8; }
.project-card-home { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid #e8e8e8; }
.project-card-home:hover .project-card-title { color: dodgerblue; }
.project-type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #aaa; margin-bottom: 0.5rem; }
.project-card-title { font-family: 'Noto Serif', serif; font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 0.4rem; line-height: 1.3; transition: color 0.2s ease; }
.project-card-desc { font-size: 0.87rem; color: #666; line-height: 1.6; }

.blog-list-home { display: flex; flex-direction: column; }
.blog-row-home { padding: 1.1rem 0; border-bottom: 1px solid #e8e8e8; }
.blog-row-home:first-child { border-top: 1px solid #e8e8e8; }
.blog-row-date { font-family: monospace; font-size: 0.72rem; color: #aaa; margin-bottom: 0.3rem; }
.blog-row-title { font-size: 0.97rem; font-weight: 600; color: #111; text-decoration: none; transition: color 0.2s ease; display: block; line-height: 1.4; }
.blog-row-title:hover { color: dodgerblue; }
.blog-row-desc { font-size: 0.87rem; color: #888; margin-top: 0.2rem; line-height: 1.5; }


/* ========================================
   RECENT FEED
======================================== */
.recent-feed { display: flex; flex-direction: column; margin-bottom: 5rem; }
.recent-feed-item { display: grid; grid-template-columns: 60px 80px 1fr; gap: 1.2rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid #e8e8e8; text-decoration: none; color: inherit; }
.recent-feed-item:first-child { border-top: 1px solid #e8e8e8; }
.recent-feed-item:hover .recent-feed-title { color: dodgerblue; }
.recent-feed-type { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #bbb; white-space: nowrap; }
.recent-feed-type.type-blog { color: dodgerblue; }
.recent-feed-date { font-family: monospace; font-size: 0.73rem; color: #aaa; white-space: nowrap; }
.recent-feed-title { font-size: 0.95rem; font-weight: 600; color: #111; line-height: 1.4; transition: color 0.2s ease; }

@media (max-width: 600px) {
  .recent-feed-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .recent-feed-date { display: none; }
}


/* ========================================
   HOME ABOUT BLURB
======================================== */
.home-about { padding: 3rem 0; border-top: 1px solid #111; display: grid; grid-template-columns: 200px 1fr; gap: 4rem; align-items: start; }
.home-about-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #111; padding-top: 0.15rem; }
.home-about-text p { font-size: 0.97rem; color: #555; line-height: 1.8; margin-bottom: 1.2rem; }
.home-about-link { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #111; text-decoration: none; transition: color 0.2s ease; }
.home-about-link:hover { color: dodgerblue; }

@media (max-width: 700px) {
  .home-about { grid-template-columns: 1fr; gap: 1rem; }
}


/* ========================================
   ABOUT PAGE
======================================== */
.about-page { max-width: 860px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.about-intro { display: flex; gap: 2.5rem; align-items: flex-start; margin-bottom: 4rem; flex-wrap: wrap; }
.about-intro-img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.about-intro-text { flex: 1; min-width: 260px; }
.about-intro-text h2 { font-family: 'Noto Serif', serif; font-size: 1.9rem; margin-bottom: 0.3rem; color: #111; }
.about-title-line { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #888; margin-bottom: 1rem; display: block; }
.about-intro-text p { color: #555; line-height: 1.8; margin-bottom: 0.8rem; font-size: 0.97rem; }
.about-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 4rem; }
.pillar { padding: 1.4rem; background: #f8f9fa; border-radius: 8px; border-top: 3px solid #111; }
.pillar h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; color: #111; }
.pillar p { font-size: 0.88rem; color: #666; line-height: 1.6; margin: 0; }

@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .about-intro { flex-direction: column; align-items: center; text-align: center; }
  .about-links { justify-content: center; }
}

.page-section { margin-bottom: 4rem; }
.page-section-title { font-family: 'Permanent Marker', cursive; font-size: 1.8rem; color: #111; margin-bottom: 2rem; padding-bottom: 0.5rem; border-bottom: 1px solid #111; font-weight: normal; }
.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid #111; margin-bottom: 3rem; }
.page-title { font-family: 'Permanent Marker', cursive; font-size: 2.8rem; color: #111; display: inline-block; transform: rotate(-0.5deg); font-weight: normal; line-height: 1.1; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 0; width: 2px; background: #ddd; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.38rem; top: 0.45rem; width: 10px; height: 10px; border-radius: 50%; background: #111; border: 2px solid #fdfcf9; box-shadow: 0 0 0 2px #111; }
.timeline-date { font-family: monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: #999; text-transform: uppercase; margin-bottom: 0.2rem; }
.timeline-role { font-weight: 700; font-size: 0.97rem; color: #111; margin-bottom: 0.1rem; }
.timeline-org { font-size: 0.88rem; color: #555; margin-bottom: 0.4rem; }
.timeline-desc { font-size: 0.87rem; color: #777; line-height: 1.6; }

.awards-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.awards-list li { display: flex; gap: 1rem; align-items: baseline; font-size: 0.93rem; }
.award-year { font-family: monospace; font-size: 0.75rem; font-weight: 700; color: #999; white-space: nowrap; min-width: 36px; }
.award-text { color: #333; line-height: 1.5; }
.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-item { background: #111; color: #fff; padding: 0.35rem 0.85rem; border-radius: 4px; font-size: 0.83rem; font-weight: 600; }


/* ========================================
   WORDS
======================================== */
.article-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.article-item { display: flex; flex-direction: row; gap: 1.5rem; align-items: flex-start; padding-bottom: 1rem; }
.article-date { font-family: monospace; font-size: 0.9rem; color: black; min-width: 100px; }
.article-content { flex: 1; }
.article-title { font-family: 'Noto Serif', serif; font-size: 1.1rem; font-weight: bold; color: black; margin-bottom: 0.3rem; text-decoration: none; transition: color 0.3s ease; display: block; }
.article-title:hover { color: dodgerblue; }
.article-meta { font-family: 'PT Sans', sans-serif; font-size: 0.85rem; color: #777; }

@media (max-width: 600px) {
  .article-item { flex-direction: column; }
  .article-date { margin-bottom: 0.3rem; }
}


/* ========================================
   PROJECTS PAGE
   (old card styles removed — projects.html
    now uses pj- prefixed classes)
======================================== */
.projects-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.project-card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.project-image { position: relative; height: 200px; overflow: hidden; background-color: #f0f0f0; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-content { padding: 1.5rem; }
.project-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #333; }
.project-meta { font-size: 0.85rem; color: #888; margin-bottom: 0.8rem; }
.project-content p { color: #555; line-height: 1.6; margin-bottom: 1rem; }
.project-skills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.skill-tag { background-color: #f0f0f0; color: #555; padding: 0.3rem 0.7rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.project-link { color: dodgerblue; font-weight: 600; transition: all 0.3s ease; display: inline-block; }
.project-link:hover { color: #0066cc; }

@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }


/* ========================================
   BLOG PAGE
======================================== */
.blog-page { max-width: 700px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.blog-page-header { margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 2px solid #111; }
.blog-page-header h2 { font-family: 'Permanent Marker', cursive; font-size: 2.8rem; color: #111; margin-bottom: 0.4rem; font-weight: normal; transform: rotate(-0.5deg); display: inline-block; }
.blog-page-header p { color: #666; font-size: 0.95rem; line-height: 1.65; }
.blog-posts-list { display: flex; flex-direction: column; }
.blog-post-item { padding: 2rem 0; border-bottom: 1px solid #eee; }
.blog-post-item:first-child { padding-top: 0; }
.blog-post-meta { font-family: monospace; font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.blog-post-title { font-family: 'Noto Serif', serif; font-size: 1.4rem; font-weight: 700; color: #111; margin-bottom: 0.5rem; line-height: 1.3; text-decoration: none; transition: color 0.2s ease; display: block; }
.blog-post-title:hover { color: dodgerblue; }
.blog-post-description { font-size: 0.93rem; color: #666; line-height: 1.7; margin-bottom: 0.6rem; }
.blog-read-more { font-size: 0.82rem; font-weight: 700; color: #111; text-decoration: none; }
.blog-read-more:hover { color: dodgerblue; }
.blog-empty { text-align: center; color: #aaa; padding: 4rem 0; font-size: 1rem; }
.blog-loading { text-align: center; color: #aaa; padding: 3rem 0; font-size: 0.95rem; }


/* ========================================
   POST PAGE
======================================== */
.post-page { max-width: 680px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.post-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; font-weight: 700; color: #333; margin-bottom: 2.5rem; text-decoration: none; transition: color 0.2s ease; }
.post-back:hover { color: dodgerblue; }
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e8e8e8; }
.post-meta { font-family: monospace; font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.post-title { font-family: 'Noto Serif', serif; font-size: 2rem; font-weight: 700; color: #111; line-height: 1.2; margin-bottom: 0.8rem; }
.post-description { font-size: 1rem; color: #777; line-height: 1.7; font-style: italic; }
.post-body { font-family: 'Noto Serif', serif; font-size: 1.05rem; line-height: 1.9; color: #333; }
.post-body h2, .post-body h3 { font-family: 'Noto Serif', serif; color: #111; margin: 2.5rem 0 1rem; font-weight: 700; }
.post-body p { margin-bottom: 1.5rem; }
.post-body blockquote { border-left: 3px solid dodgerblue; padding: 0.5rem 0 0.5rem 1.5rem; margin: 2rem 0; color: #555; font-style: italic; }
.post-body a { color: dodgerblue; text-decoration: underline; }
.post-body img { max-width: 100%; border-radius: 6px; margin: 2rem 0; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-not-found { text-align: center; padding: 4rem 0; color: #aaa; }


/* ========================================
   CV / LEGACY COMPAT
======================================== */
h5 { font-size: 0.9rem; margin: 0.2rem 0; font-weight: 500; color: black; }
.section { max-width: 1000px; margin: 3rem auto; padding: 1rem; }
.education-columns { display: flex; flex-wrap: wrap; gap: 1rem; }
.education-entry { flex: 1 1 30%; min-width: 250px; }
.education-entry strong { font-size: 1.1rem; color: black; }
.education-entry .location { font-size: 0.9rem; color: #888; font-style: italic; margin-bottom: 0.25rem; }
.education-entry .edu-dates { font-size: 0.85rem; color: #777; margin-bottom: 0.5rem; }
.experience-grid { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; margin-bottom: 2rem; align-items: start; }
.experience-dates { font-size: 0.95rem; color: #555; }
.experience-details h3 { margin: 0; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; color: #333; }
.experience-details h4 { font-size: 1rem; margin: 0.2rem 0 0.8rem; font-weight: bold; color: black; }
.experience-details ul { padding-left: 1.2rem; margin: 0; }
.experience-details ul li { margin-bottom: 0.2rem; font-size: 0.95rem; color: #333; }
.bubbles { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.bubble { background-color: black; color: white; padding: 1rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s ease; cursor: default; flex: 1 1 300px; }
.bubble:hover { transform: scale(1.05); }

@media print {
  .side-social, .side-nav { display: none; }
}


/* ========================================
   MOBILE NAV
======================================== */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  z-index: 1070;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}

.mobile-nav-toggle span:nth-child(1) { width: 22px; }
.mobile-nav-toggle span:nth-child(2) { width: 15px; }
.mobile-nav-toggle span:nth-child(3) { width: 22px; }

.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

@media (max-width: 1024px) {
  .mobile-nav-toggle { display: flex; }
  header { z-index: 1060; }
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: #fdfcf9;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem 3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(2rem, 9vw, 3.2rem);
  color: #111;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover { color: #00376f; }
.mobile-nav-link.active { color: #00376f; }

.mobile-nav-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.mobile-nav-social a {
  font-size: 1.3rem;
  color: #666;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-social a:hover { color: #111; }


/* ========================================
   ARTICLES PAGE
======================================== */
.articles-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.carousel-label,
.articles-list-label {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 0;
  width: 100%;
}

.carousel-label-text {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  white-space: nowrap;
  background: #fdfcf9;
  border: 2.5px solid #111;
  padding: 0.45rem 1.2rem 0.5rem;
  border-radius: 6px;
  position: relative;
  box-shadow: 3px 3px 0px #111;
  width: 100%;
  display: block;
}

.section-rule {
  width: 100%;
  height: 8px;
  display: block;
  margin-bottom: 1.6rem;
}

.carousel-section { margin-bottom: 4rem; }
.carousel-wrap { position: relative; }
.carousel-track { position: relative; width: 100%; height: 260px; }

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide:hover .carousel-title { color: #00376f; }

.carousel-img-wrap { overflow: hidden; background: #d8e8f0; height: 100%; }
.carousel-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.carousel-slide:hover .carousel-img-wrap img { transform: scale(1.03); }
.carousel-no-img, .carousel-img-wrap.no-img { width: 100%; height: 100%; background: #d8e8f0; }

.carousel-content {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  background: #fdfcf9;
}

.carousel-meta { font-family: monospace; font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 0.06em; }
.carousel-title { font-family: 'Noto Serif', serif; font-size: 1.35rem; font-weight: 700; color: #111; line-height: 1.3; transition: color 0.2s ease; }
.carousel-desc { font-size: 0.9rem; color: #666; line-height: 1.6; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; color: #111; border: none; width: 2.5rem; height: 2.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: color 0.2s ease; padding: 0; }
.carousel-btn:hover { color: #00376f; }
.carousel-btn-prev { left: -2.8rem; }
.carousel-btn-next { right: -2.8rem; }

.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.9rem 0 0.4rem; background: transparent; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: #bbb; border: none; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; padding: 0; }
.carousel-dot.active { background: #111; transform: scale(1.4); }

.articles-list-section { margin-bottom: 4rem; }
.articles-loading { color: #aaa; font-size: 0.95rem; padding: 2rem 0; }

.article-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.1rem 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-radius: 2px;
}

.article-row + .article-row { border-top: 2px solid #d0d0d0; }
.article-row:hover { background: #f5f4f0; }
.article-row:hover .article-row-title { color: #00376f; }
.article-row-featured { background: #f0f6fa; }
.article-row-featured:hover { background: #e4eef7; }
.article-row-featured .article-row-title { color: #00376f; }

.article-row-thumb { width: 100px; height: 68px; overflow: hidden; background: #f0f0f0; flex-shrink: 0; }
.article-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.article-row:hover .article-row-thumb img { transform: scale(1.05); }
.article-row-thumb-empty { background: #ebebeb; }

.article-row-body { display: flex; flex-direction: column; gap: 0.35rem; }
.article-row-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.article-row-date { font-family: monospace; font-size: 0.82rem; color: #aaa; white-space: nowrap; }
.article-row-pub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #bbb; }
.article-row-byline { font-size: 0.82rem; color: #999; font-style: italic; }
.article-row-badge { display: none; }
.article-row-title { font-size: 1.08rem; font-weight: 600; color: #111; line-height: 1.4; transition: color 0.2s ease; }
.article-row-featured .article-row-title { font-weight: 700; }

@media (max-width: 768px) {
  .carousel-slide { grid-template-columns: 1fr; height: auto; }
  .carousel-track { height: auto; min-height: 380px; }
  .carousel-img-wrap { height: 180px; }
  .carousel-btn-prev { left: 0.3rem; }
  .carousel-btn-next { right: 0.3rem; }
}

@media (max-width: 600px) {
  .article-row { grid-template-columns: 70px 1fr; gap: 0.8rem; }
  .article-row-thumb { width: 70px; height: 50px; }
}