/* Override About section to be full width and add extra spacing between paragraphs */
#about .grid {
  display: block !important;
  max-width: var(--max, 1120px) !important;
  width: 100% !important;
  margin: 0 auto !important;
}

#about-summary p {
  margin-bottom: 2.5em !important;
}

.hero-social-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(1.1) grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.hero-social-btn:hover .hero-social-img {
  opacity: 1;
  filter: brightness(1.2) grayscale(0.2);
}

/* Hero social icon buttons */
.hero-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  margin: 0 4px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none;
  cursor: pointer;
}

.hero-social-btn:hover {
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.10);
}

.hero-social-btn .icon {
  font-size: 1.6em;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.85;
}

.hero-social-btn:hover .icon {
  color: #fff;
  opacity: 1;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Hero social row */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

/* New rule to center the logos */
@media (max-width: 860px) {
  .hero-social-row {
    justify-content: center;
  }
}

.orgs-header {
  margin-top: 2rem;
}

.hero-social-label {
  font-size: 1.1em;
  opacity: 0.85;
}

:root {
  color-scheme: dark;
  --bg-0: #0B0B0C;
  --bg-1: #121316;
  --text-1: #E9EAEE;
  --text-2: #B6B9C3;
  --muted: #8B8E99;
  --line: #232428;
  --line-2: #2b2c30;
  --accent: #5E6AD2;
  /* overwritten from content.json */
  --accent-2: #FF7A1A;
  /* CTA; overwritten from content.json */
  --max: 1120px;
  --space: 24px;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .25);
  --noise-opacity: 0.14;
  --glass-alpha: 0.08;
  /* master opacity for overlay; tweak to control glassiness */
  --glass-blur: 22px;
  --glass-sat: 160%;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font: 16px/1.6 "DM Sans", "Questrial", ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial;
  color: var(--text-1);
  background: var(--bg-0)
}

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

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

/* Gradient splash occupies viewport above main content */
.main-container {
  position: relative;
  z-index: 2;
  /* above overlay */
  min-height: 100vh;
  background: transparent;
  /* glass handled by overlay */
  border: none;
  margin: 0;
}

/* Full-viewport glass overlay for unified translucent layer */
.glass-overlay {
  position: relative;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Adjustable via CSS variables */
  --glass-bg: rgba(10, 10, 14, var(--glass-alpha, 0.20));
  background: linear-gradient(115deg, rgba(40, 20, 60, var(--glass-alpha, 0.40)) 0%, rgba(10, 10, 18, var(--glass-alpha, 0.40)) 60%, rgba(10, 8, 16, var(--glass-alpha, 0.40)) 100%);
  backdrop-filter: blur(var(--glass-blur, 22px)) saturate(var(--glass-sat, 150%));
  -webkit-backdrop-filter: blur(var(--glass-blur, 22px)) saturate(var(--glass-sat, 150%));
  mix-blend-mode: normal;
  /* Changed from screen to normal for less grey overlay */
  opacity: 0.7;
  transition: backdrop-filter .4s ease, background .4s ease, opacity .4s ease;
}

/* Utility classes for quick tuning */
.glass-overlay.is-subtle {
  --glass-alpha: 0.25;
  --glass-blur: 14px;
}

.glass-overlay.is-strong {
  --glass-alpha: 0.55;
  --glass-blur: 30px;
}

/* Root defaults for glass control */
:root {
  --glass-alpha: 0.08;
  /* master opacity for overlay; tweak to control glassiness */
  --glass-blur: 22px;
  --glass-sat: 160%;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space)
}

.section {
  padding: 67px 0
}

.hairline {
  border: 1px solid color-mix(in oklab, var(--text-1) 10%, transparent)
}

.card {
  position: relative;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.98);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.btn--accent {
  position: relative;
  background: linear-gradient(135deg, #8A7CF5, #4FB4FF);
  border-color: transparent;
  color: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn--ghost {
  background: transparent;
  color: var(--text-1)
}

.btn:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line))
}

