:root {
  --bg: #f7f3ee;
  --ink: #1b1a19;
  --muted: #5b5855;
  --accent: #ea4c2d;
  --accent-2: #1f4bb8;
  --paper: #ffffff;
  --line: #d7d0c7;
  --shadow: 0 14px 40px rgba(27, 26, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

.highlight-link {
  color: #f5c542;
  font-weight: 600;
  text-decoration: none;
  padding: 0 2px;
  border-bottom: 1px solid rgba(245, 197, 66, 0.4);
}

.highlight-link:hover {
  color: #ffd466;
  border-bottom-color: rgba(255, 212, 102, 0.6);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.paper {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(234, 76, 45, 0.06), transparent 45%),
    radial-gradient(circle at 80% 5%, rgba(31, 75, 184, 0.08), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25));
  pointer-events: none;
  z-index: -2;
}

.grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(27, 26, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 25, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
  animation: drift 18s linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(28px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5c542;
  box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.15);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  padding: 80px 0 50px;
}

.hero.single-column {
  grid-template-columns: 1fr;
}

.overview {
  padding-top: 70px;
}

.overview .hero-left {
  display: grid;
  gap: 18px;
}

.micro-id {
  display: flex;
  gap: 16px;
  align-items: center;
}

.intro-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #151a24;
  color: #f3f4f6;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.banner-intro {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #1f1b16;
  background: #f5c542;
  border-radius: 14px;
  padding: 14px 16px;
}

.banner-intro a {
  color: #1f3a8a;
  font-weight: 600;
}

.intro-banner::after {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.intro-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.intro-banner .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  background: #1b1f2a;
  position: relative;
  z-index: 1;
  animation: avatarPulse 3.5s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.2);
  }
}

.banner-text {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.hello {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
}

.name {
  margin: 0;
  font-size: clamp(1.9rem, 2.2vw + 1.2rem, 3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.meta-line {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  color: #f5c542;
  font-size: 13px;
}

.intro-banner .social-row {
  margin-top: 10px;
  gap: 16px;
}

.intro-banner .social-link {
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.intro-banner .social-link:hover {
  color: #ffffff;
}

.overview .social-row {
  margin-top: 0;
}

.overview .social-link:hover {
  color: #ffffff;
}

.intro-banner .social-link svg {
  width: 20px;
  height: 20px;
  fill: #f5c542;
  display: block;
}

.banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-logo img {
  height: 160px;
  width: auto;
  opacity: 1;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1ece6;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.handle {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-left h1 {
  font-size: clamp(2.6rem, 3.2vw + 1.4rem, 4.4rem);
  margin: 18px 0 12px;
}

.intro {
  font-size: 17px;
  max-width: 620px;
  margin: 18px 0 16px;
  line-height: 1.75;
  color: #2d2b28;
}

.intro.full {
  max-width: 100%;
}

.overview .intro {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.lead {
  font-size: 17px;
  max-width: 560px;
}

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

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  background: var(--paper);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(234, 76, 45, 0.25);
}

.btn.ghost {
  background: transparent;
}

.link-row {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.social-row {
  display: flex;
  gap: 12px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  overflow: visible;
}

.hero-right {
  display: grid;
  gap: 18px;
  align-content: start;
}

.simple-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.simple-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.simple-card strong {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.card-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.logo-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: #f8f4ef;
}


.section {
  padding: 60px 0;
  border-top: 1px dashed var(--line);
}

.section-header h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.section-header p {
  max-width: 640px;
  color: var(--muted);
}

.project-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.accent {
  border-color: rgba(31, 75, 184, 0.3);
  box-shadow: 0 24px 70px rgba(31, 75, 184, 0.16);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(27, 26, 25, 0.16);
}

.project-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}

.project-links {
  display: flex;
  gap: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

.project-links img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.timeline {
  margin-top: 24px;
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 36px;
  padding-top: 10px;
  padding-bottom: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scroll-padding-top: 12px;
}

.timeline::-webkit-scrollbar {
  width: 8px;
}

.timeline::-webkit-scrollbar-thumb {
  background: rgba(31, 75, 184, 0.3);
  border-radius: 999px;
}

.timeline::-webkit-scrollbar-track {
  background: rgba(27, 26, 25, 0.05);
  border-radius: 999px;
}

.timeline::before {
  content: none;
}

.timeline-item {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(27, 26, 25, 0.08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 0 6px rgba(31, 75, 184, 0.12);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -26px;
  top: 34px;
  bottom: -22px;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::after {
  content: none;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(31, 75, 184, 0.6), rgba(234, 76, 45, 0.6));
  border-radius: 14px 0 0 14px;
  opacity: 0.65;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  border: 1px solid rgba(31, 75, 184, 0.25);
  border-radius: 999px;
  background: rgba(31, 75, 184, 0.06);
  margin-bottom: 8px;
}

.timeline-body {
  display: grid;
  gap: 10px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline-links {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-links a::before {
  content: "";
  width: 0;
  height: 0;
}

.timeline-links img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.reading-section {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.section-header.compact h3 {
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  margin: 0 0 6px;
}

.section-header.compact p {
  margin: 0;
  color: var(--muted);
}

.reading-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.reading-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin: 0 0 6px;
}

.reading-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.site-footer {
  text-align: center;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

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

  .hero {
    grid-template-columns: 1fr;
  }

  .intro-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .intro-banner .avatar {
    width: 64px;
    height: 64px;
  }

  .banner-logo {
    justify-content: flex-start;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
