:root {
  --bg: #f7f1ee;
  --bg-strong: #f0e4e0;
  --panel: rgba(255, 255, 255, 0.78);
  --card: #ffffff;
  --primary: #6a4754;
  --primary-strong: #4f2f3b;
  --accent: #c78f8b;
  --accent-soft: #efd6d2;
  --accent-warm: #f7d7b8;
  --text: #2c2530;
  --muted: #635a65;
  --line: rgba(106, 71, 84, 0.12);
  --shadow: 0 22px 55px rgba(79, 47, 59, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199, 143, 139, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #fbf7f5 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: pageFadeIn 0.55s ease-out;
}

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

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

p {
  margin: 0;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(106, 71, 84, 0.08);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(79, 47, 59, 0.1);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--primary-strong);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(106, 71, 84, 0.08);
  transform: translateY(-1px);
}

.brand {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-strong);
  background: rgba(106, 71, 84, 0.08);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  padding: 64px 0 28px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -60px;
  left: -40px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(199, 143, 139, 0.55), transparent 72%);
}

.hero::after {
  top: 0;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(247, 215, 184, 0.7), transparent 72%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 52px;
}

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

.hero-copy-centered {
  text-align: center;
  max-width: 820px;
}

.hero-copy-centered > p,
.hero-copy-centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.profile-frame {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-frame::before {
  content: '';
  position: absolute;
  inset: -18px -18px -18px 18px;
  background: linear-gradient(135deg, rgba(199, 143, 139, 0.35), rgba(247, 215, 184, 0.75));
  border-radius: 32px;
  z-index: 0;
}

.profile-frame img {
  position: relative;
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 32px;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-style: italic;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 0.96;
  color: var(--primary-strong);
  letter-spacing: -0.02em;
}

.hero-copy h2 {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--primary);
  font-weight: 500;
}

.hero-copy > p {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy h2,
.hero-copy > p,
.hero-copy .cta-row,
.hero-copy .stat-grid,
.hero-copy .education-badge {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}

.hero-copy .eyebrow {
  animation-delay: 0.08s;
}

.hero-copy h1 {
  animation-delay: 0.16s;
}

.hero-copy h2 {
  animation-delay: 0.24s;
}

.hero-copy > p {
  animation-delay: 0.32s;
}

.hero-copy .cta-row {
  animation-delay: 0.4s;
}

.hero-copy .stat-grid {
  animation-delay: 0.5s;
}

.hero-copy .education-badge {
  animation-delay: 0.58s;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.primary-btn,
.secondary-btn,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.primary-btn,
.secondary-btn {
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 47, 59, 0.24);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(79, 47, 59, 0.3);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(106, 71, 84, 0.15);
  color: var(--primary-strong);
}

.secondary-btn:hover,
.inline-link:hover {
  background: rgba(106, 71, 84, 0.06);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.stat {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(106, 71, 84, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px rgba(79, 47, 59, 0.11);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primary-strong);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.education-badge {
  margin: 18px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(106, 71, 84, 0.05);
}

.education-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  flex-shrink: 0;
}

.education-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.education-copy strong {
  color: var(--primary-strong);
  font-size: 0.92rem;
  line-height: 1.1;
}

.education-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.section-shell {
  padding: 34px 0 30px;
}

#about,
#projects,
#skills,
#experience,
#contact {
  scroll-margin-top: 96px;
}

.section-header {
  margin-bottom: 26px;
}

.section-header h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--primary-strong);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card,
.panel,
.job-card,
.skill-card,
.contact-card,
.project-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(79, 47, 59, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeUp 0.65s ease-out both;
}

.feature-card:hover,
.job-card:hover,
.skill-card:hover,
.contact-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(106, 71, 84, 0.22);
  box-shadow: 0 22px 35px rgba(79, 47, 59, 0.12);
}

.features-grid .feature-card:nth-child(1),
.projects-grid .project-card:nth-child(1),
.skills-layout .skill-card:nth-child(1),
.experience-list .job-card:nth-child(1),
.contact-grid .contact-card:nth-child(1) {
  animation-delay: 0.05s;
}

.features-grid .feature-card:nth-child(2),
.projects-grid .project-card:nth-child(2),
.skills-layout .skill-card:nth-child(2),
.experience-list .job-card:nth-child(2),
.contact-grid .contact-card:nth-child(2) {
  animation-delay: 0.12s;
}

.features-grid .feature-card:nth-child(3),
.projects-grid .project-card:nth-child(3),
.skills-layout .skill-card:nth-child(3),
.experience-list .job-card:nth-child(3),
.contact-grid .contact-card:nth-child(3) {
  animation-delay: 0.19s;
}

.features-grid .feature-card:nth-child(4),
.projects-grid .project-card:nth-child(4),
.skills-layout .skill-card:nth-child(4),
.experience-list .job-card:nth-child(4) {
  animation-delay: 0.26s;
}