/* Page background */
#mesh-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: .85;
  /* Base gradients to eliminate the harsh uniform dark rectangle behind additive blobs */
  background:
    radial-gradient(1200px 900px at 18% 32%, rgba(255, 128, 220, 0.12), rgba(0, 0, 0, 0) 70%),
    radial-gradient(1100px 820px at 82% 38%, rgba(90, 40, 255, 0.10), rgba(0, 0, 0, 0) 72%),
    radial-gradient(900px 760px at 40% 85%, rgba(0, 180, 255, 0.08), rgba(0, 0, 0, 0) 75%),
    var(--bg-0);
}

.mesh-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: soft-light;
  background-size: 200px 200px;
  /* tiny seamless noise; swap with your own PNG if you prefer */
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAALklEQVQoU2NkwA38z0AEYGRg+M8wMDAiC8YB8QZgMDAw/0kJgqE0Q9mC0wC1wQAA2FQGnv0m0HAAAAAElFTkSuQmCC');
}

@media (prefers-reduced-motion: reduce) {
  #mesh-bg {
    display: none
  }

  .mesh-noise {
    opacity: 0.15;
  }

  body {
    background: radial-gradient(1200px 800px at 20% 30%, #ff7ba5 0, transparent 60%),
      radial-gradient(1000px 700px at 80% 20%, #8a7cf5 0, transparent 60%),
      radial-gradient(900px 700px at 30% 80%, #4fb4ff 0, transparent 60%),
      var(--bg-0);
  }
}

header.site {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .95), rgba(0, 0, 0, .8));
  border-bottom: 1px solid var(--line);
  z-index: 10
}

.nav {
  position: relative
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px
}

