* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --surface: #fafaf8;
  --paper: rgba(255, 255, 255, 0.92);
  --text: #333;
  --muted: #666;
  --soft: #555;
  --edge: #e4e1db;
  --line: #333;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--surface);
  color: var(--text);
  line-height: 1.7;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: var(--surface);
  margin-top: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
}

h1, h2, h3 {
  font-family: "Playpen Sans Hebrew", cursive;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-intro {
  max-width: 46rem;
  margin-bottom: 4rem;
}

.section-label,
.project-label,
.project-type {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1 {
  font-size: clamp(1.92rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  margin: 0.7rem 0 1rem;
}

.page-summary,
.domain-summary,
.project-copy,
.project-stack {
  color: var(--soft);
}

.page-summary {
  max-width: 40rem;
}

.timeline-section {
  margin-bottom: 4.5rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.timeline-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.domain-heading {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 1rem 2rem;
  align-items: start;
  margin-bottom: 1.8rem;
}

.domain-heading h2 {
  font-size: clamp(1.44rem, 2.4vw, 2.16rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.domain-summary {
  max-width: 38rem;
}

.domain-timeline {
  list-style: none;
  position: relative;
  padding: 0;
}

.domain-timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(51, 51, 51, 1) 0%, rgba(51, 51, 51, 0.15) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s ease 0.1s;
}

.timeline-section.is-visible .domain-timeline::before {
  transform: scaleY(1);
}

.project-item {
  position: relative;
  padding: 0 0 2.5rem 5rem;
  opacity: 0;
  transform: translateX(34px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--item-delay, 0.18s);
}

.timeline-section.is-visible .project-item {
  opacity: 1;
  transform: translateX(0);
}

.project-item:last-child {
  padding-bottom: 0;
}

.project-item::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1.95rem;
  width: 2.6rem;
  height: 2px;
  background-color: rgba(51, 51, 51, 0.35);
}

.project-node {
  position: absolute;
  left: 0.58rem;
  top: 1.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--line);
  border-radius: 50%;
  background-color: var(--surface);
  box-shadow: 0 0 0 8px rgba(250, 250, 248, 0.95);
}

.project-card {
  position: relative;
  padding: 1.6rem 1.8rem;
  background-color: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.project-card-top,
.project-header,
.project-copy,
.project-links {
  position: relative;
  z-index: 1;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.project-type {
  letter-spacing: 0.14em;
}

.project-header {
  margin-bottom: 0.9rem;
}

.project-title-group h3 {
  font-size: clamp(1.08rem, 1.92vw, 1.68rem);
  line-height: 1.15;
}

.project-stack {
  margin-top: 0.35rem;
}

.project-copy {
  max-width: 42rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  background-color: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.project-link-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--edge);
}

@media (max-width: 780px) {
  .navbar {
    margin-top: 24px;
    padding: 1.5rem 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .container {
    padding: 0.5rem 1.25rem 4rem;
  }

  .page-intro {
    margin-bottom: 3rem;
  }

  .domain-heading {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .domain-timeline::before {
    left: 0.85rem;
  }

  .project-item {
    padding-left: 3.8rem;
  }

  .project-item::before {
    left: 0.95rem;
    width: 1.8rem;
  }

  .project-node {
    left: 0.35rem;
  }

  .project-card {
    padding: 1.25rem 1.2rem;
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .project-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-links {
    flex-direction: column;
    align-items: stretch;
  }

  .project-link {
    width: 100%;
  }
}