.skills-layout .skill-card:nth-child(5),
.projects-grid .project-card:nth-child(5) {
  animation-delay: 0.33s;
}

.feature-card {
  padding: 24px 22px;
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(247, 215, 184, 0.8));
  color: var(--primary-strong);
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: transform 0.28s ease;
  animation: floatSoft 3.2s ease-in-out infinite;
}

.feature-card:hover .icon {
  transform: rotate(-5deg) scale(1.04);
}

.feature-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-strong);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.panel {
  padding: 28px 26px;
}

.panel h3 {
  margin: 0 0 18px;
  color: var(--primary-strong);
  font-size: 1.7rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span,
.tech-list li,
.skill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(199, 143, 139, 0.12);
  border: 1px solid rgba(106, 71, 84, 0.08);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-hero {
  padding: 52px 0 18px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: var(--primary-strong);
  letter-spacing: -0.05em;
}

.page-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.04rem;
}

.experience-list {
  display: grid;
  gap: 22px;
  padding: 26px 0 12px;
}

.job-card {
  padding: 26px 24px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.job-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  color: var(--primary-strong);
}

.job-header h4 {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

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

.company-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  flex-shrink: 0;
}

.company-row h4 {
  margin: 0;
}

.job-period {
  white-space: nowrap;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-card p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-panel {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(239, 214, 210, 0.5));
  border: 1px solid var(--line);
}

.resume-panel h3 {
  margin: 0;
  color: var(--primary-strong);
  font-size: 1.3rem;
}

.resume-panel p {
  color: var(--muted);
  margin-top: 4px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 18px 0 30px;
}

.project-card {
  overflow: hidden;
}

.project-media {
  height: 230px;
  overflow: hidden;
  background: #f6eeed;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

.project-media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(199, 143, 139, 0.22), rgba(247, 215, 184, 0.6));
  color: var(--primary-strong);
}

.project-media-icon svg {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-media-icon svg {
  transform: scale(1.06) rotate(-4deg);
}

.project-body .tech-list {
  margin: 0 0 14px;
}

.project-note {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.project-body {
  padding: 22px 20px 24px;
}

.project-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-strong);
}

.project-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  transition: gap 0.2s ease, color 0.2s ease;
}

.project-card:hover .project-link {
  gap: 12px;
  color: var(--primary-strong);
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 16px 0 30px;
}

.skill-card {
  padding: 24px 22px;
}

.skill-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  color: var(--primary-strong);
  font-size: 1.3rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.skills-layout .skill-card:last-child:nth-child(odd),
.projects-grid .project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  padding: 18px 0 30px;
}

.contact-intro {
  text-align: center;
}

.contact-intro p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-intro .cta-row {
  margin-top: 24px;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(199, 143, 139, 0.14);
  border: 1px solid rgba(106, 71, 84, 0.14);
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf6d;
  box-shadow: 0 0 0 4px rgba(76, 175, 109, 0.18);
  flex-shrink: 0;
}

.contact-card {
  position: relative;
  padding: 26px 22px;
  text-align: center;
}

.contact-card-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(199, 143, 139, 0.16), rgba(247, 215, 184, 0.4));
  font-size: 1.5rem;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.06) rotate(-3deg);
}

.contact-icon img,
.contact-icon svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
  color: var(--primary-strong);
}

.contact-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--primary-strong);
}

.contact-card a,
.contact-card span,
.contact-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.site-footer {
  padding: 26px 0 36px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  animation: fadeUp 0.65s ease-out;
}

.timeline-section {
  padding-top: 12px;
}

.timeline {
  position: relative;
  margin-top: 18px;
  padding: 20px 0 10px 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, rgba(106, 71, 84, 0.2), rgba(106, 71, 84, 0.45), rgba(106, 71, 84, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(106, 71, 84, 0.14);
  z-index: 2;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(79, 47, 59, 0.06);
  padding: 18px 18px 16px;
  margin-left: 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

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

.company-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.timeline-company {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-period {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(199, 143, 139, 0.12);
  border: 1px solid rgba(106, 71, 84, 0.08);
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-content h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--primary-strong);
}

.timeline-content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.timeline-content .tech-list {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.timeline-content .tech-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(216, 205, 201, 0.4);
  border: 1px solid rgba(106, 71, 84, 0.06);
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 700;
}

.timeline-resume {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .skills-layout,
  .projects-grid,
  .contact-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 18px;
  }

  .nav-links {
    justify-content: center;
  }

  .profile-frame {
    max-width: 360px;
  }

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

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

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .primary-btn,
  .secondary-btn {
    width: auto;
    min-width: 210px;
  }

  .job-header {
    flex-direction: column;
  }

  .company-row {
    align-items: flex-start;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item::before {
    left: -21px;
    top: 18px;
  }

  .timeline-content {
    padding: 18px 16px 14px;
    margin-left: 8px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-period {
    white-space: normal;
  }
}