.logo {
  font-weight: 700;
  letter-spacing: .3px;
  font-size: 28px;
  background: linear-gradient(90deg, #FFD08A, #FF8C42, #FF4757, #FF4FA0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav a {
  position: relative;
  opacity: .9;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 0 4px;
  transition: all 0.3s ease;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

nav a:hover::before {
  transform: scaleX(1);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* -------- Nav / Hamburger -------- */
.nav {
  position: relative
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 36px;
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .35s cubic-bezier(.65, .05, .36, 1);
}

.nav__toggle span:nth-child(1) {
  top: 11px
}

.nav__toggle span:nth-child(2) {
  top: 17px
}

.nav__toggle span:nth-child(3) {
  top: 23px
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

.nav__drawer {
  position: absolute;
  top: 60px;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  padding: 20px clamp(16px, 5vw, 40px) 28px;
  animation: navDrop .35s cubic-bezier(.4, .24, .2, 1);
}

.nav__drawer a {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  display: block;
  position: relative;
}

.nav__drawer a:active {
  background: rgba(255, 255, 255, 0.08)
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media (max-width:900px) {
  .nav__links {
    display: none
  }

  .nav__toggle {
    display: block
  }
}

@media (min-width:901px) {

  .nav__drawer,
  .nav__drawer.is-open {
    display: none !important
  }
}

/* Mobile nav drawer (non-overlay inline version) */
.nav__drawer {
  display: none
}

.nav__drawer.is-open {
  display: grid;
  gap: 4px;
  padding: 12px 16px 20px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: navReveal .3s ease;
}

.nav__drawer a {
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.nav__drawer a:hover {
  background: rgba(255, 255, 255, 0.08)
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media (min-width:901px) {

  .nav__drawer,
  .nav__drawer.is-open {
    display: none !important
  }
}

/* ---------------- Responsive polish (hero + nav) ---------------- */
/* Allow nav to wrap / scroll when cramped */
nav {
  flex-wrap: wrap;
  gap: 2px
}

@media (max-width:780px) {
  nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  nav a {
    flex: 0 0 auto
  }
}

/* Hero: scale columns down first */
@media (max-width:1050px) {
  .hero__grid {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
}

/* Stack hero cleanly, portrait first, kill giant gap */
@media (max-width:860px) {
  .hero {
    padding: 72px 0 48px;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .hero__media {
    order: -1;
  }

  .hero__img-wrap img {
    width: 230px;
  }

  .hero .halo {
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 560px;
    height: 300px;
    inset: auto;
    filter: blur(46px);
    opacity: .55;
  }
}

@media (max-width:540px) {
  .hero {
    padding: 56px 0 40px;
  }

  .hero__img-wrap img {
    width: 200px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero .role {
    font-size: 15px;
  }

  .hero .ctas {
    justify-content: center;
    gap: 10px;
  }
}

/* Tighten h1 top margin when stacked */
.hero__content h1 {
  margin-top: 0
}

.hero {
  position: relative;
  padding: 120px 0 64px
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: -.3px;
  color: #ffffff
}

.hero .role {
  color: #ffffff;
  margin-bottom: 18px
}

.hero .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero .halo {
  position: absolute;
  inset: auto auto 0 0;
  width: min(900px, 85vw);
  height: 320px;
  pointer-events: none;
  filter: blur(50px);
  opacity: .6;
  background:
    radial-gradient(700px 400px at 20% 40%, color-mix(in oklab, var(--accent) 70%, transparent), transparent 70%),
    radial-gradient(600px 350px at 75% 30%, color-mix(in oklab, var(--accent-2) 70%, transparent), transparent 70%)
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 48px;
  position: relative
}

@media (max-width:900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .hero__media {
    order: -1;
    margin: 0 auto;
  }
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-wrap {
  position: relative;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent !important;
}

.hero__img-wrap img {
  width: 280px;
  height: auto;
  display: block;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 6px 28px -6px rgba(0, 0, 0, .55);
}

/* LinkedIn embed (simplified, no vignette / expand overlay) */
.linkedin-embed-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  max-height: 370px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.twitter-embed-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  max-height: 370px;
}

.linkedin-embed-wrap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background: transparent;
  height: 100%;
  min-height: 200px;
  border: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* Responsive LinkedIn embed container */
#linkedin .feed-content {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  /* 1:1 aspect ratio by default */
  overflow: hidden;
}

#linkedin .feed-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.li-fallback .btn {
  font-size: 13px;
  padding: 8px 14px;
}

@media (max-width:900px) {
  .hero__img-wrap img {
    width: 240px;
  }
}

#impact .impact__head h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 6px
}

#impact .sub {
  color: var(--text-2);
  margin: 0 0 24px
}

.impact__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px
}

.kpi {
  padding: 24px;
  position: relative;
  overflow: hidden
}

.kpi__value {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi__label {
  color: var(--text-2)
}

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

@media (max-width:560px) {
  .impact__kpis {
    grid-template-columns: 1fr
  }
}

.impact__logos {
  padding: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative
}

.logos__rail {
  display: flex;
  gap: 24px;
  padding: 10px;
  will-change: transform;
  animation: ticker-roll 30s linear infinite;
}

@keyframes ticker-roll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos__rail {
    animation: none;
  }
}

.logo {
  min-width: 120px;
  display: grid;
  place-items: center;
  opacity: .85
}

.logo img {
  height: 28px;
  filter: grayscale(100%) contrast(120%);
  opacity: .85
}

.logo:hover {
  opacity: 1
}

#about .grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px
}

#about p {
  margin: 0
}

#about .facts {
  padding: 16px;
  position: relative;
  overflow: hidden
}

@media (max-width:900px) {
  #about .grid {
    grid-template-columns: 1fr
  }
}

#skills .tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.pill {
  border: 1px solid color-mix(in oklab, var(--text-1) 12%, transparent);
  background: transparent;
  color: var(--text-1);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "DM Sans", "Questrial", ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pill.is-active {
  background: color-mix(in oklab, white 12%, transparent);
  border-color: rgba(255, 255, 255, 0.2);
}

.cap-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr)
}

.cap {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden
}

.cap h4 {
  margin: 0 0 6px;
  font-size: 18px;
  transition: all 0.3s ease
}

.cap small {
  color: var(--text-2)
}

.cap:hover h4 {
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width:1000px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:560px) {
  .cap-grid {
    grid-template-columns: 1fr
  }
}

.projects__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr)
}

@media (max-width:1000px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .projects__grid {
    grid-template-columns: 1fr
  }
}

.proj {
  overflow: hidden;
  height: 420px;
  /* Fixed height for consistency */
  display: flex;
  flex-direction: column;
}

.proj__thumb {
  height: 140px;
  background:
    radial-gradient(220px 140px at 20% 30%, color-mix(in oklab, #9403fc 45%, transparent), transparent 60%),
    radial-gradient(220px 140px at 70% 60%, color-mix(in oklab, #007878 45%, transparent), transparent 60%),
    radial-gradient(220px 140px at 40% 80%, color-mix(in oklab, #195abd 45%, transparent), transparent 60%),
    #101115;
  border-bottom: 1px solid color-mix(in oklab, var(--text-1) 12%, transparent)
}

.proj__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj__title {
  margin: 0 0 6px;
  font-size: 18px;
  transition: all 0.3s ease
}

.proj__desc {
  margin: 0 0 12px;
  color: var(--text-2);
  flex: 1;
}

.proj__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.proj:hover .proj__title {
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chip {
  border: 1px solid color-mix(in oklab, var(--text-1) 12%, transparent);
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px
}

.writing__cols {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr)
}

.feed,
.writing__cols>div,
.writing__cols>section,
.writing__cols>article {
  min-height: 220px;
  max-height: 420px;
  height: 95%;
  overflow: hidden;
}

@media (max-width:900px) {
  .writing__cols {
    grid-template-columns: 1fr
  }
}

.feed {
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feed h4 {
  margin: 0 0 8px
}

.rss-post {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}

.rss-post:last-child {
  border-bottom: none
}

.post-source {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.rss-post h4 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

.rss-post h4 a {
  color: var(--text-1);
  text-decoration: none;
}

.rss-post h4 a:hover {
  color: var(--accent);
}

.post-excerpt {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.post-date {
  font-size: 11px;
  color: var(--muted);
}

.rss-more {
  margin-top: 10px;
  text-align: right;
  font-size: 12px;
}

.rss-more a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.rss-more a:hover {
  text-decoration: underline;
}

.loading,
.no-posts,
.error {
  padding: 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}

.edu-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr)
}

@media (max-width:900px) {
  .edu-grid {
    grid-template-columns: 1fr
  }
}

.edu-grid .card h4 {
  margin: 0 0 6px;
  font-size: 18px;
  transition: all 0.3s ease
}

.edu-grid .card p {
  margin: 0;
  color: var(--text-2)
}

.edu-grid .card:hover h4 {
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#experience .xp {
  display: block;
  max-width: var(--max, 1120px);
  margin: 0 auto
}

@media (max-width:900px) {
  #experience .xp {
    grid-template-columns: 1fr;
    gap: 16px
  }
}

.xp__list {
  display: grid;
  gap: 24px
}

.xp__item {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.7);
  opacity: .6;
  transform: translateY(8px);
  transition: .3s ease;
  position: relative;
  overflow: hidden
}

.xp__item.is-active {
  opacity: 1;
  transform: none;
  box-shadow: var(--shadow)
}

.xp__item h4 {
  margin: 0 0 6px;
  font-size: 18px;
  transition: all 0.3s ease
}

.xp__item .meta {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 8px
}

.xp__item:hover h4 {
  background: linear-gradient(90deg, #FFD08A, #FF4FA0, #8A7CF5, #4FB4FF, #7BF2C2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

form.contact {
  display: grid;
  gap: 12px;
  max-width: 680px
}

input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-2);
  opacity: .95;
  font-family: inherit;
  font-size: 15px;
}

textarea {
  min-height: 120px
}

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16px
}

.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  margin-right: 7px;
  opacity: .82;
}

.icon--github {
  fill: #fff
}

.icon--linkedin {
  fill: #0A66C2
}

.icon--email {
  fill: #FF7A1A
}

.footer__icons .icon {
  margin-right: 0;
  font-size: 1.25em;
}

/* Ensure LinkedIn embed fills its container */
#li-slot,
#tweet-slot {
  flex-grow: 1;
  position: relative;
  margin-bottom: 15px;
  /* Add a bit of space at the bottom */
}

#li-slot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}